{"id":41650857,"url":"https://github.com/dubisdev/crtm-api","last_synced_at":"2026-01-24T16:08:33.450Z","repository":{"id":328039602,"uuid":"1114048014","full_name":"dubisdev/crtm-api","owner":"dubisdev","description":"A type-safe, lightweight API client for CRTM (Consorcio Regional de Transportes de Madrid) public transport data.","archived":false,"fork":false,"pushed_at":"2025-12-24T23:53:24.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T12:50:38.821Z","etag":null,"topics":["api-client","crtm","crtm-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dubisdev/crtm-api","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/dubisdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-10T20:33:15.000Z","updated_at":"2025-12-24T23:53:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dubisdev/crtm-api","commit_stats":null,"previous_names":["dubisdev/crtm-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dubisdev/crtm-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubisdev%2Fcrtm-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubisdev%2Fcrtm-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubisdev%2Fcrtm-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubisdev%2Fcrtm-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubisdev","download_url":"https://codeload.github.com/dubisdev/crtm-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubisdev%2Fcrtm-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28731058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":["api-client","crtm","crtm-api"],"created_at":"2026-01-24T16:08:33.021Z","updated_at":"2026-01-24T16:08:33.441Z","avatar_url":"https://github.com/dubisdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dubisdev/crtm-api\n\nA type-safe, lightweight API client for CRTM (Consorcio Regional de Transportes de Madrid) public transport data.\n\n## Features\n\n- 🚀 **Lightweight** - Minimal dependencies, tree-shakeable\n- 🔒 **Type-safe** - Full TypeScript support with runtime validation\n- 🎯 **Simple API** - Clean, intuitive interface\n- 📦 **Modular** - Import only what you need\n- ✅ **Tested** - Comprehensive test coverage\n\n## Installation\n\n```bash\nnpm install @dubisdev/crtm-api\n```\n\n## Quick Start\n\n```typescript\nimport { getStopByCode, getLineByCode, getStopTimesByStopCode } from '@dubisdev/crtm-api';\n\n// Get stop information\nconst stop = await getStopByCode('8_21044');\n\n// Get line information\nconst line = await getLineByCode('123');\n\n// Get stop times\nconst times = await getStopTimesByStopCode('8_21044');\n```\n\n## Error Handling\n\n```typescript\nimport { NotFoundError, NetworkError } from '@dubisdev/crtm-api';\n\ntry {\n  const stop = await getStopByCode('INVALID_CODE');\n} catch (error) {\n  if (error instanceof NotFoundError) {\n    console.error('Resource not found');\n  } else if (error instanceof NetworkError) {\n    console.error('Network error occurred');\n  }\n}\n```\n\n## Documentation\n\nFull API documentation is available at [https://dubisdev.github.io/crtm-api/](https://dubisdev.github.io/crtm-api/)\n\n## Development\n\n```bash\n# Install dependencies\nbun install\n\n# Run tests\nbun test\n\n# Run tests in watch mode\nbun test:watch\n\n# Run tests with coverage\nbun test:coverage\n\n# Build\nbun run build\n```\n\n## License\n\nMIT © [David Jiménez](https://github.com/dubisdev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubisdev%2Fcrtm-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubisdev%2Fcrtm-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubisdev%2Fcrtm-api/lists"}