@implementjs/kit
v0.0.20
Published
File based routing, server rendering and prerendering for implement apps, on top of Vite.
Downloads
4,518
Maintainers
Readme
@implementjs/kit
File based routing, server rendering and prerendering for implement
apps, on top of Vite. You write pages and layouts as files in
src/routes and kit wires up the router with typed params.
npm install -D @implementjs/kit// vite.config.ts
import { kit } from "@implementjs/kit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [kit()],
});kit has no runtime of its own. What ships to the browser is the same @implementjs/router
router you could have written by hand, generated from the files on disk.
A build prerenders every route it can reach. Pair it with an adapter to deploy a server instead:
| Adapter | Target |
| --------------------------------- | ----------------------------------------- |
| @implementjs/adapter-node | A standalone Node server |
| @implementjs/adapter-static | Static files for any static host |
| @implementjs/adapter-vercel | Vercel, through the Build Output API |
| @implementjs/adapter-cloudflare | A Cloudflare worker with assets beside it |
| @implementjs/adapter-iis | IIS on Windows Server |
Full documentation: implementjs.dev/kit
