npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@peers-app/peers-sdk

v0.20.6

Published

The core SDK for building [Peers](https://peers.app) packages.

Readme

@peers-app/peers-sdk

The core SDK for building Peers packages.

What is Peers?

Peers is a local-first personal computing platform. Your data lives on your devices, syncs peer-to-peer, and is end-to-end encrypted — no servers in the middle. You own your data and your identity. Build apps with the SDK or use AI coding tools to create them; either way, the platform handles sync, encryption, and persistence automatically.

What this package provides

Package System

definePackage() and the contract builder API let you declare tables, tools, assistants, screens, and navigation entries. The runtime installs, loads, and hot-reloads your package across all devices.

ORM

Table definitions with Zod schemas, data queries with a Mongo-style filter syntax, and async cursors. Tables sync across devices and encrypt automatically — you just define the schema.

Observables and Persistent Variables

Lightweight reactive primitives (observable(), computed()) with .subscribe(). Persistent variables (deviceVar, userVar, groupVar) are observables backed by the database — write once, subscribe everywhere, synced across devices.

Types and Schemas

Zod schemas and TypeScript types for the entire Peers data model: users, groups, devices, packages, tools, assistants, workflows, messages, channels, and more.

Encryption

NaCl-based key management, message signing and verification, box encryption, and deterministic hashing. Identity is a cryptographic key pair — no passwords, no email.

Tools Framework

Define AI-callable tools with ITool and IToolInstance. Tools are registered at runtime and available to built-in and user-defined AI assistants and workflows.

Identity and Groups

User, group, and permission management types. Group-scoped data contexts for multi-tenant data isolation. Invite flows and trust levels.

Quick Start

npm install @peers-app/peers-sdk

The fastest way to build a Peers package is to start from the template:

peers-package-template — scaffold, build, and install a custom package into the Peers runtime. This will be setup automatically when you create a new package in the desktop app.

Key Interfaces

| Export | Purpose | | ------------------------------------ | ----------------------------------------------------------------------- | | definePackage() | Entry point for declaring a package's contracts, tools, tables, and nav | | Table | ORM table with CRUD, Zod validation, and dataChanged events | | DataQuery / DataFilter | Mongo-style query filters translated to SQL | | observable() / computed() | Reactive state primitives | | deviceVar / userVar / groupVar | Persistent variables — observables backed by the database | | ITool / IToolInstance | AI-callable tool definitions | | IPeersUI / IPeersUIRoute | Screen and route declarations for package UIs | | newid() | Generate 25-character time-sortable peer IDs | | newKeys() / hydrateKeys() | Cryptographic key pair generation and hydration | | UserContext / DataContext | Multi-group data scoping and package loading |

Links

  • peers.app — try Peers in your browser or download the desktop app
  • Documentation — architecture, package development, and API reference
  • GitHub — source repositories and package template

License

MIT