KidkArolis/jetpack
KidkArolis/jetpack has 1,307 GitHub stars and 31 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-06 00:53 UTC. Last push 2026-10-24.
Run and build web code with Rspack.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Run and build web code with Rspack.
Jetpack is preconfigured Rspack for web code: one command to start a dev server, one command to build production assets, and a config file only when you need it.
npm install -g jetpack
jetpack
jetpack build
Jetpack requires Node 20 or newer and is published as ESM.
What You Get
- JavaScript, TypeScript, JSX, CSS, SCSS, and assets
- SWC, core-js polyfills, and Lightning CSS
- Hot reloading, including React fast refresh
- Content-hashed production builds with code splitting and an asset manifest
- Optional modern/legacy differential builds
- Dev proxying, static serving middleware, and CSP nonce helpers
- A small config file when defaults are not enough
Usage
Start a dev server on http://localhost:3030:
jetpack
Build into dist/:
jetpack build
Point Jetpack at another file or project:
jetpack ~/Desktop/magic.js
jetpack --dir ~/projects/app
Inspect, clean, or check browser targets:
jetpack inspect
jetpack clean --dry-run
jetpack browsers --coverage=GB
Configuration
Most projects do not need config. When you do, add jetpack.config.js, jetpack.config.mjs, or jetpack.config.cjs. Keep common app options top-level and put build/HTML shell settings under build and html.
import { defineConfig } from 'jetpack'
export default defineConfig({
entry: '.',
port: 3030,
assetBaseUrl: '/assets/',
dev: {
overlay: true
},
build: {
outDir: 'dist',
chunkLoadRetry: true
},
html: {
title: 'my-app'
},
css: {
modules: true
}
})
API Servers
Mount Jetpack into your own server after the API routes:
import { serve } from 'jetpack/serve'
app.get('/api/unicorns', (req, res) => res.json([]))
app.use(serve())
serve() resolves Jetpack config on the first request and caches the middleware. It uses process.cwd() as the default project directory, proxies to the Jetpack dev server outside production, and serves build.outDir in production. For monorepos, pass the client directory:
app.use(serve({ dir: clientDir }))
Docs
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,656 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,076 starsreact/react
The library for web and native user interfaces.
252,145 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,565 stars