{"id":13801106,"url":"https://github.com/MTKruto/MTKruto","last_synced_at":"2025-05-13T11:30:52.501Z","repository":{"id":163237160,"uuid":"622257063","full_name":"MTKruto/MTKruto","owner":"MTKruto","description":"Cross-runtime JavaScript library for building Telegram clients","archived":false,"fork":false,"pushed_at":"2025-05-08T14:41:32.000Z","size":4823,"stargazers_count":116,"open_issues_count":2,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T04:02:24.089Z","etag":null,"topics":["bun","deno","mtproto","nodejs","telegram"],"latest_commit_sha":null,"homepage":"https://mtkru.to","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MTKruto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2023-04-01T15:25:03.000Z","updated_at":"2025-05-11T23:12:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"aed57cb1-d1ae-448b-8179-d445c8354d3c","html_url":"https://github.com/MTKruto/MTKruto","commit_stats":{"total_commits":1155,"total_committers":8,"mean_commits":144.375,"dds":"0.18181818181818177","last_synced_commit":"8a50ffc04062b3bb31647c4abadcadc6808d4b3d"},"previous_names":[],"tags_count":287,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTKruto%2FMTKruto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTKruto%2FMTKruto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTKruto%2FMTKruto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTKruto%2FMTKruto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MTKruto","download_url":"https://codeload.github.com/MTKruto/MTKruto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932767,"owners_count":21986445,"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":["bun","deno","mtproto","nodejs","telegram"],"created_at":"2024-08-04T00:01:19.538Z","updated_at":"2025-05-13T11:30:52.492Z","avatar_url":"https://github.com/MTKruto.png","language":"TypeScript","funding_links":[],"categories":["Bots","TypeScript","Modules"],"sub_categories":["Bot Libs","Social Platform APIs"],"readme":"\u003cdiv align=\"center\"\u003e\n\n# MTKruto\n\nCross-runtime JavaScript library for building Telegram clients\n\n###### [Documentation](https://mtkruto.deno.dev) / [API Reference](https://deno.land/x/mtkruto/mod.ts) / [Discussion Chat](https://t.me/MTKrutoChat) / [License](#license)\n\n\u003c/div\u003e\n\n### Key Features\n\n- **Easy-to-use.** Provides high-level [methods](https://mtkruto.deno.dev/methods) and [types](https://mtkruto.deno.dev/types) for convenience.\n- **Cross-runtime.** Supports Node.js, Deno, browsers, and Bun.\n- **Type-safe.** Written in TypeScript with accurate typings.\n- **Made for the Web.** Leverages Web APIs.\n- **Unopinionated.** No hidden behaviors.\n- **Extensible.** Highly customizable.\n\n\u003e Note: MTKruto has not reached version 1.0.0 yet. While it can run in production, we currently do not recommend depending on it for critical projects.\n\n## Get Started\n\n### Node.js\n\n```ts\nconst { Client, getRandomId } = require(\"@mtkruto/node\"); // npm install @mtkruto/node\n\nconst client = new Client();\nawait client.connect();\n\nconst pong = await client.invoke({ _: \"ping\", ping_id: getRandomId() });\nconsole.debug(pong);\n```\n\n### Deno\n\n```ts\nimport { Client, getRandomId } from \"https://deno.land/x/mtkruto/mod.ts\";\n\nconst client = new Client();\nawait client.connect();\n\nconst pong = await client.invoke({ _: \"ping\", ping_id: getRandomId() });\nconsole.debug(pong);\n```\n\n### Browsers\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { Client, getRandomId } from \"https://esm.sh/jsr/@mtkruto/mtkruto\";\n\n  const client = new Client();\n  await client.connect();\n\n  const pong = await client.invoke({ _: \"ping\", ping_id: getRandomId() });\n  console.debug(pong);\n\u003c/script\u003e\n```\n\n### Bun\n\n```ts\nimport { Client, getRandomId } from \"@mtkruto/mtkruto\"; // bun add @mtkruto/node\n\nconst client = new Client();\nawait client.connect();\n\nconst pong = await client.invoke({ _: \"ping\", ping_id: getRandomId() });\nconsole.debug(pong);\n```\n\n## License\n\nMTKruto is made open-source under the GNU Lesser General Public License version 3, or at your option, any later version. Refer to [COPYING](./COPYING) and [COPYING.LESSER](./COPYING.LESSER) for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMTKruto%2FMTKruto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMTKruto%2FMTKruto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMTKruto%2FMTKruto/lists"}