Skip to content

Add: Starlit 1.0.0 - #387

Draft
diary001 wants to merge 1 commit into
FrankerFaceZ:masterfrom
diary001:starlit
Draft

Add: Starlit 1.0.0#387
diary001 wants to merge 1 commit into
FrankerFaceZ:masterfrom
diary001:starlit

Conversation

@diary001

Copy link
Copy Markdown

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/twir and src/7tv-emotes: a manifest, an index.js that injects four modules, and one file per module.

  • api.js reads 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.js owns 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 with ffz_user_class and ffz_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.js loads each badge template once with chat.badges.loadBadgeData and assigns wearers with setBulk under the addon.starlit source, re-applied whole on every refresh.
  • settings.js adds 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.getBadges resolves 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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant