Kakapo
A Nix web bundler because why not
Install / Use
/learn @adisbladis/KakapoREADME
Kākāpō
A web bundler for Nix strings with context.
Named after the flightless parrot.
Motivation
Because I'm unwell and and think cursed hacks like //users/sterni/nix/html/README.md are cool and would like to make it's usage more practical.
Basic usage
- Writing a bundle from a derivation
let
indexHTML = writeText "index.html" ''
<h1>Welcome!</h1>
<img src="${./banner.jpg}" />
'';
webRoot = runCommand "webroot" { } ''
mkdir $out
cp ${indexHTML} $out/index.html
'';
in kakapo.makeBundle webRoot;
- Bundling a file tree from an attribute set
kakapo.bundleTree "my-webroot" { } {
"index.html" = ''
<h1>Welcome!</h1>
<img src="${./banner.jpg}" />
'';
}
Use with `htmlNix'
Check out ./templates/htmlNix.
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
