Skip to content

Pick your stack ​

You make three choices when you create a project. You can't easily change them later, so here's what each one means.

Backend ​

ChooseIf
ExpressYou write JavaScript or TypeScript and want the most common choice. Start here if you're unsure.
FastifyYou write TypeScript and already like Fastify.
GinYou write Go.

Database ​

ChooseIf
SQLiteYou're learning or trying things out. It's a single file and needs nothing installed. The guides use it.
PostgreSQLYou're building something real. It's the best-tested choice.
MySQLYour team or host already uses MySQL or MariaDB.
MongoDBYou already use MongoDB.
MemoryYou only want to look around. Everything is lost when the server stops, and you can't add your own tables.

SQLite runs as a single process, so before you run several copies of your server, move to PostgreSQL, MySQL or MongoDB.

Frontend ​

ChooseIf
NoneYou only need an API, or you'll build the frontend separately.
React or VueYou want sign-in, sign-up, password reset and account pages ready to use.

With a frontend, your project has two folders: server/ for the API and client/ for the pages. The guides point out where that changes a path.

What to install first ​

ForYou need
Express or FastifyNode.js 22.18 or newer. Check with node --version.
GinGo 1.26 or newer, and Node.js 22.18 or newer to run the selfauth command
PostgreSQL, MySQL or MongoDBA running database server and an empty database. SQLite needs nothing.

Your guide ​

Each guide builds the same small app from start to finish: a notes app where people save notes and read their own, and admins can read everyone's. Pick yours:

SelfAuth is MIT licensed. Generated code is also offered under 0BSD.