frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Niccup – Hiccup-Like HTML Generation in ~120 Lines of Pure Nix

https://embedding-shapes.github.io/introducing-niccup/
2•embedding-shape•1h ago
Yesterday I saw https://news.ycombinator.com/item?id=46121799 (Nixtml: Static website and blog generator written in Nix) and before I clicked on it, I thought it was gonna be a polished version of something I've hacked together myself in the past few weeks, but it was something else, so since seeing it, I've been polishing my hacked together Hiccup-alternative made with Nix, and I think it's good enough for some feedback from the outside world :)

The basic premise is to take a Nix expression like this:

    [ "div#main.container" { lang = "en"; } [ "h1" "Hello" ] ]
And turn it into HTML like this:

    <div class="container" id="main" lang="en"><h1>Hello</h1></div>
Nothing more, nothing less. Just "Nix Expressions/Data > HTML".

If you've used hiccup (https://github.com/weavejester/hiccup) before this will be immediately familiar to you, native data types in arrays transformed into HTML, and it matches really well with Nix! Kind of almost took me by surprise.

I've made some more involved examples available on the website, where the website itself is also dynamically generated with niccup: https://embedding-shapes.github.io/niccup/

And if that wasn't enough, I also added a quine example on the website itself, which if you copy-paste the two files you get a built version of the page itself: https://embedding-shapes.github.io/niccup/examples/quine/ (this was probably the most tricky and fun part of this whole project, so worth mentioning separately for sure)

I've used it to generate documentation websites and some smaller projects so far, but hasn't been used by others before, so I'm eager to hear what people think about it! Thank you for reading and your temporary attention!

GitHub repository: https://github.com/embedding-shapes/niccup (~800 lines of Nix in total, main implementation src/lib.nix is only ~120 lines though)

The source of the blog itself: https://github.com/embedding-shapes/embedding-shapes.github.... (~150 lines of Nix)

Show HN: Fresh – A new terminal editor built in Rust

https://sinelaw.github.io/fresh/
57•_sinelaw_•6h ago•38 comments

Show HN: I built a dashboard to compare mortgage rates across 120 credit unions

https://finfam.app/blog/credit-union-mortgages
4•mhashemi•46m ago•0 comments

Show HN: TrackerNews – Keyword monitoring and insight extraction

https://trackernews.app/
4•winchester6788•51m ago•0 comments

Show HN: MetaConvert – Free PDF and Image Conversion Tools

https://metaconvert.blogspot.com/
2•MetaConvert•1h ago•0 comments

Show HN: HCL-Schema – Create HCL Schemas Using HCL Files

https://github.com/avestura/hcl-schema
2•avestura•1h ago•0 comments

Show HN: Niccup – Hiccup-Like HTML Generation in ~120 Lines of Pure Nix

https://embedding-shapes.github.io/introducing-niccup/
2•embedding-shape•1h ago•0 comments

Show HN: Patternia – A Zero-Overhead Pattern Matching DSL for Modern C++

https://github.com/sentomk/patternia
2•sentomk•2h ago•0 comments

Show HN: Microlandia, a brutally honest city builder

https://microlandia.city
3•phaser•3h ago•0 comments

Show HN: Avolal – Book routine flights in 60 seconds

https://www.avolal.com
7•midito•3h ago•4 comments

Show HN: SafeKey – PII redaction for LLM inputs (text, image, audio, video)

https://www.safekeylab.com
4•safekeylab•3h ago•4 comments

Show HN: A $20/year invoicing tool for solo developers (simple, fast, no bloat)

https://sidepay.app/
8•mightbefun•6h ago•4 comments

Show HN: Visualize Your Thinking Patterns as a Graph

https://unravelmind.vercel.app/
2•Pr4shant•4h ago•0 comments

Show HN: Synthome – TypeScript SDK for building composable AI media pipelines

https://github.com/synthome-dev/synthome
2•dubovetzky•4h ago•0 comments

Show HN: The Taka Programming Language

https://codeberg.org/marton/taka
7•mgunyho•7h ago•4 comments

Show HN: MCP Gateway – Unifying Access to MCP Servers Without N×M Integrations

https://www.truefoundry.com/mcp-gateway
9•supreetgupta•5h ago•2 comments

Show HN: I analyzed and visualized 5k near-death and out of body experiences

https://www.noeticmap.com/
2•mikias•1h ago•0 comments

Show HN: Marmot – Single-binary data catalog (no Kafka, no Elasticsearch)

https://github.com/marmotdata/marmot
95•charlie-haley•1d ago•22 comments

Show HN: K9sight – fast, keyboard-driven TUI for debugging Kubernetes workloads

https://github.com/doganarif/k9sight
3•Arifcodes•7h ago•1 comments

Show HN: AI Hairstyle Changer – Try Different Hairstyles (1 free try, no login)

https://aihairstylechanger.space
3•QuLi-ops•7h ago•0 comments

Show HN: A prediction market where you can bet against my goals

https://market.ericli.tech
4•ericlmtn•7h ago•5 comments

Show HN: I stumbled on a free AI photo enhancer – surprisingly good results

https://aienhancer.ai/
5•passioner•13h ago•1 comments

Show HN: Mapping DNS

https://loc.place
4•bo0tzz•8h ago•0 comments

Show HN: Doubao Seedream 4.5 – next‑gen image creation and editing model

https://www.seedream4-5.net
5•Viaya•10h ago•0 comments

Show HN: I built alwayswith.us to easily add deceased loved ones into photos

https://alwayswith.us
5•jrpribs•18h ago•6 comments

Show HN: RunMat – runtime with auto CPU/GPU routing for dense math

https://github.com/runmat-org/runmat
19•nallana•1d ago•5 comments

Show HN: Boing

https://boing.greg.technology/
772•gregsadetsky•3d ago•146 comments

Show HN: Hirschberg Algorithm in PyTorch

https://jedrzej.maczan.pl/2025_11_21_dp_knapsack_sliding_hirschberg
2•yu3zhou4•13h ago•0 comments

Show HN: I built a privacy-first UK tax calculator

https://salarysacrificecalculator.org
2•tancky777•13h ago•0 comments

Show HN: RFC Hub

https://rfchub.app/
30•tlhunter•2d ago•12 comments

Show HN: The Journal of AI Slop – an AI peer-review journal for AI "research"

https://www.journalofaislop.com/
5•popidge•6h ago•0 comments