frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Monorail – Turn CSS animations into interactive SVG graphs

https://muffinman.io/monorail/
52•stanko•3d ago

Comments

stanko•3d ago
Hey HN,

I needed a few simple graphs for a blog post [0]. Instead of slapping together a few SVGs and moving on, I decided to write a whole library to parse CSS keyframe animations and convert them to interactive graphs.

It ended up being a rabbit hole, with a lot of caveats. But it was fun to make, and I'm really happy with the graphs it produces.

I'm not sure how useful it will be for others. If you end up using it, I'd love to see how - feel free to reach out.

It's open source [1] under the MIT license. Written in TypeScript with no dependencies.

Let me know what you think!

[0] https://muffinman.io/blog/css-image-glitch/

[1] https://github.com/Stanko/monorail

deivid•6h ago
Interesting! I had the opposite idea: to convert arbitrary SVG to CSS..
efskap•3h ago
Cool stuff! Flattening things like colours into a 1D value is an interesting challenge here. How did you decide to weigh the R channel an order of magnitude higher than G and so on? I might've tried working with HSV for instance, since it feels like animations would often be along one of those axes, but maybe not.
didgeoridoo•3h ago
Is that what’s happening with the color? I assumed it was doing (R+G+B)•Opacity, so the max would be 255•3=765 and the min would be 0.
efskap•1h ago
Yeah I dug up the relevant function because I was curious how one would solve this.

    return (r * 1000 + g * 100 + b * 10 + a * 255) / 10000;
https://github.com/Stanko/monorail/blob/2da287a4e822705a99d7...

OpenAI’s Windsurf deal is off, and Windsurf’s CEO is going to Google

https://www.theverge.com/openai/705999/google-windsurf-ceo-openai
477•rcchen•6h ago•311 comments

ETH Zurich and EPFL to release a LLM developed on public infrastructure

https://ethz.ch/en/news-and-events/eth-news/news/2025/07/a-language-model-built-for-the-public-good.html
352•andy99•9h ago•44 comments

Replication of Quantum Factorisation Records with an 8-bit Home Computer [pdf]

https://eprint.iacr.org/2025/1237.pdf
26•sebgan•2h ago•1 comments

Faking a JPEG

https://www.ty-penguin.org.uk/~auj/blog/2025/03/25/fake-jpeg/
118•todsacerdoti•5h ago•26 comments

Preliminary report into Air India crash released

https://www.bbc.co.uk/news/live/cx20p2x9093t
165•cjr•7h ago•268 comments

jank is C++

https://jank-lang.org/blog/2025-07-11-jank-is-cpp/
202•Jeaye•10h ago•70 comments

A software conference that advocates for quality

https://bettersoftwareconference.com/
57•leoncaet•6h ago•34 comments

Dict Unpacking in Python

https://github.com/asottile/dict-unpacking-at-home
51•_ZeD_•3d ago•13 comments

HDD Clicker generates HDD clicking sounds, based on HDD Led activity

https://www.serdashop.com/HDDClicker
37•starkparker•3h ago•14 comments

Leveraging Elixir's hot code loading capabilities to modularize a monolithic app

https://lucassifoni.info/blog/leveraging-hot-code-loading-for-fun-and-profit/
11•ronxjansen•3d ago•1 comments

Andrew Ng: Building Faster with AI [video]

https://www.youtube.com/watch?v=RNJCfif1dPY
178•sandslash•1d ago•47 comments

Bill Atkinson's psychedelic user interface

https://patternproject.substack.com/p/from-the-mac-to-the-mystical-bill
381•cainxinth•17h ago•204 comments

Upgrading an M4 Pro Mac mini's storage for half the price

https://www.jeffgeerling.com/blog/2025/upgrading-m4-pro-mac-minis-storage-half-price
317•speckx•14h ago•201 comments

FEMA Didn’t Answer Thousands of Calls From Flood Survivors

https://www.nytimes.com/2025/07/11/climate/fema-missed-calls-texas-floods.html
64•standardUser•1h ago•15 comments

Fundamentals of Garbage Collection

https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/fundamentals
8•b-man•3d ago•0 comments

Measuring power network frequency using junk you have in your closet

https://halcy.de/blog/2025/02/09/measuring-power-network-frequency-using-junk-you-have-in-your-closet/
21•zdw•5h ago•4 comments

Astronomers race to study interstellar interloper

https://www.science.org/content/article/astronomers-race-study-interstellar-interloper
110•bikenaga•12h ago•56 comments

Repaste Your MacBook

https://christianselig.com/2025/07/repaste-macbook/
188•speckx•15h ago•90 comments

Apple vs the Law

https://formularsumo.co.uk/blog/2025/apple-vs-the-law/
348•tempodox•21h ago•351 comments

Activeloop (YC S18) Is Hiring AI Search and Python Back End Engineers(Onsite,MV)

https://careers.activeloop.ai/
1•davidbuniat•7h ago

Monorail – Turn CSS animations into interactive SVG graphs

https://muffinman.io/monorail/
52•stanko•3d ago•5 comments

AWS Free Tier Changes on July 15, 2025

https://freetier.co/articles/aws-free-tier-changes-july-15-2025
13•coop182•4h ago•3 comments

Introduction to Digital Filters

https://ccrma.stanford.edu/~jos/filters/
40•ofalkaed•8h ago•7 comments

Computer Scientists Figure Out How to Prove Lies

https://www.quantamagazine.org/computer-scientists-figure-out-how-to-prove-lies-20250709/
13•pseudolus•2d ago•2 comments

Show HN: RULER – Easily apply RL to any agent

https://openpipe.ai/blog/ruler
54•kcorbitt•10h ago•9 comments

Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)

https://www.npr.org/sections/goats-and-soda/2024/09/23/nx-s1-5011028/detectives-mystery-lead-poisoning-new-york-bangladesh
315•perihelions•12h ago•156 comments

OpenAI delays launch of open weights model

https://twitter.com/sama/status/1943837550369812814
66•martinald•3h ago•51 comments

America's largest power grid is struggling to meet demand from AI

https://www.reuters.com/sustainability/boards-policy-regulation/americas-largest-power-grid-is-struggling-meet-demand-ai-2025-07-09/
3•riffraff•10m ago•0 comments

At Least 13 People Died by Suicide Amid U.K. Post Office Scandal, Report Says

https://www.nytimes.com/2025/07/10/world/europe/uk-post-office-scandal-report.html
569•xbryanx•16h ago•482 comments

'123456' password exposed chats for 64M McDonald's job applicants

https://www.bleepingcomputer.com/news/security/123456-password-exposed-chats-for-64-million-mcdonalds-job-applicants/
84•nan60•6h ago•49 comments