Show HN: Query language for HN APIs, executed in-browser using Rust and WASM
play.predr.ag
play.predr.ag
Execution is 100% client-side in the browser. There's no backend server, predr.ag is hosting only static files. Open the dev tools network pane and run a query -- you'll see that the only requests going out are to HN APIs.
Still a bit rough around the edges:
- error cases need polish
- the UI is not mobile-friendly at the moment
- some open Safari bugs prevent it from working on Safari or on iOS devices, etc.
That said, you can query for things like:
- patio11 comments on HN stories about his own blog posts: https://play.predr.ag/hackernews#?f=1&q=IyBDb21tZW50cyBieSBw...
- story comments that link to other HN stories: https://play.predr.ag/hackernews#?f=1&q=IyBDb21tZW50cyB0aGF0...
- discussions where the top-level comment author replied 2+ more times in the same comment tree: https://play.predr.ag/hackernews#?f=1&q=IyBDb21tZW50cyBvbiB0...
Using the Trustfall query engine: https://github.com/obi1kenobi/trustfall
10min conference talk on what else Trustfall can do: https://www.hytradboi.com/2022/how-to-query-almost-everythin...