vinxi
БесплатноБез исполняемых скриптовНе проверенVinxi is a JavaScript SDK for composing full-stack apps and meta-frameworks from routers (static, http, spa, client) on top of Vite and Nitro. Use when…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Vinxi — Full-Stack JavaScript SDK
Overview
Vinxi composes full-stack apps from a list of routers (static, http, spa, client, or custom). Each router is built by Vite, and the http routers run on Nitro, so one app.config.ts can describe a browser bundle, an SSR server and an API.
Project status (checked October 2026). Vinxi is not archived or deprecated, but it is no longer the foundation it was. SolidStart 2.0 (stable August 2026) and current TanStack Start (@tanstack/react-start 1.x) do not depend on it; SolidStart 1.x still does. The npm package vinxi is at 0.5.11 (January 2026), and the repository's README still lists SolidStart as its active framework, which is out of date. For a new project, pick the framework you want (SolidStart, TanStack Start, or plain Vite with Nitro) instead of building on Vinxi directly. Use this skill for existing Vinxi code, for SolidStart 1.x or older TanStack Start projects, and for understanding how they work.
Instructions
Installation
npm install vinxi
Create app.config.ts (see App Configuration below) and set "type": "module" in package.json; without it vinxi dev fails with "Cannot use import statement outside a module". The CLI help says it looks for app.config.js, and app.config.ts works too:
npx vinxi dev # dev server, port 3000 (--port 3001 to change)
npx vinxi build # production build, node-server preset by default
npx vinxi build --preset vercel-edge # or set SERVER_PRESET=vercel-edge
npx vinxi start # experimental: run the built app from .output
Vinxi 0.5.x depends on Vite 6, so use Vite 6 plugins.
App Configuration
// app.config.ts — Define your full-stack app
import { createApp } from "vinxi";
export default createApp({
routers: [
// Static assets
{
name: "public",
type: "static",
dir: "./public",
},
// API routes
{
name: "api",
type: "http",
handler: "./src/api.ts",
base: "/api",
plugins: () => [],
},
// SSR client (browser bundle)
{
name: "client",
type: "client",
handler: "./src/entry-client.tsx",
base: "/_build",
build: {
sourcemap: true,
},
},
// SSR server (server-side rendering)
{
name: "ssr",
type: "http",
handler: "./src/entry-server.tsx",
plugins: () => [],
},
],
});
API Routes
// src/api.ts — H3-based API handler; the router's base ("/api") is stripped, so paths here start at "/users"
import { eventHandler, createRouter, defineEventHandler, readBody, getQuery } from "vinxi/http";
const router = createRouter();
router.get("/users", defineEventHandler(async (event) => {
const { page, limit } = getQuery(event);
const users = await db.users.findAll({
offset: ((+page || 1) - 1) * (+limit || 20),
limit: +limit || 20,
});
return { data: users };
}));
router.post("/users", defineEventHandler(async (event) => {
const body = await readBody(event);
const user = await db.users.create(body);
return user;
}));
export default router.handler;
Server Functions
"use server" is not on by default. Vinxi ships it as a plugin, serverFunctions from @vinxi/server-functions/plugin (npm 0.5.1): add serverFunctions.client(...) to the client router's plugins and serverFunctions.server(...) to a dedicated http router (conventionally base: "/_server"). The examples/react/rsc/spa folder in the repository shows the full wiring, including the runtime option (@vinxi/react-server-dom/runtime) it passes to both calls. Frameworks such as SolidStart 1.x do this for you.
// src/features/todos.ts — Server functions (RPC), once the plugin is configured
"use server";
import { db } from "../db";
export async function getTodos() {
return db.todos.findAll({ orderBy: { createdAt: "desc" } });
}
export async function createTodo(title: string) {
return db.todos.create({ title, done: false });
}
export async function toggleTodo(id: string) {
const todo = await db.todos.findById(id);
return db.todos.update(id, { done: !todo.done });
}
// Client code imports these; the plugin turns the calls into HTTP requests
// src/components/TodoList.tsx — Client component using server functions
import { getTodos, createTodo, toggleTodo } from "../features/todos";
function TodoList() {
const [todos, setTodos] = useState([]);
useEffect(() => {
getTodos().then(setTodos); // Calls server function transparently
}, []);
const handleAdd = async (title: string) => {
const todo = await createTodo(title); // Server function — runs on server
setTodos([todo, ...todos]);
};
return (
<ul>
{todos.map(t => (
<li key={t.id} onClick={() => toggleTodo(t.id)}>{t.title}</li>
))}
</ul>
);
}
Examples
Exampl
Установить vinxi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vinxi?
Vinxi is a JavaScript SDK for composing full-stack apps and meta-frameworks from routers (static, http, spa, client) on top of Vite and Nitro. Use when maintaining an app or framework already built on Vinxi, or when a user asks how Vinxi routers, createApp and the vinxi CLI work. Note that SolidStart 2 and current TanStack Start no longer use it.
Как установить скилл vinxi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vinxi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic