Skip to content

after-ephemera/hare

Repository files navigation

Hare

Contributors Forks Stargazers Issues License

Table of Contents

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Make sure you have Rust installed.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Rocket uses the nightly version of Rust so make sure you use that. If you'd like to only use nightly for this project, you can run this from the root of the project after cloning.

# from the root of the project
rustup override set nightly

Installation

  1. Clone the project
git clone https://github.com/jkjetty/hare.git
  1. Make sure you're using nightly
cargo --version
  1. Build the project
cargo build
  1. Run the project
cargo run
  1. Visit localhost:8000
  2. To test a command, go to localhost:8000/search?cmd=tw and you should be redirected to Twitter

Usage

To test out a command, type in http://localhost:8000/search?cmd= followed by your command.

See supported commands in the redirect_url list.

Everything else redirects to a google search with your query.

Setting Hare as your default search engine

Chrome instructions:

  • Go to chrome://settings
  • Click the "Search engine" tab on the right
  • Click "manage search engines"
  • Under "Site search" click the "Add" button
  • Enter "hare" for the search engine and shortcut
  • Enter localhost:8000/search?cmd=%s as the URL
  • Click "Add" to save the search engine
  • Click the menu (three dots) next to your new entry
  • Click "Make default"
  • Open a new tab and try it out! Enter "g robot vacuums" and make sure google search comes up

License

Distributed under the MIT License. See LICENSE for more information.

About

Personal Search Proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published