Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nostr-ts/common

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nostr-ts/common

Commonly used nostr types and utils

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

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

Checkout the documentation for more information.

Installation

pnpm add @nostr-ts/common

Get started

This is mostly shared stuff, so checkout either

  • @nostr-ts/node for node usage
  • @nostr-ts/web for 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'

Keywords

nostr

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts