Skip to content
forked from webappio/greenjs

GreenJS combines esbuild, Go, and prerendering into a great developer experience for React users.

License

Notifications You must be signed in to change notification settings

joev323/greenjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast React pages for existing sites

GreenJS combines esbuild, Go, and prerendering into a great developer experience for React users.

Build faster with a familiar interface

Iterate without reading our docs, the GreenJS <Router> and <Link> elements are already familiar to most React developers.

'npm build' is 10x faster

GreenJS is written entirely in Go, and uses esbuild to finish builds in milliseconds instead of minutes.

Add react components to existing sites

The GreenJS production webserver can act as a proxy to forward traffic to an existing site effortlessly.

How to Get Started

1. Write React code like you usually would

Instead of using complex file-based routing, use routes directly within React to define pages. GreenJS comes with drop-in replacements for react-helmet, react-router and react-dom.







2. Run greenjs build to prerender your site

At build-time, we’ll discover all of your routes. We’ll use a headless browser to visit all of your pages and run your React code. The resulting pages will be saved as HTML.




3. Host your site as you usually would

GreenJS automatically emits a high performance webserver in the dist folder to distribute the entire application with ease.





Ready to get started?

About

GreenJS combines esbuild, Go, and prerendering into a great developer experience for React users.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.6%
  • TypeScript 13.7%
  • CSS 10.7%