{"id":28395057,"url":"https://github.com/watchitdev/watchit-api","last_synced_at":"2025-10-08T19:45:35.420Z","repository":{"id":288327060,"uuid":"922198915","full_name":"WatchItDev/watchit-api","owner":"WatchItDev","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-25T16:54:39.000Z","size":939,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T17:45:07.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/WatchItDev.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}},"created_at":"2025-01-25T15:29:50.000Z","updated_at":"2025-06-11T17:06:15.000Z","dependencies_parsed_at":"2025-04-17T08:11:08.183Z","dependency_job_id":"8bcd582d-bb2d-45bb-b2da-61bd6c8404d3","html_url":"https://github.com/WatchItDev/watchit-api","commit_stats":null,"previous_names":["watchitdev/watchit-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WatchItDev/watchit-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchItDev%2Fwatchit-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchItDev%2Fwatchit-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchItDev%2Fwatchit-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchItDev%2Fwatchit-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WatchItDev","download_url":"https://codeload.github.com/WatchItDev/watchit-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchItDev%2Fwatchit-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262172500,"owners_count":23270028,"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":"2025-05-31T19:11:37.104Z","updated_at":"2025-10-08T19:45:30.372Z","avatar_url":"https://github.com/WatchItDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watchit‑API 🎬\n\nBackend in **TypeScript + GraphQL + Firebase** where all **social primitives are implemented off‑chain** (profiles, posts, comments, likes, etc.).\n\n---\n\n## Stack\n\n| Layer      | Tech                                                   |\n|------------|--------------------------------------------------------|\n| Gateway    | **Apollo Server 4** (GraphQL)                         |\n| Mutations  | **Firebase Cloud Functions v2** (callable + triggers)  |\n| Storage    | **Firestore** (Admin SDK)                              |\n\n---\n\n## Folder layout\n\n```\nsrc/\n├─ externals/   # Firebase + other SDK wrappers\n├─ datasources/ # Read‑only data access (Firestore)\n├─ services/    # business orchestration (calls CF)\n├─ graphql/     # SDL (Schema Definition Language) + resolvers\n└─ functions/   # Cloud Functions source\n\nfirebase.json\n.firebaserc\n```\n\n---\n\n## Quick start (local)\n\n```bash\nnpm i \u0026\u0026 npm run generate           # install root deps + generate GraphQL types\ncd src/functions \u0026\u0026 npm i           # install Cloud Functions deps\nnpm --prefix src/functions run emulate   # start functions + firestore emulators\nnpm run dev                         # start GraphQL API → http://localhost:4000/graphql\n```\n\n---\n\n## Sample operations\n\n```graphql\nmutation {\n  createUser(input: { username: \"alice\", address: \"0xAlice\" }) {\n    address\n    username\n  }\n}\n\nmutation {\n  updateUser(input: { address: \"0xAlice\", bio: \"hello\" }) {\n    bio\n  }\n}\n\nquery {\n  user(address: \"0xAlice\") {\n    username\n    bio\n  }\n}\n```\n\n---\n\n## Scripts\n\n| Root command           | Action                     |\n|------------------------|----------------------------|\n| `npm run dev`          | watch GraphQL API          |\n| `npm run generate`     | graphql-codegen            |\n| `npm run compile`      | build API to `dist/`       |\n\n| `src/functions` command | Action                  |\n|-------------------------|-------------------------|\n| `npm run build`         | compile Cloud Functions |\n| `npm run emulate`       | start local emulators   |\n\n---\n\n## Deploy\n\n```bash\ncd src/functions \u0026\u0026 run build          # compile functions\nnpx firebase deploy --only functions   # deploy functions\nnpm run compile \u0026\u0026 node dist/index.js  # run GraphQL API\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchitdev%2Fwatchit-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatchitdev%2Fwatchit-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchitdev%2Fwatchit-api/lists"}