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.
[!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)
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(),
],
});CLI Commands
funstack-static-skill-installer
Installs the funstack-static-knowledge skill for AI coding assistants (like Claude Code).
npx funstack-static-skill-installerThis command registers the skill that provides AI assistants with knowledge about the FUNSTACK Static framework, including API references, best practices, and architectural guidance. After installation, your AI assistant will be able to better understand and work with your FUNSTACK Static project.
Documentation
For detailed API documentation and guides, visit the Documentation.
License
MIT