Skip to content

Packages

memento is one monorepo with one version line: the five @jsmemento/* packages, the CLI and the Docker image share one version and release together. Every release tag (the first: v1.1.0) puts the packages on npm and the image on GitHub’s registry, which also carries the image of every commit of main; the source is the repository.

PackageVersionOn npmUsesLinks
@jsmemento/coreZod schemas, inferred types and helpers shared by server, CLI and clients.1.1.0—
@jsmemento/serverFastify app, Drizzle storage on PostgreSQL or SQLite, tenant isolation, API key auth.1.1.0@jsmemento/core@jsmemento/lookups
@jsmemento/clisetup, tenants, API keys, templates, chats, lookups and a live tail.1.1.0@jsmemento/core@jsmemento/lookups@jsmemento/server
@jsmemento/reactprovider, live event table, chat and search components.1.1.0@jsmemento/corepeer react >=18peer react-dom >=18
@jsmemento/lookupscontrolled vocabularies from YAML, CSV translations, candidate recording and TypeScript/Zod codegen.1.1.0—

Read from packages/*/package.json when this site was built (): one version, 1.1.0, for all five. Licence: MIT. On npm: the npm registry, asked in the same build: the newest version of each package and when it was published.

  • @jsmemento/core has no Node-only API (it hashes with Web Crypto), so the same package serves the server, the CLI, a browser and React. Its only dependency is zod.
  • @jsmemento/server brings Fastify and its WebSocket, cookie, static and rate-limit plugins, Drizzle and pg, and @jsudc/server for the UDC collections. It runs on PostgreSQL or on a SQLite file through Node’s built-in node:sqlite, with the migrations of both inside (SQLite since 1.1.0).
  • @jsmemento/react keeps React as a peer (react and react-dom 18 or newer) and ships a stylesheet, @jsmemento/react/styles.css.

@jsmemento/cli is the memento command. In the image it is /usr/local/bin/memento, with the same DATABASE_URL and REDIS_URL as the server, next to /usr/local/bin/memento-healthcheck (exit 0 when GET <prefix>/api/health answers 200; also the image’s HEALTHCHECK):

  • in the repository: pnpm memento <command>;
  • in the Docker stack: docker compose -f docker-compose.yaml exec memento memento <command>.

Every command and its options: CLI.

ghcr.io/digital-cube/jsmemento: the server, the CLI, the examples site and the service site in one image, multi-arch (linux/amd64, linux/arm64), with a build provenance attestation.

tag built from
1.1.0, 1.1, 1, latest the release tag v1.1.0, the first tagged release (latest always follows the newest tag)
main, edge the newest commit on main
sha-<short> that commit

Volumes, ports, health checks and every variable it reads: Deployment modes and Environment variables.

You are writing Install
A memento server of your own nothing from npm: the image, with docker-compose.yaml; or @jsmemento/server @jsmemento/cli on a SQLite file
A Fastify app with memento inside @jsmemento/server @jsmemento/core fastify, and @jsmemento/cli for migrations, tenants and keys
A React UI over memento @jsmemento/react @jsmemento/core react react-dom, and @jsudc/react for the UDC collections
A script, a worker or a browser client in JavaScript or TypeScript @jsmemento/core (its MementoClient and MementoStream)
Tools for your own vocabulary (lookups.yaml, translations, codegen) @jsmemento/lookups, or the CLI’s memento lookups
An integration in another language nothing: one of the client programs, plain HTTP and a WebSocket

The UDC side of a React UI is jsudc’s: jsudc.dev lists its packages and their peers, and UDC collections says which collections memento serves.

One changelog for every package and the image, in the Keep a Changelog format: Changelog, generated from the repository’s CHANGELOG.md when this site is built.

v1.1.0released built 663143e