Repository navigation
Statamic addon: live comments, editing warnings and live preview on any device - #1
Merged
Merged
Conversation
…ny device Adds the hibira-io/statamic addon for Statamic 5 and 6: - Avatars of everyone with the same entry open, and a warning when one of them saves it (EntrySaved, CP requests only). - Live comments on entries in one JSON file per entry, checked against Statamic's view permission; resolve, reopen, delete (author or super). - Live preview on other devices: QR code and link of the editor's live preview; preview pages opened outside the CP reload on every change via a keyed-hash public channel, sent only while such a page is open. - With BROADCAST_CONNECTION=hibira, Statamic's own CP Echo client is pointed at Hibira (statamic/collaboration works as is). - The CP script is served from the package (nothing to publish) and is plain DOM, so one bundle works on Statamic 5 (Vue 2) and 6 (Inertia). - English, zh-TW, zh-CN, ja, ko, th, vi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHtsCBC9YKFZJN7QeoQnHs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Danny · project thread
First version of
hibira-io/statamic, a Statamic 5 and 6 addon built onhibira-io/laravel.What it adds
BROADCAST_CONNECTION=hibira, Statamic's own control panel Echo client is pointed at Hibira, sostatamic/collaborationworks as it is.How
viewpermission, independent of the app's broadcasting setup.statamic, so Statamic's automatic config and translation namespaces would collide with its own. Both load underhibira-statamicinstead.Verified
dist/matches the source.statamic/statamicsite with a local server built from pusher-server: two users see each other's avatars, comments arrive live both ways, resolve updates the count, the saved warning appears when the other user saves, and an iPhone-sized page opened from the QR link reloaded with the new title after typing in the control panel.Generated by Claude Code