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

codex-spec

v1.0.0

Published

Specification-driven development workflow for AI coding (OpenAI Codex)

Readme

codex-spec

Specification-driven development workflows for AI coding. codex-spec turns intent into executable specs and plans, then guides consistent implementation with context-aware commands.

Why

AI is great at generating code, but results can be inconsistent without clear intent and shared context. codex-spec makes specifications the source of truth so you can:

  • Align teams on intent before coding
  • Preserve evolving project context (product, tech, structure)
  • Generate detailed requirements and plans automatically
  • Execute tasks with dependency awareness and progress tracking

This reduces rework, accelerates delivery, and keeps documentation in lockstep with the codebase.

Workflow Diagram

flowchart TD
  A[Setup] --> B[Context Creation]
  B --> C[Feature Specification]
  C --> D[Requirements]
  D --> E[Implementation Plan]
  E --> F[Execute Tasks]
  F --> G[Progress & Status]
  G --> H[Maintenance: Context Update/Refresh]

Installation

Prerequisites:

  • Node.js >= 16
  • OpenAI API key (environment variable OPENAI_API_KEY)

Install globally:

npm install -g codex-spec

Set your API key:

export OPENAI_API_KEY=your_api_key_here

Optional: If you use the Codex CLI locally, ensure it is installed and available on PATH.

Quickstart

Initialize project context (product, tech, structure):

codex-spec context-setup --force

Create a feature specification:

codex-spec create "User onboarding" "Signup, verification, and first-run experience"

Generate detailed requirements and a plan with tasks:

codex-spec requirements
codex-spec plan
codex-spec plan-summary  # also runs automatically after `plan`
codex-spec tasks         # list task IDs, titles, phases, status

Execute a task and track progress:

codex-spec execute task-1
codex-spec status

Maintain up-to-date context:

codex-spec context-update --auto
codex-spec context-refresh

Commands

  • context-setup:
    • Initialize .codex-specs/context/product.md, tech.md, structure.md
  • context-update [component]:
    • Update product/tech/structure context (use --auto to diff recent changes)
  • context-refresh:
    • Regenerate context files from scratch
  • create <feature-name> [description]:
    • Create a comprehensive feature specification
  • requirements [spec-name]:
    • Generate requirements from the specification
  • plan [spec-name]:
    • Create the implementation plan and extract tasks to .codex-specs/<spec>/tasks.json
  • execute <task-id>:
    • Execute an implementation task with context and plan guidance
    • Sandbox: writes are enabled by default (workspace-write). Use --read-only to prevent writes.
  • tasks:
    • List tasks with IDs, titles, phase, and status
  • execute-phase <phase>:
    • Execute all tasks in a specific phase
    • Sandbox: writes enabled by default; pass --read-only to prevent writes
  • status / plan-summary:
    • View progress and plan overview

Notes:

  • Phase names with spaces must be quoted or escaped when running by phase:
    • macOS/Linux: codex-spec execute-phase "Core Features" or codex-spec execute-phase Core\ Features
    • Windows: codex-spec execute-phase "Core Features"
  • Spec directory naming: defaults to AI-chosen snake_case slug with date prefix (YYYY-MM-DD_name_of_the_spec). Override with --title "your_slug".

Project Files

Key directories created in your repo:

.codex-specs/
├── context/
│   ├── product.md
│   ├── tech.md
│   └── structure.md
└── <feature-name>/
    ├── specification.md
    ├── requirements.md
    ├── plan.md
    └── tasks.json

Configuration

  • Requires OPENAI_API_KEY
  • Works in any Git project; --auto context updates use git diff
  • Defaults are sensible; commands expose --help for options

Troubleshooting

  • Command hangs or errors when running tasks: ensure the codex CLI (if you use it) is installed and available on PATH; otherwise the tool will use the OpenAI API for generation and planning.
  • API errors: verify OPENAI_API_KEY and network connectivity.

Design & Requirements

License

MIT