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

$1.5B data centre for Canada's cyber spy agency to be built in Ottawa area

https://www.ctvnews.ca/ottawa/article/data-centre-for-canadas-cyber-spy-agency-to-be-built-in-ott...
1•Teever•41s ago•0 comments

Surfing Pelicans

https://fenderog.com/art-crit/page.html?p=surfing-pelican
1•fenderog•3m ago•0 comments

Emergent Design, Outside the Codebase

https://bytecode.news/posts/2026/10/emergent-design-outside-the-codebase
2•sarumake•5m ago•0 comments

The AI-Native Large-Scale Agile Software Development Manifesto

https://arxiv.org/abs/2605.07717
1•mellosouls•6m ago•0 comments

We're Always Limited by Attention

https://kadhirvelm.dev/blogs/limited-by-attention
1•kadhirvelm•8m ago•0 comments

Alexandr Wang, Meta's Gen Z billionaire AI whizz

https://www.economist.com/the-world-in-brief
1•andsoitis•8m ago•0 comments

Why the Creators of AI Do Not Understand Their Own Creations

2•borissunik•9m ago•0 comments

Why do computers/phones have a restart option along with the power off option?

2•saonnet•11m ago•0 comments

Nearly All Volume on FIFA-Linked Prediction Market Is Circular Trading

https://www.wsj.com/finance/nearly-all-volume-on-fifa-linked-prediction-market-is-circular-tradin...
3•impish9208•13m ago•1 comments

A.I., please don't take my job from me [song] [video]

https://www.youtube.com/watch?v=UIZM1cJxbHc
1•pabo•14m ago•2 comments

Show HN: Baa – find and free what your AI agents left running on your Mac

https://github.com/selviarora/baa
1•selviarora•17m ago•2 comments

Show HN: Children's Chore – A chore chart and reward app for families

https://childrenschoreapp.com
1•febeee•20m ago•0 comments

Meta removes language that may have allowed it to scrape news sites

https://www.theverge.com/tech/1013409/meta-removes-language-that-may-have-allowed-it-to-scrape-ne...
3•ilamont•21m ago•0 comments

Mobs loot and burn as protests turn violent across France

https://apnews.com/article/france-school-protests-yellow-vest-44b9d3ba91ffad4029f975dced7e31cb
3•aliasxneo•21m ago•2 comments

Show HN: AegisKernel – Test prompt injection attacks on AI agents in the browser

https://adikshatriyag-crypto.github.io/aegis-kernel/
1•adikshatriyag•21m ago•0 comments

Bun runtime for Vercel Functions now accepts Bun.serve as an entrypoint

https://vercel.com/changelog/bun-serve-entrypoint-for-vercel-functions
1•begoon•23m ago•0 comments

AI lab offers free plumbing and HVAC repairs to train AI robots

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-lab-offers-free-plumbing-an...
11•brunomarsjams•28m ago•5 comments

Proa: Multi-Target Rendering in Rust [video]

https://www.youtube.com/watch?v=pJx84jdBDKU
2•burnrate•31m ago•0 comments

Open autoresearch challenges in cryptography, ZK and math

https://www.yukon.org/
1•wslh•31m ago•0 comments

OpenAI discloses four more rogue incidents

https://fortune.com/2026/10/16/openai-discloses-four-more-rogue-incidents-involving-financial-med...
7•DASD•33m ago•1 comments

Daniel Bell

https://www.prospectmagazine.co.uk/essays/56384/daniel-bell
2•jruohonen•33m ago•1 comments

Roadster's Hidden Breakthrough: The Motors

https://twitter.com/CernBasher/status/2111439902663434403
2•bilsbie•36m ago•0 comments

OpenSmash – N64 Super Smash Bros with Custom Characters

https://github.com/turtlesoupy/opensmash
1•hmokiguess•36m ago•0 comments

MyChart and a major hospital said I could opt out of sharing my health data

https://themarkup.org/privacy/2026/10/15/mychart-health-data-opt-out-epic-notary-hipaa
3•aray07•37m ago•0 comments

SpaceX Crew-12 commander wishes we could all see our fragile Earth from space

https://www.space.com/space-exploration/international-space-station/it-really-does-change-you-spa...
3•saikatsg•40m ago•0 comments

Broker Accused of Illegally Buying 18.5M Tickets to Beyoncé, Post Malone

https://www.rollingstone.com/music/music-news/beyonce-post-malone-pitbull-concerts-ticket-broker-...
4•randycupertino•41m ago•1 comments

GNOME OS Preview

https://os.gnome.org/
5•saikatsg•46m ago•0 comments

ConnectWise (SkyKick) Vendor Credentials Abused in M365 Attacks

https://www.huntress.com/blog/vendor-credential-enables-unauthorized-access
1•wondersky•46m ago•0 comments

Rare pink diamond goes on display in France 100 years after amateur heist

https://www.bbc.com/news/articles/c61m4zkx47vlo
4•saikatsg•46m ago•0 comments

Introducing Gnome OS Preview

https://blogs.gnome.org/adrianvovk/2026/10/16/gnome-os-preview/
3•signa11•47m ago•0 comments