frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

trbndev•1y ago
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...

Leftium•1y ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•1y ago
Ah damn what a bummer that I can‘t edit the original comment anymore. Thank you for pointing it out… didn‘t even see that extra `l` there in the url
Leftium•1y ago
> Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

I wonder how much of that could be done without AI, just (locally) using https://www.npmjs.com/package/compromise

---

Also I couldn't find your source for bang data; Kagi maintains an updated list: https://github.com/kagisearch/bangs

I'm working on an enhanced version of bangs. Since there are so many "dead" bangs, I'm thinking of using a bang whitelist and suggestions from the full list if not found in the whitelist.

trbndev•1y ago
What an interesting library. Thanks for mentioning it here… will definitely look into it!

—-

The bangs are at

https://github.com/t128n/routr/blob/main/src/sw/routes.ts

Mostly ripped from duckduckgo.com/bang.js and then pretty-formatted with Prettier… with some sane-defaults added like a bang for ChatGPT or T3 Chat

Leftium•1y ago
Related project (also works locally):

- https://unduck.link/

- https://github.com/t3dotgg/unduck

- https://youtu.be/_DnNzRaBWUU

---

Note unduck works without service workers: https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

Is there any advantage to using service workers?

edit: Ah... unduck doesn't work from the browser search bar.

trbndev•1y ago
Unduck actually also uses service workers to cache the app locally

https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

—-

> Is there any advantage to using service workers?

With service workers we can intercept the `fetch` request, before the index.html gets rendered/loaded. One should (in theory) be redirected some micro-seconds faster than doing the redirect in the index.html js

Show HN: AwsmAudio – a WebAudio editor with native MCP

https://audio.awsm.fun
1•dakom•49s ago•0 comments

Show HN

1•dakom•2m ago•0 comments

Parsing JSON at compile time with C++26 static reflection

https://lemire.me/blog/2026/06/14/parsing-json-at-compile-time-with-c26-static-reflection/
1•r4um•9m ago•0 comments

Puzzling Success of Overparameterization: Lottery Tickets or Escape Dimensions?

https://infoscience.epfl.ch/entities/publication/9a49779b-f9f8-448d-b3d1-737c78455309
1•matt_d•12m ago•0 comments

Show HN: Font Proof – live font proofing on macOS that updates as you edit

https://fontproof.com/
1•jakefleming•15m ago•0 comments

One More Type in the Tiny Type Theory

https://jcreedcmu.github.io/posts/2026-06-14/
1•matt_d•15m ago•0 comments

The Beauty of Batteries

https://worksinprogress.co/issue/the-beauty-of-batteries/
1•latentframe•34m ago•0 comments

Show HN: Applora – extracting product feedback from Shopify app reviews

https://applora.ai
2•yuangwei•37m ago•0 comments

Stackoverflow for Agents Sofa

https://agents.stackoverflow.com/skill.md
1•pow-tac•47m ago•0 comments

Notes from the PipeWire Hackfest 2026

https://arunraghavan.net/2026/06/notes-from-the-pipewire-hackfest-2026-part-1/
2•JNRowe•47m ago•0 comments

Show HN: AgentBridge – translate and govern calls between AI agent protocols

https://github.com/shadowhunter-92/agentbridge
1•Shadowhunter89•54m ago•0 comments

Demystifying Noise Contrastive Estimation

https://jxmo.io/posts/nce
1•jxmorris12•58m ago•0 comments

Apple Foundation Models

https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
2•MehrdadKhnzd•1h ago•0 comments

AI Agents Don't Need SMS APIs. They Need Infrastructure

https://blog.bridgexapi.io/from-rest-apis-to-mcp-making-messaging-infrastructure-ai-native
2•Bridgexapi•1h ago•0 comments

Fugee, an agentic AI assistant for displaced people and asylum seekers [video]

https://www.youtube.com/watch?v=PYGzJZj7LfM
2•helmo•1h ago•0 comments

'Worst Example of Misconduct': Court Affirms Sanctions for Erroneous AI Cites

https://www.law.com/therecorder/2026/06/12/worst-example-of-misconduct-appellate-court-affirms-sa...
2•1vuio0pswjnm7•1h ago•0 comments

'Strains Credulity': Judge Rejects Meta's Attempt to Dismiss Copyright Suit

https://www.law.com/therecorder/2026/06/12/strains-credulity-judge-rejects-metas-attempt-to-dismi...
1•1vuio0pswjnm7•1h ago•0 comments

Who is the Real Dennis Ritchie? (1991) [pdf]

https://dmrthesis.net/wp-content/uploads/2021/08/BLR-Article-UNIXWorld-Jan1991-A.pdf
2•caned•1h ago•0 comments

A brief tour of the PDP-11, the most influential minicomputer of all time (2022)

https://arstechnica.com/gadgets/2022/03/a-brief-tour-of-the-pdp-11-the-most-influential-minicompu...
4•jensgk•1h ago•0 comments

Ask HN: How can we democratize agentic coding

1•omot•1h ago•0 comments

US Lawmakers Pressing DOJ on fraud, bribery case against Indian Billionaire

https://www.law.com/international-edition/2026/06/12/us-lawmakers-are-pressing-the-doj-on-its-dec...
1•1vuio0pswjnm7•1h ago•1 comments

A Galois Field Arithmetic Primer

https://tomverbeure.github.io/2026/06/14/Galois-Field-Arithmetic-Primer.html
3•matt_d•1h ago•0 comments

Quantum Horizon: Quantum Computing as a Threat to Bitcoin and Ethereum

https://arxiv.org/abs/2606.14484
2•OutOfHere•1h ago•0 comments

Show HN: Prela – A Compositional and Controllable Query Language

https://prela-lang.org
2•remywang•1h ago•0 comments

ArkType: The Parse-Don't-Validate Sequel I Didn't Know I Needed

https://cekrem.github.io/posts/arktype-parse-dont-validate-sequel/
2•jcbhmr•1h ago•0 comments

Found this FREE open source APP which is an absolute GEM

https://github.com/Prithvi-Web/Treemap
1•DaGoat487•1h ago•2 comments

I indexed 936 Lex Fridman episodes into a RAG that cites its sources

https://github.com/aranajhonny/omnipod
2•akatsutki•1h ago•0 comments

Bretisilocin

https://en.wikipedia.org/wiki/Bretisilocin
2•isoprophlex•1h ago•0 comments

Ask HN: What does your local LLM setup looks like?

2•the-mitr•1h ago•0 comments

Stripping KiezelPay (and other network calls) from Pebble Watch Faces

http://luke.abq.nm.us/blog/2026-06-14-Pebble-Watchface-Strip-KiezelPay/
2•sleepyink•1h ago•0 comments