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

@plures/pluresdb

v3.9.1

Published

P2P Graph Database — Local-first, offline-first. One codebase: native Rust, Node.js (N-API), browser (WASM), Deno (WASM).

Downloads

1,104

Readme

PluresDB — P2P Graph Database

npm (@plures/pluresdb) crates.io JSR License: BSL-1.1

Local-first, offline-first. One codebase: Rust native, Node.js, browser, Deno.

PluresDB v3.0.0 is a fully Rust-powered P2P graph database with CRDT synchronization, vector search, SQLite compatibility, and a procedures engine. The same Rust codebase compiles to:

  • Native binary (Rust, via cargo)
  • Node.js native addon (N-API, via npm)
  • Browser WASM (via npm or CDN)
  • Deno WASM (via JSR)

Features

  • CRDT synchronization — Conflict-free replicated data types for multi-device sync
  • Vector search — Semantic search with embeddings
  • SQLite compatibility — Familiar SQL interface over CRDT storage
  • Procedures engine — Programmable business logic inside the database
  • P2P networking — Built-in Hyperswarm integration for direct peer-to-peer sync
  • Local-first — Works offline, syncs when connected
  • Zero configuration — No servers to set up

Quick Start

Rust (Native)

cargo add pluresdb-core
use pluresdb_core::CrdtStore;

fn main() {
    let store = CrdtStore::new("./data").unwrap();
    store.insert("key", b"value").unwrap();
    println!("{:?}", store.get("key"));
}

Node.js (N-API)

npm install @plures/pluresdb
import { CrdtStore } from '@plures/pluresdb';

const store = new CrdtStore('./data');
store.insert('key', Buffer.from('value'));
console.log(store.get('key'));

Browser (WASM)

npm install @plures/pluresdb
import init, { CrdtStore } from '@plures/pluresdb/wasm';

await init(); // Initialize WASM module
const store = new CrdtStore();
store.insert('key', new Uint8Array([118, 97, 108, 117, 101]));
console.log(store.get('key'));

Or via CDN:

<script type="module">
  import init, { CrdtStore } from 'https://unpkg.com/@plures/pluresdb@3/dist/wasm/pluresdb.js';
  await init();
  const store = new CrdtStore();
  store.insert('key', new Uint8Array([118, 97, 108, 117, 101]));
</script>

Deno (WASM via JSR)

deno add jsr:@plures/pluresdb
import { CrdtStore } from '@plures/pluresdb';

const store = new CrdtStore();
store.insert('key', new Uint8Array([118, 97, 108, 117, 101]));
console.log(store.get('key'));

Architecture

PluresDB v3.0.0 is a Rust-first architecture. All core functionality lives in Rust crates, compiled to multiple targets:

pluresdb/
├── crates/
│   ├── pluresdb-core         # CRDT store, storage engine
│   ├── pluresdb-sync         # P2P sync via Hyperswarm
│   ├── pluresdb-vector       # Vector search (embeddings)
│   ├── pluresdb-sql          # SQLite compatibility layer
│   ├── pluresdb-procedures   # Programmable procedures engine
│   ├── pluresdb-http         # HTTP/REST server
│   ├── pluresdb-node         # N-API bindings for Node.js
│   └── pluresdb-wasm         # WASM bindings for browser/Deno
├── dist/
│   ├── node/                 # N-API build output
│   ├── wasm/                 # WASM build output
│   └── types/                # TypeScript type definitions

Compilation targets:

  • cargo build --release → Native binary (Linux, macOS, Windows)
  • napi build --release → Node.js .node addon
  • wasm-pack build --target web → Browser/Deno WASM

Migration from v2.x

PluresDB v3.0.0 removes all TypeScript source code. The legacy ./legacy exports are gone.

Removed exports:

  • @plures/pluresdb/legacy
  • @plures/pluresdb/node
  • @plures/pluresdb/better-sqlite3
  • @plures/pluresdb/embedded

New exports:

  • @plures/pluresdb — Auto-detects Node.js, browser, or Deno
  • @plures/pluresdb/wasm — Explicit WASM import

Breaking changes:

  • All TypeScript source removed — Rust-first implementation
  • Package now ships pre-compiled Rust (N-API for Node, WASM for browser/Deno)
  • API surface remains compatible for core CRDT operations
  • Some legacy utilities (CLI tools, VSCode extension entry points) may require updates

See CHANGELOG.md for detailed migration instructions.

Documentation

License

Business Source License 1.1 — See LICENSE for details.

The BSL allows free use for non-production purposes. After 4 years from release date, the code becomes Apache 2.0 licensed.

Community


Built with Rust. Runs everywhere.