Coder Social home page Coder Social logo

taneliang / neh Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 3.0 9.17 MB

A tool that redirects you to commonly used sites

Home Page: https://neh.eltan.net

License: MIT License

JavaScript 3.33% TypeScript 94.25% CSS 0.19% Shell 0.04% Pug 2.19%
search-engines cloudflare-workers bunnylol

neh's Introduction

neh

CircleCI codecov Maintainability

https://neh.eltan.net

A tool that redirects you to some commonly used sites; intended to be an Alfred for your browser.

screencast

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.

Usage

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:

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:

Neh! Liddat only. Easy.

Development

Setup

We use Cloudflare's Wrangler tool to run and publish neh.

  1. Run yarn to install dependencies.
  2. cp .env.example .env and fill it in.
  3. Modify the wrangler.toml file as appropriate.

Local development server

To start a local development server, run:

yarn start

You'll then be able to open neh at http://localhost:8787.

Cloudflare Workers preview

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.

Publishing

Our CircleCI workflow automatically deploys neh's main branch to Cloudflare Workers.

Having said that, here's how you can publish neh manually:

  1. Add CF_API_TOKEN to your .env file.
  2. Run:
    yarn env-cmd yarn run publish

neh's People

Contributors

bnjmnt4n avatar dependabot-preview[bot] avatar taneliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

neh's Issues

Docs: nested tables overlapping in Firefox

For some reason, the nested tables overlap with the next cell (tested in Firefox 84 and 86). Works fine on Chromium.

image

Removing the .h-full class from the nested table fixes it for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.