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

"That's not SoC 2 compliant"

https://ampcode.com/notes/thats-not-soc-2-compliant
1•tosh•3m ago•0 comments

Ask HN: How do you keep up with HN these days?

2•simonebrunozzi•5m ago•0 comments

Mycorrhizal Infrastructure Map

https://a-hidden-infrastructure.spun.earth/map
1•num42•5m ago•0 comments

Israel's done little to rein in spiraling settler violence against Palestinians

https://apnews.com/article/israel-palestinians-settler-violence-us-siege-west-bank-bd4ae76cec1773...
1•hebelehubele•7m ago•1 comments

Choosing the Right Database for AI Agents: LLM Generated SQL

https://predictabledialogs.com/learn/ai-stack/choosing-database-configurable-ai-agents
1•jaikant•10m ago•0 comments

Behold the 'glueball,' a new form of matter

https://www.science.org/content/article/behold-glueball-strange-new-form-matter
1•the-mitr•13m ago•0 comments

Global Mastercard outage stopping shopping in Sydney

https://www.smh.com.au/national/global-mastercard-outage-stopping-shopping-in-sydney-20260815-p60...
2•Khaine•17m ago•0 comments

Are You a Human?

https://www.newyorker.com/magazine/2026/08/17/are-you-a-human
1•mitchbob•20m ago•1 comments

Hacking Fiber to the Home

https://hackaday.com/2026/08/13/hacking-fiber-to-the-home/
2•Corrado•26m ago•0 comments

An Autonomous Framework for Systematic Factor Invest via Agentic AI

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6416881
2•dima1830•26m ago•0 comments

Show HN: NexusMem – local memory for coding agents, not just Git log

https://github.com/yaminbkk/NexusMem
1•yamin_bakoh•32m ago•0 comments

Who Is Cami Clark? Anthropic CEO's Wife Asked Epstein to Invest in Porn Business

https://www.forbes.com/sites/alisondurkee/2026/08/14/who-is-cami-clark-anthropic-ceos-wife-asked-...
4•gpi•35m ago•0 comments

Apple launches ads in Apple Maps for businesses across the US and Canada

https://www.theapplepost.com/2026/08/14/71094/apple-launches-ads-in-apple-maps-for-businesses-acr...
1•mgh2•37m ago•0 comments

Did the AI Bubble Just Pop?

https://www.youtube.com/watch?v=wrFH8PvDPFE
1•cable2600•42m ago•0 comments

Show HN: GPT, Claude, Gemini. Ask them all. Pay for one

https://whizi.io/
1•not_wowinter14•44m ago•0 comments

Robots That Walk and Talk Are Coming to Car Factories

https://www.nytimes.com/2026/08/11/business/humanoid-robots-car-factories.html
3•m463•44m ago•0 comments

Patterns and Problems in Multiagent Systems

https://www.anthropic.com/research/multiagent-systems
1•jonbaer•45m ago•0 comments

A Proposal to Fix Go's Proposal Backlog

https://github.com/golang/go/discussions/80580
1•lr0•51m ago•0 comments

Show HN: NoiseDrop – describe a place, hear it

https://www.noisedrop.app/
1•jigarmody24•54m ago•0 comments

Show HN: I spent 3 months making desktop automation stop lying to AI agents

https://github.com/lahfir/agent-desktop/tree/main
2•lahfir•57m ago•0 comments

Sexually transmitted infections are surging in Europe

https://www.economist.com/europe/2026/08/09/sexually-transmitted-infections-are-surging-in-europe
3•alphabetatango•1h ago•0 comments

Single-provider vs. multi-provider architectures for multimodal AI apps

https://medium.com/@CometAPI_/how-to-architect-a-multimodal-app-for-chat-image-and-video-in-2026-...
1•WavyPeng•1h ago•0 comments

Show HN: AI Meeting Assistant in Browser

https://chatpanel.net/
1•earth2mars•1h ago•1 comments

France's constitutional authority strikes down social media ban for under-15s

https://www.france24.com/en/france/20260814-france-s-constitutional-authority-strikes-down-social...
3•Markoff•1h ago•1 comments

Agents on Rails: The LLM Benchmark Project

https://rubyonrails.org/2026/8/12/llm-benchmarking-project
1•ksec•1h ago•0 comments

Show HN: ThoughtDAG – An editable context graph for LLM conversations

https://chenxiachan.github.io/thoughtdag/
3•chatchan•1h ago•0 comments

Flink SQL vs. Flink Java API

https://www.reddit.com/r/apacheflink/s/TAzjpyYzSH
2•ganeshsivakumar•1h ago•0 comments

Best US- and EU-hosted abliterated models with no input/output prompt retention

https://next.abliteration.ai
3•thomadev0•1h ago•2 comments

Instagzam and Other Logo Redesigns

https://creolened.com/instagzam-and-other-logo-redesigns/
1•meetpateltech•1h ago•0 comments

The other Sean Byrne doesn't exist

https://conic.al/writing/the-other-sean-byrne-doesnt-exist/
28•rdl•1h ago•6 comments