
A browser extension for the 42 intra that displays live cluster occupancy statistics in the sidebar on the clusters page.
It currently provides a clean stats card with real-time occupancy data, crowd level indicators, per-zone breakdown, and automatic refresh.
Overview statistics:
42 Cluster Stats enhances the 42 intra clusters page with a floating stats card in the sidebar.
The extension is designed to make it easier to:
Clone or download this repository
Install dependencies:
npm install
Build the extension:
npm run build
Open:
chrome://extensions
Enable Developer mode
Click Load unpacked
Select the build/ folder
Open the 42 intra clusters page and use the extension
Follow steps 1-3 above
Open:
about:debugging#/runtime/this-firefox
Click Load Temporary Add-on
Select build/manifest.json
Install dependencies:
npm install
Run a production build:
npm run build
Run in watch mode:
npm run watch
npm run build or npm run watchThe final extension package is generated in:
build/
This folder contains the full unpacked extension package, including:
manifest.jsonUse the build/ folder for:
42-cluster-stats/
├── build/ # Final built extension package
├── icons/ # Extension icons
├── src/
│ └── content/
│ ├── index.js # Entry point, bootstrap, refresh logic
│ ├── constants.js # DOM IDs, API URLs, timing config
│ ├── api.js # Cluster data fetching
│ ├── utils.js # Pure utilities (escape, sleep, format)
│ ├── stats.js # Stats computation (parse, build, labels)
│ ├── page.js # Page detection, vacant count extraction
│ └── ui/
│ ├── sidebar-root.js # Root element creation
│ ├── render.js # Loading, error, stats rendering
│ └── styles.css # All CSS styles
├── manifest.json # Source manifest
├── build.js # Build script
├── package.json
└── README.md
The exact internal source structure may evolve as the extension grows.
The extension uses minimal permissions:
meta.intra.42.fr to access cluster databuild/ folder, not from the project rootSuggestions, improvements, and feedback are welcome.
If you want to improve the extension: