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

@keepcv/core

v0.4.0

Published

KeepCV domain logic. Pure: no I/O, no database, no network. Runs unchanged in Node and the browser.

Readme

@keepcv/core

Domain logic and invariants for KeepCV.

This package performs no I/O - no filesystem, no network, no database driver, no Node built-ins. It runs unchanged in Node and in the browser, which is what lets the resume preview compile client-side from cached data while the server compiles the same document for export.

That is enforced rather than encouraged: the package builds with "types": [] and no DOM library, so a node:* import or a reference to process is a compile error.

Status: early development. The public API is unstable and there is no release yet.

Installation

pnpm add @keepcv/core

Usage

Ordering is fractional rather than positional, so moving an item writes one row instead of renumbering everything after it:

import { generateKeyBetween } from "@keepcv/core";

const first = generateKeyBetween(null, null); // "a0"
const second = generateKeyBetween(first, null); // "a1"
const between = generateKeyBetween(first, second); // "a0V"

Pass null for either bound to insert at the start or end of a list.

Identifiers

Identifiers are UUIDv7 and are minted on whichever side is doing the work, usually the client - so a row has its identity before the server has heard of it and an optimistic write is the real write.

import { newUuid } from "@keepcv/core";

const pointId = newUuid(); // "019fe174-f9f9-7099-a4ab-4e88bdf91f79"

Identifiers from one process increase strictly, including within a single millisecond, so they order the same way in an index as in time.

Phrasing text

Phrasing bodies are a restricted inline AST. canonicaliseRichText puts one into the form it is stored and hashed in, and contentHash is SHA-256 over its canonical JSON encoding:

import { canonicaliseRichText, contentHash, projectPlainText } from "@keepcv/core";

const body = canonicaliseRichText([
  { t: "text", v: "Cut p95 latency to " },
  { t: "b", c: [{ t: "text", v: "180" }] },
  { t: "b", c: [{ t: "text", v: "ms" }] },
]);
// the two bold runs are now one

projectPlainText(body); // "Cut p95 latency to 180ms"
contentHash(body); // "a712871a..."

Store the canonical body, not the one you were handed. Bodies that render identically canonicalise to the same tree and therefore hash the same, which is what makes "no revision unless the text actually changed" a database guarantee rather than a convention. Hashing a canonical body and storing a raw one makes the stored hash unverifiable on read.

contentHash accepts any JSON value, so resume version manifests hash through the same encoding.

Licence

MIT - see LICENSE.