
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@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.
The npm package @nostrify/types receives a total of 1,197 weekly downloads. As such, @nostrify/types popularity was classified as popular.
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.