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

@voltx/cli

v0.4.7

Published

VoltX CLI — dev server, build, start, generate, and scaffolding

Readme


Command-line tools for the VoltX framework. Full-stack dev server (Vite + Hono), production build with SSR, code generation, and project scaffolding.

Installation

npm install @voltx/cli

Commands

Development

voltx dev          # Start Vite dev server with HMR + backend
voltx build        # Build for production (client + SSR + server)
voltx start        # Start production server

voltx dev starts a single process that serves both the React frontend and Hono API backend with hot module replacement. No separate frontend/backend servers needed.

Create a New Project

voltx create my-app
voltx create my-app --template chatbot
voltx create my-app --template agent-app --shadcn
voltx create my-app --template rag-app --auth jwt

For the full interactive experience with tool selection, RAG toggle, shadcn/ui, and API key management, use npx create-voltx-app instead.

Code Generation

voltx generate route api/users      # New API route
voltx generate agent assistant       # New agent definition
voltx generate tool search           # New tool for agents

Build Pipeline

voltx build runs a 3-phase build when SSR is detected:

  1. Client build — Vite builds src/entry-client.tsxdist/client/
  2. SSR build — Vite builds src/entry-server.tsxdist/server/
  3. Server build — tsup bundles server.tsdist/index.js

Falls back to a 2-phase build (client + server) if no src/entry-server.tsx exists.

Project Structure

All templates generate a full-stack project with file-based routing:

my-app/
├── api/                    # Backend API routes (auto-discovered via voltx/api)
│   ├── index.ts            # GET /api — health check
│   ├── chat.ts             # POST /api/chat (chatbot/agent-app)
│   └── agent.ts            # POST /api/agent (agent-app)
├── src/
│   ├── pages/              # Frontend pages (auto-discovered via voltx/router)
│   │   └── index.tsx       # / — home page
│   ├── layout.tsx          # Root layout wrapper
│   ├── globals.css         # Tailwind CSS v4
│   ├── entry-client.tsx    # Client hydration
│   ├── entry-server.tsx    # SSR rendering
│   ├── voltx-env.d.ts     # Type declarations for voltx/router & voltx/api
│   ├── components/         # React components
│   ├── hooks/              # Custom hooks
│   └── lib/                # Utilities (cn() if shadcn enabled)
├── agents/                 # AI agents (agent-app)
├── tools/                  # Agent tools (agent-app)
├── public/                 # Static assets (favicon, robots.txt, manifest)
├── server.ts               # Hono app entry
├── vite.config.ts          # Vite + Tailwind + voltxRouter() + voltxAPI()
├── components.json         # shadcn/ui config (if enabled)
├── voltx.config.ts         # VoltX config
└── tsconfig.json           # TypeScript (with @/* path alias)

What's Included

  • File-based page routingsrc/pages/*.tsx auto-discovered via voltxRouter() Vite plugin
  • File-based API routingapi/**/*.ts auto-discovered via voltxAPI() Vite plugin
  • NavigationLink, NavLink, useNavigate, useParams from voltx/router
  • Tailwind CSS v4 — native Vite plugin, no PostCSS config needed
  • Path aliases@/* maps to src/* in both TypeScript and Vite
  • shadcn/ui (optional) — --shadcn flag pre-configures components.json, cn() utility, and CSS variables
  • React SSR — streaming server-side rendering via @voltx/server
  • Auto .env loading@voltx/core loads .env files automatically

Programmatic Usage

import { createProject } from "@voltx/cli";

await createProject({
  name: "my-app",
  template: "chatbot",
  auth: "jwt",
  shadcn: true,
});

Part of VoltX

This package is part of the VoltX framework. See the monorepo for full documentation.

License

MIT — Made by the Promptly AI Team