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
fp doctor
fp init my-plugin --template hybrid

fp is the short command; fluxgram-plugin remains available as a compatible alias. 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 fp 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.1

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.1
File Size Uploaded
fluxgram_plugin_devkit-2.1.1.tar.gz 81.8 kB Details

Built distribution (wheel)

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

Total release size: 163.7 kB

Release files / fluxgram_plugin_devkit-2.1.1.tar.gz

Download URL fluxgram_plugin_devkit-2.1.1.tar.gz
Size 81.8 kB
Tags Source
SHA-256 checksum
How to use checksums
19a6bf8c903961e4ad3f4f734a0667cf2ad75b2f3f5fb324ed4ed8bd58e74c36
BLAKE2b-256 checksum
How to use checksums
6a4b509dab18947892b66ae886c13fd7f5b15dde60183b5105e7a6f267d75906
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.1-py3-none-any.whl

Download URL fluxgram_plugin_devkit-2.1.1-py3-none-any.whl
Size 81.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f0b3b93c1ed060730ee5d6f099ae18ca24c95dcde3f349101ac9e8b18057674
BLAKE2b-256 checksum
How to use checksums
cf9e887c5a7aa22122dbc51fc06090ea25103290b4eccc8745a10e52ceb79d5d
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

This release

2.1.1 This release

2 release files

2.1.0

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