nwb 0,2,5,3,3,0,2 travis-ci npm

A toolkit for React, Preact & Inferno apps, React libraries and other npm modules for the web, with no configuration (until you need it)


Linux Travis Windows Appveyor npm package Coveralls

nwb is a toolkit for:

A zero-config development setup is provided, but nwb also supports configuration and plugin modules which add extra functionality (e.g. Sass support), should you need them


Installing globally provides an nwb command for working with projects and react, inferno and preact commands for quick development:

npm install -g nwb

Using npm >= 3 is recommended, as Babel 6 takes significantly more time and disk space to install with npm 2 due to its lack of deduplication.

To use nwb’s tooling in a project, install it as a devDependency and use nwb commands in package.json "scripts":

npm install --save-dev nwb
  "scripts": {
    "start": "nwb serve-react-app",
    "build": "nwb build-react-app"

Quick Development

For quick development with React, Inferno or Preact, use the global react, inferno or preact commands.

import React, {Component} from 'react'

export default class App extends Component {
  render() {
    return <h1>Hello world!</h1>
$ react run app.js
✔ Installing react and react-dom
Starting Webpack compilation...
Compiled successfully in 5033 ms.

The app is running at http://localhost:3000/
$ react build app.js
✔ Building React app

File size after gzip:

  dist\app.cff417a3.js  46.72 KB

See Quick Development with nwb for a more detailed guide.

React Apps

Use nwb new react-app to create a React app skeleton, preconfigured with npm scripts which use nwb for development:

nwb new react-app my-app
cd my-app/
npm start

Open localhost:3000, start editing the code and changes will be hot-reloaded into the running app.

npm test will run the app’s tests and npm run build will create a production build.

See Developing React Apps with nwb for a more detailed guide.

Preact Apps

Use nwb new preact-app to create a Preact app skeleton:

nwb new preact-app my-app

npm scripts are as above for React apps.

Inferno Apps

Use nwb new inferno-app to create an Inferno app skeleton:

nwb new inferno-app my-app

npm scripts are as above for React apps.

React Components and Libraries

nwb new react-component my-component

cd my-component/

npm start will run a demo app you can use to develop your component or library against.

npm test will run the project’s tests and npm run build will create ES5, ES6 modules and UMD builds for publishing to npm.

See Developing React Components and Libraries with nwb for a more detailed guide.

npm Modules for the Web

nwb new web-module my-module

cd my-module/

npm test will run the project’s tests and npm run build will create ES5, ES6 modules and UMD builds for publishing to npm.



Why use nwb?

Get started quickly. Start developing from a single .js file or generate a project skeleton.

Covers the whole development cycle. Development tools, testing and production builds for projects work out of the box, no configuration required.

Flexible. While everything works out of the box, you can also use an optional configuration file to tweak things to your liking.

Manages key development dependencies and configuration for you. Check out an example of the effect using nwb had on the amount of devDependencies and configuration to be managed in a real project it was dropped into.

MIT Licensed

Operating system icons created with Icons8

Related Repositories



A toolkit for React, Preact & Inferno apps, React libraries and other npm modules for the web, with no configuration (until you need it) ...



integrating nwb and electron build setup into one cohesive experience ...



Sass plugin for nwb ...



An implementation of the Thinking in React tutorial using nwb ...



An implementation of the React Tutorial using nwb's middleware ...

Top Contributors

insin evnbr jihchi marcelometal npmcdn-to-unpkg-bot


package version
chalk 2.0.1
copy-template-dir 1.3.0
cross-spawn 5.1.0
debug 2.6.8
detect-port 1.2.1
figures 2.0.0
filesize 3.5.10
fs-extra 4.0.0
gzip-size 3.0.0
inquirer 3.2.1
minimist 1.2.0
ora 1.3.0
resolve 1.4.0
run-series 1.1.4
semver 5.4.1
webpack-merge 4.1.0
babel-cli 6.24.1
babel-core 6.25.0
babel-plugin-add-module-exports 0.2.1
babel-plugin-inferno 3.2.0
babel-plugin-istanbul 4.1.4
babel-plugin-lodash 3.2.11
babel-plugin-react-transform 2.0.2
babel-plugin-syntax-dynamic-import 6.18.0
babel-plugin-syntax-jsx 6.18.0
babel-plugin-transform-decorators-legacy 1.3.4
babel-plugin-transform-react-constant-elements 6.23.0
babel-plugin-transform-react-jsx 6.24.1
babel-plugin-transform-react-jsx-self 6.22.0
babel-plugin-transform-react-jsx-source 6.22.0
babel-plugin-transform-react-remove-prop-types 0.4.6
babel-plugin-transform-runtime 6.23.0
babel-polyfill 6.23.0
babel-preset-es2015 6.24.1
babel-preset-es2016 6.24.1
babel-preset-es2017 6.24.1
babel-preset-react 6.24.1
babel-preset-stage-0 6.24.1
babel-preset-stage-1 6.24.1
babel-preset-stage-2 6.24.1
babel-preset-stage-3 6.24.1
babel-runtime 6.25.0
react-transform-catch-errors 1.0.2
react-transform-hmr 1.0.4
redbox-noreact 1.1.0
karma 1.7.0
diff 3.3.0
karma-chrome-launcher 2.2.0
karma-coverage 1.1.1
karma-mocha 1.3.0
karma-mocha-reporter 2.2.3
karma-phantomjs-launcher 1.0.4
karma-sourcemap-loader 0.3.7
karma-webpack 2.0.4
phantomjs-prebuilt 2.1.14
mocha 3.4.2
expect 1.20.2
object-assign 4.1.1
promise 8.0.1
whatwg-fetch 2.0.3
webpack 3.4.1
autoprefixer 7.1.2
babel-loader 7.1.1
case-sensitive-paths-webpack-plugin 2.1.1
copy-webpack-plugin 4.0.1
css-loader 0.28.4
eventsource-polyfill 0.9.6
extract-text-webpack-plugin 3.0.0
file-loader 0.11.2
html-webpack-plugin 2.29.0
npm-install-webpack2-plugin 5.0.1
postcss-loader 2.0.6
style-loader 0.18.2
url-loader 0.5.9
webpack-dev-middleware 1.11.0
webpack-dev-server 2.6.1
webpack-hot-middleware 2.18.2
dev babel-preset-env 1.6.0
babel-preset-flow 6.23.0
cross-env 5.0.1
eslint-config-jonnybuchanan 5.0.0
eventsource 1.0.5
flow-bin 0.51.0
glob 7.1.2
nyc 11.0.3
rimraf 2.6.1
temp 0.8.3
tree-kill 1.1.0


-   v0.12.2 zip tar
-   v0.12.1 zip tar
-   v0.12.0 zip tar
-   v0.11.1 zip tar
-   v0.11.0 zip tar
-   v0.11.0-rc.1 zip tar
-   v0.11.0-rc.0 zip tar
-   v0.11.0-alpha.0 zip tar
-   v0.10.0 zip tar
-   v0.9.2 zip tar
-   v0.9.1 zip tar
-   v0.9.0 zip tar
-   v0.8.1 zip tar
-   v0.8.0 zip tar
-   v0.7.2 zip tar
-   v0.7.1 zip tar
-   v0.7.0 zip tar
-   v0.6.4 zip tar
-   v0.6.3 zip tar
-   v0.6.2 zip tar
-   v0.6.1 zip tar
-   v0.6.0 zip tar
-   v0.5.0 zip tar
-   v0.4.1 zip tar
-   v0.4.0 zip tar
-   v0.3.1 zip tar
-   v0.3.0 zip tar
-   v0.3.0-beta.0 zip tar
-   v0.2.0 zip tar
-   v0.1.0 zip tar