Development

Build firmware, Native SD Apps, and GhostScript extensions for GhostESP

Build GhostESP from source or extend an installed device without changing its firmware.

Choose an extension model

GhostScriptNative SD Apps
Best forAutomation, event-driven workflows, and chaining existing GhostESP featuresFull interactive apps, custom UI, direct hardware access, and performance-sensitive work
LanguageLua 5.4 source compiled to .gsbC compiled to a target-specific ESP-IDF shared object
ToolchainPython and ghostbt; ESP-IDF is not requiredPython, GBT, and ESP-IDF
PortabilityOne script package across supported boards, subject to available hardwareBuild one package for each ESP target architecture
Runtime modelConstrained Lua environment with permission-checked GhostESP APIsTrusted native code running in the firmware process
Device supportDesigned to work with and without PSRAMThe on-device Apps gallery currently exposes third-party native apps only on PSRAM-equipped boards

Start with GhostScript when the available Lua APIs can perform the job. Choose a Native SD App when you need custom widgets, lower-level peripherals, or native performance.

Native app permissions gate the official SDK functions, but native apps are not sandboxed. Only install native packages from developers you trust.

Development paths

  • GhostScript — write, compile, install, and debug Lua automation packages.
  • Native SD Apps — build target-specific C apps with the native SDK.
  • GBT — use the current build, packaging, GhostScript compiler, firmware, and serial commands.
  • Environment Setup — prepare ESP-IDF for firmware and native app development.
  • Custom Board Configurations — add or adjust supported hardware.