{"id":51261180,"url":"https://github.com/riza/kast","last_synced_at":"2026-06-29T12:01:40.833Z","repository":{"id":359781618,"uuid":"1240609666","full_name":"riza/kast","owner":"riza","description":"Self-hosted streaming server that just works, LL-HLS, WebRTC, SRT, zero config. ","archived":false,"fork":false,"pushed_at":"2026-05-23T11:50:28.000Z","size":740,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T13:25:55.772Z","etag":null,"topics":["broadcasting","hls","radio","streaming"],"latest_commit_sha":null,"homepage":"https://getkast.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T10:47:17.000Z","updated_at":"2026-05-23T11:50:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/riza/kast","commit_stats":null,"previous_names":["riza/kast"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/riza/kast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riza%2Fkast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riza%2Fkast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riza%2Fkast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riza%2Fkast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riza","download_url":"https://codeload.github.com/riza/kast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riza%2Fkast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34925718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["broadcasting","hls","radio","streaming"],"created_at":"2026-06-29T12:01:40.027Z","updated_at":"2026-06-29T12:01:40.825Z","avatar_url":"https://github.com/riza.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kast\n\nA lightweight, self-hosted internet radio streaming server. Drop in audio files, create playlists, and broadcast HLS streams — no complex setup required.\n\n\u003c!-- TODO: Uncomment when public repo is ready\n[![Go](https://img.shields.io/badge/Go-1.25-00ADD8?logo=go)](https://go.dev)\n[![Next.js](https://img.shields.io/badge/Next.js-16-000000?logo=next.js)](https://nextjs.org)\n[![License](https://img.shields.io/github/license/riza/kast)](LICENSE)\n[![Docker](https://img.shields.io/docker/pulls/riza/kast)](https://hub.docker.com/r/riza/kast)\n--\u003e\n\n## Features\n\n- **HLS Streaming** — Serve audio as HTTP Live Streaming, playable in any modern browser or media player\n- **AutoDJ** — Automatic playback with sequential or shuffle modes, crossfade, skip and queue management\n- **Media Library** — Scan directories for audio files, upload via browser, import from YouTube\n- **Playlists** — Create and manage playlists; assign them to mounts for continuous playback\n- **Live Source Input** — Icecast-compatible `PUT /source/{mount}` for OBS, BUTT, Liquidsoap, and similar tools\n- **Public Player** — Embeddable web player with now-playing info and track history\n- **Dashboard** — Modern admin UI built with Next.js, shadcn/ui, and Tailwind CSS\n- **SSL / Custom Domain** — Built-in Let's Encrypt auto-cert, manual TLS, or pair with Cloudflare\n- **Docker Ready** — Single `docker compose up` to run the full stack\n- **Minimal Dependencies** — Go binary + ffmpeg; SQLite for state\n\n## Architecture\n\n```mermaid\ngraph TB\n    subgraph clients[\"Clients\"]\n        BR[\"Browser / Mobile\"]\n        VLC[\"Media Player\"]\n        PL[\"Public Player\"]\n    end\n\n    subgraph sources[\"Live Sources\"]\n        OBS[\"OBS / BUTT / Liquidsoap\"]\n    end\n\n    subgraph stack[\"Kast Stack\"]\n        DASH[\"Dashboard\u003cbr/\u003eNext.js :3000\"]\n        SRV[\"Kast Server\u003cbr/\u003eGo :8080 / :443\"]\n        DB[(\"SQLite\")]\n        FS[(\"File System\u003cbr/\u003e/data/music · /data/hls\")]\n    end\n\n    BR -- \"HLS .m3u8 / .ts\" --\u003e SRV\n    VLC -- \"HLS .m3u8 / .ts\" --\u003e SRV\n    PL -- \"Public API\" --\u003e SRV\n    BR -- \"Admin UI\" --\u003e DASH\n    DASH -- \"API proxy\u003cbr/\u003e/api/* /hls/*\" --\u003e SRV\n    OBS -- \"PUT /source/{mount}\u003cbr/\u003eIcecast-compat\" --\u003e SRV\n    SRV --- DB\n    SRV --- FS\n```\n\n## Quick Start\n\n```bash\ngit clone https://github.com/riza/kast.git\ncd kast \u0026\u0026 cp .env.example .env\ndocker compose up -d\n```\n\nThe dashboard is available at `http://localhost:3000`. On first run a random API key is auto-generated and printed to the server log:\n\n```bash\ndocker compose logs server | grep \"Generated API key\"\n```\n\nEnter that key in **Dashboard → Settings → Connection**.\n\n### Production Builds\n\nFor reproducible, versioned images use the Makefile targets:\n\n```bash\nmake docker-build    # build images with git tag, commit hash, and timestamp baked in\nmake docker-up       # start the stack\n```\n\nThe Makefile injects build metadata (`VERSION`, `GIT_COMMIT`, `BUILD_TIME`) into the Go binary via linker flags, which appears in logs and the `/api/status` response. This is useful for debugging which commit is running in production.\n\n### Manual Setup (dev)\n\n**Prerequisites:** Go 1.25+, Node.js 22+, ffmpeg\n\n```bash\n# Server\ncd server\ngo run ./cmd/kast -config kast.toml\n\n# Dashboard (separate terminal)\ncd dashboard\nnpm install\nnpm run dev\n```\n\n### Add Music \u0026 Start Streaming\n\n1. Place audio files in `server/data/music/` (or upload via the dashboard)\n2. Open the dashboard at `http://localhost:3000`\n3. Create a mount point (e.g. `radio`)\n4. Create a playlist and add tracks\n5. Start AutoDJ on your mount\n6. Listen at `http://localhost:8080/player/radio`\n\n## Configuration\n\nKast is configured via a single TOML file (`server/kast.toml`). The Docker entrypoint auto-generates it on first run from the bundled example. All keys can be overridden via environment variables — see [`.env.example`](.env.example).\n\n| Section | Key Options |\n|---------|-------------|\n| `[server]` | `http_addr`, `public_url`, `cors_origins`, `trust_proxy` |\n| `[admin]` | `api_key`, `jwt_secret` |\n| `[hls]` | `segment_duration`, `playlist_size`, `output_dir` |\n| `[library]` | `scan_dirs`, `audio_extensions` |\n| `[autodj]` | `default_mode` (sequential/shuffle), `crossfade_ms` |\n| `[ssl]` | `enabled`, `auto_cert`, `domains`, `cert_file`, `key_file` |\n| `[log]` | `level` (debug/info/warn/error), `format` (text/json) |\n\n## Documentation\n\n| Guide | Description |\n|-------|-------------|\n| [API Reference](docs/api-reference.md) | All endpoints with request / response schemas |\n| [Deployment](docs/deployment.md) | Cloudflare, Let's Encrypt, reverse proxy — step by step |\n| [Webhooks](docs/webhooks.md) | Event types, payload schemas, signature verification |\n| [Scheduled Playlists](docs/scheduled-playlists.md) | Time-based AutoDJ rotation |\n| [Jingle Insertion](docs/jingle-insertion.md) | Per-mount ad / jingle scheduling |\n\n## Project Structure\n\n```\nkast/\n├── server/                    # Go streaming server\n│   ├── cmd/kast/              # Entry point\n│   ├── internal/\n│   │   ├── api/               # HTTP router, middleware, handlers\n│   │   ├── autodj/            # AutoDJ player (ffmpeg-based)\n│   │   ├── config/            # TOML config parser\n│   │   ├── djmanager/         # DJ session manager\n│   │   ├── hls/               # HLS segmenter\n│   │   ├── library/           # Media library scanner\n│   │   ├── mount/             # Mount point manager\n│   │   ├── playlist/          # Playlist CRUD\n│   │   ├── source/            # Live source handler\n│   │   └── ytimport/          # YouTube import (yt-dlp)\n│   ├── kast.toml              # Configuration template\n│   └── Dockerfile\n├── dashboard/                 # Next.js admin dashboard\n│   ├── app/                   # App Router pages\n│   ├── components/            # UI components (shadcn/ui)\n│   └── Dockerfile\n├── docker-compose.yml\n└── README.md\n```\n\n## Roadmap\n\n- [x] Crossfade between tracks\n- [x] Live source → HLS pipeline (connect incoming audio to segmenter)\n- [x] Scheduled playlists — [docs](docs/scheduled-playlists.md)\n- [x] Jingle/ad insertion — [docs](docs/jingle-insertion.md)\n- [x] Webhooks — [docs](docs/webhooks.md)\n- [x] Track metadata editing (artist/title/tags — mount-level metadata already supported)\n- [ ] Song request system (listeners request tracks via public API)\n- [ ] Listener analytics history (persistent time-series — current counts already live)\n- [ ] Web DJ / WHIP ingress (WHEP egress already supported)\n- [x] Low-Latency HLS (LL-HLS) support\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes\n4. Push to the branch and open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friza%2Fkast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friza%2Fkast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friza%2Fkast/lists"}