Skip to main content
Solar is runtime-based. No compiler or build step required. Scaffold a new project with one command, or drop it into any HTML file via CDN. Prerequisites: basic JavaScript. No bundler, no build tooling needed.
This creates a my-app/ directory with everything wired up:
Then:
Open http://localhost:3000. Your app is running.

The fastest way to get running. Import Solar directly from a CDN in any HTML file:
No install, no config. Open the file in a browser and it works.

npm

For projects using a bundler (Vite, Rollup, esbuild):
Then import from the package directly:

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.
  1. Open the SOLAR Framework plugin in Cursor Directory
  2. Click Add to Cursor
  3. Start a new chat — Cursor will automatically apply the Solar rules when working in .js files
No config required. The plugin includes the full API reference, common patterns, and how to use registry.manifest() for agent-driven component discovery.

Project structure

Solar enforces a rigid file structure so that generated components are always predictable:
Rules:
  • One component per file
  • File name matches the component name
  • Default export is always the defineComponent call

Your first component

Every component is defined through a schema that declares its shape explicitly:
If a prop contract is violated, Solar throws a structured error immediately:

Mounting to the DOM

Use mountComponent to attach a component to a DOM node:

What’s next