Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React Redux Universal Hot Example | 11,944 | 2 | 4 years ago | 2 | February 21, 2016 | 437 | mit | JavaScript | ||
A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform | ||||||||||
Server | 9,123 | 3 | 6 days ago | 57 | July 19, 2023 | 45 | other | Go | ||
A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui) | ||||||||||
Zero | 5,817 | 7 | 4 | 17 days ago | 169 | May 11, 2020 | 91 | apache-2.0 | JavaScript | |
Zero is a web server to simplify web development. | ||||||||||
React Redux Realworld Example App | 5,183 | 2 years ago | 88 | mit | JavaScript | |||||
Exemplary real world application built with React + Redux | ||||||||||
Server Components Demo | 3,962 | 3 days ago | 22 | mit | JavaScript | |||||
Demo app of React Server Components. | ||||||||||
React Server | 3,930 | 35 | 15 | 3 years ago | 67 | May 21, 2019 | 167 | apache-2.0 | JavaScript | |
:rocket: Blazing fast page load and seamless navigation. | ||||||||||
Create React App Buildpack | 3,328 | a year ago | 14 | mit | Shell | |||||
⚛️ Heroku Buildpack for create-react-app: static hosting for React.js web apps | ||||||||||
Universalmediaserver | 2,045 | 13 hours ago | 341 | gpl-2.0 | Java | |||||
A DLNA, UPnP and HTTP(S) Media Server. | ||||||||||
React Dom Stream | 2,009 | 72 | 8 | 7 years ago | 27 | April 06, 2016 | 11 | JavaScript | ||
A streaming server-side rendering library for React. | ||||||||||
Rendora | 1,950 | 7 months ago | 1 | January 04, 2019 | 28 | apache-2.0 | Go | |||
dynamic server-side rendering using headless Chrome to effortlessly solve the SEO problem for modern javascript websites |
Zero configuration web framework.
Features | Installation | Getting Started | Examples | Docs
Zero is a web framework to simplify modern web development. It allows you to build your application without worrying about package management or routing. It's as simple as writing your code in a mix of Node.js, React, HTML, MDX, Vue, Svelte, Python, and static files and putting them all in a folder. Zero will serve them all. Zero abstracts the usual project configuration for routing, bundling, and transpiling to make it easier to get started.
An example project with different types of pages, all in one folder:
Auto Configuration: Your project folder doesn't require config files. You just place your code and it's automatically compiled, bundled and served.
File-system Based Routing: If your code resides in ./api/login.js
it's exposed at http://<SERVER>/api/login
. Inspired by good ol' PHP days.
Auto Dependency Resolution: If a file does require('underscore')
, it is automatically installed and resolved. You can always create your own package.json
file to install a specific version of a package.
Multiple Languages: Zero is designed to support code written in many languages all under a single project. Imagine this:
All under a single project folder as a single web application.
You can play with Zero without installing it locally. Click the button below:
You can install zero
globally by:
npm install -g zero
Let's start by making a website that tells us server time.
First we need to create an API endpoint in Node.js to tell us time in JSON.
Create a new folder and add a new file time.js
in that folder. In this file, export a function that accepts Request
and Response
objects (like Express):
// time.js
const moment = require("moment");
module.exports = (req, res) => {
var time = moment().format("LT"); // 11:51 AM
res.send({ time: time });
};
Once saved, you can cd
into that folder and start the server like this:
zero
Running this command will automatically install any dependencies (like momentjs here) and start the web server.
Open this URL in the browser: http://localhost:3000/time
You just created an API endpoint :
Keep the server running. Now let's consume our API from a React page, create a new file index.jsx
and add the following code:
// index.jsx
import React from "react";
export default class extends React.Component {
static async getInitialProps() {
var json = await fetch("/time").then(resp => resp.json());
return { time: json.time };
}
render() {
return <p>Current time is: {this.props.time}</p>;
}
}
This is a standard React component. With one additional hook for initial data population:
getInitialProps
is an async
static method which is called by zero
when the page loads. This method can return a plain object which populates props
.
Now go to this URL: http://localhost:3000/
and you should see the current server time rendered by React while fetch
-ing an API endpoint you created earlier:
zero
automatically bundles your code and supports server-side rendering. You don't need to fiddle with webpack anymore.
That's it! You just created a web application.
If a file does require('underscore')
, the latest version of that package is automatically installed from NPM and resolved.
But sometimes you want to use a specific version or a dependency from a private repository. You can do that by creating a package.json
in your project folder and adding dependencies to it. Zero will install those versions instead.
Example (package.json):
{
"name": "myapp",
"dependencies": {
"underscore": "^1.4.0",
"private_ui_pkg": "git+https://github.com/user/repo.git"
}
}
Please see our CONTRIBUTING.md
Zero is Apache-2.0 licensed.