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: I replaced my X analytics dashboard for a daily "what to do next" brief

https://trumpet.house
2•chrislxy•2m ago•0 comments

We All Depend on Open Source. We Will Defend It Together

https://akrites.org/letter/
2•dhruv3006•2m ago•0 comments

Show HN: Turn any X account into an RSS feed

https://rss.gurify.com/
3•slavba•4m ago•1 comments

Ask HN: What do you still love most about AI?

2•akashwadhwani35•7m ago•0 comments

Increasing Photon Upconversion Efficiency with Structural Exciton Localization

https://hackaday.com/2026/06/25/increasing-photon-upconversion-efficiency-with-structural-exciton...
2•grajmanu•8m ago•0 comments

A Charter School Spent $500k on AI-Powered Humanoid Robots. Was It Worth It?

https://voiceofsandiego.org/2026/06/24/a-charter-school-spent-500000-on-ai-powered-humanoid-robot...
2•the-mitr•8m ago•0 comments

Show HN: OmniCore – A neural engine for multimodal NPC agency (Beta)

https://medium.com/@www.ahadprogamer/introducing-omnicore-a-neural-brain-for-your-games-npcs-1612...
2•Ahadprogamer•8m ago•0 comments

Following a USPS smishing kit through censys DNS data

https://censys.com/blog/following-a-usps-smishing-kit-through-censys-dns-data/
2•sans_souse•9m ago•0 comments

I feed my coding agent JSON instead of screenshots

https://slimsnap.ai/blog/json-not-screenshots
3•bickov•10m ago•0 comments

Daily Stock Analysis

https://github.com/ZhuLinsen/daily_stock_analysis
1•grajmanu•11m ago•0 comments

Turning brain prediction models into testable explanations

https://www.microsoft.com/en-us/research/blog/understanding-the-brain-with-ai-driven-explanations...
1•grajmanu•12m ago•0 comments

Elon Musk's SpaceX plans Starlink mobile push into US consumer market

https://www.ft.com/content/42af0f15-3aa9-49b7-b429-4a39540af03e
2•ilreb•13m ago•0 comments

Crypto Bear Market Playbook 2026: How to win by not dying

https://hduynam99.substack.com/p/crypto-bear-market-playbook-2026
2•hoangthuytrang•15m ago•0 comments

OpenAI Mulls Delaying IPO Until 2027

https://www.investors.com/news/technology/openai-ipo-ai-startup-mulls-delaying-until-2027-spacex/
2•helsinkiandrew•16m ago•0 comments

Making Equality Saturation Usable for Developing Vectorized Compilers

https://dl.acm.org/doi/full/10.1145/3802603
1•matt_d•16m ago•0 comments

Modern GPU Programming for MLSys Book

https://mlc.ai/modern-gpu-programming-for-mlsys/
1•tanelpoder•16m ago•0 comments

Pliny the Younger's Letters About the Eruption of Vesuvius

https://www.pompeii.org.uk/s.php/tour-the-two-letters-written-by-pliny-the-elder-about-the-erupti...
1•pncnmnp•20m ago•0 comments

DeepSeek Is Recruiting

https://app.mokahr.com/social-recruitment/high-flyer/140576
3•RIshabh235•25m ago•0 comments

Reading AI Model Compilation in MLIR Through the Lens of Formal Theories

https://arxiv.org/abs/2606.25244
2•matt_d•25m ago•0 comments

Context loss is the real reason AI coding slows down engineering teams

https://brunelly.com/
2•RihabAI•26m ago•0 comments

AI in research: we need to stop treating every AI-related issue as misconduct

https://www.frontiersin.org/news/2026/06/26/ai-in-research-why-we-need-to-stop-treating-every-ai-...
2•giuliomagnifico•31m ago•0 comments

How the DeepMind mafia brought the AI boom to London

https://www.ft.com/content/6a3a46b9-4725-469e-a909-917768a74afb
1•mmarian•31m ago•1 comments

Trump administration asks OpenAI to stagger release of new model

https://ca.finance.yahoo.com/news/trump-administration-asks-openai-stagger-204300837.html
2•Palmik•33m ago•0 comments

AI coding will be more expensive than human developers

https://www.heise.de/en/news/Forecast-By-2028-AI-coding-will-be-more-expensive-than-human-develop...
1•slow_typist•33m ago•0 comments

4chan dating app is FOSS

https://github.com/duolicious/duolicious
1•xc90•33m ago•0 comments

What we miss when we ignore male infertility

https://www.bbc.co.uk/news/articles/cx2w4kz7z1ko
2•mmarian•35m ago•0 comments

King Charles reveals he paid £12.9M in tax for 2024-25

https://www.bbc.co.uk/news/articles/c8x2151y8q4o
1•mmarian•36m ago•0 comments

Show HN: Turns Any XPost into Carousel

https://tocarousel.app
1•ckkampy•37m ago•0 comments

Trump administration asks OpenAI to stagger release of new model

https://ca.finance.yahoo.com/news/us-presses-meta-agree-ai-213859668.html
1•wahnfrieden•40m ago•0 comments

A Survey on Lawvere's Fixed-Point Theorem (2025)

https://arxiv.org/abs/2503.13536
2•measurablefunc•43m ago•0 comments