{"id":26919302,"url":"https://github.com/bhavjitchauhan/khan-api","last_synced_at":"2025-04-01T21:32:50.193Z","repository":{"id":65543191,"uuid":"586437534","full_name":"bhavjitChauhan/khan-api","owner":"bhavjitChauhan","description":"A Khan Academy API client for Node.js and the browser","archived":false,"fork":false,"pushed_at":"2024-10-29T09:31:43.000Z","size":293843,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T09:51:24.823Z","etag":null,"topics":["api","khan-academy"],"latest_commit_sha":null,"homepage":"https://khan-api.bhavjit.com","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/bhavjitChauhan.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}},"created_at":"2023-01-08T05:56:14.000Z","updated_at":"2024-06-19T13:19:09.000Z","dependencies_parsed_at":"2024-01-18T00:19:28.763Z","dependency_job_id":"9446a51e-0173-45ec-a425-e13c7bc20198","html_url":"https://github.com/bhavjitChauhan/khan-api","commit_stats":{"total_commits":132,"total_committers":1,"mean_commits":132.0,"dds":0.0,"last_synced_commit":"28fb1fb2c5e5250f0d40d79386eb547b40c1eebc"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavjitChauhan%2Fkhan-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavjitChauhan%2Fkhan-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavjitChauhan%2Fkhan-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavjitChauhan%2Fkhan-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhavjitChauhan","download_url":"https://codeload.github.com/bhavjitChauhan/khan-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246713040,"owners_count":20821834,"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","khan-academy"],"created_at":"2025-04-01T21:31:23.087Z","updated_at":"2025-04-01T21:32:50.187Z","avatar_url":"https://github.com/bhavjitChauhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Khan API](https://khan-api.bhavjit.com \"Khan API website\")\n\n[![NPM version](https://img.shields.io/npm/v/@bhavjit/khan-api)](https://www.npmjs.com/package/@bhavjit/khan-api?activeTab=versions)\n![Platform support](https://img.shields.io/node/v/@bhavjit/khan-api)\n[![Try @bhavjit/khan-api on RunKit](https://badge.runkitcdn.com/@bhavjit/khan-api.svg)](https://npm.runkit.com/@bhavjit/khan-api)\n\nA Khan Academy internal API client and wrapper for Node.js and the browser.\n\n\u003cdetails open\u003e\n\n\u003csummary\u003eQuick links\u003c/summary\u003e\n\n- [Documentation](https://khan-api.bhavjit.com \"Khan API library documentation\")\n- [Reference](https://khan-api.bhavjit.com/reference \"Khan internal API reference\")\n- [Safelist](https://github.com/bhavjitChauhan/khan-api/tree/safelist \"Khan Academy safelisted GraphQL queries\")\n- [Proxy](https://github.com/bhavjitChauhan/khan-api/tree/proxy \"Khan Academy API CORS proxy\")\n\n\u003c/details\u003e\n\n## Install\n\n### Node.js\n\n#### [NPM](https://www.npmjs.com/package/@bhavjit/khan-api)\n\n```bash\nnpm i @bhavjit/khan-api\n```\n\n#### [Yarn](https://yarn.pm/@bhavjit/khan-api)\n\n```bash\nyarn add @bhavjit/khan-api\n```\n\n## Usage\n\n### Node.js\n\n#### JavaScript modules\n\n```js\nimport { Client } from '@bhavjit/khan-api'\n\nconst client = new Client()\n```\n\n#### CommonJS\n\n```js\nconst { Client } = require('@bhavjit/khan-api')\n\nconst client = new Client()\n```\n\n### Web\n\n#### JavaScript modules\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { Client } from 'https://esm.run/@bhavjit/khan-api'\n\n  const client = new Client()\n\u003c/script\u003e\n```\n\n#### Script tag\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@bhavjit/khan-api\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const client = new KhanAPI.Client()\n\u003c/script\u003e\n```\n\nSee the [examples](examples) directory for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavjitchauhan%2Fkhan-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhavjitchauhan%2Fkhan-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavjitchauhan%2Fkhan-api/lists"}