SDK for third-party mini-program development in Super App

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
SDK for third-party mini-program development in Super App
Complex
from 2 weeks to 3 months
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Mini-Program SDK Development for Third-Party Developers

A mini-program SDK is your ecosystem's public contract. Once deployed to production, you commit to maintaining backward compatibility for years. WeChat learned this painfully in 2019 when a breaking change to the core <scroll-view> component broke hundreds of thousands of mini-programs. Therefore, SDK design is first and foremost API boundary design.

What's Included in an SDK for Third-Party Developers

An SDK is not a single library. It's an ecosystem of tools:

  • Runtime JS library — linked inside a mini-program, provides APIs (geolocation, payments, camera, network via bridge)
  • CLI tool — build, preview, publish to marketplace
  • Local simulator — run mini-program on desktop without real Super App
  • TypeScript definitions — without them IDE can't suggest, and developers typo method names
  • Documentation with interactive examples

The first mistake we see in team audits: they start with the runtime library and forget CLI and simulator. External developers end up uploading each version to the real Super App for testing. Onboarding becomes a nightmare, ecosystem stalls.

Runtime API Design

The SDK's core is a JavaScript library running inside a mini-program's WebView. It provides abstraction over the container's bridge protocol.

Structure of a typical call:

// Bad — direct bridge call
window.__miniapp_bridge__.call('camera.take', {quality: 0.8}, callback)

// Good — through SDK
import { camera } from '@superapp/sdk'
const result = await camera.take({ quality: 0.8 })

The SDK handles: correlation IDs for async calls, timeout handling, error normalization to standard {code, message, data} format, polyfills for iOS/Android bridge differences. This is critical: if Android returns coordinates with 6 decimal places and iOS with 8, developers get incompatible results across platforms.

Version API through capability detection, not version strings:

if (sdk.supports('payment.applePay')) {
  // iOS 16+, select regions only
} else {
  sdk.payment.card()
}

CLI: Build and Publish

The CLI is the entry point for most developers. It must work out of the box without a three-page setup guide.

Typical workflow:

superapp init my-miniapp --template=react
cd my-miniapp
superapp dev          # hot-reload local simulator
superapp build        # production bundle with tree-shaking
superapp publish      # upload to marketplace, create review request

Under the hood, the bundler is Webpack 5 or Vite with custom plugins: tree-shake unused native APIs (if the mini-program doesn't use Bluetooth, it stays out of the bundle), parse manifest permissions and warn about undeclared calls, minify and code-split for faster WebView cold start.

Bundle size is painful. WebView inside mini-programs doesn't cache resources like a browser. Each launch downloads the bundle. Goal: main bundle < 200 KB gzipped. Anything heavier uses lazy chunks via dynamic import().

Local Simulator

The simulator is a desktop application (Electron or native) emulating the Super App's runtime container on a developer's local machine. It implements the same bridge API as the real container, but with devtools: bridge call inspector, mock geolocation and camera data, network throttling, screen size simulation.

In practice, the simulator gives 90% coverage for development. The remaining 10% is specific WebView behavior on actual devices. For those, we support remote debug mode: the simulator relays bridge calls to a real device via USB/ADB.

TypeScript Definitions and Developer Experience

An SDK without types in 2024 is an antipattern. Developers use TypeScript, and IDE hints directly impact development speed and bug counts.

Generate definitions from a single source of truth — a JSON Schema API manifest. This guarantees sync between documentation, runtime behavior, and types. Monorepo SDK: packages/types, packages/runtime, packages/cli, packages/simulator — with shared schema in packages/schema.

Backward Compatibility and Deprecation Policy

This is the most underrated part. Once the SDK is in production with external developers, every breaking change requires a migration guide and 6-month deprecation window minimum.

What helps:

  • Semantic versioning with clear rules (patch — bugs only, minor — new APIs, major — breaking changes)
  • @deprecated annotations in TypeScript with JSDoc describing alternatives
  • Runtime warnings when deprecated APIs are used (can disable in prod)
  • Changelog with migration examples for each major version

Development timeline for complete SDK (runtime + CLI + simulator + types) from scratch: 4 to 8 months. Runtime library only against existing bridge: 6 to 12 weeks.