b243fd48503ea00bb9e385851a4bdd8285a1b5bc
create-glstack
Scaffold a fullstack application with a Go backend, SvelteKit frontend, and PostgreSQL database, connected via Connect RPC.
Work in progress -- additional frontend frameworks and features are planned for future releases.
Usage
bun create glstack
What you get
A monorepo with the following structure:
services/api-- Go backend using Cobra for CLI, pgx for Postgres, and Connect RPC for the API layerapps/web-- SvelteKit frontend with shadcn-svelte, TailwindCSS, TanStack Query, and Paraglide for i18npackages/proto-- Protobuf service definitions with Buf for codegen (Go + TypeScript)packages/rpc-- Generated TypeScript Connect RPC client shared across frontend apps
Dev environment
The template includes a devenv.nix configuration that sets up:
- Go, TypeScript, Bun
- PostgreSQL with an auto-provisioned database
- File watchers for protobuf, SQL, and frontend hot reload
- Air for Go live reload
- sqlc for type-safe SQL
- dbmate for database migrations
Starter example
The generated project includes a working Todo CRUD example wired end-to-end: protobuf schema, Go service implementation, SQL queries, and a SvelteKit UI.
License
MIT
Description
Languages
Svelte
75.6%
TypeScript
18.8%
Go
3.5%
CSS
1.3%
Nix
0.4%
Other
0.4%