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

In-House Counsel Is About to Get Good

https://www.whatrunsai.com/research/harvey
1•hmichaelson20•2m ago•0 comments

Where We Expect AMD EPYC 9006 CPUs in the Era of Agentic AI – ServeTheHome

https://www.servethehome.com/where-we-expect-amd-epyc-9006-cpus-in-the-era-of-agentic-ai/
1•rbanffy•2m ago•0 comments

Micron projects tightening RAM shortages through 2028, generates record profit

https://www.tomshardware.com/pc-components/dram/micron-projects-tightening-ram-shortages-through-...
1•rbanffy•3m ago•0 comments

Books that made me a 10x engineer

https://www.thetrueengineer.com/p/3-books-that-made-me-a-10x-engineer
1•adletbalzhanov•3m ago•0 comments

Custom Automations are now GA in Factory

https://twitter.com/FactoryAI/status/2105713248507138483
1•kstrauser•4m ago•0 comments

.si Registrations Surge After US Shift to 'Super Intelligence'

https://circleid.com/posts/dot-si-domain-registrations-surge-after-us-shift-to-super-intelligence
2•speckx•4m ago•0 comments

US jobless claims near 57-year low as layoffs fall in September

https://www.reuters.com/legal/litigation/us-weekly-jobless-claims-fall-layoffs-drop-september-202...
1•frank_clover•5m ago•0 comments

ExplainDB: A Database System Built for Understandability

https://github.com/explaindb/explaindb
1•pykello•5m ago•0 comments

Show HN: I built an app that scours the internet to create a daily news briefing

https://github.com/yogthos/newsroom
1•yogthos•6m ago•0 comments

The Front Page of the Internet Is Killing RSS Feeds

https://www.extremetech.com/internet/the-front-page-of-the-internet-is-killing-rss-feeds
1•rreyes1979•6m ago•0 comments

Show HN: Yedric – Add a natural-language interface to your SaaS

https://www.yedric.ai
2•aaroneous•9m ago•0 comments

View: Program that drew, in 3D, what Apollo astronauts would see out the window

https://claude.ai/artifact/5cPjoQTJ8PvXF5FUwwbLEC
1•mariuz•11m ago•1 comments

Everybody Loves Big Boy

https://defector.com/everybody-loves-big-boy
1•speckx•13m ago•0 comments

Last.fm Album Linkr: adds 'headers' on Recent Tracks section and Album collages

https://github.com/StigNygaard/Stigs_Last.fm_Album_Linkr
1•Baljhin•13m ago•0 comments

EU/Jev – First System One Model Hosted in the EU

https://jev.bevel.software/
1•juanviera23•14m ago•0 comments

I Gave My OpenClaw Agent a Physical Body

https://www.wired.com/story/i-gave-my-openclaw-agent-physical-body-robot/
1•gmays•15m ago•0 comments

Twitter Follower Distribution (2022)

https://www.johndcook.com/blog/2022/08/09/twitter-follower-distribution/
1•theanonymousone•15m ago•0 comments

Show HN: RGBoo – interactive lofi stream for Halloween

https://rgboo.com/
2•na10•16m ago•1 comments

Record-Low 31% Say College Education Is 'Important'

https://news.gallup.com/poll/715133/record-low-say-college-education-important.aspx
2•bilsbie•17m ago•0 comments

Show HN: Vote on which of Hacker News' challenges for AI have been met

https://stoppels.ch/goalposts/
1•stabbles•20m ago•0 comments

TwIL-LM3-Pro: 3.6B formal-logic model that beats VibeThinker-3B

https://huggingface.co/webAI-Official/TwIL-LM3-Pro
3•CD_webai•23m ago•0 comments

Ask HN: Email leaked while traveling abroad?

2•thatonehack•23m ago•0 comments

The GPU Black Market That Washington Can't Shut Down

https://www.amcompute.com/blog/gpu-black-market-washington-cant-shut-down
2•ilreb•25m ago•0 comments

Pebble Round 2 Starts Shipping

https://repebble.com/blog/pebble-round-2-starts-shipping
1•gumby271•26m ago•0 comments

MCP server for editing Excel with real-time calc and diffs

https://github.com/pixelsmasher13/gridpath
2•escapingsingula•27m ago•0 comments

We are inventing the governor module

https://techcrunch.com/2026/09/30/openais-jev-clone-could-help-the-frontier-lab-stop-its-swarming...
1•gmarkwa•27m ago•0 comments

The AI Pascal's Wager

https://ploum.net/2026-10-01-pascal_wager.html
1•1matin•28m ago•0 comments

TanStack Intent v0.5: Skills you can maintain

https://tanstack.com/blog/intent-0.5-skills-you-can-maintain
2•chrisweekly•30m ago•0 comments

Echo, a new AI site to mimic the styles of particular writers or writing styles

https://echo.fulcrum.inc/
2•shaftoe444•30m ago•0 comments

Show HN: Taracode – a local DevOps agent, and 18 open models scored on one GPU

https://github.com/tara-vision/taracode
1•stefanoski•31m ago•0 comments