
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@nostrify/types
Advanced tools
TypeScript types for Nostr. This package includes Nostr standardized types from the NIPs, as well as useful interfaces that promote consistency across your applications.
TypeScript types for Nostr. This package includes Nostr standardized types from the NIPs, as well as useful interfaces that promote consistency across your applications.
The goal of this package is to create a TypeScript standard for Nostr, so that developers and library authors can create reusable components that can be easily swapped out. A lot of thought has been put into these types, so that they are simple, powerful, and feel natural to use.
It is a types-only package, so you can use it for free in any project.
import { NostrEvent, NostrFilter, NStore } from '@nostr/types';
export class MyStore implements NStore {
async query(filters: NostrFilter[]): Promise<NostrEvent[]> {
// Your implementation here
}
}
Nostr* are standardized types from the NIPs.N* are Nostrify types.Here are a few examples of types provided by this package:
NostrEvent - NIP-01 Nostr event. It is specifically not called Event to avoid conflicts with the built-in type.NostrFilter - NIP-01 Nostr filter.NostrSigner - NIP-07 signer interface. Nostrify contains a handful of implementations.NStore - Nostrify event storage. Can be a cache, a database, or any other storage. It returns events from Nostr filters and should implement NIP-01 functionality for replaceable events, NIP-09 deletions etc., so the event set is always valid.NRelay - Nostrify relay client. It extends NStore with a .req method for streaming. Single relay connections and relay pools both use this interface.NPolicy - Nostrify policy function for filtering out spam events and other unwanted content.NUploader - Nostrify file uploader. Accepts a File object and returns NIP-94 data. Has implementations for nostr.build and Blossom.MIT
FAQs
TypeScript types for Nostr. This package includes Nostr standardized types from the NIPs, as well as useful interfaces that promote consistency across your applications.
We found that @nostrify/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.