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

neuroplast

v1.3.2

Published

Repository-local cognitive augmentation toolkit implementing the Local Cognitive Protocol for local repositories.

Readme

Neuroplast

Neuroplast is a repository-local project mind for humans and AI systems, and an implementation of the Local Cognitive Protocol (LCP).

Normative protocol source:

LCP is the standard. Neuroplast is an implementation of that standard.

Neuroplast remains domain-agnostic. It can support software repositories, research repositories, marine biology repositories, educational repositories, collaborative learning repositories, and other local knowledge contexts.

Neuroplast preserves its existing /neuroplast/ working layout while also installing an explicit .lcp/ bridge entrypoint for visible LCP alignment.

Current version statement:

  • Neuroplast v1.3.2 implements LCP v1

Quick Start

Initialize Neuroplast in any project directory:

npx neuroplast init

Include shared Obsidian config files:

npx neuroplast init --with-obsidian

Apply one-time versioned updates and safe managed-file refreshes:

npx neuroplast sync

Preview sync changes without writing files:

npx neuroplast sync --dry-run

Emit machine-readable output for automation around init or sync:

npx neuroplast init --json
npx neuroplast sync --json

Published JSON schemas for automation consumers:

  • schemas/init-json.schema.json
  • schemas/sync-json.schema.json
  • schemas/validate-json.schema.json

Validate the LCP bridge, Neuroplast profile, and metadata:

npx neuroplast validate

Emit machine-readable validation results for CI or wrapper tooling:

npx neuroplast validate --json

Run the full maintainer pre-release verification flow:

npm run release:verify

Run the repository reliability suite while developing Neuroplast itself:

npm test

The initializer is non-destructive: existing files are skipped and never overwritten during init.

init also creates a minimal root ARCHITECTURE.md scaffold when that file does not already exist, so a fresh repository can complete the first validation loop immediately.

By default, Neuroplast writes working files under /neuroplast/ and installs a companion .lcp/ bridge layout.

The installed /neuroplast/README.md is the practical orientation file for people opening the deposited Neuroplast files inside a consumer repository.

Neuroplast now also ships an optional installed neuroplast/current-context.md briefing capsule so repositories can keep a compact current-state summary without replacing the canonical memory artifacts. When the file still matches its managed baseline, npx neuroplast sync can auto-refresh it from the latest plan and nearby durable artifacts.

Neuroplast now also supports an explicit active-plan pointer at neuroplast/plans/.active-plan so routing and briefing generation do not have to rely only on newest-file heuristics.

init also runs sync after file bootstrap so new package migrations are applied once per version.

First Successful Loop

After npx neuroplast init, you can open neuroplast/README.md for a practical overview, then read these canonical files in order before doing any real work:

  1. .lcp/manifest.yaml
  2. neuroplast/WORKFLOW_CONTRACT.md
  3. neuroplast/manifest.yaml
  4. neuroplast/capabilities.yaml
  5. neuroplast/interaction-routing.yaml
  6. Any active workflow extensions declared in neuroplast/manifest.yaml
  7. The current instruction file such as neuroplast/reverse-engineering.md, neuroplast/reconcile-conflicts.md, neuroplast/conceptualize.md, or neuroplast/act.md

Use the instruction files with this operating model:

  • Start with neuroplast/act.md for normal bounded work once the project already has enough context.
  • Start with neuroplast/reverse-engineering.md when an existing codebase needs code-grounded project-mind reconstruction before conceptualization.
  • Start with neuroplast/reconcile-conflicts.md when parallel edits or merge conflicts need a preservation-first reconciliation pass.
  • Start with neuroplast/conceptualize.md when the project is new, the request is ambiguous, or the project mind needs reframing.
  • Treat /neuroplast/project-concept/, /neuroplast/plans/, /neuroplast/project-concept/changelog/, and /neuroplast/learning/ as the durable memory surface shared by the human and the AI.

After the mandatory startup files are loaded, advisory context depths can keep common execution cheaper:

  • lean — add neuroplast/current-context.md, the active plan, and the current instruction file
  • standard — add ARCHITECTURE.md plus the most relevant concept note or recent changelog entry
  • deep — add broader concept, learning, and adjacent plan context for reframing or higher-risk work

