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

@becrafter/memory-core

v0.1.0

Published

Cross-platform local memory core: Markdown canonical source + SQLite derived index

Readme

@becrafter/memory-core

Cross-platform local memory core for craft-plugins. Markdown is the canonical source; SQLite is a derived index that can be rebuilt.

Current distribution status

This package is currently workspace-only. It is included by the repository's shared/packages/* workspace and consumed by the OpenCode plugin through:

"@becrafter/memory-core": "workspace:*"

It has not been published to npm, so do not document npm install or npm install -g as a supported installation path yet. Claude Code's memory skill expects the craft-memory CLI after a local workspace build or an explicitly linked local package.

Local development

From the repository root:

pnpm install
pnpm --filter @becrafter/memory-core build
pnpm --filter @becrafter/memory-core typecheck
pnpm --filter @becrafter/memory-core test
pnpm --filter @becrafter/memory-core pack:verify

The build writes dist/index.js, declarations, and the craft-memory CLI entry at dist/bin.js. The OpenCode adapter must import from the package root; it must not import src/* deep paths.

Runtime status

The package declares better-sqlite3 and contains a Node SQLite driver implementation, but the current normal memory lifecycle falls back to Markdown-only storage/search unless a verified SQLite driver is connected by the caller. The fallback is intentional: SQLite is a derived index and must never be treated as the canonical source. Do not interpret the presence of the dependency or driver source as proof that every runtime path has SQLite/FTS/WAL enabled.

Public API

resolveMemoryPolicy / init / reconcile / verify / search / save / list / inject / getStats

The source barrel also contains APIs from later memory phases; the supported surface and release gates are still governed by the phase documentation under docs/features/memory/.

CLI

craft-memory init | status | save | search | list | verify | reconcile | inject

save reads content from --stdin or --file (never --content). --json emits a single JSON object on stdout; diagnostics go to stderr. Exit codes: 0 success, 2 args, 3 security refusal, 4 storage/index.

See docs/features/memory/v1-mvp.md for the delivery checklist and docs/features/memory/feat-memory-plugin-plan.md for the full specification. Phase 0 capability validation is not represented as complete merely because the package builds or unit tests pass.