# Alea

> A browser-first interactive storytelling engine built with zero-build vanilla JS ES modules, strict MVC separation, and bring-your-own OpenAI-compatible AI providers.

- URL: https://sudravirodhin.com/projects/alea/
- Category: ttrpg-worlds
- Status: Live
- Stack: Vanilla JS, ES Modules, Strict MVC, AWS S3/CloudFront
- Tags: interactive-fiction, architecture, web-app
- Live: https://alea.sudravirodhin.com

## Zero-Build Browser Architecture

**Alea** is a long-running browser-based interactive storytelling workbench hosted at [alea.sudravirodhin.com](https://alea.sudravirodhin.com). Technically, it was an intentional exercise in building a rich, stateful client application without heavyweight frontend frameworks or bundler churn.

- **Strict MVC in Vanilla ES Modules:** Clean separation across `model/`, `view/`, `controller/`, and `ai/` modules so state mutations stay predictable and testable under Jest and Playwright.
- **Local-First Persistence + BYOK AI:** Stores state locally in the browser and connects directly to user-configured OpenAI-compatible endpoints with structured response schemas.
- **Static Delivery:** Deploys as pure static assets behind private AWS S3 and CloudFront OAC.
