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

@holix/cli

v0.3.0

Published

Holix Application Framework CLI

Readme

@holix/cli

Command-line interface for Holix applications.

Installation

pnpm add -D @holix/cli

Usage

Commands

dev

Start development mode with hot reload.

holix dev

Options:

  • --open - Auto open Electron window (default: true)
  • --clear - Clear output directory before build (default: true)

build

Build application for production.

holix build

Options:

  • --clear - Clear output directory before build (default: true)

start

Start the built application.

holix start

Configuration

Create holix.config.ts in your project root:

import { defineHolixConfig } from '@holix/cli/config'

export default defineHolixConfig({
  // Application ID
  appID: 'com.example.myapp',

  // Client entry
  app: {
    entry: 'src/index.tsx'
  },

  // Preload scripts
  preload: {
    preload: 'src/preload.ts'
  },

  // Or multiple preload scripts
  preload: {
    main: 'src/preload-main.ts',
    worker: 'src/preload-worker.ts'
  },

  // Directory configuration
  directories: {
    pages: 'src/pages'
  },

  // Output directory
  outDir: 'dist',

  // Vite configuration
  vite: {
    plugins: [],
    server: {
      port: 3000
    }
  },

  // Or use external Vite config
  viteConfigFile: './vite.config.ts',

  // Plugins
  plugins: []
})

Package.json Scripts

Add these scripts to your package.json:

{
  "scripts": {
    "dev": "holix dev",
    "build": "holix build",
    "start": "holix start"
  }
}

Development Workflow

  1. Start Development

    pnpm dev

    This will:

    • Build main and preload processes
    • Start Vite dev server for renderer
    • Launch Electron with hot reload
    • Watch for file changes
  2. Build for Production

    pnpm build

    This will:

    • Build all processes (main, preload, renderer)
    • Optimize for production
    • Output to dist/ directory
  3. Run Production Build

    pnpm start

Hot Reload

The development server automatically:

  • Reloads renderer process on file changes
  • Restarts main process on file changes
  • Maintains application state where possible

File-based Routing

Place page components in src/pages/:

src/pages/
├── index.tsx       # /
├── about.tsx       # /about
└── users/
    └── [id].tsx    # /users/:id

The CLI will automatically generate routes based on the file structure.

API

defineHolixConfig(config: HolixConfig): HolixConfig

Define and validate Holix configuration with full TypeScript support.

import { defineHolixConfig } from '@holix/cli/config'

export default defineHolixConfig({
  // Your configuration
})

Environment Variables

  • NODE_ENV - Set to development or production
  • HOLIX_DEBUG - Enable debug logging

License

MIT