{"id":23982964,"url":"https://github.com/sst/monorepo-template","last_synced_at":"2025-09-13T13:31:48.484Z","repository":{"id":249294116,"uuid":"831120010","full_name":"sst/monorepo-template","owner":"sst","description":"SST v3 monorepo template","archived":false,"fork":false,"pushed_at":"2025-01-23T20:04:47.000Z","size":24,"stargazers_count":90,"open_issues_count":2,"forks_count":20,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-08T01:11:05.419Z","etag":null,"topics":["monorepo","sst"],"latest_commit_sha":null,"homepage":"https://sst.dev/docs/set-up-a-monorepo","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sst.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}},"created_at":"2024-07-19T17:52:27.000Z","updated_at":"2025-06-06T18:21:19.000Z","dependencies_parsed_at":"2024-08-21T01:25:35.514Z","dependency_job_id":null,"html_url":"https://github.com/sst/monorepo-template","commit_stats":null,"previous_names":["sst/monorepo-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sst/monorepo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fmonorepo-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fmonorepo-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fmonorepo-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fmonorepo-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sst","download_url":"https://codeload.github.com/sst/monorepo-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sst%2Fmonorepo-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274969214,"owners_count":25383116,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"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":["monorepo","sst"],"created_at":"2025-01-07T12:00:53.645Z","updated_at":"2025-09-13T13:31:48.472Z","avatar_url":"https://github.com/sst.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Monorepo Template\n\nA template to create a monorepo SST v3 project. [Learn more](https://sst.dev/docs/set-up-a-monorepo).\n\n## Get started\n\n1. Use this template to [create your own repo](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template).\n\n2. Clone the new repo.\n\n   ```bash\n   git clone \u003cREPO_URL\u003e MY_APP\n   cd MY_APP\n   ```\n\n3. Rename the files in the project to the name of your app.\n\n   ```bash\n   npx replace-in-file '/monorepo-template/g' 'MY_APP' '**/*.*' --verbose\n   ```\n\n4. Deploy!\n\n   ```bash\n   npm install\n   npx sst deploy\n   ```\n\n5. Optionally, enable [_git push to deploy_](https://sst.dev/docs/console/#autodeploy).\n\n## Usage\n\nThis template uses [npm Workspaces](https://docs.npmjs.com/cli/v8/using-npm/workspaces). It has 3 packages to start with and you can add more it.\n\n1. `core/`\n\n   This is for any shared code. It's defined as modules. For example, there's the `Example` module.\n\n   ```ts\n   export module Example {\n     export function hello() {\n       return \"Hello, world!\";\n     }\n   }\n   ```\n\n   That you can use across other packages using.\n\n   ```ts\n   import { Example } from \"@aws-monorepo/core/example\";\n\n   Example.hello();\n   ```\n\n   We also have [Vitest](https://vitest.dev/) configured for testing this package with the `sst shell` CLI.\n\n   ```bash\n   npm test\n   ```\n\n2. `functions/`\n\n   This is for your Lambda functions and it uses the `core` package as a local dependency.\n\n3. `scripts/`\n\n    This is for any scripts that you can run on your SST app using the `sst shell` CLI and [`tsx`](https://www.npmjs.com/package/tsx). For example, you can run the example script using:\n\n   ```bash\n   npm run shell src/example.ts\n   ```\n\n### Infrastructure\n\nThe `infra/` directory allows you to logically split the infrastructure of your app into separate files. This can be helpful as your app grows.\n\nIn the template, we have an `api.ts`, and `storage.ts`. These export the created resources. And are imported in the `sst.config.ts`.\n\n---\n\n**Join our community** [Discord](https://sst.dev/discord) | [YouTube](https://www.youtube.com/c/sst-dev) | [X.com](https://x.com/SST_dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsst%2Fmonorepo-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsst%2Fmonorepo-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsst%2Fmonorepo-template/lists"}