- PHP 76.2%
- JavaScript 17.1%
- CSS 4.3%
- Shell 2.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
CI / php (dev-master) (push) Successful in 1m29s
CI / php (dev-stable32) (push) Successful in 1m27s
CI / php (dev-stable33) (push) Successful in 1m26s
CI / php (dev-stable34) (push) Successful in 1m26s
CI / php (dev-stable35) (push) Successful in 1m30s
CI / standards (push) Successful in 1m33s
CI / server (32) (push) Successful in 2s
CI / server (35) (push) Successful in 2s
CI / javascript (push) Successful in 45s
Reviewed-on: #19 |
||
| .forgejo | ||
| app/talk_stickers | ||
| docs | ||
| screenshots | ||
| tests | ||
| .cz.toml | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .markdownlint.yaml | ||
| .php-cs-fixer.dist.php | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| composer.json | ||
| composer.lock | ||
| LICENSE | ||
| NOTICE.md | ||
| phpunit.xml | ||
| psalm-baseline.xml | ||
| psalm.xml | ||
| README.md | ||
| renovate.json | ||
| SECURITY.md | ||
Stickers for Nextcloud Talk
Send stickers and GIFs in Nextcloud Talk, from the browser, the desktop app and the Talk apps for Android and iOS.
- About 8,400 stickers in five open-licensed packs: Fluent Emoji (3D), Noto Emoji (animated and still), OpenMoji and Twemoji. Your server downloads them after installation.
- Your own stickers: upload images to a shared folder, and everyone who can read the folder can send them.
- Stickers arrive as pictures: animated ones keep moving, and there's no link text around them.
/sticker partyor/sticker 🎉sends a sticker from any Talk client, phones included./gif happy dancesends a GIF from GIPHY, if the GIPHY integration is set up.- A sticker page for phones: you can add it to your home screen and share a sticker to Talk through the phone's share sheet.
Who it suits
Families, clubs and small teams. A sticker is sent the way Talk sends a picture: as a file in the sender's folder of the conversation, which Talk shares with it, because Talk's phone apps show only files as pictures (a sticker's link shows as a link card there). So each sender needs a little free storage, and in a conversation of hundreds of people every sticker costs the server what an attachment costs. The app keeps that small: a sticker sent again by the same person in the same conversation reuses its file, and a sent sticker is at most 256 pixels (a still one some 5 to 40 KB; an animated one, a GIF, is larger). For large installations with very large conversations it is not a good fit.
Screenshots
![]() |
![]() |
![]() |
![]() |
Requirements
- Nextcloud 32 to 36 with Talk. Talk 25 or later sends stickers and GIFs as pictures; older versions send them as links.
- PHP 8.2 or later with the
zipextension. Imagick (with SVG and WebP support) converts animated stickers to GIF, which Talk animates; without it, those stickers are sent as links. It also makes the picker's small previews; without it the picker loads the full images. - Background jobs run by cron, as Nextcloud recommends. The sticker packs are built by a background job.
- About 500 MB of disk space in the app data for the packs and their previews, twice that while they are rebuilt after an update. The server downloads about 550 MB from GitHub, unicode.org and fonts.gstatic.com to build them.
Installing
-
Install Talk stickers from the app store (Apps, Social & communication). Or unpack a release's
talk_stickers-X.Y.Z.tar.gzintocustom_apps/and runocc app:enable talk_stickers. -
Wait for the packs. A background job downloads and builds them; this takes a few minutes, up to a quarter of an hour. To build them at once instead, run:
occ talk_stickers:packs -
Optional, for your own stickers: install Team folders, create a team folder named
Stickersand share it with the people who should see them. -
Optional, for GIFs: install the GIPHY integration and enter its API key in the admin settings.
Its settings are under Administration settings → Additional settings → Talk stickers (the team
folder, the packs, the pack /sticker prefers); they and the troubleshooting are described in
docs/admin.md.
Using it
In the browser and the desktop app: in a Talk conversation, type /sticker and press Enter,
or choose the paperclip, Smart picker, Stickers. Pick a sticker, then press Enter to send it.
The picker has a tab per pack, categories, search, and a Recent tab for the stickers you sent
last; it opens on the first tab with stickers. A search finds stickers in every pack, the open
tab's first. The picker shows small still previews; an animated sticker plays while the pointer is
on it, and the sticker you send is the full one. The picker also works in other apps with the
Smart Picker, such as Text, where it inserts the sticker's link.
In any client, phones included, send a message that starts with /sticker:
| Message | Sends |
|---|---|
/sticker 🎉 |
that emoji's sticker |
/sticker party |
the sticker whose name or keywords fit best (English words) |
/sticker twemoji cat |
a sticker from the pack named first (fluent, noto, openmoji, twemoji, or ours for your own) |
/sticker |
a link to the sticker page |
/gif happy dance |
the first GIF GIPHY finds (words in your language) |
The message is replaced before it's saved, so nobody sees what you typed. Words that fit no
sticker are sent as you typed them. /stickers and /gifs work too, and so do /giphy and
/naklejka (Polish).
On a phone, you can also open the sticker page, https://<your cloud>/apps/talk_stickers/
(Stickers in the app menu), and add it to your home screen. Tap a sticker, then Share and
choose Talk and the conversation, or Copy link and paste it into Talk.
Your own stickers: put PNG, JPEG, GIF or WebP images in a subfolder of the Stickers folder.
Each subfolder is a pack, for example Stickers/Dog/Happy.png.
Where sent stickers are kept, and more on your own stickers: docs/user.md.
How it works
The app (app/talk_stickers/) is PHP and plain JavaScript, with no build step.
- Picker: a custom element of the Smart Picker,
js/talk_stickers.js. A reference provider,lib/Reference/StickerReferenceProvider.php, shows a sticker link (/apps/talk_stickers/s/<pack>/<id>) as the sticker. /stickerand/gif:lib/Listener/StickerCommandListener.phplistens to Talk'sBeforeChatMessageSentEvent. It finds the sticker (StickerService::search()) or the GIF (GifService), saves it in the sender's conversation folder (made and shared with Talk's ownConversationFolderServicewhen missing;QuietFolderShareListenerkeeps Talk from announcing that share and has files_sharing mount it for the recipients, as Talk's attachments are), and rewrites the message into Talk's own message of that file, which refers to it by file id, as Talk 25's attachments do. WebP and SVG stickers are converted with Imagick; the results are kept in the app data.- Packs:
lib/Packs/Builder.phpbuilds them into the app data from the sources pinned inlib/Packs/manifest.json. Archives are checked against their SHA-256, and Unicode's emoji list supplies names and categories. Noto's images come from Google's emoji CDN, which has no pinned versions. Skin-tone variants are left out. A build goes into a new folder, which is used only once it's complete. - Images:
/apps/talk_stickers/img/<pack>/<file>serves the packs' images, public and cached, because the phone apps load previews without a login;<id>.thumb.webpbeside a large image is the picker's preview (lib/Packs/Thumbnail.php: 128 pixels, the first frame of an animated one). - Catalogue:
/api/packsis the person's own packs and the address of the shipped packs' index,/api/index/<build>, which names the build and is cached for a year: the browser downloads the index once per build.
Developing
composer install
vendor/bin/phpunit && node tests/l10n.js
composer cs:check && composer psalm
npx --yes markdownlint-cli2 "*.md" "docs/**/*.md"
The tests need neither Nextcloud nor network. CI (.forgejo/workflows/ci.yml) also lints the PHP
and JavaScript, checks appinfo/info.xml against the app store's schema, runs the tests against
each supported Nextcloud (their results go to a pull request as a comment per version) and checks
the app on a real Nextcloud with PostgreSQL. The layout, the checks and releasing are in
docs/developer.md. The code lives at
git.ciepiela.org; GitHub has a copy.
Reporting problems
Please open an issue on GitHub, sarumaj/nextcloud-talk-stickers, or on git.ciepiela.org; both are read. Say which versions of Nextcloud, Talk and this app you use, and which Talk client. Security problems go privately, as SECURITY.md says.
Licence
The app is licensed under the AGPL-3.0-or-later. The sticker packs keep their own licences; see NOTICE.md. The picker shows each pack's attribution.



