{"id":15697425,"url":"https://github.com/jonahsnider/frc-colors.com","last_synced_at":"2025-05-07T08:30:26.086Z","repository":{"id":190369948,"uuid":"682384647","full_name":"jonahsnider/frc-colors.com","owner":"jonahsnider","description":"A web app \u0026 API to get the team colors for an FRC team's logo.","archived":false,"fork":false,"pushed_at":"2025-05-01T03:19:20.000Z","size":4465,"stargazers_count":10,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T03:24:59.191Z","etag":null,"topics":["api","frc","nextjs"],"latest_commit_sha":null,"homepage":"https://frc-colors.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonahsnider.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,"zenodo":null},"funding":{"github":["jonahsnider"],"patreon":"jonahsnider","open_collective":null,"ko_fi":"jonahsnider","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-08-24T04:03:08.000Z","updated_at":"2025-05-01T03:19:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"62620131-891f-4ea3-805b-1490219c39cd","html_url":"https://github.com/jonahsnider/frc-colors.com","commit_stats":null,"previous_names":["jonahsnider/frc-colors","jonahsnider/frc-colors.com"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Ffrc-colors.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Ffrc-colors.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Ffrc-colors.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonahsnider%2Ffrc-colors.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonahsnider","download_url":"https://codeload.github.com/jonahsnider/frc-colors.com/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252842344,"owners_count":21812654,"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":["api","frc","nextjs"],"created_at":"2024-10-03T19:19:27.459Z","updated_at":"2025-05-07T08:30:26.058Z","avatar_url":"https://github.com/jonahsnider.png","language":"TypeScript","funding_links":["https://github.com/sponsors/jonahsnider","https://patreon.com/jonahsnider","https://ko-fi.com/jonahsnider"],"categories":[],"sub_categories":[],"readme":"# FRC Colors\n\n**[frc-colors.com](https://frc-colors.com)**\n\nA web app \u0026 API to get the primary \u0026 secondary/accent colors for an FRC team's logo.\n\nAutomatically extracts colors from team avatars uploaded to FIRST if verified colors aren't stored in our database.\n\n## API Usage\n\n### Base URL\n\nThe API is publicly available at `https://api.frc-colors.com`.\n\n### `GET /v1/team/:teamNumber`\n\nGet the colors for a team by number.\n\n#### Example\n\n`GET /v1/team/581`\n\n```json\n{\n\t\"teamNumber\": 581,\n\t\"colors\": {\n\t\t\"primaryHex\": \"#591616\",\n\t\t\"secondaryHex\": \"#e86d38\",\n\t\t\"verified\": true\n\t}\n}\n```\n\n### `GET /v1/team`\n\nGet the colors for several teams by number.\n\n#### Example\n\n`GET /v1/team?team=581\u0026team=751\u0026team=9408`\n\n```json\n{\n\t\"teams\": {\n\t\t\"581\": {\n\t\t\t\"teamNumber\": 581,\n\t\t\t\"colors\": {\n\t\t\t\t\"primaryHex\": \"#591616\",\n\t\t\t\t\"secondaryHex\": \"#e86d38\",\n\t\t\t\t\"verified\": true\n\t\t\t}\n\t\t},\n\t\t\"751\": {\n\t\t\t\"teamNumber\": 751,\n\t\t\t\"colors\": null\n\t\t},\n\t\t\"9408\": {\n\t\t\t\"teamNumber\": 9408,\n\t\t\t\"colors\": {\n\t\t\t\t\"primaryHex\": \"#1d2e3b\",\n\t\t\t\t\"secondaryHex\": \"#ffffff\",\n\t\t\t\t\"verified\": false\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n### `GET /v1/event/:eventCode`\n\nGet the colors for all teams at an event.\n\n#### Example\n\n`GET /v1/event/2023cc`\n\nSame response format as `GET /v1/team`.\n\n### `GET /v1/team?all`\n\nGet the colors for all teams.\n\n#### Example\n\n`GET /v1/team?all`\n\nSame response format as `GET /v1/team`.\n\n## Development\n\nFRC Colors is built with [Next.js](https://nextjs.org/) and uses [Tailwind CSS](https://tailwindcss.com/) for frontend styling.\n\nThe backend is built in TypeScript and uses [tRPC](https://trpc.io/) for internal functionality, and [a minimal HTTP server](https://hono.dev/) for the public API.\n\nIt uses a PostgreSQL database via [Drizzle ORM](https://orm.drizzle.team/) for persisting data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahsnider%2Ffrc-colors.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonahsnider%2Ffrc-colors.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonahsnider%2Ffrc-colors.com/lists"}