Introduction
Learn what Solar is, why it exists, and how it differs from React, Vue, and Svelte.
Installation
Scaffold a new project in one command, or drop Solar into any HTML file via CDN.
Quickstart
Build your first component with contract validation and state in under five minutes.
API Reference
Explore every public export:
defineComponent, mountComponent, hooks, and more.What makes Solar different
Solar is not a general-purpose framework. It is purpose-built for the properties of AI-generated code — code that is often correct in isolation but inconsistent across files, and that gets regenerated frequently rather than incrementally maintained.Explicit contracts
Every component declares its prop types and requirements upfront. Nothing is inferred from usage or convention — the schema is the source of truth.
Structured errors
Contract violations throw a
ContractError with a machine-readable JSON payload including the component name, prop, expected type, received type, and a suggested fix.Component registry
Every registered component is discoverable via
registry.manifest() — a full catalog an AI model can read before generating any composition code.Runtime-based
No compiler, no transpilation, no build pipeline. Solar runs directly in the browser as standard ES modules, making it fully debuggable without source maps.