Scaffold a new project (recommended)
my-app/ directory with everything wired up:
http://localhost:3000. Your app is running.
CDN (recommended to start)
The fastest way to get running. Import Solar directly from a CDN in any HTML file:npm
For projects using a bundler (Vite, Rollup, esbuild):Cursor (AI editor)
If you’re using Cursor, install the Solar plugin to give your AI assistant built-in knowledge of the Solar API — components, hooks, contracts, and the agent workflow.- Open the SOLAR Framework plugin in Cursor Directory
- Click Add to Cursor
- Start a new chat — Cursor will automatically apply the Solar rules when working in
.jsfiles
registry.manifest() for agent-driven component discovery.
Project structure
Solar enforces a rigid file structure so that generated components are always predictable:- One component per file
- File name matches the component name
- Default export is always the
defineComponentcall
Your first component
Every component is defined through a schema that declares its shape explicitly:Mounting to the DOM
UsemountComponent to attach a component to a DOM node:
What’s next
- defineComponent: the full component API
- Agent Quickstart: how an AI agent discovers and mounts Solar components
- Building a Site: routing, async data, and deployment end to end