Karaoke hosting software built on .NET 10. KHost pairs a host console, where you run the night,
with a local screen app that shows the song to the room. The console is a Blazor app in its own
native window (on Riftway), or in a browser with
--headless.
Download the latest release from the Releases page:
| Installer | Portable | |
|---|---|---|
| Windows (x64) | KHost.App-win-Setup.exe: installs for the current user, adds Start menu and desktop shortcuts, and uninstalls from Installed apps |
KHost.App-win-Portable.zip: unzip anywhere and run KHost.exe |
| macOS (Apple silicon) | KHost.App-osx-Setup.pkg: installs KHost.app into Applications |
KHost.App-osx-Portable.zip: unzip and open KHost.app |
Neither needs admin rights. The Mac builds are signed and notarized by Apple. The other files on a
release (.nupkg, RELEASES, releases.*.json) are what the updater reads.
Updates. KHost checks for a new version once, when it starts. With App Settings → Update automatically on (the default) it downloads the update in the background and installs it the next time KHost starts, never mid-show. With it off, KHost only says that a new version is available.
Linux has no download yet; run it from source (below).
- Singer queue and rotation. Singers join the queue and the rotation decides who is up next. Each singer's wait is estimated, with optional rounding and a changeover gap per singer ahead. Guests can sign up remotely, and one click closes or reopens remote sign-ups mid-show.
- Search and enqueue. Search the library, or a plugin's media provider, and put a song on a singer's list. Songs a provider still has to download show their progress on the Downloads page.
- The screen. One display shows the song: the local screen app, or a device a plugin supplies.
Each venue lays out its screen in Edit Venue → Screen layout: the marquee, QR codes, song and
singer badges, the lyric progress bar and more sit in a top and a bottom row around the words,
with per-edge margins for TVs that crop, and a live preview. The marquee takes template tags such
as
{singer}and{singers-count}. The local screen can play a library video, or a visualisation, under the words. - The "Up next" card. Announce the next singer on the screen between songs. The card stays up through the end of a song and goes when the next one starts; a venue styles it (presets, panel, edges, name size) with a live preview over light, dark and photo backgrounds.
- Performance. Per song: key (±6 semitones), tempo (±50%) and, where the song has them, the level of each lead voice. App Settings can stop a song a set time after its last sung word.
- Break music. Between singers KHost fills the room from break music, and a venue can name the track that is playing in a corner of the screen.
- Ads. A venue can choose an ad playlist; ads play in the gap after a performance, never over one.
- Sound Board. Pads of short sounds (fanfares, rimshots, crickets…) to play over the room, with a volume per pad. Ctrl+B (Cmd+B on a Mac) opens and closes it.
- Tips and history. Tips are recorded against the singer and the venue they were taken at. Performance history shows each singer's songs with tonight's and all-time totals. "Tonight" ends at an App Settings time (4:00 am by default), not at midnight.
- Themes. Eleven built-in console themes (Inkwell is the default), custom themes you edit yourself, and themes that plugins ship.
The library, singers, groups and venues live in SQLite; the queue, settings and other state live in
JSON files beside it. Everything is in KHost's data folder: ~/Library/Application Support/KHost on
macOS, %LocalAppData%\KHost on Windows, and beside the executable on Linux. Set KHOST_DATA_ROOT
to use another folder, for example to keep a test run's data apart.
When a song starts, a renderer answers what the connected display gets. It answers with one of two things, or both:
- Stems that the display mixes for itself. A display that mixes runs no ffmpeg at all.
- A stream that the host encodes with ffmpeg into HLS at play time, one ffmpeg per song. This is the fallback, and it takes any file nothing else claims.
There is no pre-render. Nothing is encoded ahead of time and nothing is cached between songs.
There is one display at a time: the local screen, or a device a plugin supplies (for example a Cast receiver). Picking one disconnects the other. The display that is up reports the song's position, and the host trusts only that report.
During a song the host can shift the key (±6 semitones), the tempo (±50%) and, where the song carries stems, the vocal level. A display that can ride a level itself does so; otherwise the host rebuilds the stream at the playhead with the new mix. The local screen covers that rebuild by keeping the old stream playing until the new one has sound.
A plugin runs in-process and can add:
- media providers: search and download songs into the library;
- break music providers;
- queue rotation modes;
- display providers: somewhere else the song comes out, such as a network receiver;
- formats: a plugin that ships its own container can describe it (
IMediaProbe), render it (IMediaRenderer) and hand over its timed lyrics (ITimedLyricsProvider), and can gate what may be queued or played from it (IMediaPlaybackGate); - QR codes it offers the screens, which the venue chooses whether to draw;
- buttons on its row on the Plugins page, and tables and prompts reached from them;
- themes: console stylesheets listed in its
manifest.json, shown read-only beside the built-in ones. A plugin that ships only themes needs no code at all (contracts 1.2.0).
Hosts install plugins from the Available tab on the Plugins page, which reads the published
plugins.json in riddlemd/KHost.Releases. The catalog
offers the build for the host's platform. It is the trust root: a release is offered only over https
with a sha256, and the download is hashed and checked before anything is written. An install is
staged and applied on the next start, never into a running host.
To install by hand (a plugin that is not in the catalog), unzip its release into its own folder
under KHost's plugins/, enable it on the Plugins page and restart.
A plugin needs the contracts version it was compiled against: the KHost.Abstractions version its
.deps.json records, read by the host, never declared. A host runs, installs and offers it only when
the host's own contracts (<ContractsVersion> in Directory.Build.props)
share its major and are no older; otherwise the Plugins page says which side needs updating. Plugins
built before contracts 1.0 need 0.61, which every 1.x host runs.
A plugin builds against two NuGet packages, KHost.Abstractions (the interfaces and models)
and KHost.Common (helpers over them), both MIT. It references them with
ExcludeAssets="runtime" and ships no copy, because the host already has both. They are not on
nuget.org yet, so ./build/pack-contracts.sh packs them into a local feed:
dotnet nuget add source ~/.nuget/khost-local -n khost-local # once per machine
./build/pack-contracts.shCatalog entries are written by a tool, never by hand:
dotnet run --project tools/KHost.CatalogSync -- <owner/repo>- .NET 10 SDK: the exact version is pinned in
global.json - Node.js 22 or later: the build needs
node_modules(npm installinsrc/KHost.UserInterface) - FFmpeg (
ffmpegandffprobe): onPATH, in a folder named in App Settings, or installed by KHost from a pinned third-party build on Windows x64 and macOS (App Settings → Install FFmpeg, or the setup wizard). FFmpeg is not distributed with KHost.
KHost encodes video with a hardware encoder when the machine has one and falls back to the CPU (libx264) otherwise. App Settings' "Video encoder" can force either, so the CPU is what decides whether it keeps up when no hardware encoder is available.
| Minimum | Recommended | |
|---|---|---|
| CPU | 8th-gen Core i3 / Ryzen 3 2000 / N100 | Any modern quad-core, or Apple silicon |
| RAM | 8 GB | 16 GB |
| Storage | 128 GB SSD | 256 GB SSD, plus room for the library |
| Audio | Stereo line out, or a class-compliant USB interface | The same |
| Network | Same subnet as any network display | Wired |
Mac builds are for Apple silicon only; Intel Macs can run KHost from source.
Known to work: an ASUS VivoBook 15 (Core i7-1065G7, 8 GB, Windows 11) ran a full night, visualisations included.
A song that is streamed is encoded while it plays, so the encode has to run faster than real time.
To check a machine, run ffmpeg against a real karaoke file and read the speed= figure at the end:
ffmpeg -benchmark -i song.mp4 -c:v libx264 -preset veryfast -profile:v main -c:a aac -f null -git clone https://github.com/riddlemd/KHost.git
cd KHost
(cd src/KHost.UserInterface && npm install)
dotnet run --project src/KHost.UserInterface # native window
dotnet run --project src/KHost.UserInterface -- --headless # console at http://localhost:5251The first run walks through setup at /setup. Only one instance runs at a time: port 5251 is held
by a lock, so stop one before starting another.
Logging is at Information by default. Raise it with the standard Logging:LogLevel:Default key, in
appsettings.json, as Logging__LogLevel__Default=Debug in the environment, or on the command line
(-- --Logging:LogLevel:Default=Debug). A screen the host launches inherits the level;
LocalScreen:LogLevel sets the screen's on its own.
dotnet build KHost.slnx "-p:BaseOutputPath=./obj/_build"
dotnet test tests/KHost.UnitTests
dotnet test tests/KHost.IntegrationTests # drives real ffmpeg
(cd src/KHost.LocalScreen/screen-ui-tests && npm test) # the screen page's JavaScript; no npm installSCSS compiles inside dotnet build; there is no separate sass step. The unit tests are hermetic
and never skip. The integration tests need ffmpeg and fail without it; set
KHOST_SKIP_ENVIRONMENT_TESTS=1 to accept skipping them.
CI builds and runs the unit tests on Ubuntu, Windows and macOS. It is run by hand for now; push and pull-request triggers come back once a manual run is green.
A v<x.y.z> tag (or a run of Release by hand) builds the Windows
installer with Velopack and publishes it as a GitHub release:
KHost.App-win-Setup.exe, a portable zip and the update packages. build/pack-windows.ps1 -Version <x.y.z> builds the same files locally.
The Mac copy is built on a Mac from the same tag and added to that release: signed with a Developer
ID, notarized by Apple, and packed with Velopack into KHost.App-osx-Setup.pkg, a portable zip and
the osx update packages. The latest release is the update feed an installed KHost checks at startup
(Updates:FeedUrl); each platform reads its own files from it.
- AGENTS.md: architecture, rules and conventions, for contributors and coding agents.
- The KHost wiki: setup, configuration and plugin guides.
- CONTRIBUTING.md: the terms contributions are accepted under.
KHost is licensed under the PolyForm Shield License 1.0.0, except for the two projects a plugin builds against: KHost.Abstractions and KHost.Common, which are MIT.
You may use, modify, and self-host KHost for any purpose, including commercial use (for example, running it to host your own karaoke events). You may not use it to provide a product or service that competes with KHost, including offering KHost or a derivative as a hosted/managed service (SaaS), or redistributing it under a different brand, without a separate license.
Those two are MIT so that plugins are unencumbered: you compile against them and license your own plugin however you like, copyleft included. The non-compete term above applies to KHost itself, not to anything you build on them.
Commercial, SaaS, and OEM licenses are available for those uses. Contact Michael Riddle riddlemd@gmail.com.
Third-party components are listed in THIRD-PARTY-NOTICES.md, with full
license texts under licenses/. FFmpeg is not distributed with KHost; it is
obtained by the user (see that file).
