A small, static personal portfolio page that dynamically lists the owner's GitHub repositories grouped by programming language. The site is a single-page application (vanilla HTML/CSS/JavaScript) that fetches public repositories from the GitHub REST API and renders them as an accordion UI so visitors can browse projects by language.
- Fetches public repositories for the GitHub user
RJPalmerand groups them bylanguage. - Renders an accessible-ish accordion UI with per-repo cards containing the repo name, description, star count, and last-updated date.
- Provides controls to Expand All / Collapse All and a theme toggle (light/dark) persisted in
localStorage.
- Languages: HTML, CSS, JavaScript (vanilla)
- No build step or server required — this is a static site intended for GitHub Pages or any static host.
index.html— Single-page application. Contains the fetch tohttps://api.github.com/users/RJPalmer/repos?per_page=100and all client-side logic that groups and renders repositories.css/styles.css— Styling and theme variables.
When the page loads the client-side JS calls the GitHub REST API to retrieve repositories for RJPalmer. Repositories are grouped by the language property returned by the API and displayed in accordion sections sorted by last-updated date. The theme toggle stores the user's choice in localStorage and the page updates the data-theme attribute on the root element to switch themes.
There is no build step. To view the page after cloning, serve the folder with a simple static server (recommended to avoid filesystem fetch restrictions):
# from repo root
python3 -m http.server 8000
# open http://localhost:8000Or use a Node static server:
npx http-server -p 8000
# open http://localhost:8000You can also publish the repository to GitHub Pages (main branch) and access the site at https://rjpalmer.github.io/.
- GitHub API rate limits: the page uses unauthenticated requests, which are limited to 60 requests per hour per IP. If you expect higher traffic or want to avoid rate limits during development, consider:
- Hosting on GitHub Pages so requests come from users' browsers (still subject to rate limits per IP), or
- Pre-fetching repository data server-side (GitHub Action) and committing a static JSON file the page reads instead of calling the API from the browser.
- Accessibility: the accordion is functional but could be improved (keyboard handling, ARIA roles, focus management).
This repo is a personal site, but patches and suggestions are welcome. Typical changes you might make:
- Improve accessibility and keyboard interactions in
index.html. - Add caching or a prefetch Action to avoid API rate limits.
- Enhance the UI with per-repo language badges or filtering controls in
index.htmlandcss/styles.css.
This repository does not include a license file. Add a LICENSE if you want to grant reuse rights.