This is a template application I use frequently to spin simple applications up quickly. The stack is essentially:
DB: Sqlite (schema managed by Atlas)
Backend: Golang
Frontend: Svelte (in Typescript)
RPC API: Twirp
The golang backend implements the twirp API server and also serves static FE files (index.html, css, js, etc). The protocol buffer API definition generates both go code for the server implementation and the client-side typescript code the frontend to use. The sqlite db is replicated to S3 (in production) by litestream.
How to deploy
TODO
Things I'd like to improve
Serve static files via the go static file server without giving up Hot Module Replacement, so that you don't have to use the node webserver in development.