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

Wikipedia Is Battling for the Soul of the Internet

https://www.nytimes.com/2026/07/05/business/media/wikipedia-ai-elon-musk.html
1•cainxinth•2m ago•0 comments

Durian Montong

https://blog.cloudflare.com/welcome-to-connectivity-cloud/
1•basri•4m ago•0 comments

Was Homer's Ithaca an Island?

https://antigonejournal.com/2026/07/in-search-of-ithaca/
1•Hardy_Boy•4m ago•0 comments

I built a Figma for traders and investors – all in on tab

https://fynca.io/
1•adiabramov•5m ago•0 comments

Show HN: Skred – my opinionated sound/pattern engine and live coding thingy

https://octetta.github.io/pulp/doc/show-hn-1.html
2•octetta•13m ago•0 comments

Show HN: Runtime and install-time enforcement for NPM dependencies`

https://github.com/kratex-security/kratex
2•jackbeck•13m ago•0 comments

ActHub – EU AI Act compliance toolkit for small businesses (PHP, no framework)

https://sevinhub.com/acthub/
2•sergiuv•19m ago•0 comments

EPP spreading false claims on Chat Control

https://digitalcourage.social/@echo_pbreyer/116866154678577185
3•latexr•19m ago•0 comments

All Your Favorite Gadgets Are Getting More Expensive Again

https://www.wired.com/story/we-are-in-the-knockout-round-of-price-increases-for-consumer-electron...
2•joozio•21m ago•0 comments

Show HN: PES Benchmark v0.2 – Detecting AI-generated motion (Cohen's d=10.4)

https://github.com/myshapeprotocol/myshape-protocol
2•myshapeprotocol•21m ago•0 comments

Europe's air conditioning culture wars heat up

https://www.theguardian.com/environment/2026/jul/05/europe-air-conditioning-culture-wars-heat-up
2•tosh•24m ago•0 comments

Confidential computing's core trust mechanism is broken. The fix may not exist

https://www.theregister.com/security/2026/07/04/confidential-computings-core-trust-mechanism-is-b...
3•Logans_Run•27m ago•1 comments

Codex ticket: first-class Jujutsu support

https://github.com/openai/codex/issues/31167
3•xlii•27m ago•1 comments

Returning to Zig after losing trust in Rust's governance

https://gracefulliberty.com/articles/return-to-zig/
11•jonathandeamer•28m ago•3 comments

Instagram running ads promoting child abuse material in India [video]

https://www.youtube.com/watch?v=6-y726qvZ6Q
2•mgh2•31m ago•1 comments

Show HN: Open-source phone calling infra for AI agents

https://github.com/AgentLineHQ/AgentLine
3•sameersri2004•33m ago•1 comments

Pi square is nearly 10

https://mihai.page/pi-square-is-10/
4•freediver•34m ago•0 comments

Ukraine striking Russian energy infrastructure at unprecedented rate

https://www.ft.com/content/13687b48-9e54-44a1-bd4d-600bbc052baf
4•JumpCrisscross•40m ago•0 comments

Ford rehires human engineers after AI fails to match quality checks

https://www.bbc.com/news/articles/cgrkd41n2v9o
16•JumpCrisscross•42m ago•2 comments

Suezmax

https://en.wikipedia.org/wiki/Suezmax
2•thunderbong•47m ago•0 comments

Show HN: Design Patterns for AI

https://verificationdesign.com/
2•verify-ai•48m ago•1 comments

OpenAI's apparent failure to visit key site raises questions over UK investment

https://www.theguardian.com/technology/2026/jul/04/openai-apparent-failure-visit-key-site-questio...
2•YeGoblynQueenne•49m ago•0 comments

Show HN: Pixtrava – Public Profiles for Our Persistent 3D Voxel World

https://pixtrava.com/blog/public-profiles-launch
2•sbcom•50m ago•0 comments

Common 3D Benchy Problems, Causes and Fixes

https://bambu3design.com/13-common-3d-benchy-problems-causes-fixes/
4•ehsanamel•50m ago•2 comments

Japan's Hayabusa2 probe to conduct flyby of Torifune asteroid

https://www3.nhk.or.jp/nhkworld/en/news/20260705_01/
2•dvh•51m ago•0 comments

Show HN: Selbstbild – What Fable 5 thinks of your HN comment history

https://selbstbild.eu
3•Topfi•1h ago•1 comments

Skill > ~2.5-3X PNG > OCR > paint in QR

https://github.com/YogiSotho/dense-image-gen
3•yogisotho•1h ago•0 comments

New Weekly Space and Hypersonics Engineering Newsletter

https://buttondown.com/MaxQFrontier/archive/from-orbital-data-farms-to-hypersonic-prints-this/
3•chadsutter•1h ago•1 comments

Teaching Claude to Write Like Zweig

https://rornic.dev/posts/teaching-claude-to-write-like-zweig/
5•rornic•1h ago•2 comments

Sedentarism Exhibits a Distinct Mitochondrial Bioenergetic Phenotype

https://www.mdpi.com/3042-5158/2/3/10
3•bookofjoe•1h ago•0 comments