# Fiction Widget

Zero-config contextual digital self. One-line integration: `<fiction-self handle="user"></fiction-self>`

## Development

```bash
pnpm dev:widget  # Hot reload SDK + widget + app (use from root)
pnpm dev         # Standalone widget dev server (from src/widget)
pnpm build       # Production IIFE bundle for CDN
```

## Testing

Playground (`/playground/widget`) tests **built packages**. Run `pnpm sdk:build && pnpm widget:build` first.

**See `.ai/spec-widget.md` for architecture and CDN usage.**