Use short prompts carefully:

  • Prefer explicit instruction-file requests or explicit step names when possible.
  • If a repository defines shared interaction-routing rules, use them before interpreting prompts like go ahead, continue, plan this, or what's next?.
  • Safe defaults are: go ahead / continue only imply act when a bounded active objective already exists; plan this / reframe this should use conceptualize when the work is new or ambiguous; what's next? should inspect the current plan rather than execute work automatically.

Terminal-first portability proof walkthrough

The terminal-only path is the current actively verified portability proof for Neuroplast because it exercises the workflow from the filesystem contract alone.

Use this first loop in a realistic consumer repository:

  1. Run npx neuroplast init in the target repository.
  2. Read the LCP bridge manifest, the Neuroplast contract, the Neuroplast manifest, the capability profile, and any active extensions.
  3. Review the root ARCHITECTURE.md scaffold created by init, or confirm your existing architecture file.
  4. Add one concept artifact under neuroplast/project-concept/ and one execution plan under neuroplast/plans/.
  5. Execute one bounded step through neuroplast/act.md.
  6. Run npx neuroplast validate to confirm the LCP bridge and Neuroplast profile are still valid.
  7. On later package updates, run npx neuroplast sync to apply package-managed refreshes without overwriting local edits.

This walkthrough shows the file contract in action without requiring any editor-specific integration.

LCP Relationship

  • LCP is the normative external protocol source.
  • Neuroplast is an implementation of LCP for repository-local cognitive augmentation.
  • .lcp/ provides the LCP-facing bridge entrypoint.
  • /neuroplast/ remains the Neuroplast-owned working layout and compatibility profile.
  • CLI/runtime behavior is Neuroplast tooling, not LCP core semantics.

See:

  • docs/lcp-mapping.md
  • docs/lcp-compatibility.md
  • docs/domain-generalization.md
  • docs/migration-to-lcp.md

Managed File Updates (Versioned Migrations)

Neuroplast now supports one-time versioned migrations plus safe refreshes for library-managed files under /neuroplast/.

  • Sync state is persisted in neuroplast/.neuroplast-state.json.
  • Each migration has an ID and target version.
  • Applied migrations are recorded so they only run once.
  • Managed package files also store a baseline content hash and last synced version.
  • Sync evaluation runs on all package version updates, including patch releases.
  • Downgrade detection skips automatic sync; use --force to override.
  • Use --backup with sync to keep pre-update file copies under neuroplast/.backups/.

Managed refresh behavior

  • Missing managed workflow, adapter, and bundled extension files are recreated during sync.
  • Missing managed adapter bootstrap assets under neuroplast/adapter-assets/ are recreated during sync.
  • Unchanged managed files are refreshed to the latest packaged version.
  • Locally modified managed files are preserved and reported instead of being overwritten.
  • Older installs without baseline metadata only adopt a file into safe refresh management when the current file already matches the packaged content exactly.

Sync behavior by version

  • Same version: sync is skipped.
  • Higher version (major/minor/patch): sync runs once and records new sync version.
  • Lower version (downgrade): sync is skipped by default.

Current sync behavior

  • Tag backfill migration enforces required Obsidian tags across managed markdown folders under /neuroplast/.
  • Governed sync scope excludes /neuroplast/.obsidian/ and /neuroplast/.backups/.
  • sync --dry-run now announces preview mode explicitly and reports create/update/preserve/adopt/unchanged counts before any real write.

Validation Trust UX

  • Human-readable validation output now includes a clear next corrective action for warnings and errors.
  • init --json and sync --json now emit machine-readable action summaries for wrapper tooling while preserving the human-readable default output.
  • npx neuroplast validate --json emits machine-readable findings and summary counts for CI or wrapper tooling.
  • npx neuroplast route --json emits machine-readable phrase-resolution output for canonical interaction-routing inspection.
  • npx neuroplast route --json now also includes a recommended context depth and briefing emphasis so wrappers can load less context for the resolved intent.
  • Published JSON schemas now document the stable payload contracts for init --json, sync --json, validate --json, and route --json within the current major version.
  • validate --json now includes schemaVersion, and the stable payload contract for the current major version is documented in schemas/validate-json.schema.json.
  • Validation now also checks sync-state parseability, the canonical interaction-routing artifact, and protected-phrase overlay safety.
  • Validation now also checks the presence and canonical references of the shared adapter bootstrap asset family under neuroplast/adapter-assets/.
  • Validation now also applies an advisory size-budget check to neuroplast/current-context.md when that briefing capsule is present.
  • sync can now auto-refresh neuroplast/current-context.md from the latest active plan while still preserving local edits.
  • Validation now also warns when neuroplast/current-context.md is older than the latest plan or changelog context that feeds it.
  • The generated current-context.md briefing now includes route-aware reading hints for act, inspect-current-plan, and conceptualize flows.
  • Validation now checks that neuroplast/plans/.active-plan resolves correctly when present, and routing/briefing generation prefer it over newest-plan fallback.

