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

v0.1.0

Published

Independent SQLite-backed runtime for the open Eidos File format

Readme

@eidos.space/eidos-file

Headless runtime and host contracts for portable Eidos .eidos files.

An Eidos File is a normal SQLite database containing portable table, field, view, and relation metadata. The package does not depend on the Eidos app, Zustand stores, routes, Electron IPC, or a database singleton.

Install

pnpm add @eidos.space/[email protected]

Add @eidos.space/[email protected] when rendering React views.

Browser host

The browser entry includes a SQLite WASM runtime, native file picker adapter, copy-mode fallback, conflict detection, and IndexedDB recovery store.

import { EidosFileSession } from "@eidos.space/eidos-file"
import {
  EidosFileBrowserRuntime,
  IndexedDbEidosFileRecoveryStore,
  openBrowserEidosFile,
  pickBrowserEidosFile,
} from "@eidos.space/eidos-file/browser"

const session = new EidosFileSession(
  new EidosFileBrowserRuntime(),
  new IndexedDbEidosFileRecoveryStore()
)

const direct = await pickBrowserEidosFile()
const imported = fileInput.files?.[0]
  ? await openBrowserEidosFile(fileInput.files[0])
  : null
const handle = direct ?? imported

if (handle) await session.open(handle)

SQLite WASM uses WebAssembly and top-level await. A Vite host should enable the same two standard plugins:

import { defineConfig } from "vite"
import topLevelAwait from "vite-plugin-top-level-await"
import wasm from "vite-plugin-wasm"

export default defineConfig({
  plugins: [wasm(), topLevelAwait()],
  optimizeDeps: { exclude: ["@sqlite.org/sqlite-wasm"] },
})

Call session.markDirty() after a committed mutation. checkpoint() stores a recoverable working copy. save() exports an integrity-checked database and performs a compare-and-swap write against the revision observed at open time.

import { EidosFileHostError } from "@eidos.space/eidos-file"

session.markDirty()
await session.checkpoint()

try {
  await session.save()
} catch (error) {
  if (error instanceof EidosFileHostError && error.code === "conflict") {
    // Offer reload, forced overwrite, or Save As. Do not silently choose.
  }
}

Chromium-based browsers can write to the original file after user permission. Other browsers open an imported copy; hosts can offer Save As when supported or downloadEidosFile() as the fallback. File bytes stay in the browser.

Node and Electron

The optional better-sqlite3 entry owns native file access. The main entry remains browser-safe and works against the small EidosFileConnection interface.

import { createEidosFile } from "@eidos.space/eidos-file/better-sqlite3"

const file = createEidosFile("tasks.eidos", {
  title: "Tasks",
  defaultTable: { name: "Tasks" },
})

file.insertRow(file.info().defaultTableId!, { title: "Ship Eidos File" })
file.close()

Public boundaries

  • EidosFileDescriptor is adapter-owned identity, metadata, size, and an opaque revision token.
  • EidosFileHandle owns reading, permissions, and optional verified writes.
  • EidosFileRuntimeAdapter turns bytes into an EidosFileDocument.
  • EidosFileDataSource is the async paging and mutation contract consumed by views.
  • EidosFileSession owns open, dirty, saving, conflict, error, recovery, and cleanup states.
  • EidosFileHandlerRegistry matches file types. It does not install or execute extensions.

See DEVELOPER_PLATFORM.md for the audited product boundary and first-release scope.

Security

Adapters are the authority boundary. A view never receives SQLite, a native file handle, the browser picker, Electron IPC, or host application state. React views are trusted application code, not sandboxed extensions. A host must review and statically import them just like any other dependency.

Format notes

Files remain valid SQLite databases and can be inspected with ordinary SQLite tools. Gallery and Kanban query indexes are disposable SQLite indexes maintained by the runtime; they are not Eidos metadata or user data.