{"id":51340421,"url":"https://github.com/dootask/memos","last_synced_at":"2026-07-02T07:02:06.616Z","repository":{"id":328337983,"uuid":"1115091107","full_name":"dootask/memos","owner":"dootask","description":"Memos is a privacy-first, lightweight open-source note-taking service. This plugin integrates it into DooTask with single sign-on.","archived":false,"fork":false,"pushed_at":"2026-06-12T07:29:46.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-12T09:18:10.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dootask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T10:24:59.000Z","updated_at":"2026-06-12T07:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dootask/memos","commit_stats":null,"previous_names":["dootask/memos-plugin","dootask/memos"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dootask/memos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fmemos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fmemos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fmemos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fmemos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dootask","download_url":"https://codeload.github.com/dootask/memos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fmemos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35036553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":[],"created_at":"2026-07-02T07:02:05.829Z","updated_at":"2026-07-02T07:02:06.607Z","avatar_url":"https://github.com/dootask.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DooTask Memos Plugin\n\nA DooTask plugin that runs [Memos](https://www.usememos.com) — a privacy-first, lightweight note-taking service — with DooTask single sign-on. DooTask users are automatically registered and signed in, administrators are chosen at install time, and the whole thing is served same-origin under `/apps/memos/`.\n\n## Architecture\n\n```\nBrowser ── /apps/memos/... ──► DooTask nginx (main origin + TLS)\n                                   │  (nginx.conf strips the /apps/memos/ prefix)\n                                   ▼\n                              memos-proxy  ──►  1. /dootask-sso: verify DooTask token\n                              (this repo,        2. provision the Memos account on demand\n                               Node/TS)          3. sign in (deterministic password)\n                                   │             4. inject access token + memos_refresh cookie\n                                   ▼             5. block direct sign-in/sign-up (force SSO)\n                              memos-server  (self-built Memos image, sub-path patched, :5230, SQLite)\n```\n\nBecause Memos assumes root-path hosting, `memos-server` is a **self-built image**: it clones the pinned upstream Memos tag and applies small frontend patches (Vite `base`, React Router `basename`, Connect-RPC base URL, attachment/SSE URLs, logo/manifest) so every browser-facing URL honors the `/apps/memos/` prefix. The Go backend is unchanged — the proxy/nginx strip the prefix, so the backend keeps serving at root.\n\nToken renewal uses Memos' native `RefreshToken` via the `memos_refresh` cookie the proxy sets during SSO bootstrap (sessions last up to 30 days); the proxy does not need to intercept refresh.\n\n## Repository layout\n\n```\n.\n├── server/                       # Node/TypeScript auth proxy (image: dootask/memos)\n│   └── src/\n│       ├── index.ts              # entrypoint + admin seeding\n│       ├── server.ts             # SSO entry, auth-bypass blocks, reverse proxy\n│       ├── config.ts             # environment configuration\n│       ├── dootaskClient.ts      # DooTask token validation\n│       ├── memosClient.ts        # Memos REST API client (+ refresh-cookie capture)\n│       ├── userManager.ts        # account provisioning + admin reconciliation\n│       └── session.ts            # signed sessions + deterministic passwords\n├── Dockerfile                    # builds the dootask/memos proxy image\n├── memos-server/                 # self-built Memos image (image: dootask/memos-server)\n│   ├── Dockerfile                # clone pinned Memos + patch + build (web + go embed)\n│   └── patch.sh                  # sub-path frontend patches\n├── dootask-plugin/               # DooTask plugin package\n│   ├── config.yml\n│   ├── logo.svg\n│   ├── README.md / README_zh.md\n│   └── version/                  # renamed to the tag at release time\n│       ├── config.yml            # admin user_select + iframe menu (/apps/memos/)\n│       ├── docker-compose.yml    # memos-server + memos-proxy (no exposed ports)\n│       ├── nginx.conf            # /apps/memos/ → memos-proxy (prefix-stripping)\n│       └── CHANGELOG*.md\n├── .github/workflows/release.yml # tag push → build both images + publish to AppStore\n└── .claude/skills/release-plugin # project release skill\n```\n\n## Development\n\n```bash\n# proxy\ncd server \u0026\u0026 npm install \u0026\u0026 npm run build\n\n# self-built Memos image\ncd memos-server \u0026\u0026 docker build -t dootask/memos-server:0.29.0 --build-arg BASE_PATH=/apps/memos/ .\n```\n\n### Proxy environment variables\n\n| Variable | Default | Description |\n| --- | --- | --- |\n| `PROXY_PORT` | `7070` | Port the proxy listens on inside the container. |\n| `MEMOS_UPSTREAM` | `http://memos-server:5230` | Internal Memos service. |\n| `DOOTASK_URL` | `http://nginx` | DooTask main API base. |\n| `PUBLIC_BASE` | `/apps/memos` | Public sub-path (used for redirects/cookies). |\n| `MEMOS_ADMIN_USER_IDS` | _(empty)_ | Comma-separated DooTask user ids granted admin. |\n| `INTERNAL_SECRET` | _(derived)_ | Secret for passwords and session signing. |\n\n## Releasing\n\nPush a tag without a `v` prefix (e.g. `0.1.1`) to trigger the release workflow, or use the `release-plugin` skill. The workflow builds and pushes both `dootask/memos` and `dootask/memos-server`. To bump the embedded Memos version, change the tag in `memos-server/Dockerfile`, `dootask-plugin/version/docker-compose.yml`, and the workflow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdootask%2Fmemos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdootask%2Fmemos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdootask%2Fmemos/lists"}