BastyonBastyon
  • Get Started

    • Getting Started
    • Easy Node Setup Guide
    • Full Node Setup Guide
  • Monetization

    • Bastyon Monetization Guide
  • Platform Overview

    • Platform Overview
    • Contributing to Bastyon
  • Blockchain Node

    • Getting Started
    • Source Code
    • Building
    • Usage
    • RPC
  • API

    • Introduction
    • Get Started
    • RPC
    • MiniApps
  • Mini Apps

    • Getting Started
    • Permissions
    • SDK
  • Barteron

    • Barteron APIs
  • English
  • Русский
  • Get Started

    • Getting Started
    • Easy Node Setup Guide
    • Full Node Setup Guide
  • Monetization

    • Bastyon Monetization Guide
  • Platform Overview

    • Platform Overview
    • Contributing to Bastyon
  • Blockchain Node

    • Getting Started
    • Source Code
    • Building
    • Usage
    • RPC
  • API

    • Introduction
    • Get Started
    • RPC
    • MiniApps
  • Mini Apps

    • Getting Started
    • Permissions
    • SDK
  • Barteron

    • Barteron APIs
  • English
  • Русский
  • Mini Apps

    • Guide to Creating Mini-Apps in Bastyon
    • Bastyon Mini-Apps Permissions
    • Bastyon SDK Reference

Guide to Creating Mini-Apps in Bastyon

Table of Contents

  • Introduction
  • Domain Preparation
  • Quick Start
  • Mini-App Registration
  • Management and Search
  • Mini-App Functionality

Introduction

This documentation is intended for developers who want to quickly get started with mini-apps in the Bastyon ecosystem. Mini-apps allow integration with Bastyon platform functionality, including payments, notifications, messaging, and other features.

Step 1: Domain Preparation

To begin, you need two files available on your domain:

  1. b_manifest.json — Mini-app manifest file
  2. b_icon.png — Mini-app icon

Mini-apps operate in an isolated environment and are loaded via iframe. Files must be accessible via proper URLs.

Example URL Structure:

https://example.com/b_manifest.json
https://example.com/b_icon.png

File Descriptions

b_icon.png

Image representing your mini-app. Recommended size: 512x512 pixels.

b_manifest.json

Manifest file for configuring your mini-app.

Example Manifest Structure:

{
  "id": "demo.pocketnet.app",
  "name": "Demo",
  "description": "Demo application",
  "author": "PQ8AiCHJaTZAThr2TnpkQYDyVd1Hidq4PM",
  "scope": "demo.bastyonapps.com",
  "permissions": [
    "account",
    "notifications",
    "messaging",
    "payment",
    "sign",
    "camera",
    "gallery"
  ]
}

Manifest Fields

FieldDescriptionFormatRequired
idUnique identifierDomain name (e.g., app.pocketnet)Yes
nameMini-app nameStringYes
descriptionMini-app descriptionString or localization objectYes
authorCreator's addressBastyon addressYes
scopeMini-app subdomainHTTPS domainYes
permissionsPermission listString arrayNo

Description Localization Example:

"description": {
  "en": "Demo application",
  "ru": "Демонстрационное приложение"
}

Important: Some SDK methods only work with corresponding permissions. For example, opening external links requires special permission for security.

Quick Start

System Requirements

  • Node.js 14+
  • npm or yarn
  • HTTPS domain for mini-app hosting

Development Templates

TypeRepositoryDescription
Clientbastyon-miniapp-vue-templateVue.js template with SDK setup
Serverbastyon-miniapp-expressjs-templateExpress.js API template

Templates include preconfigured structure and all necessary dependencies for quick start.

Step 2: Mini-App Registration

  1. Go to registration page
  2. Fill out the form following instructions
  3. After completion, mini-app will be added in development mode and accessible at:
    https://bastyon.com/application?id=<YOUR_APP_ID>

Publishing Mini-App

  1. Access mini-app management through:
    • Automatic redirect after registration
    • Home page, entering your address in search
  2. Click "Publish" for public access

Step 3: Management and Search

Viewing Mini-Apps List

  1. Open bastyon.com/home
  2. In search, enter:
    author:<your Bastyon address>

Managing Mini-App

Click the gear icon next to the mini-app to access management panel.

Mini-App Functionality

Core Features

Last Updated:
Contributors: gked
Next
Bastyon Mini-Apps Permissions