@nostr-ts/node
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

nostr-ts Node

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 node ws library
  • @nostr-ts/web: client for usage with browser WebSocket API

Checkout the documentation for more information.

Installation

pnpm add @nostr-ts/node

Get started

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'

Readme

Keywords

Package Sidebar

Install

npm i @nostr-ts/node

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

33.4 kB

Total Files

16

Last publish

Collaborators

  • franzos