# RGS Math Compass

This folder contains two static, hostable RGS mathematics pages:

- `index.html` — RGS Math Compass
- `feedforward-hub/index.html` — RGS Math Success Criteria & Feedforward Hub

The second page has its own [hosting notes](feedforward-hub/README.md).

## Hosting

Upload `index.html` to a web server or static host and serve it over HTTPS. The page loads Tailwind CSS, Font Awesome, and its web fonts from public CDNs, so visitors need an internet connection. Open the hosted page and choose **AI settings** to select a provider, enter a model ID, and paste an API key.

The provider and model choice are remembered by the browser. API keys are kept in memory for the current tab unless the user selects **Remember this key on this device**. A remembered key is stored in that browser's local storage; it is not written to this folder or sent to your hosting server.

The Gemini selector offers `gemini-3.8-flash` (recommended), `gemini-3.6-flash`, and `gemini-3-flash-preview`. All three support image input and structured output. The first two are stable model IDs; Gemini 3 Flash is a preview model. A custom model ID can also be entered. Google applies model-specific rate limits, and preview limits may be more restricted, so switching models may help with a model-specific limit but cannot guarantee capacity during service congestion. Availability and quotas depend on the API project.

## Supported providers

- OpenAI API (ChatGPT models)
- Anthropic Claude
- Google Gemini

The app sends the question text and uploaded screenshots directly from the browser to the selected provider. Provider usage may incur charges on the user's account. A ChatGPT subscription is not an OpenAI API key.

For Gemini Free Tier, Google currently indicates submitted content may be used to improve Google products. Remove student names and other identifying information before sending screenshots, and follow school policy.

## Important for shared use

This is a bring-your-own-key version. Use it only on a trusted HTTPS site. A user key is available to scripts running on that site while the page is open, and a remembered key can be read by scripts with access to the same browser origin. For a school-wide or public student deployment with centrally managed billing, add a server-side API proxy with authentication and usage controls instead of asking students to share or embed a common key.
