{"id":50633405,"url":"https://github.com/kokonut27/repl-api.js","last_synced_at":"2026-06-07T00:03:48.385Z","repository":{"id":40458679,"uuid":"485554361","full_name":"kokonut27/repl-api.js","owner":"kokonut27","description":"A NodeJS Replit API package wrapped around GraphQL, returning JSON data for easy use.","archived":false,"fork":false,"pushed_at":"2022-11-18T01:07:55.000Z","size":651,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-05T20:56:42.849Z","etag":null,"topics":["api","es6","esm","graphql","javascript","json","module","node-js","nodejs","npm","package","repl","replapi","replit"],"latest_commit_sha":null,"homepage":"https://repl-api.readthedocs.io","language":"JavaScript","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/kokonut27.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-25T22:29:18.000Z","updated_at":"2022-05-20T20:29:28.000Z","dependencies_parsed_at":"2023-01-21T04:43:30.797Z","dependency_job_id":null,"html_url":"https://github.com/kokonut27/repl-api.js","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/kokonut27/repl-api.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokonut27%2Frepl-api.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokonut27%2Frepl-api.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokonut27%2Frepl-api.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokonut27%2Frepl-api.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kokonut27","download_url":"https://codeload.github.com/kokonut27/repl-api.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokonut27%2Frepl-api.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34003817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":["api","es6","esm","graphql","javascript","json","module","node-js","nodejs","npm","package","repl","replapi","replit"],"created_at":"2026-06-07T00:03:47.428Z","updated_at":"2026-06-07T00:03:48.380Z","avatar_url":"https://github.com/kokonut27.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Documentation Status](https://readthedocs.org/projects/repl-api/badge/?version=latest)](https://repl-api.readthedocs.io/en/latest/?badge=latest)\n\n# repl-api.js\n\u003e A NodeJS Replit API package wrapped around GraphQL, returning JSON data for easy use.\n\n## Contents:\n* [About](https://github.com/kokonut27/repl-api.js#about)\n* [Quickstart](https://github.com/kokonut27/repl-api.js#quickstart)\n  * [Pre-installation](https://github.com/kokonut27/repl-api.js#pre-installation)\n  * [Installation](https://github.com/kokonut27/repl-api.js#installation)\n  * [Examples](https://github.com/kokonut27/repl-api.js#examples)\n* [Usage](https://github.com/kokonut27/repl-api.js#usage)\n* [Contributing](https://github.com/kokonut27/repl-api.js#contributing)\n* [License](https://github.com/kokonut27/repl-api.js#license)\n* [Changelog](https://github.com/kokonut27/repl-api.js#changelog)\n\n## About\nThe Replit API has always been changing and hard to keep up with. Due to this, many API's such as [RayhanADev's](https://github.com/ReplAPI-it/ReplAPI.it-NodeJS) have been depreciated. However, our goal is to keep up with the API, and maintain `repl-api.js`. Replit's API allows lots of data to be accessed, and this is the objective for `repl-api.js` - to return data while keeping up with the latest updates of Replit. Queries available are:\n\n* User queries: General user data, user posts, user comments, etc.\n* Repl queries: General repl data, repl comments, etc.\n* Talk queries (otherwise known as Community): Top posts, new posts, etc.\n* And even more!\n\n`repl-api.js` was developed in NodeJS, with only ESM imports available. It was also built using `classes`, making data easy to retrieve.\n\n## Quickstart\n### Pre-installation\nIn order to use `repl-api.js`, npm must be installed before using it:\n\n```shell\nnpm install npm@latest -g\n```\n\n### Installation\nTo install the package, use npm to install it:\n\n```\nnpm install repl-api\n```\n\nThen, import it with the following code:\n\n```js\nimport Replapi from 'repl-api';\n```\n\nFinally, startup the package:\n\n```js\nconst replapi = Replapi();\nconst user = replapi.User(\"JBloves27\");\n```\n### Examples\nSimple cycles data:\n```js\nimport Replapi from 'repl-api';\n\nconst replapi = Replapi();\nconst user = replapi.User(\"JBloves27\");\n\nlet data = await user.userFull(true);\n\nconsole.log(data.karma);\n```\nFor more examples, go to [the docs](https://repl-api.readthedocs.io/en/latest/pages/examples.html).\n\n## Usage\nNow that we have everything ready, it's time to actually use the package! For example, for full user data, we can use the following code:\n\n```js\nimport Replapi from 'repl-api';\n\nconst replapi = Replapi();\nconst user = replapi.User(\"JBloves27\");\n\nlet data = await user.userFull(true);\n\nconsole.log(data);\n```\n\nThe following code *should* output something like this:\n```\n{\n  bio: 'full-stack nodejs dev | developing a package: https://github.com/kokonut27/repl-api.js/',\n  displayName: 'koko/emerald',\n  firstName: 'koko/emerald',\n  fullName: 'koko/emerald',\n  id: 3282411,\n  image: 'https://storage.googleapis.com/replit/images/1651630189148_ec097c1c5fabeddb8b257d786e732cdb.jpeg',\n  isHacker: false,\n  isLoggedIn: false,\n  isSubscribed: false,\n  isVerified: true,\n  karma: 2186,\n  lastName: null,\n  timeCreated: '2020-05-01T16:19:41.685Z',\n  url: 'https://replit.com/@JBloves27',\n  username: 'JBloves27',\n  roles: [\n    {\n      id: '3282411:self_learner',\n      name: 'self learner',\n      key: 'SELF_LEARNER',\n      tagline: null\n    },\n    {\n      id: '3282411:explorer',\n      name: 'explorer',\n      key: 'EXPLORER',\n      tagline: 'Helps test Replit beta features'\n    }\n  ],\n  languages: [\n    {\n      id: 'python3',\n      displayName: 'Python',\n      key: 'python3',\n      category: 'Practical',\n      tagline: 'A dynamic language emphasizing readability.',\n      icon: 'https://replit.com/public/images/languages/python.svg',\n      isNew: false\n    },\n    {\n      id: 'bash',\n      displayName: 'Bash',\n      key: 'bash',\n      category: 'Practical',\n      tagline: 'The classic Unix shell',\n      icon: 'https://icons.util.repl.co/bash.svg',\n      isNew: false\n    },\n    {\n      id: 'html',\n      displayName: 'HTML, CSS, JS',\n      key: 'html',\n      category: 'Web',\n      tagline: 'The languages that make up the web.',\n      ic: '/public/images/languages/web_project.svg',\n          isNew: false\n    },\n    {\n      id: 'nodejs',\n      displayName: 'Node.js',\n      key: 'nodejs',\n      category: 'Practical',\n      tagline: 'Evented I/O for V8 JavaScript.',\n      icon: 'https://replit.com/public/images/languages/nodejs.svg',\n      isNew: false\n    },\n    {\n      id: 'nix',\n      displayName: 'Nix (beta)',\n      key: 'nix',\n      category: 'Practical',\n      tagline: 'A base repl for building anything you want in any language.',\n      icon: 'https://icons.util.repl.co/bash.svg',\n      isNew: false\n    },\n    {\n      id: 'cpp',\n      displayName: 'C++',\n      key: 'cpp',\n      category: 'Practical',\n      tagline: 'A general purpose system programming language.',\n      icon: 'https://replit.com/public/images/languages/cpp.svg',\n      isNew: false\n    },\n    {\n      id: 'swift',\n      displayName: 'Swift',\n      key: 'swift',\n      category: 'Practical',\n      tagline: 'A modern general-purpose programming language from Apple.',\n      icon: 'https://replit.com/public/images/languages/swift.svg',\n      isNew: false\n    },\n    {\n      id: 'c',\n      displayName: 'C',\n      key: 'c',\n      category: 'Practical',\n      tagline: 'Low-level and cross-platform imperative language.',\n      icon: 'https://replit.com/public/images/languages/c.svg',\n      isNew: false\n    },\n    {\n      id: 'scheme',\n      displayName: 'Scheme',\n      key: 'scheme',\n      category: 'Practical',\n      tagline: 'An elegant dynamic dialect of Lisp.',\n      icon: '/public/images/languages/scheme.svg',\n      isNew: false\n    },\n    {\n      id: 'java10',\n      displayName: 'Java',\n      key: 'java10',\n      category: 'Practical',\n      tagline: 'A concurrent, class-based, statically typed object-oriented language.',\n      icon: 'https://replit.com/public/images/languages/java.svg',\n      isNew: false\n    }\n  ]\n}\n```\n\nFind more API functions [here](https://repl-api.readthedocs.io/en/latest/pages/api.html).\n\n## Contributing\nEither leave a Pull Request, an Issue, or contact me at [here](https://kokonut.vercel.app/).\n\n## License\n[MIT](https://github.com/kokonut27/repl-api.js/blob/main/LICENSE)\n\n## Changelog\n\u003e View more of the specifics at [repl-api.js/releases](https://github.com/kokonut27/repl-api.js/releases).\n\n### 0.0.0\nInitial Commit: currently holds basic User constructor functions, Community, Post, and Repls - and is expected to have many bugs.\n\n* Finished base `User` constructor\n* Finished base `Community` constructor\n* Partially finished `Post` constructor\n* Partially finished `Repls` constructor\n* Base setup functions\n* Fully working data retriever (thanks to [darkdarcool](https://github.com/darkdarcool))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokonut27%2Frepl-api.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkokonut27%2Frepl-api.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokonut27%2Frepl-api.js/lists"}