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

@graphium/core

v0.1.0-rc.1

Published

Core graph OGM library for TypeScript

Downloads

54

Readme

@graphium/core

English · 한국어

Graph-native OGM with multiple graph DB backends

Explicit persistence model — no Proxy magic, no N+1 footguns

@graphium/core is the backend-neutral OGM runtime core used by graph-native backends such as @graphium/neo4j, and by future graph-native packages such as @graphium/neptune.

It is not the main getting-started package for application users.

What's new in 0.4

  • Unlimited find() by default — the 0.3 implicit 10 000-row cap is removed. Opt back in via Graph.create({ defaultMaxRows: 10_000 }).
  • autoFlush dirty tracking — opt-in ES Proxy wrapper that flushes property mutations without explicit persist(). Enable: Graph.create({ autoFlush: true }).
  • lazy relationship loading — opt-in lazy Promise<T[]> on first access (requires autoFlush).
  • Observability detectors — slow-query, N+1, and Neo4j EXPLAIN cost detectors; enable all via Graph.create({ profile: 'production' }).
  • ReadOnlyRepository / WritableRepository interface splitBaseRepository<T> implements both; find/findOne/count go through the read-only surface, mutations through the writable surface.
  • PII redaction extendedSENSITIVE_KEY_PATTERN now matches cardNumber, ssn, cvv, email, phone, dob, and birth* in QueryError / log redaction.
  • Schema diff enginebuildDesiredSchemaSpec + diffSchema (@graphium/core/migration) powering the new migrate:diff CLI subcommand (Phase 4).

Owns

  • Graph lifecycle and configuration
  • GraphManager core CRUD/orchestration behavior
  • BaseRepository core behavior
  • unit of work, identity map, transactions, request context
  • seeding, logging, metrics, error handling
  • backend-neutral driver/store runtime contracts
  • graph decorators and metadata declarations (the schema layer)
  • the Bolt transport, Cypher AST/query builder, and Gremlin DSL/renderer, exposed on enforced sub-paths: @graphium/core/bolt, @graphium/core/cypher, @graphium/core/cypher/ogm, @graphium/core/gremlin, @graphium/core/gremlin/ogm
  • the unified BackendCapabilities capability model and the Capability Conformance Suite (src/__tests__/conformance/)

Does Not Own

  • backend-specific raw query APIs
  • backend-specific migrators

Those live in backend packages such as @graphium/neo4j.

Who Should Use It Directly

  • backend package authors
  • framework/integration package authors
  • advanced users building on Graph internals

Most application code should start from a user-facing package such as @graphium/neo4j.

Related Docs