Package Exports
- @funstack/static
- @funstack/static/entries/client
- @funstack/static/entries/rsc
- @funstack/static/entries/rsc-client
- @funstack/static/entries/server
- @funstack/static/entries/ssr
- @funstack/static/server
Readme
@funstack/static
A maximally minimal React framework. Vite plugin for static sites with RSC support.
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)
Installation
npm install @funstack/staticQuick Start
// 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(),
],
});Documentation
For detailed API documentation and guides, visit the Documentation.
🤖 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-installerLicense
MIT