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

Neomacs: GPU rendered Rust hard fork of Emacs

https://github.com/eval-exec/neomacs
1•tagfowufe•32s ago•1 comments

It would suck to die because I love consuming

https://michalkotowski.pl/writings/it-would-suck-to-die-because-i-love-consuming
1•kocie•1m ago•0 comments

Meta Horizon Create and Horizon Studio "Game Engines"

https://gamefromscratch.com/meta-horizon-create-and-horizon-studio-game-engines/
1•tosh•3m ago•0 comments

Dear AlmostHadYa, I got live previews working with a batch ASR model

https://mimicscribe.app/blog/local-asr-bakeoff
2•marshalla•6m ago•1 comments

Make Claude your assistant in excalidraw

https://tangled.org/yanndegat.tngl.sh/drawgent
2•parasitid•7m ago•1 comments

The AI Bubble Explained

https://hughhowey.com/the-ai-bubble-explained/
2•Tomte•8m ago•0 comments

Can we have reachability properties in TLA⁺?

https://ahelwer.ca/post/2026-09-26-reachability/
1•ahelwer•8m ago•0 comments

Prioritized Grammar Enumeration is the method for solving Symbolic Regression

https://github.com/verdverm/pypge/blob/master/README.md
1•conorcleary•9m ago•0 comments

Show HN: Waitwise, Replace Claude Code's spinner with anything usefull

https://github.com/marciob/waitwise
1•marciob•13m ago•0 comments

Turning GLM-5.3-Flash into a Jev-like decision model

https://www.privatemode.ai/blog/system-one-from-glm-flash
2•flxflx•14m ago•1 comments

Banks and Credit Unions to Team Up Against Apple Pay Fees

https://www.macrumors.com/2026/09/25/apple-pay-antitrust-lawsuit-advances/
2•Brajeshwar•15m ago•0 comments

Using an LLM to Automate the Process of Archiving New macOS App Icons

https://blog.jim-nielsen.com/2026/faster-app-icon-retrieval/
1•Brajeshwar•15m ago•0 comments

After the AI Hype – What's Real, and What's Next – Richard Campbell [video]

https://www.youtube.com/watch?v=uWnUnMphmPM
1•bobajeff•16m ago•0 comments

Music & sound exposition of the Discrete Fourier Transform with numpy (6 parts)

https://medium.com/@georgetzanetakis/a-music-and-sound-exposition-of-the-discrete-fourier-transfo...
1•iainctduncan•17m ago•1 comments

How to serve trillions of tokens for trillion-parameter coding agents

https://modal.com/blog/trillion-tokens-trillion-parameters
3•birdculture•17m ago•0 comments

A value-based approach to mathematics

https://terrytao.wordpress.com/2026/09/26/a-value-based-approach-to-mathematics/
1•smilelamp•19m ago•0 comments

An OpenAI agent used DNS to reach an external chatbot

https://alignment.openai.com/misalignment-reports/an-agent-used-dns-to-reach-an-external-chatbot/
1•Metacelsus•19m ago•0 comments

Some Supabase customers are publicly exposing reams of people's data to the web

https://techcrunch.com/2026/09/25/some-supabase-customers-are-publicly-exposing-reams-of-peoples-...
2•rvz•21m ago•0 comments

In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life

https://www.nytimes.com/2026/09/26/science/motel-science-discovery.html
1•failingforward•21m ago•1 comments

Show HN: Mosaic: Recreate an Image with a Genetic Algorithm

https://fusectore.dev/mosaic/
1•rethab•21m ago•0 comments

Pencils Down, Notation Up

https://intertwingly.net/blog/2026/09/25/Pencils-Down-Notation-Up.html
1•ksec•22m ago•0 comments

Automattic has a new board after failed attempt to put CEO on leave

https://techcrunch.com/2026/09/25/automattic-has-a-new-board-after-failed-attempt-to-put-ceo-on-l...
3•ilamont•23m ago•0 comments

LibreTube: An alternative front end for YouTube

https://github.com/libre-tube/LibreTube
2•poly2it•24m ago•0 comments

First Warning

https://alearningaday.blog/2026/09/19/first-warning/
2•herbertl•25m ago•0 comments

Crusoe abandons $1.25B plan to use Boom turbines at AI data centers

https://techcrunch.com/2026/09/25/crusoe-abandons-1-25b-plan-to-use-boom-turbines-at-ai-data-cent...
3•Brajeshwar•26m ago•1 comments

Tipword – Hold a key and point at any word on your Mac to translate it

https://tipword.app/
1•dasundev•26m ago•0 comments

New Release of FreePascal Book from Square One in PDF (2025)

https://www.contrapositivediary.com/?p=5480
1•andsoitis•27m ago•0 comments

Major Social Media Platforms Rejecting Ads for 'Musk' Film

https://www.hollywoodreporter.com/business/digital/elon-musk-documentary-trailer-rejected-tiktok-...
5•danans•27m ago•0 comments

Teaching Students to Follow an Idea

https://daily.jstor.org/teaching-students-to-follow-an-idea/
1•herbertl•28m ago•0 comments

Show HN: A Claude Code skill to analyze your chess games

https://github.com/brumar/chess-postmortem-skills
7•brumar•28m ago•0 comments