{"id":19104128,"url":"https://github.com/cameronpcampbell/openblox","last_synced_at":"2026-04-04T12:45:00.124Z","repository":{"id":184520555,"uuid":"672038983","full_name":"cameronpcampbell/openblox","owner":"cameronpcampbell","description":"An API wrapper for Roblox, written in Typescript. Fully typesafe, optional caching, use any http client.","archived":false,"fork":false,"pushed_at":"2025-06-19T21:38:05.000Z","size":861,"stargazers_count":40,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-04T12:44:46.389Z","etag":null,"topics":["roblox","roblox-api","roblox-api-wrapper","roblox-apis","roblox-dev","roblox-developers","roblox-development","roblox-opencloud"],"latest_commit_sha":null,"homepage":"https://cameronpcampbell.github.io/openblox/","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/cameronpcampbell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":null},"created_at":"2023-07-28T18:56:29.000Z","updated_at":"2026-03-31T03:23:36.000Z","dependencies_parsed_at":"2024-06-04T09:30:00.252Z","dependency_job_id":"97cb4ffb-823b-4264-859c-6f46479d1f28","html_url":"https://github.com/cameronpcampbell/openblox","commit_stats":null,"previous_names":["mightypart/openblox","cameronpcampbell/openblox"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cameronpcampbell/openblox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronpcampbell%2Fopenblox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronpcampbell%2Fopenblox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronpcampbell%2Fopenblox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronpcampbell%2Fopenblox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameronpcampbell","download_url":"https://codeload.github.com/cameronpcampbell/openblox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronpcampbell%2Fopenblox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["roblox","roblox-api","roblox-api-wrapper","roblox-apis","roblox-dev","roblox-developers","roblox-development","roblox-opencloud"],"created_at":"2024-11-09T04:00:55.626Z","updated_at":"2026-04-04T12:45:00.103Z","avatar_url":"https://github.com/cameronpcampbell.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":["API Wrappers"],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/logo.svg\" height=\"70px\" width=\"auto\" height=\"auto\" /\u003e\n\n  \u003cimg height=\"10px\" width=\"100%\" src=\"https://github.com/MightyPart/openblox/blob/main/assets/invis.png\" /\u003e\n\n\n  \u003cdiv\u003e\n\n  \u003ca href=\"https://open.blox.wiki\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/docs.svg\" width=\"auto\" height=\"18px\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/dot.svg\" width=\"auto\" height=\"18px\" /\u003e\n  \u003ca href=\"https://www.npmjs.com/package/openblox\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/package.svg\" width=\"auto\" height=\"18px\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/dot.svg\" width=\"auto\" height=\"18px\" /\u003e\n  \u003ca href=\"https://github.com/MightyPart/openblox\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/MightyPart/openblox/blob/main/assets/repo.svg\" width=\"auto\" height=\"18px\" /\u003e\u003c/a\u003e\n\n  \u003c/div\u003e\n\n  A strictly typed Roblox API wrapper which supports both classic and OpenCloud endpoints.\n\n  - - -\n  \n\u003c/div\u003e\n\n\u003cimg height=\"0px\" width=\"100%\" src=\"https://github.com/MightyPart/openblox/blob/main/assets/invis.png\" /\u003e\n\nOpenblox allows your typescript (and javascript) codebase to communicate with the Roblox API extemely easily.\n\nIt wraps over 100+ Roblox API endpoints, each with its own strictly typed response data. Typings were written manually as opposed to programatically generating them to ensure the strictest possible type-safety.\n\n- Automatically handles csrf tokens.\n\n- Prettifies / formats responses from the Roblox API to be developer friendly as possible, and to maintain a consistant (see Prettification).\n- All results from Openblox methods return the underlying http response with it.\n\n- Easily iterate over paginated endpoints (see Pagination).\n\n- Each Openblox method utilises only one Roblox API endpoint to ensure clarity and efficiency in your codebase.\n\n- Scarcely utilise classes to allow for treeshaking.\n\n- - -\n\n\u003cimg height=\"0px\" width=\"100%\" src=\"./assets/invis.png\" /\u003e\n\n\u003ch3\u003eExample Usage\u003c/h3\u003e\n\n```ts\nimport \"dotenv/config\";\nimport { setDefaultOpenbloxConfig, createOpenbloxConfig } from \"openblox/config\";\nimport { UsersApi } from \"openblox/cloud\";\nimport { ClassicUsersApi } from \"openblox/classic\"; // Classic (BEDEV \u0026 BEDEV2) APIs will always be prefixed with `Classic`.\n\n/*\nNaming your Roblox Cookie environment variable `ROBLOX_COOKIE` will automatically\nimport it into your Openblox config, therefore voiding the need to set it in the config\nmanually. Similarly, naming your OpenCloud API Key environment variable `ROBLOX_CLOUD_KEY`\nwill also automatically import it into your Openblox config.\n*/\nsetDefaultOpenbloxConfig(\n    createOpenbloxConfig({\n        cookie: process.env.ROBLOX_COOKIE as any,\n        cloudKey: process.env.CLOUD_KEY as any\n    })\n)\n\n(async () =\u003e {\n\n  const { data:userInfo_classic } = await ClassicUsersApi.userInfo({ userId: 45348281 })\n\n  const { data:userInfo_cloud } = await UsersApi.userInfo({ userId: 45348281 })\n\n})\n```\n\nSee more examples [here](https://github.com/MightyPart/openblox/tree/main/examples)!\n\n- - -\n\n\u003cimg height=\"0px\" width=\"100%\" src=\"./assets/invis.png\" /\u003e\n\n\u003ch3\u003eOpenblox Methods\u003c/h3\u003e\n\nOpenblox methods all return an object containing the following\n```ts\nconst {\n  data: unknown, // The prettified / formatted data from the Roblox api endpoint (As an optimisation, prettification / formatting only happens once accessed / destructured).\n\n  response: HttpResponse, // The http response from the Roblox api endpoint. The raw unprettified data can be accessed via `response.body`.\n\n  cursors: { next: string, previous: string }, // Only exists on paginated endpoints. Contains the previous and next cursor.\n} = OpenbloxApi.method(...)\n```\n\n- - -\n\n\u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/MightyPart/openblox/blob/main/assets/metrik_white.svg\" width=\"auto\" height=\"35px\" /\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/MightyPart/openblox/blob/main/assets/metrik_black.svg\" width=\"auto\" height=\"35px\" /\u003e\n      \u003cimg alt=\"Sponsored by Metrik\" src=\"https://github.com/MightyPart/openblox/blob/main/assets/metrik_black.svg\" width=\"auto\" height=\"35px\" /\u003e\n    \u003c/picture\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronpcampbell%2Fopenblox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcameronpcampbell%2Fopenblox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronpcampbell%2Fopenblox/lists"}