AOSSIE-Org / AOSSIE-Org/OrgExplorer

[FEATURE]: Improved GitHub API Fetching with IndexedDB Caching

Ouverte
#98 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
JavaScript
Étoiles
34
Forks
92
Merge moyen
8 j 7 h
PR mergées (30 j)
12

Description

### Feature and its Use Cases

## What does it do??
This update adds a browser-side caching layer using IndexedDB for GitHub API responses. The cache stores organization, repository, contributor, issue, and rate-limit data for a limited time, reducing repeated API calls and improving app responsiveness.

The update also improves the GitHub fetch flow by handling rate-limit information, supporting optional Personal Access Tokens, and reusing cached responses when valid data is already available.

## What is the feaure
The feature is a client-side API caching and fetch optimization system for the Org Explorer app.

It includes:
- IndexedDB-based cache storage.
- One-hour cache expiration using TTL.
- Cached reads before making GitHub API requests.
- Automatic cache writes after successful API responses.
- GitHub rate-limit updates through a custom browser event.
- Support for authenticated requests using a Personal Access Token.
- Shared fetch logic through fetchWithCache.

## Benefit
Users benefit because the app becomes faster, more stable, and more efficient.

### Additional Context

_No response_

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

The issue names no files, tests, or entry points. Start by locating the app’s GitHub API fetch flow and determine where organization, repository, contributor, issue, and rate-limit data are read and written; done means valid one-hour IndexedDB reuse, successful-response writes, rate-limit events, and optional token requests work.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github, javascript
Domaine
api, database, frontend, performance
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.