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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@voodocs/cli

v3.0.7

Published

AI-Native Symbolic Documentation System - The world's first documentation tool using mathematical notation with semantic validation

Readme

DarkArts v3.0.0 - AI-Native Mathematical Documentation

The world's first documentation system designed exclusively for AI.

DarkArts is a mathematical notation system for documenting code that is optimized for AI understanding, not human reading. It achieves 79% token reduction compared to traditional comments while providing more precise semantic information.

🎯 Philosophy

DarkArts is for AI, not humans.

  • AI writes it - Using assistants like Claude, Cursor, GitHub Copilot
  • AI reads it - LLMs parse it instantly with mathematical precision
  • Humans don't touch it - Use generated docs or companion files instead

🔬 Mathematical Notation

DarkArts uses Unicode mathematical symbols for maximum precision and token efficiency:

| Symbol | Meaning | Example | |--------|---------|---------| | | Purpose | ⊢{u auth svc} | | | Dependencies | ∂{bcrypt,db} | | | Assumptions | ⚠{u exists in db} | | | Preconditions | ⊳{id:uuid,pw≥8} | | | Postconditions | ⊲{ret tok\|null} | | | Invariants | ⊨{no db mod} | | | Complexity | ⚡{O(1)} | | 🔒 | Security | 🔒{pw:hash} |

New in v3.0.0

| Symbol | Meaning | Example | |--------|---------|---------| | | Bidirectional | ⇄{enc↔dec} | | | Side Effects | ⊕{writes db} | | | Forbidden | ⊗{no pw log} | | | Approximation | ≈{±0.001} | | | Consequence | ∴{fail→null} | | | Universal | ∀{users have email} | | | Existential | ∃{admin required} |

⚡ Token Efficiency

79% reduction compared to traditional comments:

// Traditional (140 tokens)
/**
 * User authentication service with JWT token generation.
 * Dependencies: bcrypt, jsonwebtoken, database
 * Preconditions: identifier must be valid UUID, password ≥8 chars
 * Postconditions: returns JWT token or null
 * Invariants: does not modify database
 * Security: password hashed, token encrypted
 */

// DarkArts v3.0.0 (30 tokens)
/**@darkarts
⊢{u auth svc w/ JWT tok gen}
∂{bcrypt,jsonwebtoken,db}
⊳{id:uuid,pw≥8}
⊲{ret JWT tok|null}
⊨{no db mod}
🔒{pw:hash,tok:enc}
*/

🚀 Quick Start

Installation

npm install -g @voodocs/[email protected]

Initialize Project

voodocs init

Let AI Generate Annotations

Use your AI assistant (Claude, Cursor, etc.) to generate DarkArts annotations:

Prompt: "Add DarkArts v3.0.0 annotations to this function"

Validate

voodocs validate src/ -r

Generate Documentation

voodocs generate src/

🎨 New Features in v3.0.0

1. Pattern Shortcuts

Use shorthand for common validations:

/**@darkarts
⊳{id:uuid, email:email, pw≥8, age[18,65]}
*/

Available patterns:

  • :uuid - valid UUID
  • :email - valid email format
  • :url - valid URL
  • :json - valid JSON
  • :jwt - valid JWT token
  • :hash - hashed value
  • :enc - encrypted value
  • ≥N, ≤N, >N, <N - numeric comparisons
  • [N,M] - range notation
  • ∈{...} - set membership

2. Enhanced Abbreviations

200+ abbreviations for maximum compression:

Core:

  • u = user, pw = password, auth = authentication
  • tok = token, sess = session, svc = service

Web/API:

  • ep = endpoint, rt = route, mw = middleware
  • req = request, res = response, hdl = handler

Security:

  • enc = encryption, dec = decryption, sig = signature
  • cert = certificate, perm = permission

Data:

  • db = database, tbl = table, rec = record
  • idx = index, sch = schema, coll = collection

[See full list in documentation]

