🌜
ğŸŒž
beidou

beidou

v2.3.0

Isomorphic framework for server-rendered React apps

npm install beidou

README

Beidou

🌌 Isomorphic framework for server-rendered React apps

NPM version build status Test coverage NPM Downloads Gitter Node

Chinese Documentation - 中文文档

Features

  • ✔︎ High performance, 2-5 times speedup compares to client-side rendering
  • ✔︎ Search engine optimization(SEO)
  • ✔︎ ES6/ES7/ES8 supported
  • ✔︎ TypeScript supported
  • ✔︎ React renderToNodeStream supported
  • ✔︎ SCSS/Sass with autoprefixer supported
  • ✔︎ Auto router supported
  • ✔︎ Extends default webpack config supported
  • ✔︎ View rendering middleware supported
  • ✔︎ User-friendly CLI tool
  • ✔︎ Lots of plugins

Release 2.0

New Features

  • BREAKING CHANGE: Upgrade internal babel to 7

  • BREAKING CHANGE: Upgrade internal webpack to 4

  • Completely TypeScript Support, enable with one line config:

// package.json

{
  "config": {
    "typescript": true
  }
}

see typescript example for more detail.

Quick start

$ npm install beidou-cli -g
$ beidou init
$ npm run dev

Navigate to http://localhost:6001/

Boilerplate

Documentation

Articles

Performance

  • Isomorphic rendering performance VS client side rendering performance in 3G network

isomorphic vs performance

  • Performance comparison in different network environment

isomorphic vs performance

Need Help?

Please let us know how can we help. Do check out issues for bug reports or suggestions first.

DingTalk group supported

need help?

DingTalk Group Number: 23374510

License

MIT

Release Notes

1.0.0
By Qing • Published on May 9, 2017

BREAKING CHANGE

  • Node version must >= 8
  • React/react-dom versions must >= 16
  • Replace koa-webpack-dev-middleware with webpack-dev-server
  • Remove app.helper.resolveResource, use app.helper.asset instead

Features

  • Upgrade to [email protected], support async/await style middlewares
  • All in one manage tool - beidou-cli, including init boilerplate, development, debug, test, build assets, start/stop production app, and so on.
  • Custom view rendering process by view middlewares
  • Support rax isomorphic rendering, see beidou-view-rax
  • Webpack support many frontend resource loaders, see code
  • Webpack support CSS Modules with .module.{css|scss|less} files
  • Dump webpack config to [root]/run directory
  • Custom babel client targets by configuration
  • Handle many reasonable default configs, you may not need a lot of options in your config files, see examples

General

License
MIT
Typescript Types
None found
Tree-shakeable
No

Popularity

GitHub Stargazers
2,732
Community Interest
3,111
Number of Forks
280

Maintenance

Commits
10/219/2202
Last Commit
Mar 1, 2022
Open Issues
15
Closed Issues
127
Open Pull Requests
36
Closed Pull Requests
56

Versions

Versions Released
10/219/2201
Latest Version Released
Current Tags
latest2.3.0
next2.0.0-beta.0

Dependencies

Dependencies (1)
Dev Dependencies (2)

Contributors

njugray
njugray
Commits: 221
weichunpeng
weichunpeng
Commits: 162
devrsi0n
devrsi0n
Commits: 86
justquanyin
justquanyin
Commits: 26
ahungrynoob
ahungrynoob
Commits: 9
JacksonTian
JacksonTian
Commits: 2
xdlrt
xdlrt
Commits: 2
olivewind
olivewind
Commits: 1
fantasyroot
fantasyroot
Commits: 1
chenmingjia
chenmingjia
Commits: 1
davidnotes
davidnotes
Commits: 1
xiangxingchen
xiangxingchen
Commits: 1
weihomechen
weihomechen
Commits: 1
lanqy
lanqy
Commits: 1
kittBoy
kittBoy
Commits: 1