Search Router is a lightweight web application that provides a faster alternative to DuckDuckGo's bang redirects. It allows users to quickly redirect their searches to various platforms using bang commands.
- Instant search redirects using DuckDuckGo-style bang commands
- Supports all DuckDuckGo bang shortcuts
- Customizable default search engine
- Simple, minimalist user interface
- Node.js (version 18 or later)
- pnpm
-
Clone the repository:
git clone https://github.com/yourusername/astro-search-router.git cd astro-search-router
-
Install dependencies:
pnpm install
Run the development server:
pnpm dev
The application will be available at http://localhost:3000
To create a production build:
pnpm build
To preview the production build:
pnpm preview
- Open the application
- Start typing your search query
- Prefix your query with a bang command (e.g.,
!g
for Google,!gh
for GitHub) - Press Enter to be redirected to the corresponding search results
!g
: Google Search!gh
: GitHub Search!yt
: YouTube Search!w
: Wikipedia Search
For a full list of supported bang commands, visit DuckDuckGo Bang Documentation
You can set a default search engine by modifying the localStorage
key default-bang
.
- Astro
- TypeScript
- Vite PWA
- pnpm
Contributions are welcome! Please feel free to submit a Pull Request.