{"id":17516877,"url":"https://github.com/danmandel/template-monorepo","last_synced_at":"2026-04-12T06:33:04.496Z","repository":{"id":258080685,"uuid":"869294636","full_name":"danmandel/template-monorepo","owner":"danmandel","description":"A template monorepo for quickly creating fullstack projects.","archived":false,"fork":false,"pushed_at":"2024-11-11T03:07:10.000Z","size":1120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T22:42:46.960Z","etag":null,"topics":["apollo-client","bun","docker","eslint","graphql","hot-reloading","monorepo","nextjs","prettier","shadcdn","tailwindcss","typescript","vscode"],"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/danmandel.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-10-08T03:57:41.000Z","updated_at":"2024-11-18T22:19:57.000Z","dependencies_parsed_at":"2024-11-07T05:18:04.168Z","dependency_job_id":"7d3cacde-882a-4a64-b1bf-6be77e4e4eea","html_url":"https://github.com/danmandel/template-monorepo","commit_stats":null,"previous_names":["danmandel/template-monorepo"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/danmandel/template-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmandel%2Ftemplate-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmandel%2Ftemplate-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmandel%2Ftemplate-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmandel%2Ftemplate-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danmandel","download_url":"https://codeload.github.com/danmandel/template-monorepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmandel%2Ftemplate-monorepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31706764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apollo-client","bun","docker","eslint","graphql","hot-reloading","monorepo","nextjs","prettier","shadcdn","tailwindcss","typescript","vscode"],"created_at":"2024-10-20T08:10:15.379Z","updated_at":"2026-04-12T06:33:04.476Z","avatar_url":"https://github.com/danmandel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Template Monorepo\n\nThis is an opinionated \u0026 minimalistic template for quickly starting new projects.\n\n## Technical Decisions\n\n1. Frontend/backend folder structure:\n\n   - less nesting than other monorepo approaches.\n   - almost 0 additional configuration compared to separate frontend/backend repos.\n   - easy to swap out either frontend or backend for other, even non-typescript, tech.\n   - supports frontend/backend-specific vscode settings, linting, formatting, searching.\n\n2) Domain Driven Design (DDD) oriented backend:\n\n   - highly modular, scales well with application complexity.\n   - more intuitive folder structure than grouping by responsibility e.g. src/models, src/controllers, etc.\n\n3) Next.js (App Router) frontend:\n\n   - rapid development with file-based routing.\n   - clean, reusable components with shadcdn + tailwind.\n\n4) GraphQL \u0026 Apollo Client:\n\n   - strongly typed API + automatic GQL validation and type hints with Apollo VSCode extension.\n   - `bun codegen` generates typesafe react hooks for executing queries, mutations, and subscriptions.\n   - [TODO] dataloader for the n+1 query problem.\n\n5) Docker:\n\n   - consistent dev environment.\n   - easy deployment anywhere, can deploy frontend and backend separately if necessary.\n   - simple to scale up and down.\n\n6) ESLint, Prettier:\n\n   - standardized code style across entire the codebase.\n   - opinionated rules to enforce best practices and avoid common mistakes.\n\n7) Firebase auth:\n   - easy to implement and integrate into projects.\n\n## Development\n\nFrom the root directory: `cursor frontend \u0026\u0026 cursor backend`\nFrom the backend: `bun infra`\n\nAlternatively if you don't want to use docker, you can run `bun dev` in the frontend and backend directories.\n\nTo keep your project in sync with updates to this template, you can periodically run `bun backend/bin/sync.ts`. Though due to the fact that starting a project using a template clears the git history, there is a heightened chance of a merge conflict occuring if your project has significantly diverged from the template.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmandel%2Ftemplate-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanmandel%2Ftemplate-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmandel%2Ftemplate-monorepo/lists"}