cfahlgren1 / hf-data-explorer

Chrome Extension for exploring Hugging Face datasets 🔎
https://chromewebstore.google.com/detail/hugging-face-datasets-exp/algkmpgdgbindfpddilldlogcbhpkhhd
49 stars 3 forks source link

Sidepanel -> Content Script #1

Closed cfahlgren1 closed 5 months ago

cfahlgren1 commented 5 months ago

Background

Both the back service worker and sidepanel don't support the Worker API which is required to use the AsyncDuckDB in DuckDB WASM. Originally, I was running Synchronous DuckDB, however, you can't make async http requests to data sources like Parquet. After testing in content scripts, I was surprised to find that the Worker API was available there.

cfahlgren1 commented 5 months ago

Since we aren't using the sidebar API anymore we can have a more subtle component where it can sit in the corner.

cfahlgren1 commented 5 months ago

diff looks like alot, but most of it is adding shadcn components. felt good to remove some code we don't need anymore image