{"_id":"@atomazing-org/telegram-web-app","_rev":"12-183fa752926de28e3cff32fd844acdeb","name":"@atomazing-org/telegram-web-app","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@atomazing-org/telegram-web-app","version":"0.0.1","_id":"@atomazing-org/telegram-web-app@0.0.1","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"dist":{"shasum":"08c09e225379a4cae3d532eb223488d633f7fcb3","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.1.tgz","fileCount":3,"integrity":"sha512-aFPP3DpP8r6Ih3ekHwDQywxHDo6+EKANV5c0W5pC9+ozCnOEkzUnPm9aCIIqT+Bo5LRuNryb/QFKV3hrcRUUSg==","signatures":[{"sig":"MEYCIQDlDHd40lI/0IVgfxHn5lTHRJpM12HphooXiKe8F75BywIhAP5gOMeMdLpEquOoWoZ9A1oNd6scv8BiBFaMa83LUQM5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1868},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"00332422156ca66ebc79c81dc3f747428c28a636","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"whoisyeshua","email":"alien19987@gmail.com"},"_npmVersion":"10.9.0","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.3.5","@atomazing-org/tsconfig":"*"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.1_1735483760371_0.06762130971772651","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@atomazing-org/telegram-web-app","version":"0.0.2","_id":"@atomazing-org/telegram-web-app@0.0.2","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"dist":{"shasum":"be7566920b4bc85142c97ffe918d10653bf64007","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.2.tgz","fileCount":4,"integrity":"sha512-Z8rzeNHoyS+9D+oUcT06nvCsRx5/OAeGvOsMEHdcNiPFoXG0GhgptI+b0BawlHXYDttMS6ndZco8+LI1WhDB3Q==","signatures":[{"sig":"MEUCIAVbVqYsrpS7+arXuH0gMd5Mcz11d4ck+vFpy/mItS5oAiEA2HN0PHn0O8A3LObdg8epSwqTy4Tj5xqkQPk8IiRaVp0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2969},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"c5adf758e3a55ec275872e76f6826b65cd73cb9d","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"frontend-atomazing","email":"frontend@atomazing.com"},"_npmVersion":"10.9.0","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.3.5","typescript":"^5.8.3","@atomazing-org/tsconfig":"latest"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.2_1749763920256_0.18243878156453341","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@atomazing-org/telegram-web-app","version":"0.0.3","keywords":["telegram","atomazing"],"author":{"name":"whoisYeshua + MarkSinD"},"license":"MIT","_id":"@atomazing-org/telegram-web-app@0.0.3","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"homepage":"https://github.com/atomazing/telegram-web-app.git","bugs":{"url":"https://github.com/atomazing/telegram-web-app.git"},"dist":{"shasum":"8d66850c1de48800921cd6fa59ae8cf729575677","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.3.tgz","fileCount":4,"integrity":"sha512-w3Q/rk8TmYbKrBPqqV4u2Ltw8w5lPZF7k2kkS9sRwfitzEzhPJXftIMWBrCbpfYcMpIMyzf4FdSRWKYCsKG1kA==","signatures":[{"sig":"MEYCIQCHhPxte7Pq5J8eEAnVe2usuZJHKNx9wuM8NFY3eA1WkgIhAMbVRS4oUdkH7xrDayRwPGiZSpgEk5q5QVNz9hfDI61Q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3422},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"f2019021d998311f6a9be2cf24df070ae292596c","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"frontend-atomazing","email":"frontend@atomazing.com"},"repository":{"url":"git+https://github.com/atomazing/telegram-web-app.git","type":"git"},"_npmVersion":"10.9.0","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.3.5","typescript":"^5.8.3","@atomazing-org/tsconfig":"latest"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.3_1749764672730_0.7982491682388984","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@atomazing-org/telegram-web-app","version":"0.0.4","keywords":["telegram","atomazing"],"author":{"name":"whoisYeshua + MarkSinD"},"license":"MIT","_id":"@atomazing-org/telegram-web-app@0.0.4","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"homepage":"https://github.com/atomazing/telegram-web-app.git","bugs":{"url":"https://github.com/atomazing/telegram-web-app.git"},"dist":{"shasum":"283112b4020b545510cb28f0dcc727964ef5efdf","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.4.tgz","fileCount":4,"integrity":"sha512-hiaTUqlUABbGYNs5m6C1yXI4A17u7Oa4hE8axlGYMOcJGouYOlF2jqWPOA3jHT7ljoRW/h1AvVB+0EwNTdmEvw==","signatures":[{"sig":"MEYCIQD+okPU62YNEmJ2KG81j8hH4Z7ftvH2jaFPU9NqzqbeLwIhAI7q/abmiVSTAqI6gD1BsVZ7GH5LYpQklsK1VLxZX+S5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3422},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"dbc90a630a1ffb759807a70408355e89ab7dff99","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"frontend-atomazing","email":"frontend@atomazing.com"},"repository":{"url":"git+https://github.com/atomazing/telegram-web-app.git","type":"git"},"_npmVersion":"10.9.0","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.3.5","typescript":"^5.8.3","@atomazing-org/tsconfig":"latest"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.4_1749936680248_0.07748201017271472","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@atomazing-org/telegram-web-app","version":"0.0.5","keywords":["telegram","atomazing"],"author":{"name":"whoisYeshua + MarkSinD"},"license":"MIT","_id":"@atomazing-org/telegram-web-app@0.0.5","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"homepage":"https://github.com/atomazing/telegram-web-app.git","bugs":{"url":"https://github.com/atomazing/telegram-web-app.git"},"dist":{"shasum":"e4ec45ab850cf2858f60b1fb9498248a1408d53d","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.5.tgz","fileCount":4,"integrity":"sha512-PJLaxGpWTmf4neaC2PgLLtTMF2nCCTlHOz04kZoHcj+svK2DdWBzDf3TNJjET+wFxQNBiB+nB0dDrVtdE5xprA==","signatures":[{"sig":"MEUCIDwVnRaWszC6AXGZehtx9SZsTrvjdYCG6rIqwwiKuJV5AiEAm8hRuJIybY1xDqtj5gcXo9b5QxxVHrH6fCGOwRlc3pM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3711},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"a7b50911731ad19e7dab1d3f6824c991549c8486","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"frontend-atomazing","email":"frontend@atomazing.com"},"repository":{"url":"git+https://github.com/atomazing/telegram-web-app.git","type":"git"},"_npmVersion":"10.9.0","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.3.5","typescript":"^5.8.3","@atomazing-org/tsconfig":"latest"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.5_1749936888728_0.9372439322409152","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@atomazing-org/telegram-web-app","version":"0.0.7","keywords":["telegram","atomazing"],"author":{"name":"whoisYeshua + MarkSinD"},"license":"MIT","_id":"@atomazing-org/telegram-web-app@0.0.7","maintainers":[{"name":"frontend-atomazing","email":"frontend@atomazing.com"},{"name":"whoisyeshua","email":"alien19987@gmail.com"}],"homepage":"https://github.com/atomazing/telegram-web-app.git","bugs":{"url":"https://github.com/atomazing/telegram-web-app.git"},"dist":{"shasum":"af6c0df01eda89a5256148ba59cede787ad90d57","tarball":"https://registry.npmjs.org/@atomazing-org/telegram-web-app/-/telegram-web-app-0.0.7.tgz","fileCount":4,"integrity":"sha512-856LxhHVpsT8uM/jfgciCOfl/GPj7pp/KPhYpPF7TP/rFH3TRRkcasukN+dJyJr4qN+C0lDWXQMVhkCRc8gQSw==","signatures":[{"sig":"MEQCICMHWE2JuN26KC0yJ4fWksaRIp/MTZ65bcaszkADaz7zAiBaVUtX9Y/7IOTK5FhqW3XFV4E7BPP4gV+scAG4BHGbTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3505},"type":"module","engines":{"npm":">=10","node":">=22.11"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"gitHead":"bc5057807ee613b121e0d2d9917e9d1ed922e140","scripts":{"lint":"npm run lint:prettier && npm run lint:ts","build":"tsup","clean":"rimraf dist node_modules","start":"node --experimental-strip-types src/index.ts","deploy":"npm run build && npm publish","format":"npm run format:prettier","lint:ts":"tsc --noEmit","debug:ts":"tsc --showConfig","lint:prettier":"prettier \"**/*.{json,js,ts,tsx}\" --check --ignore-path ../../.prettierignore","debug:prettier":"prettier \"./src/index.ts\" --loglevel debug --ignore-path ../../.prettierignore","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"whoisyeshua","email":"alien19987@gmail.com"},"repository":{"url":"git+https://github.com/atomazing/telegram-web-app.git","type":"git"},"_npmVersion":"10.9.2","description":"Telegram Web App js wrapper","directories":{},"_nodeVersion":"22.16.0","dependencies":{"@types/telegram-web-app":"7.10.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"npm@10.9.0","devDependencies":{"tsup":"8.5.0","husky":"9.1.7","rimraf":"6.0.1","prettier":"3.5.3","typescript":"5.8.3","lint-staged":"16.1.2","@atomazing-org/tsconfig":"latest"},"_npmOperationalInternal":{"tmp":"tmp/telegram-web-app_0.0.7_1750009640546_0.14024064520818125","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-12-29T14:49:20.262Z","modified":"2026-01-30T10:27:44.863Z","0.0.1":"2024-12-29T14:49:20.597Z","0.0.2":"2025-06-12T21:32:00.424Z","0.0.3":"2025-06-12T21:44:32.906Z","0.0.4":"2025-06-14T21:31:20.423Z","0.0.5":"2025-06-14T21:34:48.916Z","0.0.19":"2025-06-15T17:30:53.358Z","0.0.6":"2025-06-15T17:32:37.574Z","0.0.7":"2025-06-15T17:47:20.749Z"},"bugs":{"url":"https://github.com/atomazing/telegram-web-app.git"},"author":{"name":"whoisYeshua + MarkSinD"},"license":"MIT","homepage":"https://github.com/atomazing/telegram-web-app.git","keywords":["telegram","atomazing"],"repository":{"url":"git+https://github.com/atomazing/telegram-web-app.git","type":"git"},"description":"Telegram Web App js wrapper","maintainers":[{"email":"ratz.nikita@yandex.ru","name":"ratznd"},{"email":"frontend@atomazing.com","name":"frontend-atomazing"},{"email":"alien19987@gmail.com","name":"whoisyeshua"},{"email":"alexanderlikha@gmail.com","name":"alexlikh"}],"readme":"# @atomazing-org/telegram-web-app\n\nA lightweight wrapper to load and initialize the [Telegram Web App](https://core.telegram.org/bots/webapps) JavaScript SDK dynamically.\n\n## Features\n\n- Loads Telegram Web App script asynchronously\n- Resolves with the `Telegram` object after the SDK is ready\n- Automatically skips loading if already present\n\n## Installation\n\n```bash\nnpm install @atomazing-org/telegram-web-app\n```\n\n## Usage\n\n```ts\nimport { Telegram } from '@atomazing-org/telegram-web-app';\n\nTelegram?.WebApp?.ready();\nconsole.log(Telegram?.WebApp?.platform);\n```\n\nThe module exports a single object `Telegram`, which is awaited internally and is ready to use upon import.\n\n## How It Works\n\n- Loads `https://telegram.org/js/telegram-web-app.js` dynamically\n- Returns the `window.Telegram` global object after the script loads successfully\n- Throws an error if the script fails to load\n\n## Example\n\n```ts\nimport { Telegram } from '@atomazing-org/telegram-web-app';\n\nTelegram.WebApp.expand();\nTelegram.WebApp.setBackgroundColor(\"#ffffff\");\n```\n\n## Build\n\n```bash\nnpm install\nnpm run build\n```\n\n## License\n\nMIT","readmeFilename":"README.md"}