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

@com.ai.vn/cli

v1.0.2

Published

Com.AI.VN Command Line Interface & High-Performance Rust Compiler Engine

Downloads

50

Readme

@com.ai.vn/cli (com)

The Intelligent Web & Cloud Engine Developer Tooling for Next.js App Router & Server Actions.

@com.ai.vn/cli is a high-performance developer suite and local preview engine built with Bun and Pure Rust. It allows developers to clone, preview, and build Next.js App Router views with native Server Actions / Backend Modules with sub-millisecond hot reloading and near-zero memory footprint.


🚀 Key Highlights

  • 🦀 Pure Rust Dev Engine (com-compiler): 50x-100x faster than standard next dev. Cold starts in < 20ms and consumes less than 25MB RAM.
  • 📁 Senior-Grade Modular App Router: File-system routing supporting exact static routes, dynamic segments [id], catch-all [...slug], optional catch-all [[...slug]], route groups (group), and parallel slots @slot.
  • ⚡ Smart TsConfig Path Resolver: Dynamically parses tsconfig.json / jsconfig.json path mappings (@/*, ~/*, @components/*, @ui/*) with JSONC comment stripping and path traversal protection.
  • 🔄 Server Actions via Async RPC: Automatically transforms server module imports (modules/...) into typed async RPC proxy stubs that seamlessly dispatch to backend execution sandbox.
  • 🎨 Tailwind CSS v4 Engine: Native browser compilation with JIT styling and custom design tokens.
  • 📦 Intelligent Package Manager: AST scanner that inspects project files, discovers third-party imports (lucide-react, framer-motion, axios, etc.), and generates optimized package.json and tsconfig.json manifests.
  • 🔌 Automatic Port Conflict Resolution: Intelligently switches to the next available port (3000 -> 3001 -> 3002) if port 3000 is occupied.

📦 Architecture Overview

packages/cli/
├── bin/
│   └── cli.ts                   # CLI entrypoint (com / cai / aivn)
├── compiler-rs/                 # 🦀 Standalone Pure Rust Compiler & Preview Engine
│   ├── src/
│   │   ├── bundler.rs           # Client HTML shell generator with Babel TSX transpiler
│   │   ├── resolver/            # Smart File & Import Resolver (TsConfig paths, extensions)
│   │   ├── router/              # App Router Scanner, Matcher & Precedence Engine (235+ tests)
│   │   ├── rpc.rs               # Server Action Dispatcher & Module Execution Sandbox
│   │   ├── server.rs            # Axum HTTP Server & Tokio WebSocket HMR Engine
│   │   └── main.rs              # Standalone `com-compiler` CLI runner
│   └── Cargo.toml
├── src/
│   ├── commands/                # CLI commands (login, whoami, logout, clone, dev)
│   ├── core/                    # Config, Auth Token storage, Logger & UI Cards
│   └── package-manager/         # Dependency AST scanner, manifest generator & installer
└── tests/                       # TypeScript unit & integration test suites

🛠️ Installation & Setup

Global Installation via Bun

cd packages/cli
bun run build
bun link

CLI Command Aliases

You can invoke the CLI using any of the following aliases:

  • com (Primary)
  • cai (Short alias)
  • aivn (Alternative alias)

💻 CLI Commands

1. com login

Authenticates against Central Auth (https://auth.myworkbeast.com/auth/google) using an interactive local OAuth callback server.

com login

2. com whoami

Displays current authenticated user details and active session tokens.

com whoami

3. com clone <viewId> [targetDir]

Clones a cloud-hosted App Router view, runs the automated AST package scanner, writes missing package.json / tsconfig.json manifests, and installs dependencies.

com clone 6745abcdef123456 ./my-app

4. com dev [--dir <path>] [--port <port>]

Starts the pure Rust App Router compiler & dev preview engine.

cd my-app
com dev

5. com test [pattern] [options]

Executes project unit, integration, and component tests with sub-millisecond execution via the built-in Bun Test engine.

# Run all project test suites
com test

# Target a specific domain or file
com test news
com test modules/payroll/use-cases/calculate-salary.use-case.test.ts

# Live TDD Watch Mode
com test --watch

# Filter test case by description
com test --filter "calculateNetSalary"

# Generate code coverage report
com test --coverage

6. com sync (or com pull)

Synchronizes the entire project environment in one command:

  • 🔄 Database Introspection (com db pull): Connects to PostgreSQL, regenerates types/db.d.ts (Kysely types with comments) and schema.sql.
  • 🤖 AI Guidelines Sync (AGENTS.md): Injects live database table descriptions, clean architecture rules, and testing standards for AI coding assistants (Antigravity/Cursor/Copilot).
  • 📦 Dependency AST Scanner: Scans all project files, discovers third-party npm imports, and synchronizes package.json and tsconfig.json.
# Sync database schema, AGENTS.md, and project dependencies
com sync

🧪 Testing

Rust Compiler & Router Tests (319 tests)

cd compiler-rs
cargo test

TypeScript CLI & Framework Tests (36 tests)

com test
# or: bun test

📄 License

MIT © Com.AI.VN / NATA Team