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

@eidos.space/eidos-file

v4.1.0

Published

Independent SQLite-backed runtime for the open Eidos File format

Readme

@eidos.space/eidos-file

Portable Eidos File 1.0 contracts and the reference headless Runtime.

The normative specifications are docs/specs. Implementations compose in one direction:

Eidos File 1.0 → Eidos Runtime 1.0 → Eidos Adapter 1.0 → Eidos UI 1.0

The File is an ordinary SQLite application file. Runtime alone owns format semantics. Adapters own SQLite execution, transport, persistence and Host authority. UI receives only RuntimeClient and HostServices; it never receives SQL, a database, a path or a native file handle.

Install

pnpm add @eidos.space/[email protected]

Add @eidos.space/eidos-file-ui for the React Viewer binding.

Exact Runtime binding

Runtime.create initializes an empty ConnectionPort; Runtime.open validates an existing one. Both return a public service plus a trusted Host-only bridge.

import {
  Runtime,
  type ConnectionPort,
  type RuntimeEnvironment,
} from "@eidos.space/eidos-file"

const binding = await Runtime.open(
  connection satisfies ConnectionPort,
  environment satisfies RuntimeEnvironment,
  "readwrite",
  { cancellation, deadlineMilliseconds: 30_000 }
)

const negotiated = await binding.service.negotiate(
  { protocol: "eidos-runtime", versions: ["1.0"] },
  { requestId: "negotiate" }
)

The service exposes the frozen columnar query, authenticated keyset cursor, aggregate/group, validation and transactional mutation contracts. Integer values are decimal strings at public boundaries; JSON Field values are RFC 8785 JCS text strings. Optional undo/events/CSV methods exist exactly when the matching negotiated capability is true.

Adapter profiles

  • NodeSqliteConnectionPort in @eidos.space/eidos-file/node-sqlite implements the Node 24.16+ EA-Connection binding without a native addon or a Node/Electron ABI rebuild. Eidos Lite runs it in an Electron utility process.
  • BetterSqlite3ConnectionPort in @eidos.space/eidos-file/better-sqlite3 remains available to Node Hosts that have chosen that driver; it is not the Eidos Lite adapter.
  • SQLiteWasmConnectionPort in @eidos.space/eidos-file/browser implements the Browser Worker EA-Connection binding using the same conformance contract.
  • AdapterTransportServer and AdapterTransportRuntimeClient implement the Eidos Adapter 1.0 structured-clone transport, including sequence binding, cancellation, attachment limits and the prepared-commit acknowledgement barrier.

The browser-conforming composition keeps SQLite and Runtime in a Dedicated Worker. Window receives only the transported RuntimeClient; SQLite, File bytes, and trusted Host authority remain outside UI.

File rules implemented here

  • canonical File DDL, STRICT user tables and File-owned triggers;
  • lowercase hyphenated UUIDv7 identity;
  • exact physical naming, rename and conversion behavior;
  • canonical date/datetime, JSON, list, File and Relation values;
  • File entries limited to confined relative URI-references, absolute https: URIs, or canonical inline image Data URLs; inline bytes are validated against declared media type and size and are capped at 1 MiB;
  • virtual Formula, Lookup and inverse-Relation projection;
  • revision, no-op mutation, delete policy and cache invalidation semantics;
  • cumulative identity/structural/content/semantic/full validation.

Unsupported pre-1.0 draft schemas are rejected rather than guessed or silently migrated.

The supported editor matrix, lossy confirmation rules, canonical value requirements, and load budgets are documented in FIELD-CONVERSION.md.

Runtime validates File values but grants no fetch, render, filesystem, or network authority. Relative/HTTPS bytes never enter a hidden SQLite attachment store. A Host resolves them through session-scoped asset leases; the canonical Data URL is the sole inline-byte exception and stores bytes once in uri.

Verification

pnpm --filter @eidos.space/eidos-file typecheck
pnpm --filter @eidos.space/eidos-file typecheck:public
pnpm --filter @eidos.space/eidos-file build
pnpm --filter @eidos.space/eidos-file api:check

The package is framework-agnostic. React bindings live in @eidos.space/eidos-file-ui.