cfahlgren1 / hf-data-explorer

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

Sidepanel -> Content Script #1

Closed cfahlgren1 closed 1 week ago

cfahlgren1 commented 1 week 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 1 week 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 1 week 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