Skip to content

uhyo/funstack-static

Repository files navigation

FUNSTACK Static

Hero Image

A maximally minimal React framework.

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 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(),
  ],
});

🤖 FUNSTACK Static Skill

FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. After installing @funstack/static, run the following command to add the skill to the project:

npx funstack-static-skill-installer
# or
yarn funstack-static-skill-installer
# or
pnpm funstack-static-skill-installer

See the framework in action

pnpm install
pnpm build
# Start a development server
pnpm --filter docs dev
# Start a preview of the production build
pnpm --filter docs preview

⛵ Project Status

This project is in early development, but we believe it is already usable. It has all the features needed for building CSR apps with RSC.

We are not aware of any production deployments yet. Be the first!

License

MIT

About

A React framework without a server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •