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

@fluixi/cli

v1.0.0-alpha.115

Published

The `fluixi` command-line tool — dev/build/start (via @fluixi/start) and, later, scaffolding + generators.

Readme

@fluixi/cli

The fluixi command-line tool: dev / build / start + code generators.

License: MIT TypeScript npm


✨ Overview

@fluixi/cli provides the fluixi binary: a thin dispatcher over @fluixi/start (the framework runtime) plus generators. A scaffolded app already includes it.

fluixi dev                    # SSR dev server (Vite middleware + HMR)
fluixi build                  # client + server bundles → dist/client, dist/server
fluixi start                  # production SSR server (after build)
fluixi generate <kind> <name> # scaffold into the current app (alias: g)
fluixi check [--strict]       # env and auth rules over the project; exit 1 on an error
fluixi env                    # env.public set or not, .env.example drift, secrets that would ship
fluixi doctor                 # duplicate @fluixi/* copies, ts-plugin missing from tsconfig
fluixi info                   # versions, adapter, modules, pages, API routes

📦 Installation

pnpm add -D @fluixi/cli

🧱 generate

fluixi g component Button       # → src/components/Button.tsx
fluixi g route about            # → src/routes/about.tsx        (file route)
fluixi g route "blog/[id]"      # → src/routes/blog/[id].tsx    (dynamic segment)
fluixi g middleware             # → src/middleware.ts
fluixi g env                    # → src/config/env.ts           (pickEnv over env.public)
fluixi g module billing         # → src/services/billing/billing.module.ts, listed in src/app.config.ts
fluixi g service Orders         # → src/services/orders.ts       (class, token, module)
fluixi g service Mailer --server  # → src/services/mailer.server.ts, listed in src/app.config.server.ts
fluixi g api "users/[id]"       # → src/api/users/[id].ts
fluixi g api admin/stats --role admin  # → guarded route + src/services/verify.server.ts
fluixi g server-fn getUser      # → src/server/getUser.ts        ("use server")
fluixi g auth oauth2 --provider keycloak --tokens server
                                # → config/env.ts, services/auth.ts, login route, auth.server.ts,
                                #   env.public and .env.example entries
fluixi g auth better-auth       # → auth.config + auth.client + middleware + src/api/auth route

New files are written unless a file with the same name already exists, in which case the process stops with an error. Edits are limited to app.config.ts, app.config.server.ts (adding an import and entry), env.public in fluixi.config.ts, and appending to .env.example; the original layout of each file is preserved, and when imports are not a plain list the command prints the lines for manual pasting. Multi-file OAuth2 generation keeps any existing files unchanged.

JSX or html``

The extension follows the project: an app whose tsconfig.json configures jsx gets .tsx, one authored with html `` templates gets .ts. Override with --jsx or --html.

fluixi g component Button --html   # → src/components/Button.ts

Using a component without importing it

After generating a component, the CLI prints how to make the tag resolve with no import, if the project has no rule for it yet:

✓ created src/components/Card.tsx
to use <Card /> without importing it, add to vite.config.ts:
  resolve: [{ match: /^([A-Z]\w+)$/, module: '/src/components/$1.tsx' }]

One pattern covers the whole folder, so you paste it once and every component after that works. Apps scaffolded with npm create fluixi already have it.

The CLI reads your config to decide whether to say this, and never writes to it. A config is ordinary TypeScript, it can spread a shared object or call a resolver function, so editing it would mean reprinting your file, and I'd rather print a line you paste than risk mangling it.

Importing the component works too, including with a load: directive:

import { Card } from './components/Card';

<Card load:visible="200px" />   // still splits into its own chunk

🆕 New project

Scaffolding a whole app is create-fluixi, not the CLI:

npm create fluixi my-app      # or: pnpm create fluixi my-app

The dev/build/start logic + config live in @fluixi/start: see its README for conventions (src/entry-server.ts, src/routes/, index.html, fluixi.config.ts).

📄 License

MIT © Fluixi