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

@okfit/core

v0.7.4

Published

Spec-level Open Knowledge Format (OKF) v0.2 schemas, bundle loading, graph, derivation, and validation for Effect.

Readme

@okfit/core

Spec-level Open Knowledge Format (OKF) v0.2 support for Effect: frontmatter schemas, bundle loading, the concept link graph, trust and staleness derivation, and conformance validation.

Pre-release. Part of the @okfit/* kit, in early development against a single pinned Effect v4 prerelease.

Install

pnpm add @okfit/core effect

Usage

import { Bundle, OkfitConfig, Validate } from "@okfit/core";
import { Effect } from "effect";

const program = Effect.gen(function* () {
 const config = OkfitConfig.merge(OkfitConfig.DEFAULTS, yield* OkfitConfig.read("/repo/.config/okfit.toml"));
 const bundle = yield* Bundle.load({ root: "/repo/okf" });
 return Validate.all(bundle, config);
});

Bundle.load needs FileSystem and Path; OkfitConfig.read needs FileSystem. Loading never fails on content: bad files become Diagnostics. Graph.fromBundle treats a path-valued field or link whose target, resolved from its concept's directory, lands outside the bundle root as an external reference: no graph node and no broken-links diagnostic, exactly like a URL. OkfitConfig decodes the spec 4.2 TOML shape; unknown top-level keys are kept in extensions and reported by Validate.lint as config-unknown-key. lifecycle.default_stale_after accepts 90d, 12h, 2w, or "90 days". OkfitConfig.merge deep-merges tables; arrays and scalars in override replace wholesale. Apply DEFAULTS < profile < file yourself. OkfitConfigFile is the service tag; the CLI provides its layer. okfitConfigDocumentFields is okfitConfigFields minus extensions (wire bookkeeping no human writes), with an open rest so unknown top-level keys stay permitted while every declared table stays closed; it is the single source @okfit/engine's lib/configs/schemastore.config.ts builds the published JSON Schema (schemas/1.0/config.json) from via @effected/schemastore-cli, and carries no annotations of its own beyond what each field already declares in OkfitConfig.ts. The document's HostedSchema identity (okfitConfigSchemaHost, the same $id okfit init stamps into a fresh config's #:schema directive) lives in @okfit/engine, not here — core stays free of a runtime @effected/schemastore dependency. The [lint] table's seventeen keys include generated_at_drift (default "warn"), which fires when a committed concept's generated.at no longer matches the instant its body was last changed AND is not otherwise authoritative (issue #19: a stamp recorded during the unchanged-body run survives a squash/rebase merge) — computed by okfit sync/okfit validate, never by core itself.

License

MIT