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

one-file-cli

v1.4.1

Published

Run shadcn/ui React components instantly with zero config - perfect for quick prototypes

Readme

one-file-cli

🚀 Run shadcn/ui React components instantly with zero config. Perfect for quick prototypes and proof of concepts!

Features

✨ Zero config setup - just run and go!
🎨 Complete shadcn/ui component library pre-configured
🔥 Native Vite hot reload
🎨 Tailwind CSS v4 pre-configured
🧩 TypeScript support out of the box
🔄 Auto cleanup when done
🎯 Direct file import - Vite handles everything
📂 Dual import aliases: @ (template) and ~ (local)
🏗️ Production build support

Usage

Check Version

npx one-file-cli --version

Initialize (Run Once)

npx one-file-cli init

This installs all dependencies in a shared template directory (~30 seconds).

Run a Component

npx one-file-cli main.tsx

Instantly starts a dev server with hot reload (< 3 seconds).

Build for Production

npx one-file-cli build main.tsx

Creates optimized production build in ./dist.

Import Aliases

  • @/* - Access shadcn components and utils (e.g., @/components/ui/button)
  • ~/* - Access your local files (e.g., ~/components/hello)

Example Component

import { Button } from "@/components/ui/button"
import { Card } from "@/components/ui/card"
import { Input } from "@/components/ui/input"

export default function App() {
  return (
    <Card className="p-6 max-w-sm mx-auto mt-8">
      <h1 className="text-2xl font-bold mb-4">Hello shadcn/ui</h1>
      <div className="space-y-4">
        <Input placeholder="Enter something..." />
        <Button>Click Me</Button>
      </div>
    </Card>
  )
}

Available Components

All components from shadcn/ui are pre-configured and ready to use:

Form Components

  • Button
  • Input
  • Textarea
  • Select
  • Checkbox
  • Radio Group
  • Switch
  • Form

Layout Components

  • Card
  • Dialog
  • Sheet
  • Tabs
  • Accordion
  • Hover Card
  • Popover
  • Dropdown Menu
  • Navigation Menu

Data Display

  • Table
  • Avatar
  • Badge
  • Progress
  • Scroll Area
  • Separator

And many more! Check out the full list of components.

Why one-file-cli?

  • 🚀 Instant shadcn Setup: All components ready to use with zero config
  • 💾 Save Space: Share dependencies across projects
  • 🧪 Perfect for POCs: Quickly test shadcn/ui ideas without boilerplate
  • 🧹 Clean Workspace: Auto-cleanup after you're done

License

MIT

Contributing

Pull requests are welcome! Feel free to open an issue for bugs or feature requests.

TODO:

  • [ ] Tests
  • [ ] Custom Templates people can specify
  • [ ] Command to basically bring all the config files into the directory updating the package files to not use the one-file-cli and to use vite
  • [ ] Plugins ? Like on a template can specify if you want theme-selector.tsx component for example.
  • [ ] Maybe github repo for the template and you specify what one and can specify custom repo if you want