Elysia kickstart
ElysiaJS boilerplate with HTMX, Tailwind, Auth.js, Drizzle, CI. Deploy in one click to Railway or Vercel Edge Functions
Feature packed ElysiaJS boilerplate. Edge ready. Deploy with one click. The project is written primarily in TypeScript, first published in 2023. Key topics include: authjs, boilerplate, bun, docker, drizzle.
elysia-kickstart
Feature packed ElysiaJS boilerplate. Edge ready. Deploy with one click.
Taken inspiration from https://github.com/ethanniser/the-beth-stack.
📚 Features
Core
- 🏗️ TypeScript - Configured to maximize type safety
- 🐉 ElysiaJS - Fast and Bun friendly server framework
- 📐 HTMX - High power tools for HTML
- 💽 Drizzle - ORM with maximal type safety
- 🔒 Auth.js - Flexible and secure authentication
- 🔗 integrates with Drizzle to store auth data
Development
- 📏 ESLint - Consistent code standards
- ✨ Prettier - Consistent code styling
- 🎨 Tailwind CSS - Utility-first CSS framework
- 💻 VS Code configurations - Configurations for extensions
Deployment
- 🐳 Docker - (local and production) Docker-compose and Dockerfiles for running anywhere
- 🔄 GitHub Actions - Robust CI/CD
🌱 Getting started
🚀 Option 1: Clone and deploy
-
To Railway (deployed with Docker)
-
To Vercel Edge Functions (see the Railway template for required environment variables, as well as
RUNTIME=edge)
📋 Option 2: Clone and run locally
- Fork this repository (uncheck 'Copy the
mainbranch only` if you are interested in other branches / feature sets) - Clone your new repository
- Install dependencies and run the development server
-
with bun
shbun install bun run dev -
or with Docker
shdocker-compose --file docker/dev/docker-compose.yml up
⚙️ Configuration
Docker
.dockerignoredocker/- Dockerfile and docker-compose.yml for development and production
Drizzle
ESLint
GitHub Actions
.github/workflows/ci.yml- type-checking and linting (hence these errors are ignored innext.config.mjs)
HTMX
public/htmx@1.9.5.min.jstypes/htmx.d.ts- typed HTMX attributes for intellisense and autocompletion
NextAuth
src/app/api/auth/index.tssrc/app/components/auth.tsxsrc/db/schemas/auth.ts— store auth data (users, accounts, sessions, verification tokens) in databasesrc/hooks/isAuthenticated.tssrc/lib/auth.ts
Prettier
Tailwind CSS
TypeScript
tsconfig.json- configured for maximum type-safetytypes/reset.d.ts- using ts-reset to increase type-safety
Vercel Edge Functions
api/index.tsxscripts/transform-paths.ts- transforms all relative imports to absolute imports inside the src/ directoryvercel.json
VS Code
.vscode/extensions.json- recommended workspace extensions
Contributors
Showing top 1 contributor by commit count.
This article is auto-generated from syhner/elysia-kickstart via the GitHub API.Last fetched: 6/29/2026
