{"id":16943135,"url":"https://github.com/das7pad/overleaf-go","last_synced_at":"2026-03-01T03:33:19.502Z","repository":{"id":227399354,"uuid":"396463909","full_name":"das7pad/overleaf-go","owner":"das7pad","description":"Golang port of Overleaf","archived":false,"fork":false,"pushed_at":"2025-04-18T11:13:40.000Z","size":5340,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T00:41:08.709Z","etag":null,"topics":["golang","overleaf","pgx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/das7pad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-15T19:14:29.000Z","updated_at":"2025-04-18T11:13:45.000Z","dependencies_parsed_at":"2024-03-13T06:28:30.598Z","dependency_job_id":"58dc36bc-ca61-4dc1-8c95-410816e3c269","html_url":"https://github.com/das7pad/overleaf-go","commit_stats":null,"previous_names":["das7pad/overleaf-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/das7pad/overleaf-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das7pad%2Foverleaf-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das7pad%2Foverleaf-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das7pad%2Foverleaf-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das7pad%2Foverleaf-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/das7pad","download_url":"https://codeload.github.com/das7pad/overleaf-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/das7pad%2Foverleaf-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","overleaf","pgx"],"created_at":"2024-10-13T21:13:44.454Z","updated_at":"2026-03-01T03:33:19.490Z","avatar_url":"https://github.com/das7pad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overleaf-Go\n\nWelcome to the Golang port of [Overleaf](https://github.com/overleaf/overleaf)!\n\nThis repository is a monorepo for all the backend services and other useful\ncommand line utils.\nThe frontend code remains in a [fork of the Node.js monorepo](\nhttps://github.com/das7pad/overleaf-node).\n\n## Highlights compared to the original Node.js implementation\n\n- The backend code is written in a statically typed language\n- Monolith-first approach, eliminating latency overhead and network chatter --\n  just run this single binary, and you are good (compiles can still be scaled\n  horizontally, other components as well - but they are self-contained and\n  do not expose internal APIs on the network)\n- Mongodb was replaced with PostgreSQL (an automated data migration exists via\n  `cmd/m2pq`, you can find a mongodb implementation and edgedb implementation\n  in the git history too)\n- Postgres enables single round-trip data fetching for complex pages like the\n  project dashboard or the project editor page\n- Postgres enables atomic updates to the filetree and strong unique constrains\n  inside the tree\n- No admin capabilities in the web app (command line utils exist instead)\n- Highly optimized compile process (\u003c200ms are possible for incremental\n  compiles, \u003c20ms for synctex aka navigating between code/PDF location, zero\n  content is fetched from Postgres for incremental compiles)\n- Homegrown real-time service with minimal overhead for connection startup\n  (zero server round trips inside the websocket for \"joining\" a project)\n- JWT based authentication and authorization for many endpoints (epochs in the\n  DB enable invalidation of tokens ahead of their expiry)\n- Highly optimized document updating process (merged redis keys reduce redis\n  calls by an order of magnitude, re-using of already fetched content for\n  processing multiple updates and flushing them all the way to history/DB)\n- Worker-stealing for spellchecker (this allows less popular languages to\n  take over idle worker from a more popular language)\n- Chaining of network proxies for fetching external resources (multiple hops\n  between proxies allow stronger firewalling of services, e.g. hop to local\n  service and then hop to external cloud -- only that local service needs\n  internet access)\n- Stronger CSP and zero inline scripts in HTML templates\n- Minify and compile HTML templates at boot-time in well under 1s\n- Caching for documentation content and images\n- Website translations on a single domain\n- No local filesystem backend for storing binary files (all major providers\n  expose an S3 compatible API today and min.io can be used for self-hosting)\n\n## Getting started\n\nThere are little to no run-time defaults and strict validation of options\nis in place for flagging missed/invalid directives in your config.\n\nYou can use the config generator which has opinionated options and\nauto-detection for Docker details (rootful, rootless, Mac).\n\nWith Golang installed and docker-compose v2:\n\n```shell\ngo run ./cmd/config-generator | tee .env\ndocker compose up\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e Without Golang installed \u003c/summary\u003e\n\n---\n\n- Without Golang installed on Linux and docker-compose v2:\n\n  ```shell\n  docker run --rm -v `pwd`:`pwd` -w `pwd` golang:1.24.2 \\\n    go build -tags osusergo,netgo ./cmd/config-generator\n  ./config-generator | tee .env\n  docker compose up\n  ```\n\n- Without Golang installed on an Intel based Mac and docker-compose v2:\n\n  ```shell\n  docker run --rm -v `pwd`:`pwd` -w `pwd` \\\n    -e GOOS=darwin -e GOARCH=amd64 golang:1.24.2 \\\n    go build -tags osusergo,netgo ./cmd/config-generator\n  ./config-generator | tee .env\n  docker compose up\n  ```\n\n- Without Golang installed on a M1/M2 based Mac and docker-compose v2:\n\n  ```shell\n  docker run --rm -v `pwd`:`pwd` -w `pwd` \\\n    -e GOOS=darwin -e GOARCH=arm64 golang:1.24.2 \\\n    go build -tags osusergo,netgo ./cmd/config-generator\n  ./config-generator | tee .env\n  docker compose up\n  ```\n\n---\n\u003c/details\u003e\n\n\u003e Note: For more advanced usages (e.g. email delivery), see\n\u003e `$ go run ./cmd/config-generator --help` or `$ ./config-generator --help`.\n\nDocker-compose will build all the images, binaries and frontend assets, run\nthe minio setup, create the postgres schema and finally start it all up!\n\nThe first startup may take a while to complete.\nWatch out for a message that says \"Setup finished!\".\n\nYou can now open http://localhost:8080/register in your favorite browser\nand create your first account!\n\n\u003e Tip: Use `$ docker compose up --detach` to keep the services running in the\n\u003e background.\n\nOptional: Build a TeXLive Docker image with qpdf for optimized PDF download.\n\n```shell\nbin/build_texlive_docker_image.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdas7pad%2Foverleaf-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdas7pad%2Foverleaf-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdas7pad%2Foverleaf-go/lists"}