Spatz
|Updated:
7 Aug 2024
|190 Stars
An opinionated template for building full-stack Svelte applications ridiculously fast. Includes auth, database, admin panel, user dashboard, themes, icons, and more.
Categories
Overview
The Spatz template is a comprehensive fullstack template designed for use with Svelte. It includes a variety of features such as Sveltekit for building fast web apps, Pocketbase for User Auth, Database, Admin UI, and API documentation, OpenAI for chatbots, Vercel AI SDK for AI/ML models, TailwindCSS for rapid UI development, DaisyUI for additional components, and Zod for TypeScript schema validation.
Features
- Sveltekit: Web framework for building fast web apps.
- Pocketbase: Self-contained User Auth, Database, Admin UI, and API documentation.
- OpenAI: Includes chatGPT 3.5-turbo & 4.0-turbo for contextually aware chatbots.
- Vercel AI SDK: Provides AI/ML models for image, text, and audio processing.
- TailwindCSS: Utility-first CSS framework for rapid UI development.
- DaisyUI: Tailwind-based component library.
- Zod: TypeScript-first schema declaration and validation.
Installation
Getting Started
- Create a directory for your Pocketbase instance and navigate to it.
- Download the latest release of Pocketbase, unzip it, and start the server.
- Log in to the Pocketbase admin console at http://localhost:8090/_/ and create a new database.
- Go to settings > Import collections, paste the contents of ./pocketbase/pb_schema.json, and click import.
Client Setup
- Clone the repo and navigate to the project directory.
- Copy .env.example and replace the values with your own.
- Install the dependencies and start the development server.
- Open your browser to http://localhost:5173 to view the app.
Summary
The Spatz template for Svelte offers a comprehensive solution for fullstack development, incorporating key features such as Sveltekit, Pocketbase, OpenAI, and more. With an easy-to-follow installation guide, developers can quickly set up their projects and start leveraging the powerful features included in the template.