Development
Setup
Prepare a local environment for working on the Memos codebase.
You need both the backend and frontend toolchains available locally.
Core tools
- Go 1.25+
- Node.js 22+
- pnpm 10+
- Git
- additional repo tooling such as
bufwhen you work on generated API code
Setup flow
- clone the repository
- install backend and frontend dependencies
- confirm Go builds successfully
- choose SQLite first unless you specifically need MySQL or PostgreSQL testing
Typical commands
git clone https://github.com/usememos/memos.git
cd memos
go mod download
cd web
pnpm installIf you are working on protocol or generated API changes, also install the tooling required by the upstream repo for code generation and linting.