UNPKG

@rsc-kit/mcp

Version:

An MCP server over what an rsc-kit build decided: the routes, why each one is static or not, and what it costs the browser.

298 lines (297 loc) • 10.4 kB
[ { "slug": "admin-plugins", "title": "Admin plugins", "description": "Adding to an @rsc-kit/press panel from a package, or from a plugin installed while the panel runs - writing one, publishing it and selling it." }, { "slug": "api-routes", "title": "API routes", "description": "Web-standard endpoints, colocated with your pages, with no configuration." }, { "slug": "authorization", "title": "Authorization", "description": "Protecting pages, server actions and API routes." }, { "slug": "backend-answered-pages", "title": "Backend-Answered Pages", "description": "BAP — the model for an rsc-kit app with a backend behind it, and how to build for it." }, { "slug": "bap-vs-inertia", "title": "BAP vs Inertia", "description": "Two ways to put React in front of Laravel, and when each is the right one." }, { "slug": "blueprints", "title": "Blueprints", "description": "A form defined once - fields, checks and saves - and drawn anywhere it is needed - a contact page, an edit page, an admin panel - from a Standard Schema or a backend's own actions." }, { "slug": "bun", "title": "Running on Bun", "description": "What is different when the runtime is Bun — and what only looks like it is." }, { "slug": "caching", "title": "Asking once per request", "description": "cache() — one lookup, however many places need it, and with a key and a lifetime, however many requests." }, { "slug": "coming-from-inertia", "title": "Coming from Inertia", "description": "A Laravel + Inertia React app, ported page by page — what stays in Laravel, what the pages become, and what goes." }, { "slug": "coming-from-next", "title": "Coming from Next.js", "description": "What carries over unchanged, what to rename, and what is different on purpose." }, { "slug": "commands", "title": "Commands", "description": "A release step or a worker is the same app started differently — ./app migrate." }, { "slug": "connection", "title": "Rendering per request", "description": "Marking work that belongs to the visitor, not to the build." }, { "slug": "content-security-policy", "title": "Content Security Policy", "description": "A strict policy on every page, with the engine allowing its own inline code by hash or nonce." }, { "slug": "domains", "title": "Domains and subdomains", "description": "A host as a route segment — admin.example.com reaches app/admin, a tenant's host binds [domain] — with nothing to rewrite." }, { "slug": "draft-mode", "title": "Draft mode", "description": "Let an editor see unpublished content on a page that is prerendered, kept or cached at a CDN, without a rebuild and without anyone else seeing it." }, { "slug": "edge-caching", "title": "Edge caching", "description": "Serving prerendered pages, PPR shells and kept pages from a CDN, the headers they go out with, and purging by tag." }, { "slug": "emails", "title": "Emails and other HTML", "description": "Rendering React to HTML on the server — an email, a PDF, a feed — from a server action or a route, with \"use ssr\"." }, { "slug": "errors", "title": "Errors and 404s", "description": "What a visitor sees when a page throws, or asks for a url nothing answers." }, { "slug": "feature-flags", "title": "Feature flags", "description": "OpenFeature in a server component, Pennant on Laravel, the OpenFeature Go SDK on Go." }, { "slug": "file-uploads", "title": "File uploads", "description": "Sending files through a server action without encoding them." }, { "slug": "fonts", "title": "Fonts", "description": "Self-hosted fonts from npm, preloading the first one, and porting from next/font." }, { "slug": "forms", "title": "Forms", "description": "Progressive forms, pending state and validation errors." }, { "slug": "getting-started", "title": "Getting started", "description": "Serve React Server Components from any JavaScript backend." }, { "slug": "images", "title": "Images", "description": "Responsive images with no optimizer to run — unpic for a CDN, imagetools for files in the repo." }, { "slug": "installation", "title": "Installation", "description": "From an empty directory to a streaming RSC app." }, { "slug": "instrumentation", "title": "Startup", "description": "instrumentation.ts runs once, before anything else." }, { "slug": "internationalisation", "title": "Internationalisation", "description": "A site in several languages - a URL per locale, stored pages for each, translations, hreflang links and a language switcher." }, { "slug": "introduction", "title": "Introduction", "description": "React Server Components as a Vite plugin, deployed wherever you like." }, { "slug": "isr", "title": "ISR", "description": "A page rendered once and served to everyone, refreshed on a timer or the moment its data changes. On one server, several pods or a Worker, with Laravel, Go or no backend." }, { "slug": "live-data", "title": "Live data", "description": "Keep what a page shows current as the data changes - refreshOn, events, polling." }, { "slug": "live-data-in-production", "title": "Live data in production", "description": "Where refreshOn's versions are kept, and running live data on several servers, Workers and poolers." }, { "slug": "mcp", "title": "Working with an AI agent", "description": "An MCP server that answers from your actual build, and the AGENTS.md written into every project." }, { "slug": "metadata", "title": "Page metadata", "description": "Titles, descriptions and Open Graph tags, exported from the page." }, { "slug": "navigation", "title": "Navigation", "description": "Moving between pages without a reload - visit, prefetch, progress, refresh, and measuring a click." }, { "slug": "no-javascript", "title": "A page with no JavaScript", "description": "The default is none. A client component is how a page asks for it." }, { "slug": "offline", "title": "Offline", "description": "Knowing when the server cannot be reached, and carrying on without it." }, { "slug": "openapi", "title": "OpenAPI", "description": "A document derived from your route.ts files, and Scalar's page over it." }, { "slug": "pages", "title": "Pages from blocks", "description": "Landing pages, an about page, a pricing page - built in the admin panel from the app's own blocks, live on the next visit." }, { "slug": "ppr", "title": "Partial prerendering", "description": "Storing what every visitor sees the same, and rendering the rest per request." }, { "slug": "pwa", "title": "Progressive web apps", "description": "Making the app installable, and adding push notifications and background sync." }, { "slug": "queries", "title": "Queries", "description": "Reading from the server over GET, and letting TanStack Query or SWR own everything above it." }, { "slug": "quick-start", "title": "Quick start", "description": "A running app in one command, or added to a project you already have." }, { "slug": "react-compiler", "title": "React Compiler", "description": "Enabling the compiler in the build." }, { "slug": "redirects", "title": "Redirects", "description": "Sending the visitor somewhere else from a page, a middleware or a server action." }, { "slug": "response-headers", "title": "Headers and cookies", "description": "Reading request headers and cookies, setting response headers and cookies, and security headers." }, { "slug": "route-interception", "title": "Route interception", "description": "Opening a route as a modal over the page you were on." }, { "slug": "routing", "title": "Routing", "description": "File-based routes, route parameters, layouts, loading states and parallel slots." }, { "slug": "sections", "title": "Sections", "description": "Refreshing one region of a page without re-rendering the rest." }, { "slug": "seo-files", "title": "robots, sitemap and llms.txt", "description": "The files a site describes itself with, from a file beside the root layout — written the way Next writes them, stored at build when they can be." }, { "slug": "server-actions", "title": "Server actions", "description": "Calling the server from a client component, as an ordinary function." }, { "slug": "static-generation", "title": "Static generation", "description": "Rendering pages ahead of time, and exporting a site of files." }, { "slug": "testing", "title": "Testing", "description": "Call actions and routes as functions, fetch the whole app without a server, and keep a browser for the round trip." }, { "slug": "third-party-scripts", "title": "Third-party scripts", "description": "Analytics, tag managers and widgets — and why there is no Script component." }, { "slug": "typed-routes", "title": "Typed routes", "description": "Links that fail the typecheck instead of the browser." }, { "slug": "url-validation", "title": "Typed URLs", "description": "Checking and typing params, query strings and request bodies with a schema you already write." }, { "slug": "validation", "title": "Validation", "description": "Checking input before submit, and showing the server's validation errors in a form." }, { "slug": "view-transitions", "title": "View transitions", "description": "Navigations are an instant swap; a shared element is the transition worth having, and the page fade is the one to think twice about." }, { "slug": "web-vitals", "title": "Web vitals", "description": "LCP, INP and CLS from real visitors, sent to an endpoint of your own." }, { "slug": "where-it-runs", "title": "Where it runs", "description": "A host is a Nitro preset, not a server you write." } ]