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

@opalspec/opalspec

v3.4.0

Published

Spec-driven development workflow for AI coding agents

Readme

OpalSpec

OpalSpec is a lightweight spec-driven development framework for AI-assisted coding workflows. It helps you turn intent into requirements, design, implementation, and documentation without forcing unnecessary ceremony.

OpalSpec codifies existing manual workflows in which developers are guiding AI to help shape a plan, create a design, and support implementation. What OpalSpec adds is consistency, repeatability, and a lasting record of the work, while staying flexible enough to fit different developers, teams, and types of change.

Unlike heavier process-driven approaches, OpalSpec does not assume one workflow fits every change. Use it where structure adds value, skip it where it does not, and keep your process as lightweight as the work allows.

How it works

You do not need to use OpalSpec for every change, and OpalSpec does not enforce a master spec. Code remains the executable source of truth. Specs capture the intent, decisions, and context around a change and optional docs explain how the finished system works. This reduces overhead, avoids unnecessary AI reconciliation, and keeps the workflow practical.

For changes suited to a spec-driven flow - features, larger refactors, AI-assisted work, or anything that benefits from clear intent, OpalSpec gives the coding agent the context it needs to produce more relevant results, while leaving a lasting record that makes the work easier to review, maintain, and extend.

OpalSpec has three core steps: requirements, design, and implementation.

Requirements define what needs to be built and why, giving both the developer and the agent a clear understanding of the intended change. Design explains how the change should be approached rom a technical perspective, including the structure, important decisions, and constraints the implementation should follow. Implementation is where the agent uses that context to make the change in the codebase, producing results guided by the spec rather than a loose prompt.

Only the core flow is required: create the spec, design the solution, then implement the change. Other steps, such as clarifying questions, preflight review, playback, task generation, and documentation, are optional and can be used when they add value.

Commands

Core flow

  • /opal:new — Create a new spec and generate requirements. Use this when you want to define the change clearly before design or implementation begins. You can ask the agent to generate the spec directly based on your prompt or enter an ask me loop where the agent will ask clarifying questions.

  • /opal:design — Create an implementation-facing design from the requirements. Use this when you want the agent to understand the codebase, plan the approach, and capture key decisions before writing code.

  • /opal:build — Implement the change from the spec. Use this when the requirements and design are clear and you are ready for the agent to update the codebase.

Optional steps

  • /opal:preflight — Review the spec before implementation without changing code. Use this when you want a second opinion on coverage, risks, edge cases, and readiness.

  • /opal:playback — Walk through the design step by step in plain language. Use this when you want to understand, review, or challenge the design before build.

  • /opal:tasks — Break the design into an implementation checklist. Use this for larger or riskier changes where sequencing, checkpoints, or resumability matter.

  • /opal:document — Create or update developer documentation after the build. Use this when the finished work should be easy for future contributors to understand, maintain, or extend.

Learn more

New to OpalSpec? Start with the Getting Started guide for a first end-to-end flow from install to build. For setup details, see Installation, then use Commands as the quick reference for each OpalSpec stage.

To understand how OpalSpec is structured, read The .opal Folder. For choosing the right level of process for different kinds of work, see Workflows. If you want to understand the thinking behind the project, read Philosophy. For tool-specific command syntax across Codex, Claude Code, Cursor, Gemini, GitHub Copilot, and plugins, see Supported Tools.

Install

Install the OpalSpec CLI with npm:

npm install -g @opalspec/opalspec@latest

Then initialize OpalSpec in your project:

cd your-project
opalspec init --tools codex

Use the tools you actually use:

opalspec init --tools codex,claude,cursor

You can also run without a global install:

npx @opalspec/opalspec@latest init --tools codex

See INSTALL.md for update, migration, and fallback PowerShell installer details.