Skip to content

critocrito/sugarcube-discovery

Repository files navigation

Sugarcube Discovery

A browser extension to facilitate a discovery/preservation process for human rights investigators. Sends discovered content to N-Cube and queued for preservation with Sugarcube. See the website for more details.

Installation

This extension is still in early development. There are no packages yet distributed on addon.mozilla.org. MDN has instructions how to load an extension temporarily into Firefox.

yarn install
yarn build

Development

Use Firefox and web-ext to develop the browser extension. Development works only on Firefox for the time being.

yarn start

The API requires the latest Rust.

cargo run

The API is just a stub for now. You can test the stub route with:

curl -X POST -H "Content-Type: application/json" localhost:8000/ -d '{"qterm":"haha","qtype":"huhu"}'