Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordic/aiofsearch
aiohttp + preact + parcel + websockets. Search your local files on the browser with the silver searcher
https://github.com/jordic/aiofsearch
aiohttp asyncio preact websocket
Last synced: 17 days ago
JSON representation
aiohttp + preact + parcel + websockets. Search your local files on the browser with the silver searcher
- Host: GitHub
- URL: https://github.com/jordic/aiofsearch
- Owner: jordic
- License: mit
- Created: 2018-07-31T09:07:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T09:56:41.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T09:04:52.234Z (about 1 month ago)
- Topics: aiohttp, asyncio, preact, websocket
- Language: Python
- Homepage:
- Size: 439 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
# 🤙 Aio File Search 😂 #hackyhollidays
## AioHTTP + Preact + Parcel + Websockets
Search your local files through a Browser interface
This is just a demo project on how to integrate WS Streaming responses
into a Preact Web App.## Install
``` pip install aiofilesearch ```
## Run
``` fsearch ```
* You need to have installed The silver search, and sublime if you want
to open results with it.## Interesting Parts
- The front side uses preact + parcel bundler. So easy to start!
- The backend part uses asyncio subprocess to launch the ag command and start searching
- Results are streamded from the ag command to the websocket frontend.## Todo
- Add configuration params
## Screenshot
![alt text](https://github.com/jordic/aiofsearch/raw/master/assets/screenshot.png "Screenshot")