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

prompt-driven-basb

v0.1.12

Published

Prompt-driven Building a Second Brain workspace packaged for npm.

Readme

BASB Prompt Workspace

This workspace implements BASB as a Codex-operated prompt system, not as an external application.

What This Workspace Contains

  • BASBGuide.md: the architectural reference document for deeper BASB design work.
  • .basb/system/: package-owned canonical BASB state that refreshes on upgrade.
  • .basb/prompts/: reusable prompts for BASB operations, including source ingest, knowledge lint, and retrieval refresh.
  • state/: workspace-local BASB state, review queues, and decision logs.
  • templates/: note and brief templates with YAML frontmatter, including an immutable source-note template.
  • vault/: the working knowledge base. vault/projects/, vault/areas/, vault/resources/, vault/archives/ hold compiled notes in P.A.R.A. vault/sources/ preserves immutable source material as an operational provenance layer. vault/index.md catalogs high-value compiled notes, vault/log.md logs meaningful knowledge events, and vault/retrieval/ holds derived retrieval artifacts such as the catalog, question map, pattern index, and relationship index.
  • examples/: sample inputs and expected outputs.

Core Idea

Codex is the BASB engine.

  • The filesystem is the vault.
  • Prompt files define behavior.
  • Markdown files hold both content and metadata.
  • Frontmatter keeps the files readable while staying structured.

License

MIT

Session Start

For a normal BASB session:

  1. Read AGENTS.md.
  2. Read .basb/prompts/01-session-start.md.
  3. Let that dispatcher classify the task and load only the minimum relevant BASB files.

Read BASBGuide.md only for BASB-system maintenance, prompt design, package-maintainer work, or architecture review.

Read .basb/prompts/00-master-system.md when the session is BASB-system maintenance or another deeper multi-file BASB change.

Use .basb/system/ for canonical package rules and state/ for workspace-local BASB memory.

Typical Workflow

  1. Capture or ingest. Durable source material goes through .basb/prompts/11-ingest-source.md, which writes an immutable source note in vault/sources/ and updates derived compiled notes in P.A.R.A.
  2. Create or update compiled notes in projects, areas, resources, or archives. Each compiled note carries artifact_kind, provenance fields, and a stable canonical_id for the compiled note's retrieval identity. Provenance fields such as derived_from and source_ids point back to source lineage. Richer aliases, question mappings, and patterns live in vault/retrieval/.
  3. Distill the compiled note in layers. Immutable source notes are never rewritten.
  4. Refresh vault/retrieval/ with .basb/prompts/62-retrieval-refresh.md for any materially changed bounded note set.
  5. Express reusable outputs back into the vault by default so a one-off answer does not stay trapped in a chat.
  6. Run daily and weekly maintenance. Weekly maintenance runs .basb/prompts/61-knowledge-lint.md to surface orphans, stale summaries, contradictions, broken source lineage, and retrieval drift.

Meaningful changes are recorded in vault/log.md, high-value pages are cataloged in vault/index.md, and derived retrieval support files live under vault/retrieval/. Everything stays local-first and file-based.

Frontmatter Policy

Use YAML frontmatter on operational markdown files for:

  • tags
  • summary
  • related docs
  • source metadata
  • routing rationale
  • status

Keep the note body for actual content, extracted insight, and next actions.

First Real Use

  1. Run .basb/prompts/10-capture.md on the input. The dispatcher decides transient vs. direct compiled-note update vs. durable source ingest.
  2. For durable source material, hand off to .basb/prompts/11-ingest-source.md. The source is preserved verbatim in vault/sources/ and the compiled notes it affects are updated in P.A.R.A.
  3. If a compiled note's P.A.R.A. destination is still unclear, route with .basb/prompts/20-organize-route.md, and escalate with .basb/prompts/21-human-review.md only when truly ambiguous.
  4. Distill the compiled note with the 30-32 prompt chain.
  5. Refresh vault/retrieval/ with .basb/prompts/62-retrieval-refresh.md after any materially changed bounded note set so retrieval artifacts stay current.
  6. Run weekly maintenance via .basb/prompts/60-weekly-maintenance.md; it invokes knowledge lint, retrieval refresh, and favorite-problem matching for you.

Scope Boundary

Do not turn this workspace into an application stack. The goal is prompt-driven operation through Codex using local files only.