Sign In

create-foldkit-app

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-foldkit-app

Create Foldkit applications

latest
Source
npmnpm
Version
0.27.3
Version published
Weekly downloads
642
-32.77%
Maintainers
1
Weekly downloads
 
Created
Source

create-foldkit-app

Scaffolding CLI for new Foldkit applications. Creates a ready-to-run project with Vite, Tailwind CSS, TypeScript, @foldkit/vite-plugin for hot reloading with Model preservation, your choice of rendering mode, and a starter example for SPA scaffolds.

Usage

npx create-foldkit-app
# or
pnpm create foldkit-app
# or
yarn create foldkit-app
# or
bun create foldkit-app

The CLI prompts you for a project name, rendering mode, starter example, and package manager. Pass --name, --rendering, --example, and/or --package-manager to skip the matching prompts.

Rendering

ModeDescription
spaRender entirely in the browser. Starts from your choice of starter example below.
ssgPrerender routes to static HTML at build time, then hydrate in the browser. Scaffolds a small routed app with a server entry and a prerender script.
ssrRender each request on a Node server, then hydrate in the browser. Scaffolds a counter whose Flags come from the request, plus an Effect HttpServer host and a start script.

The starter examples apply to spa rendering. The ssg and ssr modes scaffold their own starter apps.

Examples

ExampleDescription
counterSimple increment/decrement with reset
countersA dynamic list of Counter Submodels with per-instance routing via a wrapper Message
todoCRUD operations with localStorage persistence
stopwatchTimer with start/stop/reset
crash-viewCustom crash fallback UI with crash.view and crash.report
slow-warningsInteractive lab for slow update, view, patch, and Subscription dependency warnings
formForm validation with async email checking
job-applicationMulti-step form with async validation, file uploads, and per-step error indicators
weatherHTTP requests with async state handling
api-cacheQuery caching in the Model with stale-while-revalidate, request deduplication, and interval refetching
chartingLive GitHub and npm telemetry rendered through an ECharts Mount adapter
routingURL routing with parser combinators and route parameters
uploadSimulated file uploads with cancellable, restartable interruptible Commands
query-syncURL-driven filtering, sorting, and search with query parameters
snakeClassic game built with Subscriptions
canvas-artDeclarative 2D canvas with shapes, animation-frame Subscriptions, and pointer events
generative-artPerlin-noise flow field with evolving particle trails, mouse vortex, and high-frequency Messages
authAuthentication with Submodels, OutMessage, and protected routes
shopping-cartComplex state management with nested Models and routing
state-machineExperimental state machine checkout with guarded branches and edge Commands
pixel-artPixel editor with undo/redo, UI components, and localStorage persistence
websocket-chatManaged resources with WebSocket integration
managed-resource-layerLayer-backed ManagedResource lifecycle with an Effect service
kanbanDrag-and-drop board with fractional indexing, keyboard navigation, and screen reader announcements
mapInteractive MapLibre GL map with Mount and Subscriptions
web-componentsQR code designer wiring third-party web components into Foldkit with CustomElement.define
embeddingA Foldkit widget embedded in a plain TypeScript host page with Ports and dispose
ui-showcaseEvery Foldkit UI component with routing and Submodels

License

MIT

Keywords

create-foldkit-app

FAQs

Package last updated on 20 Aug 2026

Related posts