{"id":28432238,"url":"https://github.com/skorphil/monorepo-auth-starter","last_synced_at":"2026-05-08T05:34:00.523Z","repository":{"id":242934022,"uuid":"805297422","full_name":"skorphil/monorepo-auth-starter","owner":"skorphil","description":"Authentication in monorepo starter pack","archived":false,"fork":false,"pushed_at":"2024-06-06T08:55:38.000Z","size":248,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T16:47:33.467Z","etag":null,"topics":["astrojs","authentication","lucia-auth","mongodb","mongoose","monorepo","nextjs","turborepo","turborepo-starter"],"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/skorphil.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}},"created_at":"2024-05-24T09:30:19.000Z","updated_at":"2025-02-18T07:40:08.000Z","dependencies_parsed_at":"2024-06-06T10:15:22.247Z","dependency_job_id":"79f25dd7-e968-4fc0-97fe-e97fe21c092a","html_url":"https://github.com/skorphil/monorepo-auth-starter","commit_stats":null,"previous_names":["skorphil/monorepo-auth","skorphil/monorepo-auth-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skorphil/monorepo-auth-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorphil%2Fmonorepo-auth-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorphil%2Fmonorepo-auth-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorphil%2Fmonorepo-auth-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorphil%2Fmonorepo-auth-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skorphil","download_url":"https://codeload.github.com/skorphil/monorepo-auth-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorphil%2Fmonorepo-auth-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262927977,"owners_count":23386059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["astrojs","authentication","lucia-auth","mongodb","mongoose","monorepo","nextjs","turborepo","turborepo-starter"],"created_at":"2025-06-05T16:36:07.073Z","updated_at":"2026-05-08T05:33:55.486Z","avatar_url":"https://github.com/skorphil.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lucia authentication in monorepo starter pack\nOpionated minimal implementation of shared auth between multiple packages.\nRead more in article – [Authentication in monorepo(NextJs, Astro) with Lucia and MongoDB](https://dev.to/skorphil/authentication-in-monoreponextjs-astro-with-lucia-and-mongodb-16d7)\n\n## Project overview\n- `mysite.com` – landing page built with Astro\nPublicly available\nProvides login/signup page\nRedirects authenticated users to `app.mysite.com`\n- `app.mysite.com` – web application built with NextJs (app Router)\nAvailable only for authenticated users\nProvides sign-out feature\nRedirects unauthenticated users to `mysite.com`\n\n\n### Stack\n- Astro\n- NextJs (app router)\n- Lucia-auth\n- Mongoose\n- TurboRepo\n- npm\n- dotenv\n\n\n### Monorepo structure\n```mermaid\nflowchart TB\nauth-utils \u0026 web --\u003e\ndb-utils\nweb \u0026 landing ---\u003e\nauth-utils\n```\n\n- `db-utils` - provide simple db methods to work with MongoDb. `CreateUser`, `GetUser`. These methods are used by `auth-utils`.\n- `auth-utils` - provide methods to create users and user sessions. Used by `web` and `landing`\n- `web` - web application, accessible only for authenticated users. Provides log-out function\n- `landing` - public landing page. Provides logout and login form. Inaccessible for authenticated users\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorphil%2Fmonorepo-auth-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskorphil%2Fmonorepo-auth-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorphil%2Fmonorepo-auth-starter/lists"}