Back to rankings

preactjs/wmr

JavaScriptwmr.dev

👩‍🚀 The tiny all-in-one development tool for modern web apps.

build-toolesmodulespreactrollup
Star Growth
Stars
4.9k
Forks
107
Weekly Growth
Issues
66
3k3.5k4k4.5k
Dec 2020Oct 2022Sep 2024Jul 2026
Artifactsnpmnpm install wmr
README

WMR

[!WARNING] WMR is unfortunately no longer maintained. In its place, we'd recommend Vite with @preactjs/preset-vite. It offers many of the same features (like the prerendering API) but is much more robust and up to date. Thanks to all contributors and users over the years!

wmr logo

npm install size OpenCollective Backers OpenCollective Sponsors

The tiny all-in-one development tool for modern web apps, in a single 2mb file with no dependencies.

All the features you'd expect and more, from development to production:

🔨   No entry points or pages to configure - just HTML files with <script type=module>
🦦   Safely import "packages" from npm without installation
📦   Smart bundling and caching for npm dependencies
↻   Hot reloading for modules, Preact components and CSS
⚡️   Lightning-fast JSX support that you can debug in the browser
💄   Import CSS files and CSS Modules (*.module.css)
🔩   Out-of-the-box support for TypeScript
📂   Static file serving with hot reloading of CSS and images
🗜   Highly optimized Rollup-based production output (wmr build)
📑   Crawls and pre-renders your app's pages to static HTML at build time
🏎   Built-in HTTP2 in dev and prod (wmr serve --http2)
🔧   Supports Rollup plugins, even in development where Rollup isn't used

Create a new project in seconds using create-wmr:

npm init wmr your-project-name

or

yarn create wmr your-project-name

illustration of installation to build for wmr

💁 If you'd like ESLint to be set up for you, add --eslint to the command. Note: this will use 150mb of disk space.

Check out the docs to learn more

Packages

Package Description Version
wmr Tiny all-in-one development tool for modern web apps wmr npm
create-wmr Create a new WMR project in seconds create-wmr npm
@wmrjs/directory-import Import a directory's files as an Array @wmrjs/directory-import npm
@wmrjs/nomodule Generate legacy fallback bundles for older browsers @wmrjs/nomodule npm
@wmrjs/service-worker Bundle service workers @wmrjs/service-worker npm
preact-iso Optimal code-splitting, hydration and routing for Preact preact-iso npm

Contributing

git clone git@github.com:preactjs/wmr.git
cd wmr
yarn

# run the demo (no compile)
yarn demo serve

# build and serve the demo for prod
yarn demo build:prod && yarn demo serve:prod

# build the single-file CLI:
yarn workspace wmr build

Adding a changeset

Don't forget to also include a changeset, by running this command at the root of the project:

yarn changeset

This will take you through a process of selecting the changed packages, the version updates and a description of the change. Afterwards, changesets, will generate a .md file inside a .changeset directory. Please commit that file as well.

After all that, you are good to go. :+1:

Related repositories
vitejs/vite

Next generation frontend tooling. It's fast!

TypeScriptnpmMIT Licensevitehmr
vite.dev
82k8.5k
webpack/webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

JavaScriptnpmMIT Licensewebpackjavascript
webpack.js.org
65.8k9.4k
parcel-bundler/parcel

The zero configuration build tool for the web. 📦🚀

JavaScriptnpmMIT Licensemodule-bundlerbuild-tool
parceljs.org
44k2.3k
vercel/turborepo

Build system optimized for JavaScript and TypeScript, written in Rust

Rustcrates.ioMIT Licensemonorepojavascript
turborepo.dev
30.8k2.4k
nrwl/nx

The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.

TypeScriptnpmMIT Licensenxangular
nx.dev
29.1k2.8k
gradle/gradle

Adaptable, fast automation for all

GroovyApache License 2.0gradlebuild-tool
gradle.org
18.7k5.2k
go-task/task

A fast, cross-platform build tool inspired by Make, designed for modern workflows.

GoGo ModulesMIT Licensegomake
taskfile.dev
15.9k869
web-infra-dev/rspack

Fast Rust-based bundler for the web with a modernized webpack API 🦀

Rustcrates.ioMIT Licensebundlerjavascript
rspack.rs
12.8k827
jetify-com/devbox

Instant, easy, and predictable development environments

GoGo ModulesApache License 2.0devboxdevelopment-environment
jetify.com/devbox/
12.2k347
xmake-io/xmake

🔥 A cross-platform build utility based on Lua

LuaApache License 2.0luabuild-tool
xmake.io
12.1k947
earthly/earthly

Super simple build framework with fast, repeatable builds and an instantly familiar syntax – like Dockerfile and Makefile had a baby.

GoGo ModulesMozilla Public License 2.0build-automationbuild
earthly.dev
12k456
wxt-dev/wxt

⚡ Next-gen Web Extension Framework

TypeScriptnpmMIT Licensebuild-tooldev-server
wxt.dev
10.2k546