frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: String#to_proc` to Help Traversing JSON

https://github.com/samleb/schmuck
2•samleb34•37m ago
I've resuscitated a project I was working on years ago.

I was tired of having nested `flat_map` making my code basically unreadable just to fetch a simple value. The idea is to make simple & readable the traversing of deeply nested structures like JSON responses, while staying in Ruby & keeping its flexibility. Here it goes:

    graphql_response.then(&'[data][repository][issues][edges]*([node][title])')
    # => ["Support negative indexes", "Document aggregates"]

    github_prs_response.then(&'*[draft].any?')
    # => true
It's different from jq or JSONPath in that: - it's a Ruby block so you can use it with `map`, `find`, etc. - you can call Ruby method from it - it doesn't automatically flatten arrays, you decide - it raises on `nil` by default (unless you use `&`, i.e. `[customer][address]&[city]`)

Obviously, it has drawbacks: - it's yet another syntax to learn - it monkey-patches `String` which might be a blocker for some

I'm really looking for feedback here, what do you think? Is it worth releasing a gem with this value proposition?

Show HN: Isometric SF – A pixel-art map of the SF Bay Area

https://isometricsf.com/
144•juscha1•6h ago•49 comments

Show HN: Memro – Persistent Memory for Claude Code, Cursor and Codex

https://github.com/memrohq/memro
2•subalyo•16m ago•1 comments

Show HN: String#to_proc` to Help Traversing JSON

https://github.com/samleb/schmuck
2•samleb34•37m ago•0 comments

Show HN: Feedback/AMA MeditionBench; LLMs for mediation and conflict resolution

2•hendler•46m ago•0 comments

Show HN: Anvil builds premium websites at lower cost

https://www.tryanvil.dev/
2•Alumu•54m ago•0 comments

Show HN: NETWAR – hacker MMO with 15-second card duels on a shared hex map

https://play-netwar.com/?from=hn
4•Fivekoto•2h ago•0 comments

Show HN: Live map of U.S. flights during tonight's FAA nationwide ground stop

https://grounds.top/
5•gvsi•1h ago•0 comments

Show HN: Building a list of places to launch your app

https://another.directory/where-to-launch
2•ksl_def•18m ago•0 comments

Show HN: FrontierBioML – Can coding agents do ML for computational biology?

https://www.frontierbioml.com/
2•dominik-space•2h ago•2 comments

Show HN: My $300 embroidery machine needed a subscription, so I built my own app

https://github.com/simpsoka/zigzag
719•simpsoka•1d ago•244 comments

Show HN: Log every LLM call with tokens, cost, latency, and time to first token

https://github.com/garritfra/llmtee
7•garritfra•2d ago•2 comments

Show HN: Kapso – Iterative learning from enterprise data

58•alirezamshi•1d ago•13 comments

Show HN: Cal.flare – cal.diy ported to Cloudflare Workers

https://github.com/ralphbibera/cal.flare
8•ralphbibera•9h ago•0 comments

Show HN: Tinbo – yet another (modern) link shortener

https://tinbo.co/
2•gothy•4h ago•0 comments

Show HN: College Basketball Stats and Predictions

https://fijimf.com/
5•JackFr•4h ago•2 comments

Show HN: Reflota – Open-source data recovery for NTFS/FAT disks with phased copy

https://github.com/Christ10-8/reflota
30•christ_dev•12h ago•3 comments

Show HN: Hexalexagons, a daily word game on a hexagonal grid

https://hexalexagons.com/
13•michelleful•9h ago•6 comments

Show HN: The Price of Patience

https://github.com/konarkmodi/pi-doubleword
3•kkm•5h ago•0 comments

Show HN: Hotaisle-Console

https://hotaisle.xyz/blog/introducing-hotaisle-console
4•latchkey•5h ago•0 comments

Show HN: Re-ranking of the 3000 HN Comments on Jensen Huang resigns thread

https://ianchanning.com/hn/item?id=50467087
3•icc97•5h ago•0 comments

Show HN: Yogurt – Free, private, open-source alternative to Granola

https://github.com/FrigadeHQ/yogurt
297•brownrout•2d ago•113 comments

Show HN: RealtimeVAD – trading false positives for 110ms earlier end-of-speech

https://github.com/KoljaB/RealtimeVAD
30•koljab•1d ago•8 comments

Show HN: AgentRun – open-source, Self-improving Managed Agents

https://github.com/Parcha-ai/agentrun/blob/main/README.md
134•miguelrios•1d ago•37 comments

Show HN: Apron Chat Protocol

https://apron.chat/
56•shazow•1d ago•3 comments

Show HN: Webpage of Hands

https://lasmanos.app/
2•willmeyers•6h ago•0 comments

Show HN: Build a PC in 3D in the Browser

https://www.buildcores.com
60•ozaiworld•5d ago•27 comments

Show HN: Desky – Auto Safari desktop mode for iPhone Duo when unfolded

https://apps.apple.com/sg/app/desky-desktop-mode-switching/id6833103142
2•vincentneo•8h ago•1 comments

Show HN: Dodaiso – Open-source personal AI agent (like Jarvis, dots,duet)

https://github.com/Dodaios/Dodaios
2•Dodaios•8h ago•0 comments

Show HN: I recreated Papers Please but you're deciding which YC startups to fund

https://termsheetplease.com/
241•bolau•2d ago•96 comments

Show HN: Face Value Press – turn a photo into a proper playing-card court card

https://facevaluepress.com/
2•mitenko•9h ago•2 comments