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

create-principles-disciple

v1.94.0

Published

Interactive CLI installer for Principles Disciple OpenClaw plugin

Readme

create-principles-disciple

MVP-First Prerequisite Installer for Principles Disciple.

What This Installer Delivers

| Component | Status | Description | |-----------|--------|-------------| | Runtime integration | Installed & verified | OpenClaw plugin with MVP activation channels | | Operator CLI (pd) | Installed & verified | Command-line tool for diagnostics and demo | | Review console | Installed & configured | Local web UI for principle review (loopback only) |

MVP Activation Channels

Three MVP-Core channels are always enabled and cannot be disabled:

  • prompt — soft principle injection
  • code_tool_hook — RuleHost hard enforcement
  • defer_archive — graceful deferral

Quiet and gone capabilities (gfi, nocturnal, idle_trigger) are not surfaced to users.

Usage

Interactive

npx create-principles-disciple

Non-interactive / JSON

npx create-principles-disciple --yes --workspace "/path/to/workspace" --json

--json implies non-interactive. Output is exactly one parseable JSON object on stdout.

Options

--lang <en|zh>          Language preference (default: zh)
--force                 Force overwrite existing installation
--smart                 Smart merge mode (generate .update files)
--yes                   Non-interactive mode with defaults
--non-interactive       Skip prompts
--workspace <path>      Workspace directory
--json                  Output result as JSON (implies non-interactive)

Post-Install Verification

The installer automatically verifies the installation during setup:

  1. Feature flags.pd/feature-flags.yaml is generated and validated
  2. Story A demopd demo story-a is executed to confirm runtime integration
  3. Console health/api/health is checked on the local console instance

After a successful install, you can re-verify at any time:

pd runtime canary --workspace "<path>" --json

Console

The installer delivers a local pd-console web UI for principle review.

Starting the Console

pd console --workspace "/path/to/workspace" --no-auth

The console listens on 127.0.0.1 only (loopback) — it is not accessible from other machines on the network. When using --no-auth, loopback binding is enforced; the server will refuse to start if --no-auth is combined with a non-loopback host.

Open http://127.0.0.1:3100 in your browser to access the console.

Console Security

  • Default binding: 127.0.0.1 (loopback only)
  • --no-auth is only permitted with loopback binding
  • For network access, use --host <ip> with --token <secret> or set PD_CONSOLE_TOKEN environment variable

Rerun / Reinstall

Re-running the installer updates the feature-flags.yaml. All three MVP-Core channels are always enabled — the installer does not allow partial disabling of core channels. The installer reads actual enabled channels from disk and reports them in the output.

Update Failure Recovery

If an update fails, the installer automatically restores the previous working installation from backup. No manual recovery steps are needed.

If the installer cannot restore the backup (rare), re-run the installer with --force.

Updating

PD supports updating through the Web UI:

  1. Open PD Console (http://localhost:3100)
  2. Navigate to Settings → Update
  3. Check for updates and review version info
  4. Click "Update Now" to apply

Update Options

  • Merge Strategy: How to handle workspace file changes
    • smart: Generate .update files for manual merge
    • overwrite: Force overwrite workspace files
    • keep: Keep existing workspace files unchanged
  • Backup: Create backup before update (recommended for rollback support)

API Endpoints

  • GET /api/update/check — Check for available updates
  • POST /api/update/apply — Apply an update
  • GET /api/update/status — Get current update status
  • POST /api/update/rollback — Rollback to previous version

Commands

  • install — Install PD (default command)
  • uninstall — Remove PD (preserves user data)
  • status — Show installation status

Requirements

  • Node.js >= 18.0.0

License

MIT