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.
demo-2-1080P-30FPS.mp4
- Telegram Android
- Telegram iOS
- Telegram Desktop
- Telegram WebK
- Telegram WebA
- initData
- initDataUnsafe
- version
- platform
- colorScheme
- themeParams
- isExpanded
- viewportHeight
- viewportStableHeight
- headerColor
- backgroundColor
- bottomBarColor
- isClosingConfirmationEnabled
- isVerticalSwipesEnabled
- BackButton
- MainButton
- SecondaryButton
- SettingsButton
- HapticFeedback
- CloudStorage*
- BiometricManager
- isVersionAtLeast
- setHeaderColor
- setBackgroundColor
- setBottomBarColor
- enableClosingConfirmation
- disableClosingConfirmation
- enableVerticalSwipes
- disableVerticalSwipes
- onEvent
- offEvent
- sendData*
- switchInlineQuery*
- openLink
- openTelegramLink
- openInvoice
- shareToStory
- showPopup
- showAlert
- showConfirm
- showScanQrPopup
- closeScanQrPopup
- readTextFromClipboard
- requestWriteAccess
- requestContact
- ready
- expand
- close
- themeChanged
- viewportChanged
- mainButtonClicked
- secondaryButtonClicked
- backButtonClicked
- settingsButtonClicked
- invoiceClosed
- popupClosed
- qrTextReceived
- scanQrPopupClosed
- clipboardTextReceived
- writeAccessRequested
- contactRequested
- biometricManagerUpdated
- biometricAuthRequested
- biometricTokenUpdated
- getRequestedContact*
- saveStorageValue*
- getStorageValues*
- deleteStorageValues*
- getStorageKeys*
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.
This phase has started from October 2024 and ended until January 2025.
- Setup base project and essentials
- Add support for Telegram Android and iOS platforms.
This phase is planned for early to mid 2025.
- Full compatibility with Telegram Mini Apps 2.0.
- Add support for Telegram Desktop, WebK, and WebA platforms.
- Add support for auto-updates in app and streamline release process.
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:
-
Node Package Manager: We recommend using pnpm over npm for managing dependencies, as it ensures better performance and workspace handling.
- Install pnpm globally if you haven't already:
npm install -g pnpm
- Install pnpm globally if you haven't already:
-
Code Formatting and Linting: We use Biome.js as the linter and formatter for the project.
- Install the Biome.js VSCode extension for consistent linting and formatting in your editor.
- Ensure that your code is formatted and linted before submitting a pull request (PR).
-
Tech Stack:
- The project is built with Electron, Vite, and SolidJS for a modern, fast development workflow.
-
Clone the Repository:
- Fork the repository to your account.
- Clone your forked repo:
git clone https://github.com/erfanmola/TMA-Studio.git cd TMA-Studio
-
Install Dependencies:
- Use pnpm to install all dependencies:
pnpm install
- Use pnpm to install all dependencies:
-
Development:
- Start the development server:
pnpm dev
- Start the development server:
-
Building the Project:
- Build the project for all major platforms:
- Mac:
pnpm build:mac
- Windows:
pnpm build:win
- Linux:
pnpm build:linux
- Mac:
- Build the project for all major platforms:
-
Linting and Formatting:
- Run the linter to ensure the code adheres to project standards:
pnpm lint
- Make sure your code passes all linting checks before submitting a PR.
- Run the linter to ensure the code adheres to project standards:
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: [email protected]