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

@curatelabs/graphforge

v0.5.2

Published

Native Node.js bindings for the GraphForge embedded graph engine

Readme

@curatelabs/graphforge

Native Node.js bindings for the GraphForge embedded graph engine. The package loads the Rust implementation for the current platform; it does not include a JavaScript fallback engine.

Install

npm

npm install @curatelabs/graphforge

pnpm

pnpm add @curatelabs/graphforge

Decode Arrow IPC results with apache-arrow (npm install apache-arrow / pnpm add apache-arrow) when you want table helpers in JavaScript.

Node.js 20 or newer is required. Prebuilt packages are published for:

  • macOS: Apple silicon and Intel
  • Linux glibc: ARM64 and x64
  • Windows: x64

Quick start

import { tableFromIPC } from "apache-arrow";
import { GraphForge } from "@curatelabs/graphforge";

const forge = new GraphForge();
forge.execute("CREATE (:Person {name: 'Alice', age: 30})");

const result = forge.execute(
  "MATCH (p:Person) RETURN p.name AS name, p.age AS age",
);
const table = tableFromIPC(result);

console.log(table.toArray());

GraphForge returns Arrow IPC buffers from query and analyst-verb result surfaces. Decode them with apache-arrow as shown above.

Graph inspection

const labels = forge.labels();
const relationshipTypes = forge.relationshipTypes();
const totalNodes = forge.nodeCount();
const people = forge.nodeCount("Person");
const schema = tableFromIPC(forge.schema());

Names are sorted and include only values present in the committed graph. schema() returns label, node_count, rel_type, and rel_count; label rows come first, followed by relationship rows, with the unrelated columns null.

There is no generic begin() / commit() / rollback() surface. Each execute() write is atomic. Use publishCompositeTransaction() when graph and knowledge mutations must publish in one committed generation.

For persistent projects, create the project directory before passing its path to new GraphForge(path).

Choose an embedded write mode with the optional second constructor argument:

const forge = new GraphForge(path, {
  writeMode: "optimistic_multi_writer",
  writeQueueCapacity: 64,
  maxRebaseAttempts: 3,
});

The stable mode names are single_writer (default), queued_writer, and optimistic_multi_writer. Queue capacity is bounded to 1–65,536 and rebase attempts to 0–32. Optimistic replay applies only to composite transactions. GraphForge remains embedded; remote transports are separate extensions.

Ontology lifecycle

The native binding exposes the Rust-owned #236 operations through inspectRuntimeCatalog(), suggestOntology(), validateOntology(), and exportOntology(). These inspect or derive explicit artifacts without changing durable project authority. Issue #237 supplies the same thin Python/Node parity and adds durable workspaceOntology(), adoptOntology(), and clearOntology() operations.

These APIs are distinct from the repository CLI's export and import commands, which move one complete portable project generation. Repository interchange never implicitly inspects, suggests, validates, exports, adopts, or clears an ontology.

Documentation and support

License

GraphForge is open source under the Apache License 2.0. See the included LICENSE and NOTICE files for terms and attribution.