@tat-protocol/config
v1.1.0
Published
Configuration module for TAT Protocol
Maintainers
Readme
@tat-protocol/config
Configuration module for TAT Protocol - Default settings and configuration options.
Overview
The Config module provides default configuration values for TAT Protocol packages, including default relay URLs and other protocol-wide settings.
Installation
npm install @tat-protocol/configUsage
import { defaultConfig } from '@tat-protocol/config';
console.log(defaultConfig.relays);
// []Configuration
Default Config
The defaultConfig object includes:
relays: Array of default Nostr relay URLs (currently empty by default)
Customization
You can override the default config in your application:
import { defaultConfig } from '@tat-protocol/config';
const myConfig = {
...defaultConfig,
relays: [
'wss://relay.damus.io',
'wss://relay.nostr.band',
'wss://relay.snort.social'
]
};Or provide custom configuration directly to TAT Protocol packages:
import { Pocket } from '@tat-protocol/pocket';
const pocket = await Pocket.create({
relays: ['wss://your-relay.com'],
// ... other config
});License
MIT License. See LICENSE for details.
