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

@number10/create-electron-ipc

v0.3.0

Published

Scaffold a new Electron IPC app powered by @number10/electron-ipc

Readme

@number10/create-electron-ipc

Scaffold a new Electron app using @number10/electron-ipc with a production-ready Vite + React setup.

npm version License: MIT

Quick Start

macOS/Linux:

npm create @number10/electron-ipc

Windows:

npx @number10/create-electron-ipc

Important: Always use forward-slash / (not backslash \) in the package name, even on Windows. Use npx instead of npm create on Windows.

With options:

npx @number10/create-electron-ipc --name my-app --validation zod --inspector y

Using pnpm (all platforms):

pnpm dlx @number10/create-electron-ipc

What You Get

  • Electron 35 + Vite 5 + React 19 starter
  • Type-safe IPC contracts (invoke, event, broadcast)
  • TypeScript strict mode with comprehensive configuration
  • ESLint 9 (flat config) + Prettier pre-configured
  • VS Code workspace settings and debug configuration
  • Optional IPC Inspector for debugging
  • Optional runtime validation (Zod or Valibot)
  • Production-ready build configuration with electron-builder

CLI Options

--dir <path>              Target directory (default: current directory)
--name <name>             Package name (default: directory name)
--product-name <name>     Product name (default: formatted package name)
--app-id <id>             Application ID (default: com.example.<name>)
--author <name>           Author name
--pm <manager>            Package manager: pnpm, npm (default: pnpm)
--inspector <y/n>         Include IPC Inspector (default: n)
--validation <type>       Validation: none, zod, valibot (default: none)
                          - zod: Uses modern zodValidator from @number10/electron-ipc/validation
                          - valibot: Uses modern valibotValidator from @number10/electron-ipc/validation
--no-install              Skip dependency installation
--help, -h                Show help message

Project Structure

The generated project includes:

my-app/
├── src/
│   ├── main/              # Main process code
│   │   ├── index.ts       # Entry point + window setup
│   │   ├── ipc-api.ts     # IPC contract definitions
│   │   └── ipc-config.yaml # Generator configuration
│   └── preload/           # Preload script (context bridge)
│       └── index.ts
├── public/                # Renderer process (React)
│   ├── App.tsx            # Main React component
│   ├── index.html         # HTML entry
│   ├── renderer.tsx       # React setup
│   └── components/        # React components
├── dist/                  # Generated IPC code
└── out/                   # Built application

Available Scripts

  • npm run dev - Start development server with hot reload
  • npm run build - Build app for production
  • npm run generate - Generate IPC contracts from config
  • npm run typecheck - Run TypeScript type checking
  • npm run lint - Lint code with ESLint
  • npm run format - Format code with Prettier
  • npm run package - Package app for distribution

Requirements

  • Node.js ≥20.0.0
  • npm or pnpm

Local Development

From the monorepo root:

node packages/create-electron-ipc/bin/create-electron-ipc.js --dir ./tmp-app

Or test the packed version:

pnpm pack
npx -y --package ./number10-create-electron-ipc-0.1.0.tgz create-electron-ipc

Testing

The package includes automated tests to ensure the CLI works correctly:

# Quick tests (file generation only, ~1 second)
npm test

# Integration tests (includes npm install + build, ~3 minutes)
npm run test:integration

Tests verify:

  • ✅ Project scaffolding with all validation options (none, zod, valibot)
  • ✅ Modern validation adapters (zodValidator, valibotValidator)
  • ✅ Correct import paths (@number10/electron-ipc/validation)
  • ✅ Inspector integration
  • ✅ Full build pipeline (integration tests only)

Learn More

License

MIT © Michael Rieck