🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

void

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Potential malware was recently detected in this package.

Affected versions:

0.10.30.10.4

void

latest
Source
npmnpm
Version
0.10.4
Version published
Weekly downloads
2.9K
66.87%
Maintainers
2
Weekly downloads
 
Created
Source

void

Vite plugin and CLI for building and deploying apps on Void.

What It Covers

  • file-based API routes from routes/
  • Pages mode from pages/
  • typed Drizzle access via void/db
  • crons/ and queues/
  • URL redirects, rewrites, and fallbacks (void.json / public/_redirects, plus c.rewrite() from middleware)
  • binding inference for D1, KV, R2, AI, auth, and queues
  • remote bindings for local development
  • deploy packaging for Void-hosted apps, static sites, and supported meta-frameworks

Quick Start

Install the Void CLI:

npm install -D void

If you run void init in an empty directory, the scaffold flow adds the matching Pages adapter and Vite+ by default.

Then run npx void init. In an empty directory, the full interactive flow can scaffold a starter, configure local project files, log you in, and link or create your Void project so the next step is just npx void deploy. In an existing app, it configures Void in place by adding missing Vite scripts and creating or patching vite.config.* with voidPlugin().

// vite.config.ts
import { defineConfig } from 'vite';
import { voidPlugin } from 'void';

export default defineConfig({
  plugins: [voidPlugin()],
});

Core Surfaces

  • voidPlugin() — Vite integration, routing, pages mode, codegen, migrations, packaging
  • void prepare — generate .void artifacts for CI, editors, and fresh clones
  • void auth login — platform auth
  • void deploy — build and deploy
  • void db * — local DB and migration commands
  • void project * — link, status, logs, rollback, delete

Runtime helpers include:

  • defineHandler
  • defineMiddleware
  • basicAuth
  • defineScheduled
  • defineQueue
  • void/db
  • void/kv
  • void/storage
  • void/ai
  • void/isr
  • void/client
  • void/auth

Supported App Shapes

  • native Void apps (routes/, pages/, middleware/, crons/, queues/)
  • supported meta-framework deploy targets:
    • TanStack Start
    • React Router
    • SvelteKit
    • Nuxt
    • Astro
  • static and SPA deploys
  • non-Cloudflare server targets (node, bun, deno)

There is Vinext-specific source in the repo, but it is intentionally on hold and not part of the current public support matrix.

Database Model

void/db is Drizzle-first.

  • D1 is the default managed database target
  • framework apps can opt into PostgreSQL mode
  • route types, DB types, and queue types are generated into .void/*.d.ts

Documentation

Full docs live at void.cloud/guide.

License

MIT

FAQs

Package last updated on 03 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts