frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•7mo ago

Comments

trbndev•7mo 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•7mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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: GrainJS – a light TypeScript web framework

https://gristlabs.github.io/grainjs/
1•dsagal•1m ago•0 comments

Next Year Is Americas 250th Birthday. Meet the Person Behind the Celebration

https://www.politico.com/news/2025/12/26/next-year-is-americas-250th-birthday-meet-the-person-beh...
1•RickJWagner•3m ago•0 comments

Russia patents space station designed to generate artificial gravity

https://www.space.com/technology/russia-patents-space-station-designed-to-generate-artificial-gra...
1•chickensong•3m ago•0 comments

What on earth is Kubernetes? (a beginners intro)

https://kylejeong.com/blog/what-is-kubernetes
1•Kylejeong21•3m ago•0 comments

My role as a founder-CTO: year 8

https://miguelcarranza.es/cto-year-8
1•ridruejo•9m ago•0 comments

Ban LLMs Using First-Person Pronouns

https://crookedtimber.org/2023/05/22/ban-llms-using-first-person-pronouns/
1•DamonHD•10m ago•0 comments

Show HN: Historical Options Chain Data for 100 US Equities (2008–2025)

https://github.com/philippdubach/options-data
1•7777777phil•12m ago•0 comments

Notes on Building an Internal Agent

https://lethain.com/agents-series/
1•rognjen•13m ago•0 comments

Cursor UI is built with SolidJS

https://www.reddit.com/r/solidjs/s/inVuYmkIJ6
1•itayadler•14m ago•0 comments

Show HN: Real-Time Website Generator

https://sudo.sdan.io/
1•sdan•15m ago•0 comments

Code a database in 45 steps: test-driven coding puzzles

https://trialofcode.org/database/
1•rohitpaulk•17m ago•0 comments

Joyce Project

https://github.com/alexchunt90/joyce
1•paddw•21m ago•0 comments

Show HN: Automoderated Anonymous Wall of Messages

https://wall.tulv.in/
1•atulvi•23m ago•0 comments

Show HN: A lightweight UI to manage my LXC dev environments

https://github.com/joseprupi/lxc_manager
2•melenaboija•24m ago•1 comments

Grok and the Naked King: The Ultimate Argument Against AI Alignment

https://ibrahimcesar.cloud/blog/grok-and-the-naked-king/
1•ibrahimcesar•28m ago•0 comments

Gaussian Splatting 3 Ways

https://github.com/NullandKale/NullSplats
2•nullandkale•30m ago•0 comments

Mathematically extra-complicated Secretest Santa 2025 [video]

https://www.youtube.com/watch?v=4pG8_bWpmaE
1•yboris•30m ago•0 comments

Simplifying the build process for vst3-rs

https://micahrj.github.io/posts/vst3/
1•glowcoil•35m ago•0 comments

The Epstein Files: Why Half the Internet Is Wrong About Those Redactions

https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/
6•moonshotideas•37m ago•0 comments

"Vibecession" reflects an increasingly difficult economy and society

https://greyenlightenment.com/2025/12/24/vibecession-reflects-increasingly-difficult-economy/
2•paulpauper•38m ago•2 comments

Hookmark 6.12 released with new ways to add and automate bookmarks

https://hookproductivity.com/release-notes/hookmark-6-12/
1•LucCogZest•39m ago•1 comments

My insulin pump controller uses the Linux kernel. It also violates the GPL

https://old.reddit.com/r/linux/comments/1puojsr/the_device_that_controls_my_insulin_pump_uses_the/
37•davisr•40m ago•3 comments

New Testing and Benchmarking Software for Amiga: XSysInfo

https://www.amigalove.com/viewtopic.php?t=2982
2•erickhill•42m ago•0 comments

Debian network packet multicast whenever USB storage device is connected (2023)

https://askubuntu.com/questions/1456506/multicast-packets-sent-out-every-time-a-usb-device-is-con...
3•transpute•44m ago•1 comments

Circular Causality: A Short History (With Receipts)

https://medium.com/@maddyjean/circular-causality-a-short-history-with-receipts-87454402f987
1•asplake•44m ago•0 comments

DIY E-Reader Folds Open Like a Book

https://hackaday.com/2025/12/24/diy-e-reader-folds-open-like-a-book/
3•axiomdata316•45m ago•0 comments

Show HN: Chaos engineering for LLMs – Making models cross-examine each other

https://www.usecouncil.app/
1•jonnyhere•45m ago•0 comments

Our king, our priest, our feudal lord – AI is taking us back to the dark ages

https://www.theguardian.com/commentisfree/2025/dec/26/ai-dark-ages-enlightenment
3•binning•45m ago•0 comments

Daphne Oram, a visionary pioneer in electronic music

https://theconversation.com/5-things-to-know-about-daphne-oram-the-visionary-pioneer-in-electroni...
2•binning•49m ago•0 comments

Lewis Carroll Computed Determinants

https://www.johndcook.com/blog/2023/07/10/lewis-carroll-determinants/
30•tzury•50m ago•3 comments