frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: JavaScript/JSON and CSS minifier lib in minimal C89

https://fossil.wanderinghorse.net/r/cssminc/doc/ckout/README.md
2•sgbeal•3h ago
For those 1.7 of you who may have need of a JavaScript or JSON minifier which (A) is not based on node.js and (B) is not "poisoned" by the "do no evil" license attached to Douglas Crockford's minifier[^1] (commonly seen in various projects over the years)...

My C89 CSS minifier was recently broken down into a separate JavaScript/JSON minifier. It's trivial to embed in C, "should" build fine in WASM (that's untested, though), and is pretty small: the whole combined library is about 67kb, or about 34kb for just the JS parts (much of which is docs).

It minifies only spaces, not symbols, and does not offer any options for _not_ minifying (e.g. adding newlines every so often for the sake of tools which treat extremely-long-lined files as binaries) except that by default it retains the first comment in the input if it's the first non-whitespace content (those are typically license/attribution blocks) but it can be told to optionally strip those too.

LLM disclaimer: the 100% hand-written CSS minifier was given to an LLM which, tasked with creating a JS minifier with the same interface, created the new variant in about 20 seconds. That code was later hand-refactored to consolidate parts common to the two minifiers (all of which were hand-written) but the JS-specific pieces are otherwise 100% LLM-generated.

Happy minifying!

[^1]: To clarify: at least a few projects' source code has been rejected by Linux package maintainers because the "do no evil" clause is considered antithetical to those distributions' ideals of freedom. Fair enough.

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
389•aplavin•4d ago•130 comments

Show HN: Case study: A coding agent refactors a 750k LOC app, no code review

2•bonjourjoel•1h ago•0 comments

Show HN: PumpProof – Scores a hyped stock's dilution risk from its SEC filings

https://pumpproof.com
5•jekjek•1h ago•0 comments

Show HN: Tool to turn a repo into map

https://codemap.gitbiased.com
2•skyfantom•2h ago•0 comments

Show HN: Turn SSH X11 Forward to WebSocket – remote apps flow to you workstation

2•kbradero•2h ago•0 comments

Show HN: Descript wanted $24/mo, I built an open-source alternative in a weekend

https://github.com/wassgha/rescript
16•wassimgr•7h ago•0 comments

Show HN: Horus-runtime – High Performance Computing workflow manager

https://github.com/temple-compute/horus-runtime
2•chdominguez•2h ago•0 comments

Show HN: Dozenal – A Game of Spatial Arithmetic

https://dozenal.game
8•sarreph•3h ago•1 comments

Show HN: Watch 14-Byte AI "brains" attempt to solve a 2D maze (Its hard)

https://con-dog.github.io/MINIMIO-PUBLIC-FRONTEND/
11•purple-leafy•6h ago•3 comments

Show HN: JavaScript/JSON and CSS minifier lib in minimal C89

https://fossil.wanderinghorse.net/r/cssminc/doc/ckout/README.md
2•sgbeal•3h ago•0 comments

Show HN: Markwright – a 2MB native screen annotator with no telemetry

https://www.aloneguid.uk/projects/mw/
2•aloneguid•3h ago•0 comments

Show HN: Agent Console – A Local Dashboard for Codex and Claude Code

https://github.com/buhuipao/agent-console
2•buhuipao•3h ago•0 comments

Show HN: Watch random code typed out on an MS-DOS IDE

https://hackerman.specr.net/
12•vunderba•9h ago•2 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
237•pompomsheep•1d ago•81 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
133•zeldone•21h ago•27 comments

Show HN: Gitwig – Mouse-drivable Git TUI and multi-repo dashboard in Rust

https://gitwig.dev/
2•tareqmy•4h ago•0 comments

Show HN: I mapped every US golf course

https://golfcoursebrowser.com/
208•rickmf•1d ago•154 comments

Show HN: We built an MCP server for document generation

https://docuqueue.com/#mcp
2•dvcoolarun•5h ago•0 comments

Show HN: adCasa OS – AI marketing workspace built with Bayesian attribution

https://adcasa.io/
2•adcasa•5h ago•0 comments

Show HN: A browser-based vector animation engine rendering animated objects

https://thorvg-janitor.vercel.app/
8•hermet•5h ago•3 comments

Show HN: I made a convenient and fast file sharing service

https://coldfiles.dev/
3•bunchy7s•5h ago•6 comments

Show HN: Paper – A Journaling CLI for Developers

https://paper.rewrlution.com
9•dmsehuang•14h ago•5 comments

Show HN: Comparing stock returns after cyber incidents

https://incidentimpact.com/
5•0xad•6h ago•2 comments

Show HN: How to Resolve Software Deployment Issues with SeaTicket in 4 Steps

3•Daniel-Pan•6h ago•0 comments

Show HN: 'Write' – A Markdown Editor in the Browser

https://codeberg.org/joexo/write
2•joexo•6h ago•0 comments

Show HN: Relay – turn Claude Code into a visual Kanban build loop

https://github.com/YoniRaviv/Relay
2•YonathanRaviv•6h ago•0 comments

Show HN: WordEq

https://wordeq.app/
2•Minhir•7h ago•3 comments

Show HN: Codex Plays NetHack

https://asciinema.org/s/HS1tpO6cjFsaSzS7
2•emosenkis•7h ago•1 comments

Show HN: Simple HIIT timer for efficient workouts

https://www.hiitmeup.fit/
6•takee•13h ago•2 comments

Show HN: Skill-language-server – A language server for agent skills

https://github.com/CyrusNuevoDia/skill-language-server
2•knrz•7h ago•0 comments