ramon / stickers
Sticker picker for posts with animated Lottie and TGS support for Flarum 2
Package info
Language:TypeScript
Type:flarum-extension
pkg:composer/ramon/stickers
Fund package maintenance!
Requires
- php: ^8.3
- flarum/core: ^2.0.0
Requires (Dev)
- flarum/phpstan: ^2.0
- flarum/testing: ^2.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5 || ^12.5.22 || ^13.2.0
- roave/security-advisories: dev-latest
Suggests
- ext-fileinfo: Required to validate the MIME type of uploaded and imported sticker files (uploads are refused without it).
- ext-zip: Required for the ZIP import and export of the sticker library.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-09 19:37:18 UTC
README
Stickers
Stickers for Flarum posts, animated ones included.
Stickers brings a sticker picker to the post composer. Upload your library in the admin panel, organize it in categories, and your users drop stickers into posts with one click. Each sticker also gets a text code like :smile: that is rewritten when the post renders.
The fun part is animation support. Lottie JSON and Telegram TGS files play natively in posts, right alongside plain PNG, GIF, WebP, APNG and JPEG. Animations use the lightweight lottie-web player, which does not run Lottie expressions (scripts embedded in the animation file), and it is only downloaded on pages that show an animated sticker.
What it does
- Floating sticker picker in the composer toolbar
- Categories you can rename and reorder
- Native playback of Lottie and TGS animations via lottie-web
- Bulk upload of several files at once
- Export of the whole library as a ZIP, importable on another forum with duplicates skipped
- Optional hover only mode that keeps animations paused until the cursor is on them
- Built for Flarum 2.x (PHP 8.3+)
Installation
composer require ramon/stickers php flarum migrate php flarum assets:publish php flarum cache:clear
Then enable Stickers on the Extensions page and start uploading.
The PHP fileinfo extension is needed to validate uploaded files, and zip for the ZIP import and export.
About TGS files
TGS support is a technical format feature, nothing more. Telegram sticker packs belong to their authors, so only upload packs you made, have permission to redistribute, or that carry a license allowing it. That responsibility sits with the forum administrator.
License
MIT. Bugs and suggestions go in the issue tracker.