## Overview

Darkglass is a tiny FastAPI application that provides an embeddable chat widget
for prospective students and an admin dashboard for reviewing logged
interactions. The service calls a language model (defaulting to Google's
Gemini API) via plain REST, stores exchanges in a local SQLite database,
and uses a minimal session system with optional Google OAuth for admin login.
The Python package lives under `darkglass/` with the main logic in
`darkglass/main.py`. Static assets (`webchat.js` and `admin.html`) are served
from the `static/` directory and the simple landing page is `index.html`.

The project is pre-alpha. Backwards compatibility may be freely violated.

## Config

darkglass.toml contains proprietary config information. It should never be read or modified.

## Database

Storage is always `data.db` in the working directory.

## Testing

Run tests using `make test` which installs dependencies in a virtual
environment, runs pytest, and exercises both API and browser tests.

## Formatting

Format code using `make format` which runs Prettier on JS/HTML and
black on Python.

## Style

Never comment code. Use docstrings, but only for examples run via doctest.
