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

@russelharveyiv/octa

v1.1.0

Published

Architectural reasoning and governance engine for AI-first teams.

Readme

⬢ Octa

The Architectural Reasoning Engine for AI-First Teams

Octa is not a linter. It is a living governance layer that transforms architectural "intent" from static documentation into active, machine-readable intelligence.

In a world where AI assistants (Cursor, Copilot, ChatGPT) write more code than humans, architectural drift is the new technical debt. Octa ensures your architecture survives the speed of AI.


🧠 Why Octa?

Architectural decisions usually die in forgotten Markdown files or stale Wikis. Octa changes the game by making architecture executable:

  • Reasoning: It doesn't just block code; it explains why a constraint exists.
  • Inference: It scans your code reality to discover emergent relationships between decisions and rules.
  • Governance: It manages the lifecycle of intent (Proposed → Active → Superseded).
  • AI-Sync: It automatically feeds your architecture into LLM context windows (.cursorrules, .github/copilot-instructions.md, .agents/rules/), ensuring AI stays "within the guardrails."

🖼 Octa in Action

[!TIP] Visualization: See how Octa maps your code to your architectural intent.

Screenshot: The octa look command identifying architectural drift and pending governance.


🚀 Getting Started

Follow these 5 steps to bring architectural reasoning to your project.

1. Install Octa Globally

npm install -g @russelharveyiv/octa

2. Initialize your Project

Run this in the root of your repository to create the .octa registry and infer your baseline architecture.

octa init

3. Define your first Decision

Create a "Proposed" decision to set a new architectural direction.

octa decision:add auth.jwt "Use JWT" "Stateless tokens" "Scalability" --patterns jsonwebtoken --proposed

4. Approve and Sync

Promote the decision to "Active." This will automatically record your git authorship and inject the rule into your AI assistants (.cursorrules).

octa approve auth.jwt

5. Verify and Reasoning

Ask Octa about any file to see the architectural intent behind it, or run a doctor check to find drift.

octa query src/auth.ts
octa look

🛠 The Octa Workflow

1. Declare Intent

Add a new architectural decision. Octa anchors it to code patterns so it can "see" it in reality.

octa decision:add auth.jwt "Use JWT" "Stateless tokens" "Scalability" --patterns jsonwebtoken --proposed

2. Approve & Govern

Promote a proposal to active policy. This automatically records your Git authorship and commit context.

octa approve auth.jwt

3. Sync AI Guardrails

Inject your active decisions directly into Cursor, Copilot, and other AI assistants.

octa sync

Screenshot: Octa synchronizing architectural rules with Cursor, Copilot, and Antigravity agents.

4. Query the "Why"

Ask Octa about any file or decision. It will use its Inference Engine to show you the impacted code and co-located rules.

octa query src/api/auth.ts

5. Look at your Health

Check the health of your architecture. Octa detects drift, violations, and pending governance before they reach production.

octa look

🕹 Command Reference

| Command | Description | Flags / Options | | :----------------------- | :------------------------------------------------------------------------------- | :------------------------------------------------------ | | octa init | Initialize Octa in the current repository. | | | octa decision:add | Propose a new architectural decision. | --proposed, --patterns "list,of,tags" | | octa decision:update | Update an existing decision with a new version. | --reason "why updating" | | octa decision:get <id> | Retrieve the full history of a specific decision. | | | octa approve <id> | Promote a proposal to active policy. | | | octa reject <id> | Formally reject a proposed decision. | | | octa deprecate <id> | Mark a decision as legacy or superseded. | | | octa constraint:add | Add a new architectural constraint (linter rule). | --rule, --severity "hard\|soft", --recommendation | | octa query <target> | Analyze the intent behind a file, decision, or rule. | --json | | octa look | Run a health check on architectural drift and pending governance. | --json | | octa sync | Synchronize your architecture with AI assistants (Cursor, Copilot, Antigravity). | | | octa validate | Manually run architectural constraint validation. | | | octa watch | Start a daemon that validates in real-time. | | | octa ci | Optimized validation for CI/CD pipelines. | | | octa context <query> | Build a custom context prompt for LLMs. | | | octa install | Install Octa as a pre-commit hook (via Husky). | |


🏗 The Four Layers of Octa

  1. The Registry: A centralized, versioned index of all architectural intent.
  2. The Context Engine: A bridge that synchronizes project rules with AI agents.
  3. The Inference Layer: A graph-based engine that maps code reality to architectural decisions.
  4. The Lifecycle Manager: A state machine for governing the evolution of design.

⚖️ License

Built with ❤️ by Russel Harvey Mercado IV. Licensed under the MIT License.

"Architecture is the decisions that are hard to change. Octa makes them impossible to forget."