# A tool compiles all of nixpkgs into TypeScript and matches Nix's drvPaths exactly

Original title: Nixpkgs for the Front End Impaired

> Hacker News story 50244929 · language: en · submitted 2026-10-26
> Web version: https://zeli.app/story/50244929
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 90 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 19
[original](<https://fzakaria.com/2026/10/12/nixpkgs-for-the-frontend-impaired>) · [HN discussion](<https://news.ycombinator.com/item?id=50244929>)

## Summary

jinx is a transpiler that turns every .nix file into a readable TypeScript module, preserving thunks, derivation strings, and drvPaths. Across all 231,777 nixpkgs attributes, 229,063 produce byte-identical drvPaths to Nix, with zero discrepancies. The goal isn't speed — it's giving the TypeScript ecosystem access to twenty years of packaging work, enabling profiling, editor support, breakpoints, and browser evaluation.

## Key quote

> The store model is the great idea. Any similar tool built on the same model will have the same magical properties of reproducibility, and hermeticity.

## HN discussion (19 comments)

### [tom_alexander](<https://news.ycombinator.com/item?id=50284431>)

> \> Ask nixpkgs a question in a loop. Interrogate and explore nixpkgs in a REPL
>
> nix repl --expr 'builtins.getFlake "github:NixOS/nixpkgs/nixos-unstable"'
>
> nix-repl> builtins.filter (name: lib.licenses."${name}" ? spdxId && lib.strings.hasPrefix "GPL" lib.licenses."${name}".spdxId) (builtins.attrNames lib.licenses)
>
> [
>
> "gpl1Only"
>
> "gpl1Plus"
>
> "gpl2"
>
> "gpl2Only"
>
> "gpl2Plus"
>
> "gpl3"
>
> "gpl3Only"
>
> "gpl3Plus"
>
> ]

### [easygenes](<https://news.ycombinator.com/item?id=50284074>)

> Please at least add "(Nix transpliled to typescript)" to the title so it's clear what we get.

### [lorecoeur](<https://news.ycombinator.com/item?id=50283957>)

> Funnily enough, it might very well be a morale failure. Just not a moral one.

---

## Cite

- Page: https://zeli.app/story/50244929
- Date: 2026-10-26
- Source: fzakaria.com (https://fzakaria.com/2026/10/12/nixpkgs-for-the-frontend-impaired)
- Hacker News: https://news.ycombinator.com/item?id=50244929

## Other languages

- zh: https://zeli.app/zh/story/50244929 · markdown: https://zeli.app/zh/story/50244929.md
- ja: https://zeli.app/ja/story/50244929 · markdown: https://zeli.app/ja/story/50244929.md
- ko: https://zeli.app/ko/story/50244929 · markdown: https://zeli.app/ko/story/50244929.md
- de: https://zeli.app/de/story/50244929 · markdown: https://zeli.app/de/story/50244929.md
- es: https://zeli.app/es/story/50244929 · markdown: https://zeli.app/es/story/50244929.md
- ru: https://zeli.app/ru/story/50244929 · markdown: https://zeli.app/ru/story/50244929.md
