ernestdefoe / topic-map
Discourse-style topic map for Flarum 2 — views, likes, links, top participants and read time under the first post, plus a Top Replies panel.
Package info
github.com/ernestdefoe/topic-map
Type:flarum-extension
pkg:composer/ernestdefoe/topic-map
v0.2.0
2026-07-05 00:25 UTC
Requires
- php: ^8.2
- flarum/core: ^2.0
Suggests
- flarum/likes: Enables the likes stat and the Top Replies panel (^2.0).
- fof/reactions: Alternative engagement source for the stat and Top Replies (^2.0).
README
A Flarum 2 extension. A Discourse-style topic map under the first post of busy discussions: views, likes, outbound links, top participants and estimated read time at a glance — plus a Top Replies panel that jumps you straight to the most-liked answers.
Features
- Stats bar on the first post once a discussion passes a reply threshold (admin setting): views · likes · links · participants (with avatars) · minutes-to-read.
- Top Replies — the most-liked replies with author + excerpt; click one to jump to that post. Works with
flarum/likesorfof/reactions(the stat relabels itself "reactions"); hides when neither is installed. - Links panel — the discussion's outbound links grouped by URL, tap the links stat to expand.
- View counting built in (guests count, one per browser session, visibility-checked). On forums running
ernestdefoe/bespoke, Bespoke's view counter is used instead — one source of truth, never double-counted. - Everything is computed server-side and cached; a 400-post scan cap keeps huge topics cheap.
- Fully translatable.
Installation
composer require ernestdefoe/topic-map php flarum migrate php flarum cache:clear
Updating
composer update ernestdefoe/topic-map php flarum migrate php flarum cache:clear
