void-app

Build full-stack apps with Void, Vite+, React Pages, and Cloudflare D1.

416|6|Updated Apr 24, 2026
Ready to run
npx skills add https://github.com/mizchi/skills --skill void-app-mizchi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: void-app
Source: https://github.com/mizchi/skills/tree/main/void-app
Command: npx skills add https://github.com/mizchi/skills --skill void-app-mizchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires void, @void/react, vite-plus, drizzle-orm, zod, and includes scripts (resource) and references (resource) components.

What problem does it solve? Building production full-stack applications requires coordinating typed loaders, actions, forms, database migrations, and deployment—a complex process prone to type errors, schema mismatches, and runtime failures. This Skill streamlines the entire workflow from scaffolding through deployment. ## Core Features & Use Cases - Typed Full-Stack: Automatically generate end-to-end types from database schema through API routes and form validators using Void's schema-driven approach. - Database-First Development: Define schema in TypeScript, auto-generate migrations, validate inputs against tables, and avoid schema-runtime mismatches. - Deployment Ready: Handle pnpm build approvals, form reset behavior, redirect-query pitfalls, and prepare apps for Cloudflare Workers with D1 SQLite. - Use Case: You are building a note-taking app. Define the notes table schema once in db/schema.ts, auto-generate a migration, create a zod validator from the schema, write a typed loader and action, build the form with automatic error handling, and deploy to Cloudflare—all with compile-time type safety across every boundary. ## Quick Start Scaffold a new Void app by running void init in an empty directory and choosing Vite+ with React and D1, then read the bundled void/docs/guide/quickstart.md for your specific task.

Frequently Asked Questions about void-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a typed form with validation in Void?▼

Define a schema in `db/schema.ts`, export a zod validator using `createInsertSchema` and `pick`, then use `useForm` in React with the validator passed to the action. This generates compile-time types and runtime validation for both server and client.

How do I generate and apply database migrations safely?▼

Run `void db generate` after editing `db/schema.ts` to create SQL, review it for unexpected table rebuilds or data loss, then apply with `void db migrate`. Keep migration history intact after sharing it; do not replace migrations already applied elsewhere.

What happens when a form submission succeeds in Void?▼

The action returns nothing, triggering a loader refresh. `useForm` automatically clears submitted values and marks `wasSuccessful` true. Use `useEffect` to reset form fields on success, since `reset()` does not clear append-style inputs.

Why does my redirect URL keep the old query string?▼

Void 1.1.11's path-relative `c.redirect('/')` inherits the request query. After a delete action, `/?delete` persists. Use `c.redirect(new URL('/', c.req.url).href, 303)` with an absolute URL to clean the query.

Can I use Solid components alongside React Pages?▼

Yes, through a dedicated DOM boundary. Use `.solid.tsx` files with `vite-plugin-solid`, mount from a React effect with dynamic import, and pass data through a typed props/callback contract. See the `references/react-solid.md` guide for full implementation.

How do I keep native Void auth when using Astro for static pages?▼

Build Astro in a separate workspace package with its own `package.json` and output to `public/`. Do not add Astro to the Void root, or framework auto-detection will disable Void-managed auth. See `references/astro-static-auth.md` for the verified layout.