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

@codenanny/core

v0.4.0

Published

Core library for codenanny: sqlite + FTS5 ingest of Claude Code transcripts, narrative timeline API, resume-bundle generator, disk reconciler. End users want the `codenanny` CLI package instead.

Readme

@codenanny/core

Core library for codenanny. Most users want the CLI package, not this.

Ingests Claude Code JSONL transcripts, indexes them with sqlite + FTS5, captures every file write/edit/read (including file-creating Bash commands), and exposes an HTTP/JS API for the unified narrative timeline, resume-bundle generation, and disk-path reconciler.

This package is the engine behind the user-facing codenanny CLI. It's published separately so plugkit hosts can embed the core directly.

Install

npm install @codenanny/core

End-user looking to run codenanny? Install the CLI instead:

npm install -g codenanny
codenanny serve

As a standalone server

import express from 'express';
import Database from 'better-sqlite3';
import { createHost } from '@codenanny/plugkit';
import codenanny from '@codenanny/core';

const app = express();
const db = new Database('codenanny.db');
const host = createHost({ app, db });

host.register(codenanny({ mountPath: '/' }));

app.listen(7700, () => console.log('codenanny live at http://localhost:7700'));

As a plugkit module inside a host app

Same API — just mount it on a path:

host.register(codenanny({ mountPath: '/sessions' }));

Library API (for hosts and other modules)

import { createApi } from '@codenanny/core';
const api = createApi(db);

api.sessions.list({ limit: 100 })
api.sessions.get(id)
api.sessions.prompts(id)
api.sessions.files(id)
api.sessions.byPath(path, { mode: 'auto', limit: 50 })   // disk reconciler
api.files.byProject(projectId)
api.files.recent(100)
api.projects.list()
api.search('my query', { limit: 50 })
api.stats()
import { resumeBundle } from '@codenanny/core';
const bundle = resumeBundle(api, sessionId, { turns: 6, maxTurnChars: 4000 });
// bundle.formatted is a paste-ready markdown blob.

HTTP API

  • GET /api/sessions?limit=&project_id=
  • GET /api/sessions/:id — session + prompts + files
  • GET /api/sessions/:id/resume?format=text|json&turns=N — resume bundle
  • GET /api/files/recent?limit=
  • GET /api/files/by-path?path=&mode=exact|prefix|auto&limit= — disk reconciler
  • GET /api/projects
  • GET /api/search?q=&limit=
  • GET /api/stats
  • GET /api/events — SSE stream of session:updated, project:created, ready

License

MIT. Created by nobleglitch.