Compatibility and Upgrade Policy

Stable within a major version

  • CLI command names: init, sync, validate, route
  • The /neuroplast/ root layout and required folder paths
  • Root ARCHITECTURE.md as the canonical architecture artifact
  • Core manifest document-role paths and required workflow files
  • Non-destructive init behavior for existing files
  • Non-destructive sync behavior for locally edited managed files
  • validate --json schema contract for the active schemaVersion

May evolve within a major version

  • Human-readable CLI output wording
  • Additive validation findings and documentation improvements
  • Additional optional bundled extensions or additive metadata fields
  • Documentation-only adapter guidance
  • Copy/paste-ready adapter bootstrap assets that still preserve canonical routing semantics

Deprecation and upgrade expectations

  • When practical, deprecations should be documented before removal rather than changed silently.
  • Release notes should state whether consumers need to run npx neuroplast sync, npx neuroplast sync --dry-run, or no follow-up command.
  • If a release changes managed assets or upgrade behavior materially, maintainers should publish upgrade notes or a migration guide alongside the change.

Using validate --json in CI

Use validate --json when a consuming repository wants machine-readable pass/fail output without scraping human logs.

Example GitHub Actions step after Neuroplast has been initialized in the repository:

- name: Validate Neuroplast contract
  run: npx neuroplast validate --json

Current CI consumer expectations:

  • exit code 0 means no validation errors were found
  • exit code 1 means at least one validation error was found
  • schemaVersion identifies the machine-readable payload contract
  • summary.errors, summary.warnings, and findings can be consumed by wrapper tooling

If your automation depends on the JSON shape, pin the Neuroplast major version and review schemas/validate-json.schema.json when adopting a newer major release.

Using route --json in wrapper tooling

Use route --json when a wrapper, adapter shim, or local automation layer wants deterministic inspection of how Neuroplast resolves a short prompt.

Examples:

npx neuroplast route "go ahead" --json
npx neuroplast route "what's next?" --json

Current wrapper expectations:

  • schemaVersion identifies the machine-readable payload contract
  • phrase echoes the inspected prompt
  • routingFile identifies the canonical routing artifact used for resolution
  • resolution.intent identifies the canonical routed intent
  • resolution.type distinguishes routed phrases from clarify fallback

Maintainer Release Operations

  • Run npm run release:verify before publish.
  • The release verification flow runs npm run validate, npm test, checks the npm pack --json payload against expected shipped assets, and performs a packed-install smoke test.
  • Repo-local maintainer assets such as neuroplast/local-extensions/package-maintainer/ are intentionally excluded from the published package payload.

Optional Workflow Extensions

  • Bundled reusable workflow extensions are installed under neuroplast/extensions/.
  • Repo-local custom extensions may be created under neuroplast/local-extensions/.
  • Activate extensions in neuroplast/manifest.yaml under extensions.active_bundled and extensions.active_local.
  • Active extensions are additive guidance only and must not override the core workflow contract.
  • Read active extensions after the core contract/manifest/capabilities documents and before executing the matching canonical instruction file.
  • Use the seamless step-loading convention: for each active extension, load the matching file for the current phase when it exists.
  • Active extensions should include a README.md, the additive boundary reminder, and at least one canonical step file.
  • Bundled extensions shipped with Neuroplast:
    • verification-first
    • artifact-sync
    • context-continuity
  • The package-maintainer extension in this repository is repo-local only and is not shipped as part of the published package.

Portability Support Matrix

  • Actively verified means the environment has a maintained first-loop proof path that is rerun against the canonical file contract.
  • Documentation-only means the guide is kept aligned with the contract, but it is not yet treated as a separately verified portability proof.

