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

maxima-agentic-framework

v1.0.3

Published

Maxima - Cost-optimized AI Project Manager with state management, dependency analysis, and multi-provider LLM integration

Readme

Maxima — Cost-Optimized AI Project Manager

Autonomous AI project manager that plans, builds, and maintains code projects — engineered for 80% lower API costs through caching, context trimming, tiered models, and diff-based regeneration.

Installation

npm install -g ai-project-manager

Or clone and build:

git clone <repo-url>
cd ai-project-manager
npm install
npm run build

Quick Start

mkdir my-project && cd my-project
maxima init          # Creates .aistate/ directory
maxima chat          # Start interactive session

Commands

CLI Commands

| Command | Description | |---------|-------------| | maxima init | Initialize .aistate/ in current directory | | maxima status | Show project execution status | | maxima changelog | Show change history | | maxima chat | Start interactive REPL | | maxima cost-report | Show token usage and cost report |

Chat Slash Commands

| Command | Description | |---------|-------------| | /brainstorm <topic> | Start collaborative brainstorming session | | /done | End brainstorm session and save | | /breakdown <desc> | Break down a project into execution phases | | /approve-plan | Approve and lock the current plan | | /build | Execute the approved plan phase-by-phase | | /tier | [thinking|expensive|cheap|local|auto]| Force model tier | |/status| Show project status | |/change | Analyze impact of an architecture change | |/cost| Show real-time cost report | |/exit` | Exit chat |

Model Tiers

| Tier | Used For | Provider | |------|----------|----------| | Expensive | Architecture, impact analysis | Claude Sonnet / GPT-4 | | Cheap | Code gen, tests, summaries | GPT-4o-mini / Haiku / Gemini | | Local | Formatting, simple refactors | Ollama (free) |

Configure in .aistate/model-config.json.

Flags

| Flag | Description | |------|-------------| | --thinking | Use expensive model | | --expensive | Use expensive model | | --cheap | Use cheap model |

By default, --cheap is used.

Cost Engineering

Every LLM call passes through a 6-layer pipeline:

Request → Trivial Diff? → Cache? → Model Router → Context Packer → Budget Gate → API

How it saves 80%:

| Strategy | Savings | Mechanism | |----------|---------|-----------| | Context packing | ~40% | Only sends task-relevant files + their imports | | Tiered models | ~25% | Uses GPT-4o-mini/Ollama for 70% of tasks | | Deterministic cache | ~15% | Skips API if inputs unchanged | | Diff-based regen | ~10% | Modifies functions, not whole files | | Trivial diff skip | ~5% | Zero-cost for comment/whitespace changes |

Model Tiers

| Tier | Used For | Provider | |------|----------|----------| | Expensive | Architecture, impact analysis | Claude Sonnet / GPT-4 | | Cheap | Code gen, tests, summaries | GPT-4o-mini / Haiku | | Local | Formatting, simple refactors | Ollama (free) |

Configure in .aistate/model-config.json.

Architecture

src/
├── core/           # State management, dependency analysis
├── cost/           # 🔑 Cost engineering layer (5 modules)
├── agents/         # Multi-provider LLM client
├── cli/            # Commander CLI + chat REPL
└── mcp/            # MCP server for IDE integration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | ANTHROPIC_API_KEY | One of these | Anthropic API key | | OPENAI_API_KEY | required | OpenAI API key | | OLLAMA_HOST | Optional | Ollama host (default: http://127.0.0.1:11434) | | GEMINI_API_KEY | One Of these | Google Gemini API key | ...more to come

Development

npm run typecheck   # Type check without emitting
npm run test        # Run test suite
npm run build       # Compile TypeScript
npm run dev         # Run CLI in dev mode with tsx

MCP Integration

Add to your IDE's MCP config:

{
  "mcpServers": {
    "ai-project-manager": {
      "command": "node",
      "args": ["path/to/dist/mcp/server.js"]
    }
  }
}

License

MIT