vinxi

Vinxi expert: a full‑stack JavaScript SDK for building meta‑frameworks. Helps developers create custom full‑stack apps with multiple routing modes (SPA, SSR, API, static), Vite‑based bundling, server functions, filesystem routing, and deployment to any platform; the same infrastructure used by TanStack Start and SolidStart.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vinxi" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-770e6e37c064d3a1f13635dc42c58105794a0487b3b01d2522e273869b4fe65e. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Vinxi expert: a full‑stack JavaScript SDK for building meta‑frameworks. Helps developers create custom full‑stack apps with multiple routing modes (SPA, SSR, API, static), Vite‑based bundling, server functions, filesystem routing, and deployment to any platform; the same infrastructure used by TanStack Start and SolidStart.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: vinxi
description: >-
  You are an expert in Vinxi, the full-stack JavaScript SDK for building
  meta-frameworks. You help developers create custom full-stack applications
  with multiple routers (SPA, SSR, API, static), Vite-powered bundling, server
  functions, file-system routing, and deployment to any platform — the same
  foundation that powers TanStack Start and SolidStart.
license: Apache-2.0
compatibility: ''
metadata:
  author: terminal-skills
  version: 1.0.0
  category: Developer Tools
  tags:
    - meta-framework
    - vite
    - full-stack
    - server
    - ssr
    - sdk
    - router

Vinxi — Full-Stack JavaScript SDK

You are an expert in Vinxi, the full-stack JavaScript SDK for building meta-frameworks. You help developers create custom full-stack applications with multiple routers (SPA, SSR, API, static), Vite-powered bundling, server functions, file-system routing, and deployment to any platform — the same foundation that powers TanStack Start and SolidStart.

Core Capabilities

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
import { eventHandler, createRouter, defineEventHandler, readBody, getQuery } from "vinxi/http";

const router = createRouter();

router.get("/api/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("/api/users", defineEventHandler(async (event) => {
  const body = await readBody(event);
  const user = await db.users.create(body);
  return user;
}));

export default router.handler;

Server Functions

// src/features/todos.ts — Server functions (RPC)
"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 component calls these directly — Vinxi handles RPC
// 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>
  );
}

Installation

npx giget vinxi my-app
cd my-app && npm install
npm run dev                                # Vite-powered dev server
npm run build                              # Production build

Best Practices

  1. Multiple routers — Define separate routers for API, SSR, SPA, static; each has its own build pipeline
  2. Server functions — Use "use server" for RPC; client calls server code directly, Vinxi handles serialization
  3. Vite ecosystem — All Vite plugins work; use existing React/Vue/Solid plugins without modification
  4. H3 for HTTP — API routes use H3 (same as Nitro/Nuxt); lightweight, fast, edge-compatible
  5. Framework building — Vinxi is for building frameworks (TanStack Start uses it); or for custom full-stack apps
  6. File-system routing — Enable via plugins; maps files to routes like Next.js/Nuxt
  7. Universal deployment — Deploy to Node.js, Vercel, Netlify, Cloudflare, Deno; same code everywhere
  8. Dev experience — Vite HMR for instant updates; separate client and server hot reload

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 Vinxi 全栈 JavaScript SDK 的完整技术指南,涵盖应用配置、API 路由、Server Functions 等核心能力
  • 面向开发者构建元框架和自定义全栈应用,具有明确的技术实用性和广泛受众
Trigger Precision95/100

Highlights

  • description 在 frontmatter 和正文顶部均有完整、精准描述,触发词清晰覆盖 Vinxi 核心能力与适用场景
Structure and Standards90/100

Areas to improve

  • 缺少显式 When to Use 章节 Reported severity: Minor

    文档未设置显式的 'When to Use' 使用场景说明章节,但相关内容已隐含在描述和最佳实践中

    Recommendation: 建议增加显式的 'When to Use' 章节,明确列出适用场景(如构建元框架、自定义全栈应用、需要多路由支持等)

Highlights

  • 文档结构清晰,分 Core Capabilities、Installation、Best Practices 等逻辑章节
  • 包含完整且可运行的代码示例(app.config.ts、API routes、Server Functions)
  • frontmatter 完整,包含 license、compatibility、metadata 等信息
Execution Reliability90/100

Highlights

  • 所有代码示例语法正确,工具来源明确(vinxi、h3),参数合理
  • 涵盖主要使用场景,无不可逆操作,整体执行路径可靠
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 153, 154

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.