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

electron-vite-react-template

v1.0.0

Published

Electron + Vite + React template with TypeScript

Downloads

99

Readme

Electron + Vite + React Template

A modern Electron desktop application template with Vite, React, and TypeScript.

Features

  • Electron - Desktop application framework
  • Vite - Fast build tool and dev server
  • React 18 - UI library
  • TypeScript - Type-safe JavaScript
  • TanStack Query - Server state management
  • Zustand - Client state management
  • TanStack Router - Type-safe routing
  • shadcn/ui - Accessible UI components (Button, DropdownMenu)
  • Tailwind CSS - Utility-first CSS framework
  • Theme Support - Native system theme detection (dark/light)
  • i18n - Internationalization with react-i18next (English & French)
  • Vitest - Testing framework
  • ESLint - Code linting
  • GitHub Actions - CI/CD pipeline

Getting Started

Prerequisites

  • Node.js 20+
  • pnpm 9+

Installation

# Clone the repository
git clone https://github.com/nesalia-inc/electron-vite-react-template.git

# Install dependencies
pnpm install

# Approve build scripts (for electron)
pnpm approve-builds

Development

# Start development server
pnpm dev

The app will open at http://127.0.0.1:8888

Build

# Build for production
pnpm build

Testing

# Run tests
pnpm test

# Run tests with UI
pnpm test:ui

Linting

# Run linter
pnpm lint

# Run type checking
pnpm typecheck

Project Structure

src/
├── main/              # Electron main process
│   └── index.ts       # Main process entry point
├── preload/           # Preload scripts
│   └── index.ts       # Preload script entry point
└── renderer/          # React application
    ├── src/
    │   ├── components/    # React components
    │   │   └── ui/        # shadcn/ui components
    │   ├── hooks/         # Custom React hooks
    │   ├── i18n/          # Internationalization
    │   ├── lib/           # Utilities
    │   ├── stores/        # Zustand stores
    │   └── main.tsx       # Renderer entry point
    └── index.html         # HTML entry point

Configuration

electron.vite.config.ts

Configuration for electron-vite build tool.

tailwind.config.js

Tailwind CSS configuration with custom theme variables.

tsconfig.json

TypeScript configuration (node + web split).

vitest.config.ts

Vitest testing configuration.

Theme Support

The template includes a theme provider that supports:

  • Light - Light mode
  • Dark - Dark mode
  • System - Follows system preference

The theme automatically detects system theme changes in real-time.

Internationalization

The template supports multiple languages:

  • English (en)
  • French (fr)

The language is automatically detected from the system locale.

Tech Stack

| Category | Technology | |----------|------------| | Framework | Electron | | Build Tool | Vite | | UI | React | | Language | TypeScript | | State | TanStack Query + Zustand | | Routing | TanStack Router | | Styling | Tailwind CSS | | Components | shadcn/ui | | i18n | react-i18next | | Testing | Vitest | | Linting | ESLint |

License

MIT

Author

Nesalia