| Environment | Status | Capability assumptions | Notes | | --- | --- | --- | --- | | Terminal-only | Actively verified | File reads, file writes, and terminal commands | Canonical proof path for init -> read files -> execute one loop -> validate -> later sync. | | OpenCode | Documentation-only | File reads and writes; terminal access may vary by runtime | Guide stays aligned with the contract but is not yet maintained as a separately verified proof path. | | Claude Code | Documentation-only | File reads and writes; tool permissions may vary; terminal usually available | Use the same file contract and recordkeeping path as the terminal proof. | | Cursor | Documentation-only | File reads and writes; editor automation may vary | Treat editor assistance as convenience, not workflow authority. | | Codex CLI | Documentation-only | File reads and writes; terminal access usually available | Thin wrapper over the same routing contract, but not yet a separately rerun proof path. | | Windsurf | Documentation-only | File reads and writes; runtime capabilities may vary by mode | Fall back to the file contract when tool support is partial. | | VS Code + Copilot | Documentation-only | File reads and writes; terminal availability depends on local setup | Keep the workflow grounded in files rather than editor chat state. |

What This Repository Is

This repository contains instruction files that help a human and an AI maintain a usable project mind through a repeatable process:

  1. Orient to the project and preserve durable context
  2. Produce or refresh architecture/project-map artifacts
  3. Execute bounded work sessions
  4. Record what changed
  5. Capture reusable lessons learned

It is set up as a workflow package template rather than a traditional code application.

Current Repository Contents

Source-of-truth package files in this repository:

  • src/instructions/ — canonical instruction templates copied by neuroplast init
    • README.md
    • current-context.md
    • manifest.yaml
    • capabilities.yaml
    • WORKFLOW_CONTRACT.md
    • conceptualize.md
    • reverse-engineering.md
    • reconcile-conflicts.md
    • PLANNING_INSTRUCTIONS.md
    • act.md
    • CONCEPT_INSTRUCTIONS.md
    • CHANGELOG_INSTRUCTIONS.md
    • think.md
  • src/obsidian/.obsidian/ — optional shared Obsidian config templates
  • src/extensions/ — optional bundled workflow extensions and authoring scaffold
  • src/adapters/ — optional environment guidance documents
  • bin/neuroplast.js — CLI initializer that creates folders and copies templates
  • .gitignore — currently ignores .obsidian/workspace.json

Installed output in target projects (created by npx neuroplast init):

  • neuroplast/README.md — practical orientation guide for using the installed Neuroplast files
  • neuroplast/current-context.md — optional compact briefing capsule for the active objective
  • neuroplast/WORKFLOW_CONTRACT.md
  • neuroplast/manifest.yaml
  • neuroplast/capabilities.yaml
  • ARCHITECTURE.md — minimal root architecture scaffold created during init when missing
  • neuroplast/conceptualize.md
  • neuroplast/reverse-engineering.md
  • neuroplast/reconcile-conflicts.md
  • neuroplast/PLANNING_INSTRUCTIONS.md
  • neuroplast/act.md
  • neuroplast/CONCEPT_INSTRUCTIONS.md
  • neuroplast/CHANGELOG_INSTRUCTIONS.md
  • neuroplast/think.md
  • neuroplast/extensions/ — optional bundled workflow extensions and shared scaffolding
  • neuroplast/local-extensions/ — optional repo-local custom workflow extensions
  • neuroplast/adapters/ — documentation-only environment guides
  • neuroplast/adapter-assets/ — copy/paste-ready tool-facing bootstrap assets
  • neuroplast/.obsidian/ (optional via --with-obsidian)

Intended Folder Structure (Created During Workflow)

The instruction files reference these folders, which are expected to be created as part of the process:

  • /neuroplast/project-concept/
  • /neuroplast/project-concept/changelog/
  • /neuroplast/learning/
  • /neuroplast/plans/

Workflow Overview

1) Project-Mind Orientation

Start from neuroplast/WORKFLOW_CONTRACT.md, then choose the current instruction:

  • neuroplast/act.md for normal bounded work
  • neuroplast/reverse-engineering.md for code-grounded reconstruction of project context from an existing repository
  • neuroplast/reconcile-conflicts.md for explicit conflict-resolution and competing-edit reconciliation sessions
  • neuroplast/conceptualize.md when the work is new, ambiguous, or needs reframing

neuroplast/conceptualize.md points to the structured context rules in neuroplast/PLANNING_INSTRUCTIONS.md.

neuroplast/reverse-engineering.md feeds code-grounded evidence into neuroplast/conceptualize.md when the repository exists but the durable project mind does not yet match reality.

neuroplast/manifest.yaml provides the canonical machine-readable map of workflow files, roles, and portability expectations.

