sveltekit-accelerator Svelte Themes

Sveltekit Accelerator

A modern, production-ready boilerplate for building full-stack web applications with SvelteKit, featuring AI/LLM integration, authentication, and cloud deployment.

SvelteKit Accelerator โšก

A modern, production-ready boilerplate for building full-stack web applications with SvelteKit, featuring AI/LLM integration, authentication, and cloud deployment.

๐Ÿš€ Features

  • ๐ŸŽจ UI Components: Pre-configured with shadcn-svelte for beautiful, accessible components
  • ๐Ÿค– AI/LLM Integration: OpenRouter API integration for AI-powered features
  • ๐Ÿ” Authentication: Supabase Auth with secure user management
  • ๐Ÿ’พ Database & Storage: Supabase for PostgreSQL database and file storage
  • โ˜๏ธ Cloud Deployment: Configured for Cloudflare Pages deployment
  • ๐Ÿ“ TypeScript: Full type safety throughout the application
  • ๐ŸŽฏ Tailwind CSS: Utility-first CSS framework for rapid UI development
  • ๐Ÿงช Testing Ready: Pre-configured testing setup
  • ๐Ÿ“ฑ Responsive: Mobile-first design approach

๐Ÿ“‹ Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js 18+
  • npm or pnpm
  • Git

๐Ÿ› ๏ธ Quick Start

  1. Clone the repository

    git clone https://github.com/feraldolim/sveltekit-accelerator.git
    cd sveltekit-accelerator
    
  2. Install dependencies

    npm install
    
  3. Set up environment variables

    cp .env.example .env.local
    

    Then edit .env.local with your API keys and configuration.

  4. Start the development server

    npm run dev
    
  5. Open your browser Navigate to http://localhost:5173

๐Ÿ”ง Configuration

Environment Variables

Copy .env.example to .env.local and configure the following:

# OpenRouter API Configuration
OPENROUTER_API_KEY=your_openrouter_api_key

# Supabase Configuration
PUBLIC_SUPABASE_URL=your_supabase_project_url
PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key

# Application Configuration
PUBLIC_APP_URL=http://localhost:5173

๐Ÿ“š Documentation

๐Ÿ—๏ธ Project Structure

sveltekit-accelerator/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ components/     # Reusable components
โ”‚   โ”‚   โ”œโ”€โ”€ server/         # Server-side utilities
โ”‚   โ”‚   โ”œโ”€โ”€ stores/         # Svelte stores
โ”‚   โ”‚   โ””โ”€โ”€ utils/          # Utility functions
โ”‚   โ”œโ”€โ”€ routes/             # SvelteKit routes
โ”‚   โ””โ”€โ”€ app.html            # App template
โ”œโ”€โ”€ static/                 # Static assets
โ”œโ”€โ”€ wrangler.toml          # Cloudflare configuration
โ””โ”€โ”€ package.json           # Dependencies

๐Ÿš€ Deployment

This template is configured for easy deployment to Cloudflare Pages. See the Deployment Guide for detailed instructions.

Quick deploy:

npm run build
npx wrangler pages deploy ./build

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ง Support

For support, please open an issue in the GitHub repository or reach out to the community.

Top categories

Loading Svelte Themes