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

@dean0x/dot

v0.1.0

Published

dot.ai - AI-powered code generation from .ai specification files

Downloads

8

Readme

dot.ai

AI-powered code generation from plain Markdown specifications

npm version License: MIT

What is dot.ai?

Write your requirements in .ai files (plain Markdown), run dot gen, and let AI coding agents implement them. Perfect for rapid prototyping, maintaining consistency, and automating repetitive coding tasks.

Key Features

  • Plain Markdown - No frontmatter, just write specifications
  • CLI-First - All configuration via command-line flags
  • Multiple Agents - Support for claude-code, cursor, aider
  • Smart Updates - Hash-based change detection for incremental generation
  • Parallel Processing - ~5x faster for multiple files
  • Type Safe - Built with TypeScript, comprehensive test coverage

Quick Start

Installation

npm install -g @dean0x/dot

Authentication

dot.ai uses Claude Code under the hood. You can authenticate two ways:

Option 1: Claude Max/Pro Plan (Recommended)

  • Claude Code automatically uses your browser authentication
  • No API key needed

Option 2: API Key

export ANTHROPIC_API_KEY=your_api_key_here

Get your key from: https://console.anthropic.com/

Usage

  1. Create a .ai file (plain Markdown):
# Button Component

Create a reusable React Button component with TypeScript.

## Requirements
- Support variants: primary, secondary, danger
- Include loading and disabled states
- Full test coverage
  1. Generate code:
dot gen

That's it! The .dotai/ directory is created automatically, artifacts are generated, and state is tracked.

  1. Make changes - Edit your .ai file and run dot gen again. Only changed files are processed.

CLI Commands

dot gen [path]           # Generate code from .ai files
dot status [path]        # Show which files have changed
dot ls [path]            # List all .ai files and artifacts
dot clean                # Clear all generation state

Configuration

All configuration via command-line flags:

# Select agent
dot gen --agent claude-code

# Enable iterative mode (agent can update spec and re-run)
dot gen --iterate

# Set iteration limit when using --iterate
dot gen --iterate --max-iterations 5

# Enable parallel processing
dot gen --parallel --concurrency 10

# Force regenerate all files
dot gen --force

Run dot gen --help for all options.

How it Works

  1. Write Specifications - Create .ai files with your requirements in Markdown
  2. Smart Detection - dot.ai uses hash-based change detection to find what changed
  3. Agent Invocation - Your chosen coding agent implements the specification
  4. Artifact Tracking - Generated files are tracked for future incremental updates
  5. Iterate - Edit specs, run dot gen, repeat

Iterative Processing

dot.ai supports iterative mode with the --iterate flag - after generating artifacts, it re-reads the .ai file to see if the agent updated it with new tasks. This enables self-directed refinement workflows where the agent can add new tasks for itself.

Enable with --iterate and control iterations with --max-iterations.

Examples

See the examples/ directory for:

  • Self-reflecting agents
  • Recursive processing patterns
  • Multi-file project generation

Documentation

Requirements

  • Node.js >=20.0.0
  • Claude Code CLI (install separately: https://github.com/anthropics/claude-code)

Security

  • Agent whitelist prevents arbitrary code execution
  • Path traversal protection
  • Input validation and range enforcement
  • Dangerous flags blacklisted

See Security Policy for details.

License

MIT © dean0x

Support


Built with Claude Code 🤖