Add: Starlit 1.0.0 - #387
Draft
diary001 wants to merge 1 commit into
Draft
Conversation
Adds Starlit chromas (username paints) and badges to usernames in chat, from Starlit's public rendered cosmetics feed. Settings for chromas, animated chromas and badges under Add-Ons > Starlit.
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.
Adds Starlit (https://starlit.gg), a Twitch chat game where viewers fish, hunt and dig for items and wear what they earn: chromas (username paints) and badges on the names that wear them.
Layout follows
src/twirandsrc/7tv-emotes: a manifest, anindex.jsthat injects four modules, and one file per module.api.jsreads Starlit's public rendered cosmetics feed (GET /v1/public/cosmetics/clients) on a two minute timer with an ETag, so a quiet poll is a 304. Every chroma arrives already rendered to CSS declarations by Starlit and every badge as absolute image urls at 1x, 2x and 4x. The add-on never renders a chroma itself, so it cannot drift from the site as chromas are authored.chromas.jsowns one stylesheet (the keyframes block from the feed, a base rule, one rule per chroma in use), a tokenizer that tags the message's username withffz_user_classandffz_user_props, and a tooltip with the chroma's name and rarity. Animations can be turned off in settings; chromas then hold their first frame through Starlit's own reduced-motion variables.badges.jsloads each badge template once withchat.badges.loadBadgeDataand assigns wearers withsetBulkunder theaddon.starlitsource, re-applied whole on every refresh.settings.jsadds three switches under Add-Ons > Starlit: Chromas, Animated chromas, Badges. Per-badge visibility works through FFZ's own badge visibility settings.Nothing is sent to Starlit and no account is needed; the feed is public and read-only. No external scripts.
Tested with the local development server against Starlit's development API: the add-on loads and enables, the feed resolves, the tokenizer tags a wearer's message, the stylesheet carries the chroma rules, and
chat.badges.getBadgesresolves the wearer's Starlit badges.Opened as a draft: the public feed endpoint ships with Starlit's next release, and this will be marked ready for review the moment it is live.
🤖 Generated with Claude Code
https://claude.ai/code/session_0172UyJ4tWyTK98nMxVxoX5t