Twitch layout for KittyKatDevil
  • TypeScript 98.9%
  • JavaScript 0.8%
  • HTML 0.1%
  • CSS 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
diamonddrake 995d9f4bcb chore: ignore kittylayout.env
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:28:21 -05:00
app chore: bump version to 1.4.7 2026-11-02 08:27:59 -05:00
deploystuff-dealwithlater start to merge layout 2025-06-20 20:26:20 -04:00
dev-scripts add JSR export info and scripts, not currently exported. 2025-06-25 13:03:22 -04:00
packages chore: bump version to 1.4.7 2026-11-02 08:27:59 -05:00
public init, need vcs to experiment 2025-06-18 12:32:27 -04:00
resources-source performance improvements 2026-08-11 11:01:53 -04:00
results/actual Add initial JSON response for streamelements API request - tweak behaviors 2026-04-01 08:00:09 -04:00
scripts feat: Update version to 1.4.1 and implement supreme kitty redeem functionality 2026-05-09 16:02:06 -04:00
utils chore: re-add channel redeems helper with tokens moved to env vars 2026-07-11 18:13:10 -04:00
.gitignore chore: ignore kittylayout.env 2026-11-02 08:28:21 -05:00
.npmrc add npmrc for max age to help prevent supply chain attacks 2026-04-01 10:38:26 -04:00
.prettierrc chore: drop prettier from eslint, default to double quotes 2026-07-12 13:40:45 -04:00
deno.lock Refactor MainScene to handle Supreme Kitty expiration and add GetChannelRedeems utility 2026-04-04 18:15:57 -04:00
eslint.config.mjs chore: drop prettier from eslint, default to double quotes 2026-07-12 13:40:45 -04:00
ideas.txt init, need vcs to experiment 2025-06-18 12:32:27 -04:00
LICENSE update readme + license 2025-06-25 15:42:10 -04:00
package-lock.json performance improvements 2026-08-11 11:01:53 -04:00
package.json chore: bump version to 1.4.7 2026-11-02 08:27:59 -05:00
README.md feat: add christmas style 2026-10-31 15:43:44 -04:00
TODOs feat: Enhance EventTicker to support goals and improve display logic 2026-04-05 15:41:53 -04:00
tsconfig.json vibe-restructure 2026-04-01 09:26:58 -04:00

InteraKitty Monorepo

A Twitch streaming OBS overlay layout featuring an interactive PixiJS-based kitten system. Subscribers get on-screen kittens that walk, jump, sleep, and respond to clicks. Built with React, PixiJS, and a custom Entity Component System.

Project Structure

├── app/                        # React + Vite app (the OBS browser source)
├── packages/
│   ├── ecs-core/               # Generic ECS library (@diamonddrake/ecs-core)
│   ├── ecs-pixi/               # PixiJS rendering integration (@diamonddrake/ecs-pixi)
│   ├── kitty-game/             # Kitty game logic (@interakitty/kitty-game)
│   └── layout-server/          # Deno/Oak server — serves built app, compiles to standalone exe
├── resources-source/           # Original sprite sources and design assets
└── package.json                # Workspace root

Getting Started

npm install
npm start         # runs all package watchers + Vite dev server

Then add as an OBS browser source (1920x1080):

  • http://localhost:5173/ — main layout (left side)
  • http://localhost:5173/?right — right side layout
  • http://localhost:5173/?style=halloween — halloween theme (orange background and chat bubbles, pumpkins behind chat); combine with right as ?right&style=halloween
  • http://localhost:5173/?style=christmas — christmas theme (green background with slowly twinkling lights on the border, red/green chat bubbles, santa-hat kitties behind chat); combine with right as ?right&style=christmas
  • http://localhost:5173/boxed.html — boxed outline layout (no interaction)

Commands

Command Description
npm start Dev mode — watches all packages + runs Vite
npm run dev Vite dev server only (libs must be pre-built)
npm run build Clean + build libs + build app
npm run build:production Production build (minified, NODE_ENV=production)
npm run build:server Production build + compile standalone Deno server exe
npm test Run tests across all workspaces
npm run lint Lint all workspaces

Packages

@diamonddrake/ecs-core

Framework-agnostic Entity Component System library using sparse sets for O(1) component lookups.

  • ECSRegistry — entity/component storage with sparse set indexing
  • Scene — container for entities and systems, drives the update loop
  • Component / System — base classes for data and logic
  • Built-in: TransformComponent, BehaviorComponent, HierarchyComponent, EventDispatcher

@diamonddrake/ecs-pixi

PixiJS rendering layer for the ECS. Extends Scene into ScenePixi with a Pixi Container.

  • SpriteComponent / AnimatedSpriteComponent — static and animated sprites
  • TextComponent — text rendering
  • PixiRenderSystem — syncs ECS transforms to Pixi display objects

@interakitty/kitty-game

Kitty-specific game logic built on the ECS packages.

  • MainScene — 1460x129px kitten bar with 7 cat sprite variants
  • Movement physics, animation state machine, nametags
  • "Supreme Kitty" click interaction with crown sprite
  • Kitty entity factory — creates fully-configured entities from subscriber data

layout-server

Deno/Oak web server that serves the built app. Can be compiled into a standalone executable with npm run build:server (outputs packages/layout-server/layoutserver.exe).

API Integrations

  • Twitch EventSub WebSocket — real-time chat, subscriptions, follows, raids, cheers
  • Twitch Helix API — subscriber list, channel goals, emotes
  • StreamElements API — session stats (followers, subs, cheers)

Tech Stack

  • Frontend: React 19, Zustand, Tailwind CSS, Framer Motion
  • Rendering: PixiJS 8
  • Build: Vite, TypeScript, npm workspaces
  • Testing: Vitest
  • Server: Deno + Oak