Programs

Real software written in Krypton — from native PE/COFF binaries that need no C toolchain at all, to larger apps that bridge to system libraries through the C path.

kryofetch

Featured

A Windows system-information fetch tool — the kind of one-liner you’d run in a fresh terminal to see what your machine is.

    ,.=:!!t3Z3z.,                     User:   brian@KRYPTONBEAST
   :tt:::tt333EE3                     OS:     Windows 11 Pro (build 26100) x86_64
   Et:::ztt33EEEL @Ee.,      ..,      CPU:    Intel(R) Core(TM) i7-14700F (20c / 28t)
  ;tt:::tt333EE7 ;EEEEEEttttt33#      RAM:    [▒▒▒▒▒███████████████]  18 GB / 63 GB  29%
 :Et:::zt333EEQ  SEEEEEttttt33QL      Disk:   [▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█████]  C:\ 1150GB/1862GB 61%
 it::::tt333EEF @EEEEttttt33F;:       GPU:    [▒▒██████████████████] NVIDIA GeForce RTX 5070 (11.6 GB VRAM)
 ,.=:::::!t=.  @EEEEttttz33QF         Shell:  PowerShell
 ;:::::::::t  ;EEEttttt::::t3         Uptime: 2 days, 8 hrs, 27 min
 {3=*^ "*4)  :EEEEtttt::::z7          Pkgs:   434 (winget)

What it does

Reads user, OS version, CPU model, RAM/disk usage with bar graphs, GPU name and VRAM, shell, terminal, screen resolution, uptime, package manager counts, and the Windows theme — then renders them next to a coloured ASCII logo with a 16-colour ANSI palette.

How it’s built

~600 lines of Krypton across 7 modules (run.k, cpu.k, os.k, mem.k, disk.k, gpu.k, utils.k). Talks to Win32 directly — RegOpenKeyExA for the registry, GlobalMemoryStatusEx for RAM, GetDiskFreeSpaceExA for drives, PdhAddEnglishCounterA for live GPU usage, CreateDXGIFactory for VRAM enumeration, and a kernel32-only IAT through krypton_rt.dll. No WMI, no PowerShell shell-out, no Python.

Run it

git clone https://github.com/t3m3d/krypton
git clone https://github.com/t3m3d/kryofetch
cd kryofetch
build.bat
.\kryofetch.exe

View on GitHub Windows 10 / 11 · native PE/COFF, no gcc required

kmon

New

A real-time network monitor — captures live packets off your NIC, parses them, and streams the feed plus running stats to a browser dashboard.

kmon: HTTP UI on http://127.0.0.1:8080
kmon: capturing on \Device\NPF_{B3F9...}

# browser dashboard ──────────────────────────────────────────
  ↓ 12.483 Mbps      packets: 8,241    TCP: 7,902   UDP: 314   ICMP: 25

  TS              SRC                DST                PROTO   LEN
  17.234s         192.168.1.42:54812 142.250.80.46:443  TCP     1418
  17.241s         192.168.1.42:54813 162.159.135.234:443 TCP    312
  17.244s         8.8.8.8:53         192.168.1.42:51220 UDP     78
  17.252s         192.168.1.42:54814 140.82.114.21:443  TCP     202
  17.260s         192.168.1.1        192.168.1.42       ICMP    84

What it does

Opens a libpcap (Npcap) capture handle on the chosen interface, pulls raw frames into a 64-slot ring buffer, parses Ethernet + IPv4 + TCP/UDP/ICMP headers in pure Krypton, and streams each packet plus a per-second stats snapshot to a browser dashboard over Server-Sent Events. The HTTP server is a tiny in-process winsock loop — no nginx, no Express, no Python.

How it’s built

9 Krypton source files, no .h bridge files in the tree. run.k is the main loop; parser.k decodes packet bytes; protocol.k builds JSON event messages; stats.k tracks throughput and per-protocol counters; kmon_cap.k wraps libpcap and kmon_http.k wraps winsock — both keep their C primitives inside cfunc { } blocks alongside the Krypton declarations, so the source tree stays all-.k. The dashboard itself is a single static kmon_ui.html.

Run it

git clone https://github.com/t3m3d/krypton
git clone https://github.com/t3m3d/kmon
cd kmon
build.bat
.\kmon.exe \Device\NPF_{your-nic-guid}

Requires Npcap installed (libpcap for Windows). The browser opens automatically to http://127.0.0.1:8080 when kmon starts.

View on GitHub Windows 10 / 11 · C path (gcc + Npcap SDK at build time)

More on the way

Krypton is young — kryofetch ships as a fully native binary; kmon shows the C-path pattern for apps that need to bridge to system libraries like libpcap. The repo includes 84 example programs and 35 textbook algorithm implementations to copy as starting points.

Examples

84 small programs — calculator, fibonacci, hex dump, ASCII box drawing, run-length encoding, prime sieve, temperature converter, and more. Single-file demos meant to be skimmed.

Browse examples →

Algorithms

35 textbook implementations — Quicksort, Merge sort, Heap sort, Knuth-Morris-Pratt, Dijkstra, Union-Find, 0/1 Knapsack, LIS, Topological sort, plus a singly-linked list built on the env runtime.

Browse algorithms →

Tools

20 command-line utilities written in Krypton — cat, grep, head, tail, fmt, sort_lines, wc, diff_lines, etc. Each builds to a standalone native binary.

Browse tools →

Built something in Krypton?

We’d like to feature it here. Reach out with a link and a one-line description — we’ll add a card alongside kryofetch and kmon.

brian@krypton-lang.org Open an issue