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

@arcridge/sundial

v0.8.0

Published

Sundial project-local CLI and Decision Record store logic.

Readme

sundial

Decision-aware coding autonomy for staff-engineer-supervised AI work. Sundial turns engineer judgment into reusable agent context by storing accepted decisions as plain markdown Decision Records (DRs) inside your project.

When an agent encounters a consequential choice without precedent, it writes a candidate DR instead of silently inventing a new rule. You review candidates in a file-backed Candidate Inbox (or in the companion VS Code extension), accept or reject them, and retire older DRs as they age out. Accepted DRs become durable project memory that the next agent run consults before designing or coding.

  • Open source, file-backed, no vendor lock-in
  • One-line install
  • Works with Claude Code and Codex CLI off the shelf
  • Companion VS Code extension for the Candidate Inbox

Install

npm install -g @arcridge/sundial

Requires Node.js >= 20.

Quickstart

Initialize a project:

sundial init --root /path/to/project --claude --codex

init always creates sundial/, starter domains, and sundial/SUNDIAL-INSTRUCTIONS.md. Agent-specific skills are opt-in:

  • --claude writes missing Claude Code skills to .claude/skills/ from CLI templates.
  • --codex writes missing Codex skills to .agents/skills/ from CLI templates.
  • Pass both flags to install both agent integrations.
  • Pass --folder docs to keep the store at /path/to/project/sundial while installing runtime assets under /path/to/project/docs.

Refresh installed skill files later without rerunning store init:

sundial update --claude --codex

The update command discovers the nearest ancestor sundial store by default; pass --root /path/to/project to target a specific project. Pass --folder docs to change the configured target folder, with or without runtime flags. It refreshes the canonical sundial/SUNDIAL-INSTRUCTIONS.md; selected harness updates also remove legacy Sundial-managed blocks from AGENTS.md or .claude/CLAUDE.md while preserving user-authored content.

How it works

  1. Retrieve precedent. Before design or coding, the agent consults accepted DRs.
  2. Create candidates. When the agent hits a consequential choice with no precedent, it writes a candidate DR.
  3. Review the inbox. The engineer edits, accepts, or rejects candidates and retires DRs that no longer apply.
  4. Improve future work. Accepted DRs become durable project memory.
project/
  sundial/
    SUNDIAL-INSTRUCTIONS.md
    domains.md
    templates/
      spec.md
    decisions/
      accepted/
        adr-001-testing-strategy.md
        dr-014-agent-permissions.md
      candidates/
        cand-027-error-boundaries.md
      rejected/
      retired/

Commands

sundial init --root <path> [--folder <relative-path>] [--claude] [--codex]
sundial update [--root <path>] [--folder <relative-path>] [--claude] [--codex]
sundial status
sundial domains
sundial domains --json
sundial domains add --name <name> --description <description>
sundial domains update <current-name> [--name <new-name>] [--description <description>]
sundial domains remove <name>

sundial dr list [--status accepted]
sundial dr get DR-0001
sundial dr retrieve [--domain <domain>]...
sundial dr disable DR-0001
sundial dr enable DR-0001
sundial dr retire DR-0001 [--by DR-0002]
sundial dr promote <candidate-id> --from rejected

sundial candidate create --title "Decision title" --domain <domain> --decision "Do the thing"
sundial candidate list
sundial candidate show CAND-0001
sundial candidate accept CAND-0001
sundial candidate reject CAND-0001 --reason "Covered by DR-0001"
sundial candidate retire CAND-0001 [--by DR-0001]
sundial candidate dismiss CAND-0001

sundial spec create --title "Implementation title" [--status Backlog]
sundial spec template
sundial spec list [--status Active]
sundial spec status SPEC-0001 Active
sundial spec show SPEC-0001

sundial worktree list [--json]
sundial worktree create SPEC-0001 [--json]
sundial worktree preflight SPEC-0001 [--json]
sundial worktree finish SPEC-0001 --expected-primary <sha> --expected-worktree <sha> [--primary-message <text>] [--worktree-message <text>] [--json]

Notes:

  • Enabled accepted DRs are the only precedent retrieved by dr retrieve.
  • Repeat --domain on one dr retrieve call to retrieve all relevant domain branches together.
  • Domain reads are sorted without rewriting the file. CLI-owned adds, updates, removals, and accepted candidate proposals rewrite the domain section in canonical lexical order.
  • Renaming or removing a domain is blocked while Decision Records or research notes reference it. The permanent all domain can only have its description updated.
  • domains --json returns the versioned domain, exact-reference-count, and filtered-suggestion contract used by editor adapters.
  • Candidate DRs can include a proposed domain with a description; accepting the DR adds that proposal to sundial/domains.md.
  • DRs can include a ## Appendix section for human-facing explanatory context; short and medium retrieval omit it.
  • New specs render the customizable body in sundial/templates/spec.md; it can use {{id}}, {{title}}, {{status}}, {{created}}, {{updated}}, and {{created_by}}.
  • Managed spec worktrees use .sundial-worktrees/<spec-file-basename> below the primary checkout. Creation and finish are guarded by current topology and Git state; --json returns the versioned contract used by the VS Code extension.

VS Code

A companion VS Code extension contributes a Sundial activity bar view with a Candidate Inbox and project initialization, Decision Record, research, and spec workflows. The extension expects the sundial CLI to be available on PATH.

Links

  • Source: https://github.com/bjackson-arcridge/sundial
  • Issues: https://github.com/bjackson-arcridge/sundial/issues
  • About: https://arcridgelabs.com/sundial.html

License

Apache 2.0