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: Spotilyrics – See synchronized Spotify lyrics inside your editor

https://open-vsx.org/extension/therepanic/spotilyrics
1•therepanic•22s ago•0 comments

The Guide to the Best FDM 3D Printers of 2026

https://bambu3design.com/the-ultimate-guide-to-the-best-3d-printers-of-2026/
1•ehsanamel•27s ago•0 comments

New humanoid robots from China look like creepy pop star action figures

https://www.theregister.com/ai-and-ml/2026/07/02/new-humanoid-robots-from-china-look-like-creepy-...
1•Bender•30s ago•0 comments

Any guesses about BS short name after FAANG, ZIRP and MAG7?

1•kingleopold•52s ago•0 comments

FAA proposal: Supersonic airliners can fly over US cities if they're quiet

https://arstechnica.com/gadgets/2026/07/faa-proposal-supersonic-airliners-can-fly-over-us-cities-...
1•Bender•1m ago•0 comments

Ovaries Might Take on an Immune Function After Menopause

https://nautil.us/ovaries-might-take-on-an-immune-function-after-menopause-1282410
1•Brajeshwar•2m ago•0 comments

Japan APPI AI Training Exception Clears Lower House

https://techjacksolutions.com/ai-brief/japan-appi-ai-training-exception-clears-lower-house-what-com/
1•totetsu•3m ago•0 comments

Show HN: Muxer – open-source model multiplexer for Claude Code

https://github.com/DangerousYams/muxer
1•DangerousYams•3m ago•0 comments

How to play Doom online in Proton Drive

https://proton.me/support/play-doom-online
1•akyuu•5m ago•0 comments

Show HN: Fli – 18KB CLI file listing tool in no_std rust and Libc

https://github.com/tracyspacy/fli
3•yulkor•6m ago•0 comments

PSX Retro Tools for Blender

https://fawkek.itch.io/psx-retro-tools
1•bpierre•7m ago•0 comments

EU could announce social media ban for kids in September

https://www.euractiv.com/news/eu-plans-to-announce-social-media-ban-for-kids-in-september/
2•theanonymousone•8m ago•0 comments

Show HN: Search Console MCP – Talk to Google Search Console with Claude

https://github.com/sudomichael/search-console-mcp
1•ushercakes•10m ago•0 comments

Show HN: Bais.News – News Neutralization Piepline

https://bais.news
1•adam_public•10m ago•0 comments

Where's My Package? – Amazon's package delivery network

https://urbanomnibus.net/2026/02/wheres-my-package/
1•acid__•11m ago•0 comments

Show HN: Restore ArXiv's classic red banner (userstyle, 40 lines of CSS)

https://github.com/greysonbowser/arxiv-red
1•Topology1•11m ago•0 comments

Show HN: Endless Noir – a 1930s noir radio serial that writes itself

https://endlessnoir.com
1•geektechlive•13m ago•0 comments

Ledger – Find out who is investing in who

https://ledger.svi.solutions/explore
1•johnys•13m ago•0 comments

Show HN: I built custom movie dashboards for Apple TV

https://memovee.com/posts/creating-your-first-dashboard
1•zacksiri•13m ago•0 comments

Process API Improvements in .NET 11

https://devblogs.microsoft.com/dotnet/process-api-improvements-in-dotnet-11/
1•rellem•14m ago•0 comments

Happy Voluntary Lobotomy Day, Microsoft

https://www.uplevel.pro/p/happy-voluntary-lobotomy-day-microsoft
1•kh9000•14m ago•0 comments

Day 1: C# 15 Collection Expressions Just Got Superpowers – with()

https://medium.com/c-sharp-programming/day-1-csharp-15-collection-expressions-just-got-superpower...
1•sukhpinder0804•14m ago•0 comments

Trump admin and Anthropic haven't discussed the gov't taking a stake in it

https://www.reuters.com/business/trump-administration-anthropic-have-not-discussed-government-tak...
1•journey2s•15m ago•1 comments

Postgres Sorting at Scale Needs More Than Order By

https://www.tigerdata.com/blog/postgres-sorting-at-scale-order-by
1•rellem•15m ago•0 comments

Neurosky EEG Pov TikTok

https://github.com/eegG0D/neurosky-eeg-pov-tiktok
1•ervinzed•15m ago•0 comments

The Mental Models I Use to Work with AI

https://metedata.substack.com/p/015-the-mental-models-i-use-to-work
1•young_mete•15m ago•0 comments

The Parrot in the Machine

https://www.nybooks.com/articles/2025/07/24/the-parrot-in-the-machine-the-ai-con-bender-hanna/
2•1vuio0pswjnm7•17m ago•1 comments

China has 400 private space companies. the West is barely paying attention

https://fortune.com/2026/07/02/china-private-space-industry-landspace-geely-spacex-rainer-zitelmann/
1•Brajeshwar•18m ago•0 comments

After 30 years with Linux, I gave Windows 11 a chance and found 9 clear problems

https://www.zdnet.com/article/i-ditched-linux-for-windows-11-9-big-problems/
4•luismedel•18m ago•1 comments

Katri Vala (1901-1944)

https://authorscalendar.info/kvala.htm
1•jruohonen•19m ago•1 comments