0.0.6 • Published 8 months ago
@nostr-ts/common v0.0.6
nostr-ts Common
Nostr: A simple, open protocol that enables a truly censorship-resistant and global social network.
This package is part of nostr-ts.
@nostr-ts/common: common types and functions@nostr-ts/node: client for usage with nodewslibrary@nostr-ts/web: client for usage with browserWebSocketAPI
Checkout the documentation for more information.
Installation
pnpm add @nostr-ts/commonGet started
This is mostly shared stuff, so checkout either
@nostr-ts/nodefor node usage@nostr-ts/webfor browser usage
for ex.
On Node.js use:
import { NewShortTextNote, NFilters } from '@nostr-ts/common'
import { RelayClient, RelayDiscovery, loadOrCreateKeypair, NUser } from '@nostr-ts/node'In the browser use:
import { NewShortTextNote, NFilters } from '@nostr-ts/common'
import { RelayClient, loadOrCreateKeypair, NUser } from '@nostr-ts/web'