UgurKeskekci/kodla-tiktok-yayinci
About
Her karesi kodla çizilmiş, yorumlara sesli cevap veren TikTok yayın karakteri. Görsel model yok, Claude Code ile kurulur.
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalTürkçe · English
Kodla Yayıncı (Coded Streamer)
A livestream character that kneads slime and replies to comments out loud, with every frame drawn in code. No image model, no video model: the character, slime, room, and hands are all Canvas code in a single HTML file. You can build your own character from the menu, make it speak with free voices, and optionally connect it to a TikTok livestream.



Get started in 3 steps
1. Give the repo to Claude Code. Open Claude Code and type:
https://github.com/UgurKeskekci/kodla-tiktok-yayinci set this up
Claude clones the repo, checks dependencies, starts the server, and opens the menu in your browser.
2. Build your character. In the menu (http://127.0.0.1:5320/menu.html), pick the hair, skin, eyes, outfit, slime color, room, and voice. Type a sentence into the "Konuştur" (Speak) box to make the character say it. Action buttons: water, glitter, stretch, poke, wave, heart.
3. Iterate with Claude. Tell Claude Code what you want to change: "add a ribbon to her hair", "shape the slime into a heart", "draw a window in the background". If you specify three things (at which second, what is wrong, and what to keep), it gets it right on the first try.
Manual setup
Requirements: Node.js 20 or higher, Chrome or Edge.
git clone https://github.com/UgurKeskekci/kodla-tiktok-yayinci
cd kodla-tiktok-yayinci
npm install
npm start
- Menu: http://127.0.0.1:5320/menu.html
- Stage: http://127.0.0.1:5320/ (
?obs=1for OBS) - Control panel (test comments, gifts, TikTok connection): http://127.0.0.1:5320/panel.html
- Serverless demo: open
sahne.html?demo=1directly in your browser. - Livestream overlay view (comment feed, gift ticker, LIVE badge):
http://127.0.0.1:5320/?arayuz=canli
The menu, the sample voices and the character's replies are in Turkish; the system itself works with any language you give it.
Voices
| Engine | Cost | Setup | Notes |
|---|---|---|---|
| Browser voice | free | none | Quality depends on the browser; Turkish voice on Mac is good. |
| Edge TTS | free | pip install edge-tts |
Emel (female), Ahmet (male); requires internet, 2-3s latency. |
| VoxCPM2 Turkish voice design | free, local | see that repo's setup | Design a voice from a text prompt; slow, better suited for preset lines than live chat. |
| ElevenLabs | paid | ELEVENLABS_API_KEY |
Most natural voice, ~0.7s latency. |
The characters' own voices ship with the repo: under sesler/, the voices of Piksel, Gece, Defne and Mavi were designed with VoxCPM2 from English descriptions (synthetic, not real people). If VoxCPM2 is installed, they show up in the Voice section of the menu as "piksel (bu repodan)" and so on, free and fully local. To let the server find VoxCPM2, put its path in ayarlar.json or the VOXCPM2_DIR environment variable (see ayarlar.ornek.json). The mouth follows the loudness of the audio in real time; with the browser voice it follows the syllable rhythm.
Other free Turkish voices: Ahenk (Özgür Güler; question intonation, emotion, laughter; weights are CC BY 4.0, credit Ahenk if you use it) and EMA Lightning (Canberk Aslan, Apache 2.0, runs on CPU).
Replying to comments (optional)
When a comment arrives, the character replies with a single sentence. It uses the first available provider in this order:
- Claude Haiku if
ANTHROPIC_API_KEYis set (fastest, ~1s) - The
claudeCLI if Claude Code is installed - The
agyCLI (Gemini Flash) if Antigravity CLI is installed - If none are available, it does not generate replies; thank-you triggers and comment commands still work.
The character's persona and guardrails live in kisilik.md: she openly states that she is an AI drawn in code, does not ask for gifts, does not ask for personal information, and avoids politics and religion. Profane comments and links are skipped.
TikTok livestream (optional)
While your livestream is live, enter your username in the panel and click "Bağlan" (Connect): comments, gifts, and follows are forwarded to the character. Viewers can trigger actions via chat commands: "uzat" (stretch), "dürt" (poke), "su" (water), "sim" (glitter), "selam" (wave). Gifts: 1 diamond triggers a heart, 5+ stretches, 10+ adds water, 100+ adds glitter. For OBS settings and guidelines, see docs/yayin.md.
- Turn on TikTok's AI-generated content label during streams; do not remove the on-stage "kodla çizildi · yapay zeka yayıncı" (drawn in code · AI streamer) label.
- Do not use fake comments or fake gifts on stream. The test buttons on the panel are only for offline testing.
- The TikTok connection relies on the unofficial tiktok-live-connector library and may break if TikTok changes its protocol.
How it was made
This character did not come out of a single prompt. For the step-by-step workflow, see docs/is-akisi.md.
Files
| File | Description |
|---|---|
sahne.html |
Character, slime, room, animations, sound effects. Single file, zero dependencies. |
menu.html |
Customization menu. |
panel.html |
Testing and livestream control panel. |
sunucu.mjs |
Connects the stage, menu, voices, and TikTok. |
sesler.mjs |
Voice engines. |
beyin.mjs, kisilik.md |
Comment replies and character persona. |
assets/ |
CC0 slime and water sound effects, preset character portraits. |
sesler/ |
VoxCPM2 voices of Piksel, Gece, Defne and Mavi (synthetic, designed from text prompts). |
araclar/ |
denetim.mjs: plays every animation and catches sudden frame jumps. portreler.mjs: generates preset character portraits. |
Credits and licenses
- The stage originates from a film built with Sarp Yıldız's cinecode kit (MIT). If you want to make films with code, start there.
- Local Turkish voice: VoxCPM2 Turkish voice design (Apache 2.0). Piksel's voice was designed with it.
- Sound effects are CC0 from Freesound: Eneasz (squishes), jtap97 (slime noise), Archos (slime 13), Breviceps (splat), swordofkings128 (pouring water), Jofae (chime), yfjesse (notification).
- Font: IBM Plex (SIL Open Font License 1.1).
- tiktok-live-connector (MIT).
Code is MIT licensed. See LICENSE and NOTICE.md for details.
Explore related projects
Loading…