neuroplast/capabilities.yaml provides the advisory machine-readable profile for environment limits and graceful degradation.

Optional environment guides live under neuroplast/adapters/ and explain how to apply the same contract in specific tools without changing workflow behavior.

Copy/paste-ready tool-facing bootstrap assets live under neuroplast/adapter-assets/ and are intended to be copied into destination-like tool formats such as AGENTS.md, CLAUDE.md, OpenCode kebab-case skills, or thin OpenCode agent files without changing canonical routing semantics. In the bundled OpenCode pair, neuroplast-planner is a strict read-only planning agent and neuroplast-orchestrator is the execution agent.

Those OpenCode assets now also recommend a success-oriented response shape so planner and orchestrator outputs stay more uniform about scope, verification, blockers, handoff, and next-step clarity.

Optional workflow extensions live under neuroplast/extensions/ (bundled shared extensions) or neuroplast/local-extensions/ (repo-local) and can add custom guidance without changing the canonical workflow behavior.

2) Project-Mind Outputs

Generate layered project-mind documents as needed:

  • Orientation artifacts for major work surfaces, subject areas, or domains
  • Detailed context artifacts for those same areas when needed
  • Root ARCHITECTURE.md as the canonical architecture or project-map artifact
  • Optional supporting notes under /neuroplast/project-concept/

Obsidian wiki-links ([[File Name]]) are supported and recommended, but the workflow must remain understandable in plain markdown.

3) Bounded Work Sessions

Follow neuroplast/act.md in order:

  • Read project concept artifacts
  • Read neuroplast/WORKFLOW_CONTRACT.md
  • Ensure ARCHITECTURE.md exists in the repository root
  • Update the active plan in /neuroplast/plans/
  • Execute the next bounded step with references to /neuroplast/learning/
  • Run concept/changelog/think instructions

Reverse-Engineering Sessions

Follow neuroplast/reverse-engineering.md when the repository already exists but the project mind needs to be reconstructed from code evidence before normal conceptualization and execution can proceed.

4) Changelog Discipline

neuroplast/CHANGELOG_INSTRUCTIONS.md expects date-based changelog files (YYYY-MM-DD.md) under /neuroplast/project-concept/changelog/ with links to associated plans. When collisions or competing same-day edits exist, use neuroplast/reconcile-conflicts.md first so the final changelog preserves valid facts from both sides.

5) Learning Capture

neuroplast/think.md defines how to store non-sensitive lessons in /neuroplast/learning by category.

Prerequisites

  • Git for versioning
  • Obsidian optional for wiki-link navigation and graph-based note workflow

Notes and Caveats

  • Some referenced files/folders are not present yet in the current repo (they are expected to be created by following the workflow).
  • Keep architecture references consistent as ARCHITECTURE.md.
  • This repo currently functions as a process framework and documentation system.
  • neuroplast/WORKFLOW_CONTRACT.md is the canonical portability contract for the workflow.
  • neuroplast/manifest.yaml is the canonical machine-readable workflow map.
  • neuroplast/capabilities.yaml is the advisory capability profile for constrained environments.
  • neuroplast/adapters/ contains optional environment guides and is not an alternate workflow definition.
  • Terminal-only is the current actively verified portability proof path; other bundled environment guides are documentation-only until separately verified.
  • neuroplast/extensions/ contains optional bundled workflow extensions that are only active when declared in neuroplast/manifest.yaml.
  • neuroplast/local-extensions/ is reserved for repo-local custom extensions declared in neuroplast/manifest.yaml.
  • This repository keeps package-maintainer as a repo-local extension rather than a published bundled extension.
  • Instruction frontmatter is workflow metadata only and intentionally excludes model-tuning fields.
  • neuroplast validate checks contract structure, required files, metadata parseability, instruction frontmatter, environment-guide boundaries, and whether any active workflow extensions follow the minimal file convention.
  • Validation is scoped to contract and metadata compliance, not environment orchestration.
  • npm test runs black-box CLI regression tests against temporary repositories.

Suggested Next Steps

  1. Create the /neuroplast/... folders referenced above.
  2. Add an initial project concept in /neuroplast/project-concept/.
  3. Start daily changelog files in /neuroplast/project-concept/changelog/.
  4. If multiple contributors create conflicting edits to the same artifact, run neuroplast/reconcile-conflicts.md before finalizing the canonical file.
  5. Add a root architecture file matching your preferred naming convention.