An open API service indexing awesome lists of open source software.

https://github.com/cheeaun/stakataka

A browser extension that visualizes (Service Worker) Cache Storage for web sites
https://github.com/cheeaun/stakataka

cache-storage chrome-extension service-worker

Last synced: 11 months ago
JSON representation

A browser extension that visualizes (Service Worker) Cache Storage for web sites

Awesome Lists containing this project

README

          

Stakataka logo

# Stakataka

A browser extension that visualizes (Service Worker) Cache Storage for web sites. Stakataka helps developers understand what's stored in the browser's cache storage ([`window.caches`](https://developer.mozilla.org/en-US/docs/Web/API/Window/caches), [`CacheStorage`](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage)) and how much space it occupies through multiple visualization options.

- Chrome: [chromewebstore.google.com/detail/stakataka/mdekjccfminpcgmcpmjnfgimifhibagc](https://chromewebstore.google.com/detail/stakataka/mdekjccfminpcgmcpmjnfgimifhibagc)
- Edge: [microsoftedge.microsoft.com/addons/detail/stakataka/hkkljdlfakafpnfpgdnamhpmhhjphlkc](https://microsoftedge.microsoft.com/addons/detail/stakataka/hkkljdlfakafpnfpgdnamhpmhhjphlkc)
- Firefox: [addons.mozilla.org/en-US/firefox/addon/stakataka/](https://addons.mozilla.org/en-US/firefox/addon/stakataka/)

> [!NOTE]
> Cache storage is different than the browser's own cache, localStorage, sessionStorage, IndexedDB, and other storage APIs. It is used by Service Workers to cache network requests and responses for offline access and faster loading times.

## Features

- Scan Cache Storage for the active tab
- Multiple visualization options:
- Treemap view
- Sunburst chart view
- Tabular view with sorting and pagination

## Screenshots

![Browser action popup](./screenshots/1.jpg)

![Treemap view](./screenshots/2.jpg)

![Sunburst chart view](./screenshots/3.jpg)

![Tabular view](./screenshots/4.jpg)

## Usage

1. Navigate to a web page
2. Click the Stakataka extension icon
3. Click "Visualize Cache Storage"
4. View the cache data in your preferred visualization format

## Development

```
npm install
npm run dev
```

### Notes

`CHROME_REFRESH_TOKEN` doesn't seem to be able to be generated via `wxt` ([Issue #1462](https://github.com/wxt-dev/wxt/issues/1462)). Follow instructions from here: https://github.com/fregante/chrome-webstore-upload-keys where this command is needed in later steps:

```
npx chrome-webstore-upload-keys
```

## Technologies

- [WXT](https://wxt.dev/) - Web Extension development framework
- [React](https://react.dev/) - UI framework
- [webtreemap](https://github.com/evmar/webtreemap) ([fork](https://github.com/paulirish/webtreemap-cdt)) - Treemap visualization
- [react-sunburst-chart](https://github.com/vasturiano/react-sunburst-chart) - Sunburst chart visualization
- [react-data-table-component](https://github.com/jbetancur/react-data-table-component) - Data table component
- [pretty-bytes](https://github.com/sindresorhus/pretty-bytes) - Byte formatting utility

## Mascot

[Stakataka](https://bulbapedia.bulbagarden.net/wiki/Stakataka_(Pok%C3%A9mon)) is a dual-type Rock/Steel Ultra Beast Pokémon.

## Contributing

Contributions are welcome! If you'd like to contribute, please open an issue or submit a pull request.

## License

[MIT License](https://cheeaun.mit-license.org/)