jordic / aiofsearch

aiohttp + preact + parcel + websockets. Search your local files on the browser with the silver searcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿค™ 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

About

aiohttp + preact + parcel + websockets. Search your local files on the browser with the silver searcher

License:MIT License


Languages

Language:Python 49.7%Language:JavaScript 35.8%Language:CSS 13.0%Language:HTML 1.5%