{"id":31787089,"url":"https://github.com/sriganesh/atpi-at","last_synced_at":"2025-10-10T13:47:19.321Z","repository":{"id":314981355,"uuid":"1048539272","full_name":"sriganesh/atpi-at","owner":"sriganesh","description":"A lightweight JSON API service that provides direct access to AT Protocol data by prefixing atpi. to any AT Protocol URI. https://docs.atpi.at","archived":false,"fork":false,"pushed_at":"2025-09-01T15:56:05.000Z","size":102,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-29T05:54:22.978Z","etag":null,"topics":["atpi","atproto","atprotocol"],"latest_commit_sha":null,"homepage":"https://atpi.at","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/sriganesh.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T15:49:10.000Z","updated_at":"2025-09-25T07:58:01.000Z","dependencies_parsed_at":"2025-09-16T02:57:43.778Z","dependency_job_id":"c4ec4ff7-5d56-4051-9901-06885bcfe4da","html_url":"https://github.com/sriganesh/atpi-at","commit_stats":null,"previous_names":["sriganesh/atpi-at"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sriganesh/atpi-at","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sriganesh%2Fatpi-at","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sriganesh%2Fatpi-at/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sriganesh%2Fatpi-at/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sriganesh%2Fatpi-at/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sriganesh","download_url":"https://codeload.github.com/sriganesh/atpi-at/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sriganesh%2Fatpi-at/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004067,"owners_count":26083667,"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-10-10T02:00:06.843Z","response_time":62,"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":["atpi","atproto","atprotocol"],"created_at":"2025-10-10T13:47:14.323Z","updated_at":"2025-10-10T13:47:19.310Z","avatar_url":"https://github.com/sriganesh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATPI\n\nA lightweight JSON API service that provides direct access to AT Protocol data by prefixing `atpi.` to any AT Protocol URI.\n\n## Quick Start\n\n```bash\n# Get user profile\ncurl \"https://atpi.at://sri.xyz\"\n\n# Get specific post\ncurl \"https://atpi.at://sriganesh.bsky.social/app.bsky.feed.post/3lry27bsx2s2z\"\n\n# Get all posts\ncurl \"https://atpi.at://sri.xyz/app.bsky.feed.post\"\n```\n\n## Features\n\n- Direct JSON access to AT Protocol data\n- Multiple URL format support\n- Automatic handle and DID resolution\n- CORS support for web applications\n\n## URL Formats\n\nThe API supports multiple URL formats for flexibility:\n\n```bash\n# Direct AT URI\nhttps://atpi.at://sri.xyz/app.bsky.feed.post\n\n# Query parameter (browser-friendly)\nhttps://atpi.at?uri=at://sri.xyz/app.bsky.feed.post\n\n# Slash format\nhttps://atpi.at/sri.xyz/app.bsky.feed.post\n```\n\n## Usage Examples\n\n### cURL with jq\n\n```bash\n# Get profile and format with jq\ncurl -s \"https://atpi.at://sri.xyz\" | jq '.displayName'\n\n# Get recent posts\ncurl -s \"https://atpi.at://sri.xyz/app.bsky.feed.post?limit=5\" | \\\n  jq '.records[].value.text'\n```\n\n## API Reference\n\n### Endpoints\n\n- **Profile**: `https://atpi.at://[handle-or-did]`\n- **Collection**: `https://atpi.at://[handle-or-did]/[collection]`\n- **Record**: `https://atpi.at://[handle-or-did]/[collection]/[rkey]`\n\n### Query Parameters\n\n- `limit` - Number of records to return (max 100, default 50)\n- `cursor` - Pagination cursor from previous response\n\n**Note**: Query parameters only work with API clients (curl, code), not browsers.\n\n### Response Format\n\nThe API returns raw AT Protocol data without any wrapper. \n\n### Rate Limiting\n\nAll responses include rate limit headers:\n- `X-RateLimit-Limit` - Requests allowed per window\n- `X-RateLimit-Remaining` - Requests remaining\n- `X-RateLimit-Reset` - Window reset timestamp\n\n### Error Handling\n\nErrors return structured JSON with helpful debugging information:\n\n```json\n{\n  \"error\": {\n    \"code\": \"HANDLE_NOT_FOUND\",\n    \"message\": \"Handle could not be resolved to a DID\",\n    \"details\": { \"handle\": \"unknown.handle\" }\n  },\n  \"status\": 404,\n  \"requestId\": \"abc123\",\n  \"timestamp\": \"2025-07-15T10:30:00.000Z\"\n}\n```\n\n## Browser Usage\n\nWhen accessed from a browser, ATPI automatically redirects to a query parameter format for better compatibility:\n\n- Request: `https://atpi.at://sri.xyz`\n- Redirects to: `https://atpi.at?uri=at://sri.xyz`\n\n\n## License\n\nMIT License - see LICENSE file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsriganesh%2Fatpi-at","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsriganesh%2Fatpi-at","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsriganesh%2Fatpi-at/lists"}