# Sparkling > Sparkling is TikTok’s hybrid container spanning Android, iOS, and Lynx. ## Guide - [Create a new Sparkling app](/sparkling/guide/get-started/create-new-app.md): Create a Sparkling app using the official scaffolder, then use the bundled workflow CLI to build Lynx bundles and run the native shells. ## APIs - [API Overview](/sparkling/apis/index.md) - [Interface: AppConfig](/sparkling/apis/app-config/Interface.AppConfig.md): Configuration schema for app.config.ts, the top-level config file of a Sparkling application. app.config.ts is a superset of the Lynx build config. It wraps the standard Rspeedy / Lynx config (the same object you would export from a lynx.config.ts) and adds Sparkling-specific fields such as platform identifiers, asset paths, and native plugin settings. Relationship to lynx.config.ts: At build time the Sparkling CLI extracts the lynxConfig property and passes it to Rspeedy, so you never need a separate lynx.config.ts when using app.config.ts. - [Interface: PlatformConfig](/sparkling/apis/app-config/Interface.PlatformConfig.md): Platform-specific identifiers and settings. - [Interface: RouterConfig](/sparkling/apis/app-config/Interface.RouterConfig.md): Route configuration mapping. Keys are route names and values are RouterEntry objects. - [Type Alias: PluginConfig](/sparkling/apis/app-config/TypeAlias.PluginConfig.md): Plugin configuration tuple. Each plugin is specified as [name, options?]. The built-in "splash-screen" plugin uses SplashScreenPluginConfig; custom plugins accept an arbitrary options object. - [Interface: SplashScreenPluginConfig](/sparkling/apis/app-config/Interface.SplashScreenPluginConfig.md): Splash screen plugin configuration. Controls the native splash screen shown while the Lynx bundle loads. - [Interface: GlobalProps](/sparkling/apis/global-props/Interface.GlobalProps.md): Global properties injected by the Sparkling native SDK into every Lynx container. Access these at runtime via lynx.__globalProps. The native layer (iOS / Android) populates these values before the Lynx bundle starts executing. Some fields are stable (set once on app launch) and some are unstable (may change per container or over time). - [Scheme](/sparkling/apis/scheme.md): Sparkling pages/containers are opened by a hybrid://... URL. This document defines the unified scheme format and parameters that are applied on both Android and iOS. - [`sparkling-navigation`](/sparkling/apis/sparkling-methods/sparkling-navigation.md): Router helper APIs for opening/closing Sparkling pages from Lynx/JS. - [`sparkling-storage`](/sparkling/apis/sparkling-methods/sparkling-storage.md): Key-value storage helper APIs for Lynx/JS. - [`sparkling-media`](/sparkling/apis/sparkling-methods/sparkling-media.md): Media helper APIs for choosing, uploading, downloading, and saving media files from Lynx/JS. - [Sparkling SDK - Android API Reference](/sparkling/apis/sparkling-sdk-android.md): Native Android SDK for hosting Sparkling content. For usage guide and concepts, see Containers. For the hybrid://... URL format, see Scheme. - [Sparkling SDK - iOS API Reference](/sparkling/apis/sparkling-sdk-ios.md): Native iOS SDK for hosting Sparkling content. For usage guide and concepts, see Containers. For the hybrid://... URL format, see Scheme. - [Sparkling Method SDK - Android](/sparkling/apis/sparkling-method-android.md): Sparkling Method SDK is the native "pipe"/bridge layer that enables JS ↔ native method calls on Android. Sparkling method packages like sparkling-navigation and sparkling-storage call into this layer. - [Sparkling Method SDK - iOS](/sparkling/apis/sparkling-method-ios.md): Sparkling Method SDK is the native "pipe"/bridge layer that enables JS ↔ native method calls on iOS. Sparkling method packages like sparkling-navigation and sparkling-storage call into this layer. - [Sparkling Method SDK - TypeScript](/sparkling/apis/sparkling-method-ts.md): The sparkling-method package provides the JS-side pipe for JS ↔ native method calls. It is the foundation that all Sparkling method packages (router, storage, media, etc.) are built on. - [Response codes](/sparkling/apis/response-codes.md): Sparkling Method response codes follow the Android/iOS native bridge convention. This convention is the source of truth for sparkling-method, generated method wrappers, and built-in method packages. - [Interface: RouterEntry](/sparkling/apis/app-config/Interface.RouterEntry.md): A single route entry pointing to a Lynx page bundle. - [sparkling-website](/sparkling/apis/app-config/README.md) - [sparkling-website](/sparkling/apis/global-props/README.md) ## Other - [Sparkling CLI](/sparkling/guide/cli.md): Sparkling CLI (sparkling-app-cli) is the built-in command-line tool that powers the development workflow. It handles building Lynx bundles, autolinking native method modules, running apps on Android/iOS, and diagnosing your environment. - [Containers](/sparkling/guide/containers.md): Sparkling content always runs inside a native container — a platform view that hosts the Lynx runtime. The SDK provides two container modes to fit different use cases. - [Create a Custom Sparkling Method](/sparkling/guide/get-started/create-custom-method.md): A Sparkling Method is a typed JS ↔ native bridge package that works on both Android and iOS. You define the API in TypeScript, generate native code with the CLI, then implement business logic in Kotlin and Swift. Create a method package Use the sparkling-method-cli to scaffold a new method module: This creates a sparkling-my-greeting/ directory: The module.config.json defines module metadata used by both codegen and autolink: Write TypeScript function declarations Edit the .d.ts file under src/ to declare your method's API. You only write function declarations and interfaces — no implementation. Key rules for declarations: Use declare function syntax (not export function)The last parameter can be a callback (result: ResponseType) => voidUse @default JSDoc tags for default valuesLiteral union types (e.g. 'formal' | 'casual') become enum constants in native codeInterfaces can be nested — they'll generate nested model classes Run codegen Generate all platform code from your declarations: This reads all .d.ts files under src/ and generates: Do NOT manually edit generated files. If you need to change the API, update the .d.ts declarations and re-run codegen. Implement native business logic The generated native code contains abstract classes / stubs that handle parameter parsing and response serialization. You extend them with actual business logic. Android (Kotlin) Create a concrete implementation extending the generated abstract class: iOS (Swift) Create a concrete implementation extending the generated class: Build and test with autolink Build the package Compile the TypeScript: Integrate into your Sparkling app In your Sparkling app project, install the method package: Then run autolink to refresh the Sparkling method registry: Autolink automatically: Android: links the Sparkling method Gradle project and generates the SparklingAutolink.kt registry.iOS: links the Sparkling method pod and generates the SparklingAutolink.swift registry. Run and test Call the method from your Lynx/JS code: Publish When the method is ready for distribution: Update package.json version and metadataVerify files field includes all necessary artifacts: Publish to npm: Consumers then install and autolink: - [Integrate Sparkling into an existing app](/sparkling/guide/get-started/integrate-sparkling-into-existing-app.md): This guide shows how to embed Sparkling containers into an existing Android/iOS project without regenerating your app from a template. - [Multi-page Navigation](/sparkling/guide/multi-page-navigation.md): Sparkling uses a native container model where each page runs as an independent native container with its own LynxView. Navigation between pages is driven by scheme URLs. Every entry you define in source.entry of your build config — whether that's the lynxConfig inside app.config.ts or a standalone lynx.config.ts — produces a bundle that can be navigated to. There is no route registration step: once a bundle is built, any page can navigate to it by its bundle path using the navigate() function. - [Scheme](/sparkling/guide/scheme.md): In Sparkling, every page or container is identified and opened by a scheme URL — a hybrid:// URI that tells the native layer what to render and how to configure it. - [Debug Panel](/sparkling/guide/sparkling-go/debug-panel.md): The Sparkling Debug Panel is the in-app inspector for Sparkling debug builds. Use it when you need to inspect Lynx JS logs, Sparkling Method calls, and runtime GlobalProps without connecting a desktop debugger. It is separate from Lynx's own DevTool and long-press debug menu. Sparkling opens this panel from the bottom-left sparkling debugTag. - [Development Workflow](/sparkling/guide/sparkling-go/dev-server-url.md): This guide covers the complete development workflow for Sparkling apps: starting the dev server, connecting from a simulator or real device, using hot reload, and managing the dev server URL. We use Sparkling Go (the official demo app) as the running example, but everything here applies to any Sparkling project.