# NextGram Plugin SDK > Build signed .ngp plugins for NextGram, an open-source Telegram client for Android. > TypeScript is the primary language; Java, Kotlin and hybrid packages are supported. Read this file first. Every page is available as clean Markdown under /raw/.md. Machine manifest: /ai.json. Full concatenated documentation: /llms-full.txt. ## Start - [Introduction](https://plugins.nextdev.fun/introduction/): What the NextGram plugin platform is, which package kinds exist and what ships today. - [Quick start](https://plugins.nextdev.fun/quickstart/): Build, sign and install a working TypeScript plugin in about ten minutes. - [For AI agents](https://plugins.nextdev.fun/ai-agents/): How an AI coding agent should read this site, validate a plugin and avoid rejected packages. ## Build a plugin - [Authoring checklist](https://plugins.nextdev.fun/authoring-checklist/): The compact, non-negotiable rules for building and submitting a NextGram plugin. - [TypeScript plugins](https://plugins.nextdev.fun/typescript/): The primary plugin language: project layout, entry point, sandbox, CLI and limits. - [Manifest & package](https://plugins.nextdev.fun/package-format/): The .ngp container, plugin.json, signing, validation and the install flow. - [SDK & extension points](https://plugins.nextdev.fun/sdk/): The public API: lifecycle, context, permissions, events, contributions and services. - [Declarative UI](https://plugins.nextdev.fun/declarative-ui/): Node model, styling, actions, Canvas and accessibility for plugin interfaces. - [Appearance & themes](https://plugins.nextdev.fun/appearance/): Apply a palette with ui.appearance: semantic tokens, raw colors and safe reset. - [Screens & slots](https://plugins.nextdev.fun/screens/): Replace five host screens, add header slots and protect sensitive surfaces. - [Capabilities](https://plugins.nextdev.fun/capabilities/): Messages, chats, admin, HTTP, media, notifications and their permissions. - [Resources](https://plugins.nextdev.fun/resources/): Fonts, sounds, wallpaper, icons, strings, haptics, motion and chrome overrides. - [Automation](https://plugins.nextdev.fun/automation/): Rules, triggers, filters, actions, rate limits and audit for automated behaviour. - [Hybrid & internal API](https://plugins.nextdev.fun/internal-api/): Trusted Java and hybrid access to the unstable internal facade. ## Ship a plugin - [Build & sign](https://plugins.nextdev.fun/build-sign/): Compile, verify and sign a production .ngp package for every plugin kind. - [Catalog & updates](https://plugins.nextdev.fun/distribution/): The signed GitHub catalog, entry.json, index, updates and revocations. - [Security model](https://plugins.nextdev.fun/security/): Threat model, trust boundaries, protected surfaces and plugin policy. ## Reference - [Architecture](https://plugins.nextdev.fun/architecture/): Kernel, lifecycle, class loading, seams, built-in plugins and failure isolation. - [Release notes](https://plugins.nextdev.fun/release-notes/): The shipped feature set, the theme migration and verification checklist. - [Roadmap](https://plugins.nextdev.fun/roadmap/): Phases, deliverables, acceptance criteria, risks and open decisions. ## Required facts - Package: one ZIP file with the .ngp extension, max 64 MB, max 192 MB uncompressed. - Manifest: format "ngp", formatVersion 1, api 1, immutable reverse-DNS id, semver version, increasing versionCode. - Kinds: ts (script), java (code), hybrid. Theme packages were removed; use ui.appearance. - Signing: SHA-256 JAR signature with RSA >= 2048 or EC >= P-256. Updates must use the same key. - TypeScript bundle: one IIFE at script/main.js, max 8 MB, assigned to globalThis.__ngp_plugin__. - DEX payload: android/dex/classes.dex, max 32 MB, one file, no native libraries. - Declare the minimum permissions. ui.screens is high risk and off at install.