It is the small instant answer thing which you get on the top of search. Its not just dictionary, you can show any data with snippet app.
It can be football scores, stock prices or notes from your notion or even search history from company slack or anything!!
Because it's fun!
- Fork the repository
- Add a js/ts file with the app.
- Commit and send a pull request. I'll accept the PR and you are done :)
A snippet app is a Javascript object with following keys:
name
: String -> Name of the snippet appid
: Stringdescription
: Stringlogo
: Link to a PNG/SVG FiledataFetcher
: A function with input{query: "<user query>"}
and ouput is any data you want to render.renderer
: Its a React component with the data fromdataFetcher
passed a intoprops.data