TAT Protocol Monorepo - Core Protocol Packages
npm install @tat-protocol/tdkTAT Protocol Developer Kit - Complete SDK for building on TAT Protocol.
The TAT Protocol TDK (Token Development Kit) is a unified SDK that provides all the tools you need to build decentralized token applications. It re-exports all core TAT Protocol packages in a single, convenient import.
``bash`
npm install @tat-protocol/tdk
The TDK includes all TAT Protocol packages:
- @tat-protocol/forge - Token minting and issuance
- @tat-protocol/pocket - Token wallet and management
- @tat-protocol/nwpc - Nostr Wrapped Procedure Calls
- @tat-protocol/token - Token creation and validation
- @tat-protocol/storage - Pluggable storage backends
- @tat-protocol/utils - Utility functions and helpers
- @tat-protocol/hdkeys - Hierarchical deterministic key management
- @tat-protocol/boxoffice - Booth protocol (TAT sales)
- @tat-protocol/turnstile - Gate protocol (access verification)
`typescript
import {
Pocket,
Forge,
Token,
NodeStorage,
DebugLogger
} from '@tat-protocol/tdk';
// Enable debug logging
const Debug = DebugLogger.getInstance();
Debug.enableAll();
// Create a pocket (wallet)
const pocket = await Pocket.create({
storage: new NodeStorage({ path: './.pocket' }),
keys: yourKeyPair,
relays: ['wss://relay.damus.io']
});
// Create a forge (token issuer)
const forge = await Forge.create({
storage: new NodeStorage({ path: './.forge' }),
keys: forgeKeyPair,
relays: ['wss://relay.damus.io']
});
`
You can also import packages individually:
`bash`
npm install @tat-protocol/pocket
npm install @tat-protocol/forge
`typescript``
import { Pocket } from '@tat-protocol/pocket';
import { Forge } from '@tat-protocol/forge';
For detailed documentation on each package, see:
- Forge Documentation
- Pocket Documentation
- NWPC Documentation
- Token Documentation
- Storage Documentation
- Utils Documentation
- HDKeys Documentation
See TAT_PROTOCOL.md for the complete protocol specification.
Check the examples directory for complete working examples:
- Running a Forge
- Creating a Pocket
- Token transfers
- And more
- Node.js >= 16.0.0
- TypeScript 5.x (for development)
MIT License. See LICENSE for details.
See CONTRIBUTING.md for contribution guidelines.
- GitHub Issues: https://github.com/tat-protocol/tat-protocol/issues
- Documentation: https://docs.tat-protocol.org