A tool that redirects you to some commonly used sites; intended to be an Alfred for your browser.
Inspired by Facebook's open source bunny tool, but rewritten for the cloud serverless edge computing age – neh runs in Cloudflare Workers on Cloudflare's edge servers located close to you. TL;DR it's fast.
The easiest way to use neh is to set https://neh.eltan.net/ as your browser's default search engine. Then, run commands by typing their command names followed by your query. If no command is detected, neh will just redirect you to DuckDuckGo.
Here are some examples:
- Search YouTube: yt rickroll
- Go to a GitHub repository: gh r nusmodifications/nusmods
- Perform a Google search: g neh
- Fallback to a DuckDuckGo search: not a command
Neh also does some basic query detection and is able to convert between different search engines. It's not completely reliable but works in most cases. Examples:
- Convert a YouTube search to a Wikipedia search: wk https://www.youtube.com/results?search_query=rickroll
- Convert a Google search to an NPM package: npm p https://www.google.com/search?q=react
- Look up an NPM package on BundlePhobia: bp https://www.npmjs.com/package/react
Neh! Liddat only. Easy.
We use Cloudflare's Wrangler tool to run and publish neh.
- Run
yarn
to install dependencies. cp .env.example .env
and fill it in.- Modify the wrangler.toml file as appropriate.
To start a local development server, run:
yarn start
You'll then be able to open neh at http://localhost:8787.
To preview neh, run:
yarn preview
Wrangler will open the preview in your web browser. If this does not happen,
ensure that the BROWSER
environmental variable has been set.
Our CircleCI workflow automatically deploys neh's main
branch to
Cloudflare Workers.
Having said that, here's how you can publish neh manually:
- Add
CF_API_TOKEN
to your.env
file. - Run:
yarn env-cmd yarn run publish