{"id":44320596,"url":"https://github.com/grom-dev/tgx","last_synced_at":"2026-03-01T16:10:27.248Z","repository":{"id":229238316,"uuid":"776204563","full_name":"grom-dev/tgx","owner":"grom-dev","description":"✨ JSX runtime for composing Telegram messages.","archived":false,"fork":false,"pushed_at":"2026-01-17T06:34:53.000Z","size":540,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T17:56:27.127Z","etag":null,"topics":["jsx","telegram","telegram-bots"],"latest_commit_sha":null,"homepage":"","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/grom-dev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-22T22:27:55.000Z","updated_at":"2026-01-17T06:33:52.000Z","dependencies_parsed_at":"2024-11-15T10:52:36.012Z","dependency_job_id":"2e1e7e0f-9d15-4067-8964-f21a0cf3497f","html_url":"https://github.com/grom-dev/tgx","commit_stats":null,"previous_names":["telegum/tgx","evermake/tgx","grom-dev/tgx"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/grom-dev/tgx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grom-dev%2Ftgx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grom-dev%2Ftgx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grom-dev%2Ftgx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grom-dev%2Ftgx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grom-dev","download_url":"https://codeload.github.com/grom-dev/tgx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grom-dev%2Ftgx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29328018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"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":["jsx","telegram","telegram-bots"],"created_at":"2026-02-11T06:12:04.449Z","updated_at":"2026-03-01T16:10:27.228Z","avatar_url":"https://github.com/grom-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![tgx](tgx.png)\n\n[![npm](https://img.shields.io/npm/v/%40grom.js%2Ftgx?style=flat\u0026logo=npm\u0026logoColor=%23BB443E\u0026logoSize=auto\u0026label=Latest\u0026labelColor=%23fff\u0026color=%23BB443E)](https://www.npmjs.com/package/@grom.js/tgx)\n[![jsr](https://img.shields.io/jsr/v/%40grom/tgx?style=flat\u0026logo=jsr\u0026logoColor=%231B3646\u0026logoSize=auto\u0026label=Latest\u0026labelColor=%23F3E051\u0026color=%231B3646)](https://jsr.io/@grom/tgx)\n\n[JSX](https://facebook.github.io/jsx/) runtime for composing Telegram messages.\n\n## Installation\n\n```sh\n# Using npm\nnpm install @grom.js/tgx\n\n# Using JSR\ndeno add jsr:@grom/tgx\n```\n\nThen in your `tsconfig.json`:\n\n```jsonc\n{\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"@grom.js/tgx\" // \"@grom/tgx\" for JSR\n    // ...\n  }\n}\n```\n\n## Examples\n\nUsage with [grammY](https://grammy.dev):\n\n```jsx\nimport { Bot } from 'grammy'\nimport { renderHtml } from '@grom.js/tgx'\n\nconst Greeting = (props) =\u003e (\n  \u003c\u003eHello, \u003cb\u003e{props.name}\u003c/b\u003e!\u003c/\u003e\n)\n\nconst bot = new Bot(/* TOKEN */)\n\nbot.command('start', async (ctx) =\u003e {\n  await ctx.reply(\n    renderHtml(\u003cGreeting name={ctx.from.first_name} /\u003e),\n    { parse_mode: 'HTML' }\n  )\n})\n\nbot.start()\n```\n\nUsage with [effect-tg](https://github.com/grom-dev/effect-tg):\n\n```jsx\nimport { Content, Dialog, Send, Text } from 'effect-tg'\n\nconst Greeting = (props) =\u003e (\n  \u003c\u003eHello, \u003cb\u003e{props.name}\u003c/b\u003e!\u003c/\u003e\n)\n\nconst greet = (id, name) =\u003e Send.sendMessage({\n  dialog: Dialog.user(id),\n  content: Content.text(Text.tgx(\u003cGreeting name={name} /\u003e))\n})\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrom-dev%2Ftgx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrom-dev%2Ftgx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrom-dev%2Ftgx/lists"}