Skip to main content

FluxGram Plugin Devkit

Installable command-line tools, stable Java API 2.0, and fingerprinted E5 host stubs for building external FluxGram plugins.

python3 -m pip install fluxgram-plugin-devkit
fluxgram-plugin doctor
fluxgram-plugin init my-plugin --template hybrid

Devkit 2.1 creates editor-ready Python, Java, and hybrid projects. Python templates include a Pyright configuration and development requirements. Java templates include a Gradle project whose compile-only classpath uses generated files under .fluxgram/ide. Run fluxgram-plugin prepare-ide after cloning a project or updating the devkit to restore those ignored files. The Java template demonstrates the low-level composer native-draw replacement and therefore produces a host-bound schema 5 package. install, reload, and logs use the debug device bridge without remote shell paths or shell interpolation.

Java API 2.0 includes lifecycle-managed ART method hooks. A Java plugin registers an exact reflected Method or Constructor through JavaPluginContext.registerMethodHook. Before and after callbacks run synchronously on the target method's thread, must not block or call Python, and receive an isolated argument array whose changes are committed only after a successful callback and active-generation check. The callback can set the result or throwable and can invoke the original once from the before phase. Managed registrations are ordered by priority, plugin ID, and registration sequence; after callbacks run in reverse order. The returned handle can be closed explicitly, while disable, unload, failed startup, and removal perform automatic unhook.

Java API 2.0 moves the public ABI to org.fluxgram. API 1.x plugins use the former package namespace and must be rebuilt for 2.0. registerChatSelectionAction provides one host-owned action in the ordinary chat selection toolbar. The callback receives an immutable server-backed message identity with message, dialog, and optional sender IDs. Availability and invocation run synchronously on the main thread, so implementations must remain fast and must not call Python or perform I/O.

Direct AliuHook/XposedBridge access remains possible for full-trust Java plugins, but direct registrations are outside FluxGram lifecycle tracking and must retain and close every Unhook themselves.

See the developer kit guide for requirements, trust boundaries, project format, commands, and testing guidance. The API reference indexes the contracts also available through Python and Java editor hover.

Metadata

Release files for fluxgram-plugin-devkit 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluxgram-plugin-devkit 2.1.0
File Size Uploaded
fluxgram_plugin_devkit-2.1.0.tar.gz 81.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluxgram-plugin-devkit 2.1.0
File Interpreter ABI Platform
fluxgram_plugin_devkit-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 163.4 kB

Release files / fluxgram_plugin_devkit-2.1.0.tar.gz

Download URL fluxgram_plugin_devkit-2.1.0.tar.gz
Size 81.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e327891b6ac9edeae8f0dafb77dab94067cffa9e8bd84be57dc6f66b754f255
BLAKE2b-256 checksum
How to use checksums
3a6444f75a4f20c596a2148fbc7464b9cd3d822b129682eb6d184d1644396b19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / fluxgram_plugin_devkit-2.1.0-py3-none-any.whl

Download URL fluxgram_plugin_devkit-2.1.0-py3-none-any.whl
Size 81.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e66c5a4ba022b619272013133ac4e2f4ad12bb1200612efa0da74efbf1c2f8d
BLAKE2b-256 checksum
How to use checksums
cd8562e37c5ead16f8a43123437c12053047e17e06e18b6710abc7ab0142997a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

2.2.0

2 release files

2.1.1

2 release files

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page