web-storage
/web-storage
Sprawdza skrypty i komponenty pod kątem bezpiecznego użycia Web Storage API, w kodzie źródłowym i w działaniu przeglądarki.
- Autor
- thedaviddias ↗
- Repozytorium
- front-end-checklist ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 06.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 06.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Sprawdza skrypty i komponenty pod kątem bezpiecznego użycia Web Storage API, w kodzie źródłowym i w działaniu przeglądarki.
Oryginalny opis (EN)
Use when reviewing scripts, client components, bundles, or runtime behavior related to Use Web Storage API safely. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
Jak działa
- Quick Reference
- Check
- Fix
- Explain
- Code Review
Podgląd SKILL.md
--- name: web-storage description: "Use when reviewing scripts, client components, bundles, or runtime behavior related to Use Web Storage API safely. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug." metadata: category: javascript priority: medium difficulty: beginner estimatedTime: "15" source: frontendchecklist.io url: https://frontendchecklist.io/rules/javascript/web-storage --- # Use Web Storage API safely localStorage and sessionStorage have a 5–10 MB quota per origin, and any write can throw a QuotaExceededError. Private browsing modes in some browsers disable storage entirely and throw on all writes. Applications that don't handle these errors crash silently, leaving users unable to use the app. ## Quick Reference - Always wrap localStorage access in try/catch — storage can be full or disabled - Serialize objects with JSON.stringify and validate on read with JSON.parse - Never store sensitive data (tokens, passwords) in localStorage — use httpOnly cookies - Use sessionStorage for tab-scoped data that shouldn't persist ## Check Find all localStorage and sessionStorage accesses in this file. Check for missing try/catch, unhandled JSON parsing, and any storage of sensitive data. ## Fix Add try/catch error handling to all Web Storage operations and ensure all object values are properly serialized and deserialized. ## Explain Explain the Web Storage API, its limitations, when to use localStorage vs sessionStorage, and what data should never be stored there. ## Code Review Review scripts, client components, and browser execution paths related to Use Web Storage API safely. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser. --- For full implementation details, code examples, and framework-specific guidance, see `references/rule.md`. Rule page: https://frontendchecklist.io/rules/javascript/web-storage
Pliki w paczce (2)
- SKILL.md 2 KB
- references/rule.md 4 KB
Wersje
W bazie nie ma innych skilli o nazwie web-storage.
Migawka bazy z 13.11.2026 · wersja paczki b562005ed81b (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100json-safety
Przegląda skrypty i komponenty klienckie pod kątem bezpiecznego parsowania JSON z obsługą błędów, sprawdzając kod źródłowy i ścieżkę wykonania w przeglądarce. - 100es-modules
Przegląda skrypty, komponenty klienckie, bundle i zachowanie runtime pod kątem użycia modułów ES (import i export), sprawdzając kod źródłowy i ścieżkę wykonania w przeglądarce. - 100web-cap
Steruje prawdziwą kartą przeglądarki lokalnie: klika, wpisuje tekst, czyta stan strony i uruchamia skrypty na żywych sesjach. - 90frontend-storage-requirements
Sprawdza zapisy w przeglądarce (localStorage, IndexedDB, Cache Storage) pod kątem limitów i błędów zapisu. - 100browser-automation
Pomaga budować skrypty automatyzacji WWW, sprawdzać wykrywalność automatyzacji, generować kod scrapingu, tworzyć automatyzację wypełniania formularzy i skrypty przeglądarki unikające wykrywania. - 100add-data-source
Przenosi dane aplikacji z przeglądarki do wspólnego zaplecza, np. list SharePoint, tabel Dataverse lub API REST.