{"id":26796474,"url":"https://github.com/evermake/tgx","last_synced_at":"2025-04-22T19:58:19.608Z","repository":{"id":229238316,"uuid":"776204563","full_name":"evermake/tgx","owner":"evermake","description":"JSX for Telegram messages.","archived":false,"fork":false,"pushed_at":"2025-03-26T19:51:12.000Z","size":682,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T06:44:36.383Z","etag":null,"topics":["jsx","telegram","telegram-bots"],"latest_commit_sha":null,"homepage":"https://jsr.io/@evermake/tgx","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/evermake.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":"2024-03-22T22:27:55.000Z","updated_at":"2025-03-26T19:51:15.000Z","dependencies_parsed_at":"2024-11-15T10:52:36.012Z","dependency_job_id":"ea3dfc76-77cb-4fa0-8029-d77d406e5c35","html_url":"https://github.com/evermake/tgx","commit_stats":null,"previous_names":["telegum/tgx","evermake/tgx"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evermake%2Ftgx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evermake%2Ftgx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evermake%2Ftgx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evermake%2Ftgx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evermake","download_url":"https://codeload.github.com/evermake/tgx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250315963,"owners_count":21410473,"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":["jsx","telegram","telegram-bots"],"created_at":"2025-03-29T18:18:58.425Z","updated_at":"2025-04-22T19:58:19.555Z","avatar_url":"https://github.com/evermake.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![tgx](tgx.png)\n\nImplementation of `jsx-runtime` to create Telegram messages using JSX.\n\n## Installation\n\n```sh\ndeno add jsr:@evermake/tgx\n# or\nnpx jsr add @evermake/tgx\n# or\npnpm dlx jsr add @evermake/tgx\n# or\nyarn dlx jsr add @evermake/tgx\n# or\nbunx jsr add @evermake/tgx\n```\n\nThen in your `tsconfig.json`:\n\n```jsonc\n{\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"@evermake/tgx\",\n    // ...\n  }\n}\n```\n\n## Example\n\nUsage with [grammY](https://grammy.dev):\n\n```tsx\nimport { html } from '@evermake/tgx'\nimport { Bot } from 'grammy'\n\nconst Greeting = (props: { name: string }) =\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    html(\u003cGreeting name={ctx.from.first_name} /\u003e),\n    { parse_mode: 'HTML' }\n  )\n})\n\nbot.start()\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevermake%2Ftgx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevermake%2Ftgx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevermake%2Ftgx/lists"}