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

agentic-lang

v0.2.0

Published

The world's first AI-native programming language with verified confidence, formal verification, and multi-agent primitives. Built for autonomous agents.

Readme

Agentic Programming Language

An AI-native programming language with uncertainty, incremental correctness, and verification as first-class citizens.

Overview

Agentic is a revolutionary programming language designed specifically for AI agents. It addresses the core challenges AI faces when writing code:

  • Uncertainty is explicit - Confidence scores on all operations
  • Incremental development - Code valid at every stage (@stub, @partial, @complete)
  • Rich error context - Errors are structured data with recovery suggestions
  • Self-verification - Property-based tests auto-generate from code
  • Session continuity - Structured handoffs prevent context loss

Quick Start

# Install dependencies
npm install

# Build the transpiler
npm run build

# Compile an .agentic file to TypeScript
./bin/agentic.js compile examples/auth.agentic --output examples/auth.ts

# Watch mode
./bin/agentic.js watch examples/

Example Code

@confidence(0.90)
@needs(database: Database, jwt_secret: string)
func authenticate(token: string) -> Result<User, AuthError> {
    // Validate input
    @confident(0.99)
    if token.isEmpty() {
        return Err(AuthError.MISSING_TOKEN)
    }

    // Decode with uncertainty
    @uncertain("Edge case: malformed but decodable tokens?")
    decoded = jwt.decode(token, jwt_secret) match {
        Ok(payload) -> payload,
        Err(e) -> {
            @context {
                what_failed: "JWT decode",
                suggestions: ["Check token format", "Verify JWT_SECRET"]
            }
            return Err(AuthError.INVALID_TOKEN)
        }
    }

    return Ok(User.fromDict(decoded))
}

// Auto-generated property tests
@property("rejects empty tokens")
@property("rejects invalid tokens")
@property("accepts valid tokens")

Language Features

1. Confidence Annotations

  • @confidence(0.90) - Declare how confident the AI is
  • Compiler warns when confidence < 0.80
  • Helps humans focus review efforts

2. Incremental Stages

  • @stub - Not implemented, returns error
  • @partial - Works for subset of inputs
  • @complete - Full implementation with verification

3. Context Requirements

  • @needs(database, logger) - Explicit dependencies
  • Compiler checks availability at call sites
  • No more "where did this variable come from?"

4. Rich Errors

  • Errors include suggestions and recovery steps
  • Structured data, not strings
  • AI agents can programmatically fix errors

5. Property-Based Testing

  • Properties auto-extracted from code
  • 1000 random test cases per function
  • Shrinking to minimal failing case

6. Self-Healing Runtime

  • Health checks with auto-recovery
  • Escalates to human only when needed
  • Full audit trail

Architecture

.agentic file  →  [Parser]  →  AST  →  [Transformer]  →  TypeScript AST  →  .ts file
                                                                ↓
                                                         Runtime Library
                                                         (confidence, health checks)

Project Structure

agentic-lang/
├── src/
│   ├── parser/         # Tree-sitter based parser
│   ├── transformer/    # AST → TypeScript transformation
│   ├── generator/      # Code generation + source maps
│   ├── runtime/        # Runtime library (@confidence, @needs, etc.)
│   ├── property-tests/ # Auto-generate property tests
│   └── cli.ts          # CLI entry point
├── examples/           # Example .agentic files
├── vscode-extension/   # VSCode extension for syntax highlighting
└── docs/               # Documentation

Building from Source

# Install dependencies
npm install

# Build transpiler
npm run build

# Run tests
npm test

# Development mode
npm run dev -- compile examples/auth.agentic

VSCode Extension

Syntax highlighting and IntelliSense support included:

cd vscode-extension
npm install
npm run compile
# Press F5 to test in Extension Development Host

Documentation

Design Philosophy

  1. Embrace uncertainty - AI agents are probabilistic
  2. Incremental correctness - Valid at every stage
  3. Context is explicit - Dependencies declared upfront
  4. Verification by default - Property tests auto-generate
  5. Self-healing - Auto-recover from failures

Research Backing

Based on comprehensive research across:

  • Probabilistic programming (Pyro, RxInfer.jl)
  • Gradual typing (TypeScript, Rust)
  • Effect systems (Koka, Scala)
  • Property-based testing (Hypothesis, fast-check)
  • Self-healing systems (Kubernetes)

See RESEARCH.md for full references.

Roadmap

  • [x] Phase 1: TypeScript transpiler MVP
  • [ ] Phase 2: VSCode extension with IntelliSense
  • [ ] Phase 3: Native compiler (Rust → LLVM)
  • [ ] Phase 4: Self-healing runtime
  • [ ] Phase 5: Collaborative IDE features

Contributing

Contributions welcome! See CONTRIBUTING.md.

License

MIT License - see LICENSE


Status: MVP / Proof of Concept Version: 0.1.0 Last Updated: January 2026