{"id":22153357,"url":"https://github.com/timscodebase/api-fun","last_synced_at":"2025-03-24T13:42:50.102Z","repository":{"id":61058154,"uuid":"546745402","full_name":"timscodebase/API-Fun","owner":"timscodebase","description":"A monorepo full of fun API examples.  Built with Sveltekit ","archived":false,"fork":false,"pushed_at":"2022-10-08T18:55:33.000Z","size":5015,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T05:17:44.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/timscodebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-06T15:18:08.000Z","updated_at":"2022-10-08T18:55:38.000Z","dependencies_parsed_at":"2022-10-09T10:01:17.814Z","dependency_job_id":null,"html_url":"https://github.com/timscodebase/API-Fun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"webrune-tim/monorepo-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2FAPI-Fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2FAPI-Fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2FAPI-Fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2FAPI-Fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timscodebase","download_url":"https://codeload.github.com/timscodebase/API-Fun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245284062,"owners_count":20590302,"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":[],"created_at":"2024-12-02T01:18:07.619Z","updated_at":"2025-03-24T13:42:50.082Z","avatar_url":"https://github.com/timscodebase.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Monorepo Starter\n\nThis is a simple monorepo starter for a project that has multiple packages. It uses [PnPm](https://pnpm.io/) for efficiency and speed\n\nThe code came mainly from Scott Tolinski's [Monorepos with Pnpm](https://leveluptutorials.com/tutorials/monorepos-with-pnpm) tutorial.\n\n---\n\n## How to use\n\n1) Click the green \"Use this template\" button above to create a new repo from this template\n2) Name your new monorepo\n3) Enjoy!\n\nThe `packages` folder is where you'll put your packages, duh. A package can be anything from a frontend framework to a backend framework to a library to a CLI tool. It's up to you!\n\n### Scripts\n\n```json\n  \"scripts\": {\n    \"start:main\": \"pnpm -F @project-name/main start\",\n    \"start:second\": \"pnpm -F @project-name/second start\",\n    \"start\": \"pnpm -r start\",\n    \"update:all\": \"pnpm -r update -i -L\",\n    \"clean\": \"find ./ -name node_modules -type d -exec rm -rf {} +\"\n  },\n```\n\n- `start:main` - starts the main package\n- `start:second` - starts the second package\n- `start` - starts both/all packages\n- `update:all` - recursively updates all dependencies for all packages\n- `clean` - removes all `node_modules` folders\n\n### How to add new dependencies\n\n```bash\n  # Add a new package\n  pnpm -F @project-name/second add just-snake-case@3.0.0\n\n  # Add a new dependency to the main package (the root package) - rarely needed\n  pnpm add -w just-kebab-case\n```\n\n### How to add a new package\n\nSimply create a new folder in the `packages` folder and add run `pnpm init` in that folder.\n\n1) Create a new folder in the `packages` folder\n2) Run `pnpm init` in that folder\n3) Optionally, duplicate `start:second` in the root `package.json` and change the name to the new package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimscodebase%2Fapi-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimscodebase%2Fapi-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimscodebase%2Fapi-fun/lists"}