> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamly.watch/llms.txt
> Use this file to discover all available pages before exploring further.

# Folder Structure

> High-level Streamly repository layout for operators and developers extending themes, addons, and plugins.

```
streamly/
├── app/
│   ├── (viewer)/          # Storefront routes
│   ├── (landing)/         # Tenant marketing/legal variants
│   ├── site/              # Platform marketing rewrite targets
│   ├── admin/             # Operator console
│   ├── dashboard/         # Tenant-owner console
│   ├── api/               # v1, operator, admin, webhooks, internal jobs
│   └── layout.tsx         # data-storefront-theme on <html>
├── themes/<id>/           # Theme packages (theme.json, config, skin, template)
├── addons/                # Streaming source packages
├── plugins/               # Platform integrations
├── components/landing/    # Shared chrome + template registry/shims
├── lib/
│   ├── branding/          # Theme catalog, presets, apply, preview
│   ├── landing/           # Skins, shells, legal markdown bundling
│   ├── operator/          # Nav, platform settings
│   ├── streamly/          # Tenant context, dashboard nav, …
│   └── supabase/          # Auth scopes, clients
├── supabase/migrations/   # Ordered SQL — no single schema.sql
├── content/legal/         # Legal markdown (bundled for Workers)
├── messages/              # i18n catalogs
├── wrangler.jsonc         # Cloudflare Worker config
├── open-next.config.ts
├── custom-worker.ts
├── .env.example
└── .dev.vars.example
```

## Key files

| File / folder                    | Purpose                              |
| -------------------------------- | ------------------------------------ |
| `lib/operator/nav.ts`            | Admin sidebar                        |
| `lib/branding/theme-presets.ts`  | Per-theme Brand & Experience presets |
| `lib/landing/storefront-skin.ts` | `pageShell` / chrome tokens          |
| `lib/landing/legal-markdown.ts`  | Workers-safe legal imports           |
| `themes/README.md`               | Theme package rules & roadmap        |
| `DEPLOYMENT.md`                  | Node / Docker / Cloudflare deploy    |

## Related

* [Themes Package System](/technical/themes-package-system)
* [Database Schema](/technical/database-schema)
* [Platform Architecture](/introduction/platform-architecture)
