Vinxi is the full-stack SDK powering SolidStart and TanStack Start. Composable routers for any app.
Config
import { createApp } from "vinxi";
export default createApp({
routers: [
{ name: "public", type: "static", dir: "./public" },
{ name: "client", type: "client", handler: "./app/client.tsx", target: "browser" },
{ name: "api", type: "http", handler: "./app/api.ts", target: "server" }
]
});
Server Functions
const getUser = serverFn(async (id) => db.user.findUnique({ where: { id } }));
const user = await getUser("123"); // called from client
Key Features
- Composable routers
- Powers SolidStart + TanStack Start
- Server functions
- Built on Nitro + Vite
Need to scrape or monitor web data at scale? Check out my web scraping actors on Apify or email spinov001@gmail.com for custom solutions.
Top comments (0)