
The ultimate development and testing environment for Telegram Mini Apps. Build, test, and debug your apps locally with full support for Telegram's features, including Mini Apps 2.0 compatibility. You can the watch the full usage demo.
Local Testing: Test your Mini Apps locally without the need for HTTPS or tunneling solutions like ngrok.
Simulated Telegram Environments: Experience Telegram Android and iOS environments with support for popups, haptic feedback with virtual device shakes, QR scanners, buttons, and more.
Feature-rich Developer Console: Integrated Chrome DevTools console for debugging every simulated environment.
Mini Apps 2.0 Ready: Fully compatible with the latest Mini Apps 2.0 features and updates. (WIP, Phase 2)
Mock User Data: Simulate user interactions with customizable mock data for efficient debugging. Switch between user profiles with unique data for more robust app testing.
Event and Method Support: Supports over 90% of Telegram Mini App events and methods, with ongoing development.
Token and InitData Simulation: Sign and verify initData using a bot token, just like Telegram’s backend.
Native-looking Floating Windows: Emulates the floating Mini App window experience, akin to mobile emulators.
Familiar Developer UI: Inspired by VSCode with multiple tabs and projects, enhancing productivity.





https://github.com/user-attachments/assets/c6f3f79c-d56d-4329-86f2-8a8d7acb68ae
Note: Items specified with * require a proper MTProto client up and running to communicate with real Telegram servers. This feature is not available right now, but planned to be implemented and logged in via a real Telegram Account.
TMA Studio provides full compatibility with widely-used libraries for Telegram Mini Apps development:
Fully compatible across all platforms.
@telegram-apps/sdk and its sub-packages:
web and weba.web and weba, the library limits the origin of the iframe post message, preventing us from receiving events in the parent.$targetOrigin setting in @telegram-apps/sdk-react:
javascript
import { $targetOrigin } from "@telegram-apps/sdk";
$targetOrigin.set("*");
This change ensures seamless event communication, allowing TMA Studio to function correctly.This phase has started from October 2024 and ended until January 2025. - [x] Setup base project and essentials - [x] Add support for Telegram Android and iOS platforms.
This phase is planned for early to mid 2025. - [x] Add support for Telegram Desktop, MacOS, WebK, and WebA platforms. - [x] Add support for auto-updates in app and streamline release process. - [ ] Full compatibility with Telegram Mini Apps 2.0.
This phase is planned for mid to late 2025.
- [ ] Improve mock data customization and support real user account login.
- [ ] Support * marked features that require real user account.
We welcome contributions from the community! Whether you're fixing bugs, implementing features, or improving documentation, your help is greatly appreciated. Follow these steps and guidelines to contribute effectively:
bash
npm install -g pnpmEnsure that your code is formatted and linted before submitting a pull request (PR).
Tech Stack:
Clone your forked repo:
bash
git clone https://github.com/erfanmola/TMA-Studio.git
cd TMA-Studio
Install Dependencies:
Use pnpm to install all dependencies:
bash
pnpm install
Development:
Start the development server:
bash
pnpm dev
Building the Project:
Build the project for all major platforms:
bash
pnpm build:macbash
pnpm build:winbash
pnpm build:linuxLinting and Formatting:
bash
pnpm lint| Command | Description |
|---|---|
pnpm install |
Installs all dependencies. |
pnpm dev |
Starts the development environment. |
pnpm build |
Builds the project for production. |
pnpm lint |
Lints and formats the codebase using Biome.js. |
pnpm build:mac |
Builds the project for macOS. |
pnpm build:win |
Builds the project for Windows. |
pnpm build:linux |
Builds the project for Linux. |
This project is licensed under the MIT License.
Have questions or suggestions? Feel free to reach out!
Telegram: @Eyfan
Email: hi@erfanxd.ir
$ claude mcp add TMA-Studio \
-- python -m otcore.mcp_server <graph>