Skip to content
 
 

Repository files navigation

FUNSTACK Static

Hero Image

A maximally minimal React framework.

Warning

This is work in progress.

Features:

  • No server runs - perfect for CSR (Client Side Rendering) app and static deployment.
  • No RCE vulnerabilities - No server, no risk.
  • RSC support - React Server Components are supported even without a server which helps reduce bundle size and improve performance.
  • Server Component Code Splitting - a brand new defer() API allows you to split RSC Payload into multiple chunks and load them on demand.
  • Vite-based - so minimal that this framework is served as a Vite plugin (based on @vitejs/plugin-rsc)

Usage

Documentation

See the example project and the docs project for complete usage.

// vite.config.ts
import funstackStatic from "@funstack/static";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [
    funstackStatic({
      root: "./src/root.tsx",
      app: "./src/App.tsx",
    }),
    react(),
  ],
});

See the framework in action

pnpm install
pnpm build
# Start a development server
pnpm --filter funstack-static-example dev
# Start a preview of the production build
pnpm --filter funstack-static-example preview

License

MIT

About

A React framework without a server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages