{"id":13409917,"url":"https://github.com/ton-community/twa-template","last_synced_at":"2025-05-07T18:06:35.140Z","repository":{"id":59893394,"uuid":"539603059","full_name":"ton-community/twa-template","owner":"ton-community","description":"Boilerplate starter template for a new Telegram Web App (TWA) interacting with the TON blockchain","archived":false,"fork":false,"pushed_at":"2023-10-20T13:13:23.000Z","size":3969,"stargazers_count":160,"open_issues_count":5,"forks_count":80,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-07-31T20:39:36.119Z","etag":null,"topics":["hacktoberfest"],"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/ton-community.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":"2022-09-21T17:16:51.000Z","updated_at":"2024-07-31T20:39:36.120Z","dependencies_parsed_at":"2024-06-12T15:03:44.421Z","dependency_job_id":null,"html_url":"https://github.com/ton-community/twa-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ton-community%2Ftwa-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ton-community%2Ftwa-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ton-community%2Ftwa-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ton-community%2Ftwa-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ton-community","download_url":"https://codeload.github.com/ton-community/twa-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931480,"owners_count":21827110,"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":["hacktoberfest"],"created_at":"2024-07-30T20:01:04.040Z","updated_at":"2025-05-07T18:06:35.082Z","avatar_url":"https://github.com/ton-community.png","language":"TypeScript","funding_links":[],"categories":["🔌 Core Integrations"],"sub_categories":["Telegram Web Apps (TWAs)"],"readme":"# twa-template\n\n\u003e Starter template for a new TWA interacting with the TON blockchain\n\n# Overview\n\nThe project is highly-opinionated, and there are many other alternate routes it could have taken. Some examples:\n\n- Supports Ton Connect 2 wallets\n- Uses vite with react (alternative to create-react-app)\n- Uses the `ton` npm package\n\n# Prerequesities\n\n- Node.js v16 (other versions may work, needs more testing)\n- A TON Connect compatible wallet (e.g. [Tonkeeper](https://tonkeeper.com/))\n\n# What does this repo contain?\n\n- A react-based TWA-ready app, interacting with TON\n- Github actions set to deploy app to github pages\n- A script to connect a telegram bot to the deployed app\n\n# How to use\n\n1. Create a template from this repo with the \"Use this template\" button\n\n   1. Choose a name for your repo\n   2. `**IMPORTANT!!**` mark \"Include all branches\", otherwise github pages deployment will not work.\n      ![image](https://user-images.githubusercontent.com/5641469/191731317-14e742fd-accb-47d4-a794-fad01148a377.png)\n\n2. Clone this repo and run `yarn`\n\n3. Create a new bot with [botfather](https://t.me/botfather)\n   1. Type `/newbot`\n   2. Choose a name for your bot, e.g. `My Ton TWA`\n   3. Choose a username for your bot, e.g. `my_ton_twa_482765_bot`\n   4. Take note of the access token, e.g. `5712441624:AAHmiHvwrrju1F3h29rlVOZLRLnv-B8ZZZ`\n   5. Run `yarn configbot` to link your bot to the webapp\n\n# Development\n\n1. Run `npm run dev` and edit the code as needed\n2. On push to the `main` branch, the app will be automatically deployed via github actions.\n\n# Roadmap\n\n- [ ] Jetton transfer support\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fton-community%2Ftwa-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fton-community%2Ftwa-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fton-community%2Ftwa-template/lists"}