{"id":23896516,"url":"https://github.com/brecert/revolt-api","last_synced_at":"2026-04-18T12:02:14.901Z","repository":{"id":57676475,"uuid":"478725554","full_name":"brecert/revolt-api","owner":"brecert","description":"a typed revolt api client","archived":false,"fork":false,"pushed_at":"2022-05-04T10:17:43.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T13:40:55.371Z","etag":null,"topics":["deno","javascript","revolt","revolt-api-wrapper","types","typrescript"],"latest_commit_sha":null,"homepage":"","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/brecert.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}},"created_at":"2022-04-06T21:00:33.000Z","updated_at":"2022-05-30T19:59:08.000Z","dependencies_parsed_at":"2022-09-02T15:02:22.492Z","dependency_job_id":null,"html_url":"https://github.com/brecert/revolt-api","commit_stats":null,"previous_names":["brecert/revolt-api-gen"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Frevolt-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Frevolt-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Frevolt-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Frevolt-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brecert","download_url":"https://codeload.github.com/brecert/revolt-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240284950,"owners_count":19777196,"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":["deno","javascript","revolt","revolt-api-wrapper","types","typrescript"],"created_at":"2025-01-04T16:53:03.126Z","updated_at":"2025-11-14T12:01:47.217Z","avatar_url":"https://github.com/brecert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Revolt API\n\n[![revolt-api](https://img.shields.io/npm/v/@brecert/revolt-api)](https://www.npmjs.com/package/@brecert/revolt-api) [![deno module](https://shield.deno.dev/x/revolt_api)](https://deno.land/x/revolt_api)\n\nThis package contains typings for objects in the [Revolt API](https://developers.revolt.chat/api/) and a fully typed API request builder.\n\n# Usage\n\nYou can find more info in the [documentation](https://doc.deno.land/https://deno.land/x/revolt_api@0.3.1/mod.ts).\n\n```ts\nimport * as Revolt from \"https://deno.land/x/revolt_api/mod.ts\";\n\nconst api = new Revolt.APIClient({\n  base: \"https://api.revolt.chat\",\n  headers: {\n    \"x-bot-token\": REVOLT_TOKEN,\n    \"content-type\": \"application/json\",\n  },\n});\n\nconst config = await api.get(\"Query Node\", \"/\");\nconsole.log(`The API is running revolt ${config.revolt}`);\n\nconst me = await api.get(\"Fetch Self\", \"/users/@me\");\nconsole.log(`My ID is ${me._id}`);\n\nconst channel_id = \"some channel id\";\nawait api.post(\"Send Message\", `/channels/${channel_id}/messages`, {\n  body: {\n    content: \"Hello!\",\n  },\n});\n```\n\n# Building and Updating\n\n```console\n$ curl https://raw.githubusercontent.com/revoltchat/api/master/OpenAPI.json \u003e OpenAPI.json\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100  205k  100  205k    0     0   868k      0 --:--:-- --:--:-- --:--:--  873k\n\n$ npx openapi-typescript OpenAPI.json -o schema.ts\n✨ openapi-typescript 5.2.0\n🚀 OpenAPI.json -\u003e /revolt-api/schema.ts [417ms]\n\n$ deno run -A ./scripts/generate_routes.ts -i OpenAPI.json -o .\\routes.ts\n\n$ deno run -A ./scripts/export_types.ts -i OpenAPI.json -o .\\types.ts\n\n# build npm package\n$ deno run -A ./scripts/build_npm.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Frevolt-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrecert%2Frevolt-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Frevolt-api/lists"}