@funstack/static
v1.1.0
Published
FUNSTACK static library
Downloads
1,229
Maintainers
Readme
@funstack/static
A maximally minimal React framework. Vite plugin for static sites with RSC support.
Features
- :x: No server runs - perfect for CSR (Client Side Rendering) app and static deployment.
- :x: No RCE vulnerabilities - No server, no risk.
- :white_check_mark: RSC support - React Server Components are supported even without a server which helps reduce bundle size and improve performance.
- :white_check_mark: Server Component Code Splitting - a brand new
defer()API allows you to split RSC Payload into multiple chunks and load them on demand. - :white_check_mark: 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.
:robot: FUNSTACK Static Skill
FUNSTACK Static provides an Agent Skill to feed your AI agents with knowledge about this framework. Run the following command to add the skill to the project:
npx -p @funstack/static funstack-static-skill-installer
# or
yarn dlx -p @funstack/static funstack-static-skill-installer
# or
pnpm --package @funstack/static dlx funstack-static-skill-installer
# or, if you use skills CLI (https://skills.sh/)
npx skills add uhyo/funstack-staticLicense
MIT
