vinxi
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "vinxi":https://skillpi.com/zh/skills/deepskill-770e6e37c064d3a1f13635dc42c58105794a0487b3b01d2522e273869b4fe65e。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Vinxi 专家:用于构建元框架的全栈 JavaScript SDK。帮助开发者创建自定义全栈应用,支持多种路由(SPA、SSR、API、静态)、基于 Vite 的打包、服务器函数、文件系统路由,可部署到任何平台;这是 TanStack Start 和 SolidStart 所依赖的相同基础架构。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
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
- routerVinxi — 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
- Multiple routers — Define separate routers for API, SSR, SPA, static; each has its own build pipeline
- Server functions — Use
"use server"for RPC; client calls server code directly, Vinxi handles serialization - Vite ecosystem — All Vite plugins work; use existing React/Vue/Solid plugins without modification
- H3 for HTTP — API routes use H3 (same as Nitro/Nuxt); lightweight, fast, edge-compatible
- Framework building — Vinxi is for building frameworks (TanStack Start uses it); or for custom full-stack apps
- File-system routing — Enable via plugins; maps files to routes like Next.js/Nuxt
- Universal deployment — Deploy to Node.js, Vercel, Netlify, Cloudflare, Deno; same code everywhere
- Dev experience — Vite HMR for instant updates; separate client and server hot reload
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Vinxi 全栈 JavaScript SDK 的完整技术指南,涵盖应用配置、API 路由、Server Functions 等核心能力
- 面向开发者构建元框架和自定义全栈应用,具有明确的技术实用性和广泛受众
亮点
- description 在 frontmatter 和正文顶部均有完整、精准描述,触发词清晰覆盖 Vinxi 核心能力与适用场景
待提升项
-
缺少显式 When to Use 章节 原报告严重程度:轻微
文档未设置显式的 'When to Use' 使用场景说明章节,但相关内容已隐含在描述和最佳实践中
改进建议:建议增加显式的 'When to Use' 章节,明确列出适用场景(如构建元框架、自定义全栈应用、需要多路由支持等)
亮点
- 文档结构清晰,分 Core Capabilities、Installation、Best Practices 等逻辑章节
- 包含完整且可运行的代码示例(app.config.ts、API routes、Server Functions)
- frontmatter 完整,包含 license、compatibility、metadata 等信息
亮点
- 所有代码示例语法正确,工具来源明确(vinxi、h3),参数合理
- 涵盖主要使用场景,无不可逆操作,整体执行路径可靠
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 153, 154 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。