3. New Mathematical Symbols

Seven new symbols for richer semantics:

/**@darkarts
⊢{data enc/dec svc}
⇄{enc↔dec}              // Bidirectional operations
⊕{writes cache}         // Side effects
⊗{no pw log}            // Forbidden operations
≈{±0.001 precision}     // Approximation
∴{if fail→retry 3x}     // Logical consequences
∀{all data:enc}         // Universal properties
∃{valid key required}   // Existential properties
*/

4. Better Validation

Enhanced parser with semantic validation:

$ voodocs validate src/auth.ts

Error in @darkarts annotation at line 42:
  ⊳{id:uuuid}
       ^^^^^
  Unknown pattern ':uuuid'. Did you mean ':uuid'?
  
Available patterns: :uuid, :email, :url, :json, :jwt, :hash, :enc

Error at line 45:
  Contradiction - invariant says no db modification,
  but side effect writes to database

📚 CLI Commands

# Initialize project
voodocs init

# Validate annotations
voodocs validate src/ -r

# Generate documentation
voodocs generate src/

# Create companion files (for compiled languages)
voodocs companion contracts/ -r

# Analyze priority (which files need annotations)
voodocs analyze src/

# Auto-fix issues
voodocs fix src/ -r

# Benchmark performance
voodocs benchmark src/

# Manage AI context
voodocs context init
voodocs context view

# Generate AI instructions
voodocs instruct

🔧 Context System

DarkArts integrates with AI context management:

# Initialize context
voodocs context init

# Generate context from annotations
voodocs generate src/ -r

# View context
voodocs context view

Context files (.voodocs/context.json) provide structured information for AI assistants.

📄 Companion Files

For compiled languages (Solidity, Rust, etc.), use companion files:

# Create .voodocs.md files alongside source
voodocs companion contracts/ -r

Example:

contracts/
  Registry.sol
  Registry.sol.voodocs.md  ← Human-readable documentation

🎓 For Humans

Humans should never manually write or read DarkArts annotations. Instead:

  1. Use AI to generate annotations
  2. Read generated docs (HTML, Markdown)
  3. Use companion files for human-readable documentation

🔬 Research & Patents

DarkArts is based on peer-reviewed research and protected by patents:

  • Patent 1: Context-Augmented AI Systems
  • Patent 2: Multi-Dimensional Quality Categorization
  • Patent 3: Invariant-Guided Code Generation
  • Patent 4: Token-Efficient Context Management

Portfolio Value: $50M-180M

📊 Benchmarks

Real-world performance validation:

| Metric | Improvement | |--------|-------------| | Token Reduction | 79% | | Quality Score | +42% | | Time Reduction | 43% | | Bug Detection | +67% | | Cost Savings | $12.2K/year per developer |

🌐 Ecosystem

  • ESLint Plugin: eslint-plugin-voodocs
  • TypeScript Support: Built-in parser
  • Python Support: Built-in parser
  • Solidity Support: Via companion files

📖 Documentation

🤝 Contributing

DarkArts is commercial software. For enterprise licensing:

📜 License

Commercial License - © 2025 3vilEnterprises

🆕 What's New in v3.0.0

Breaking Changes

  • Removed @darkarts-lite - Only mathematical notation supported
  • New symbols - Old parsers won't recognize ⇄, ⊕, ⊗, ≈, ∴, ∀, ∃

Enhancements

  • ✅ Pattern shortcuts (:uuid, :email, ≥N, etc.)
  • ✅ Enhanced abbreviations (200+ terms, up from 50)
  • ✅ 7 new mathematical symbols
  • ✅ Better validation with semantic checks
  • ✅ Improved error messages with suggestions
  • ✅ 79% token reduction (up from 57%)

Migration

No migration needed! v3.0.0 is backward compatible with v2.x annotations. New features are optional enhancements.


DarkArts v3.0.0 - The AI-Native Mathematical Language for Code