PlainSv ships more than components. The utilities cover the parts of a Svelte app that usually need a package: CSS effects without Tailwind, typed calls to server code, sign in, a typed MongoDB client, and Vite plugins for Markdown pages and faster icon imports. Like the components, each one is copied into your project, so you own the source.
Every init item installs the CSS utilities and the dev-plugin and svx-plugin-simple Vite plugins below, along with the theme and the app shell. Install the server functions, the full svx-plugin, auth, and MongoDB on their own with their items.
pnx remote0 add https://plainsv.com/r/init.jsonGlobal shimmer and scroll-fade classes that bring the shadcn Tailwind utilities to plain CSS. Change the effect with CSS variables instead of value classes. Read more on the CSS utilities page.
<p class="shimmer">Generating response...</p>Call server code from the client by name, with input and output types inferred from Zod schemas. Every call goes through one POST /api/functions endpoint, and Zod only runs on the server. Read more on the functions page.
const response = await useFunc("userCreate", { email: "[email protected]" });Google, GitHub, or Vercel sign in with 30-day cookie sessions stored in MongoDB, built on fetch and Node's crypto. Install one item per provider, such as auth-google or auth-github. Read more on the auth page.
pnx remote0 add https://plainsv.com/r/auth-google.jsonA typed client for the official mongodb driver. Define each collection with Zod in schema.ts, and a generator writes typed create, find, update, and delete methods for it. Read more on the MongoDB page.
pnx remote0 add https://plainsv.com/r/mongodb.jsonTwo Vite plugins in src/lib/server/plugins: svxPlugin compiles Markdown .svx pages, and devPlugin speeds up icon imports and writes src/env.ts from .env. Read more on the plugins page.
plugins: [devPlugin(), svxPlugin(), sveltekit({ extensions: [".svelte", ".svx"] })],