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

sibujs-cli

v1.3.2

Published

CLI tool for creating and managing Sibu projects

Readme

sibujs-cli

Command-line tool for creating and managing SibuJS projects.

Installation

npm install -g sibujs-cli
sibujs create my-app

Or use it directly with npx (no install needed):

npx sibujs create my-app

Commands

sibujs create [name]

Scaffold a new SibuJS project with Vite and TypeScript.

sibujs create my-app

Without flags the simplest possible app is created. Add flags to opt into features:

| Flag | Description | | ---------------- | ------------------------------------------------------------------------------------------------------- | | --ui [theme] | Add sibujs-ui with a theme color (includes Tailwind CSS). Themes: default, blue, green, red, orange, amber, yellow, teal, purple, violet, rose | | --router | Add routing with example pages | | --tailwind | Add Tailwind CSS without sibujs-ui |

Examples:

# Simplest app — no extras
sibujs create my-app

# With sibujs-ui using the blue theme (recommended)
sibujs create my-app --ui blue

# Full-featured project
sibujs create my-app --ui violet --router

# Tailwind only, no UI library
sibujs create my-app --tailwind

The generated project includes:

  • vite.config.ts — Vite dev server with optional Tailwind plugin
  • tsconfig.json — TypeScript with strict mode and bundler resolution
  • src/main.ts — Entry point that mounts the root component
  • src/App.ts — Starter app with a counter and todo list demo
  • src/app.css — Tailwind imports or base reset styles

When --router is selected the project also includes:

  • src/router.ts — Router setup with route definitions
  • src/auth.ts — Simple auth state for the protected route example
  • src/pages/Home.ts — Home page
  • src/pages/About.ts — About page
  • src/pages/Login.ts — Login page
  • src/pages/Dashboard.ts — Protected dashboard with nested routes (Overview, Settings) using Outlet

When --ui is selected, sibujs-ui and the default theme are added automatically.

sibujs generate <type> <name> (alias: sibujs g)

Generate a new component file.

sibujs generate component MyButton
sibujs g component Navbar

Creates a component file in src/components/ (if the directory exists) or src/. Names are converted to PascalCase automatically.

| Type | Description | | ------------- | ----------------------------------- | | component | Creates a SibuJS component function |

sibujs dev

Start the Vite development server with hot module replacement.

sibujs dev
sibujs dev --port 4000
sibujs dev --host              # expose on all interfaces
sibujs dev --host 0.0.0.0

| Flag | Description | | -------------------- | ----------------------------------------------------- | | --port <port> | Port number | | --host [address] | Host address (bare --host exposes on 0.0.0.0) |

sibujs build

Build the project for production using Vite.

sibujs build
sibujs build --ssr

| Flag | Description | | --------- | ------------------------------- | | --ssr | Build for server-side rendering |

sibujs preview

Serve the production build locally for testing.

sibujs preview
sibujs preview --port 5000

| Flag | Description | | -------------------- | ------------ | | --port <port> | Port number | | --host [address] | Host address |

sibujs lint [...files]

Lint source files for SibuJS best practices. Scans src/ by default, or specify files explicitly.

sibujs lint
sibujs lint src/App.ts src/components/Nav.ts

Built-in rules:

| Rule | Description | | ---------------------------- | -------------------------------------------------------------------------------------------------------------- | | no-hooks-in-conditionals | Prevents calling reactive primitives (signal, effect, derived, etc.) inside if/else blocks | | no-direct-dom-mutation | Warns against .innerHTML = mutations — use reactive bindings instead | | each-requires-key | Ensures each() calls include a key option for efficient list updates |

sibujs analyze

Analyze the bundle size impact of all SibuJS and sibujs-ui imports in your project.

sibujs analyze

Output shows each imported API, its usage count, and estimated tree-shaken size. Tag factories (div, span, button, etc.) share a single factory function so they add near-zero cost per additional tag.

Typical workflow

sibujs create my-app --tailwind --router
cd my-app
sibujs dev          # develop with HMR
sibujs g component MyHeader   # generate a component
sibujs lint         # check for common mistakes
sibujs analyze      # review bundle impact
sibujs build        # production build
sibujs preview      # test the production build locally

Requirements

  • Node.js >= 18.0.0

Author

hexplus

License

MIT