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•10mo ago

Comments

trbndev•10mo 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•10mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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

How do you capture decisions made in Slack so they don't get lost?"

1•frankiefrazer•1m ago•0 comments

Roguelike music algorithm showcase by Nifflas

https://www.youtube.com/watch?v=WbgdXalXPus
1•todsacerdoti•1m ago•0 comments

Because Algospeak

https://www.tbray.org/ongoing/When/202x/2026/03/05/Because-Algospeak
1•zdw•1m ago•0 comments

Why do papers get desk rejected?

https://purl.stanford.edu/yb785sx5019
1•paulpauper•2m ago•0 comments

Show HN: DBWarden – A database migration tool for Python/SQLAlchemy projects

https://github.com/emiliano-gandini-outeda/DBWarden
1•emi_gandini•5m ago•0 comments

QRPC: Low Latency RPC over Link Layer

https://github.com/malandrakisgeo/qRPC
1•plethon•6m ago•0 comments

For These Millennials, College Was a Party. Then Came Real Life

https://www.nytimes.com/2026/02/17/books/review/so-old-so-young-grant-ginder.html
1•paulpauper•9m ago•0 comments

Almost a third of Gen Z men agree a wife should obey her husband

https://www.kcl.ac.uk/news/almost-a-third-of-gen-z-men-agree-a-wife-should-obey-her-husband
1•johntfella•10m ago•1 comments

Ask HN: Would you use a job board where every listing is verified?

2•BelVisgarra•11m ago•0 comments

I glimpsed heaven and it showed me the door (Jhourney retreat report)

https://lalachimera.com/p/i-glimpsed-heaven-and-it-showed-me
1•paulpauper•11m ago•0 comments

From a £1B dream to a brutal collapse: How Brewdog hit the rocks

https://www.bbc.com/news/articles/cn4ggqgyk51o
1•ZeljkoS•15m ago•0 comments

A16Z: The Power Brokers

https://www.notboring.co/p/a16z-the-power-brokers
1•sershe•17m ago•0 comments

Autonomous AI Agents Have an Ethics Problem

https://undark.org/2026/03/05/opinion-ai-agents-ethics/
1•EA-3167•21m ago•1 comments

Typst Meetup 2026: Keynote

https://www.youtube.com/watch?v=WOQXL6vRrJs
1•todsacerdoti•22m ago•0 comments

Show HN: I built a zero-lag, local-first Markdown capture tool

https://gojot.app/
1•shubham2892•24m ago•0 comments

Show HN: Main Character – A gamified productivity app (no login demo)

https://maincharacter.game
1•gmays•26m ago•0 comments

Apple Silicon Laptops Can Run a Mind, but Never a Superintelligence

https://vbar.io/laptop-mind.html
1•walterbell•29m ago•0 comments

New KV cache compaction technique cuts LLM memory 50x without accuracy loss

https://venturebeat.com/orchestration/new-kv-cache-compaction-technique-cuts-llm-memory-50x-witho...
2•mellosouls•30m ago•0 comments

Building a TB-303 from Scratch

https://loopmaster.xyz/tutorials/tb303-from-scratch
1•stagas•30m ago•0 comments

Show HN: OpenGrammar Open-source, self-hostable Grammarly alternative

https://swadhinbiswas.github.io/opengrammar/
2•0x0003r•33m ago•0 comments

Show HN: Open-Sable, Self-hosted cognitive AI agent with memory and 127 tools

https://github.com/IdeoaLabs/Open-Sable
1•aerosol•34m ago•0 comments

Calif. lawsuit accuses Meta of sending nude video from AI glasses to workers

https://www.sfgate.com/tech/article/meta-ai-glasses-lawsuit-21960004.php
2•c420•35m ago•0 comments

Show HN: BeyondComments – Find content ideas and signals from YouTube comments

https://beyondcomments.io
1•ProgrammerByDay•38m ago•0 comments

Show HN: Sajtanalys.se – Automated website analysis for Swedish businesses

https://sajtanalys.se
1•qvalitet•38m ago•0 comments

The Day NY Publishing Lost Its Soul

https://www.honest-broker.com/p/the-day-ny-publishing-lost-its-soul
2•wallflower•39m ago•0 comments

LLM Writing Tropes.md

https://tropes.fyi/tropes-md
3•walterbell•40m ago•0 comments

Palmer Luckey's $1B pitch to reboot 1990s video game consoles

https://www.ft.com/content/77e330a5-8e59-4a36-b08b-c18010a2383b
3•hackerbeat•40m ago•1 comments

Show HN: MicroBin – Easy File Sharing for Everyone – Self-Hostable

https://my.microbin.eu/
1•dszb•41m ago•0 comments

SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via CI

https://arxiv.org/abs/2603.03823
1•stepri•45m ago•0 comments

I Failed an Interview. Fair or Not, I Built This Workbook

https://doap.metal.bohyen.space/blog/post/java-fintech-interview-workbook/
2•nanacnote•46m ago•1 comments