Browse documentation
Documentation
Build your first application, learn how it renders, or look up a supported API.
Release status · v1.0.0-alpha.16Start here
Examples
Run these examples locally. Each includes the source and the command to build or start it.
For the repository examples, clone https://github.com/open-element/openelement, run pnpm install at its root, and run the fixture commands there. For the starter, run its command in the directory where you want to create my-app.
Static-first page
A content or marketing page that ships complete HTML and needs no client JavaScript: docs pages, landing pages, article routes.
- Source
- router-static-only fixtureapp/routes/index.tsx
- Run (repo root)
pnpm --dir tests/fixtures/router-static-only run build- Related doc
- Getting started
- Limits
- Fixture only — no hosted preview. The build lands in the fixture’s gitignored dist/; the fixture consumes workspace sources, so it proves this checkout, not an npm release.
Reusable Custom Element
Reuse a browser-native custom element across pages. The starter counter uses a TSX function component with a shadow root.
- Source
- create starter · my-counterpackages/create/templates/app/islands/my-counter.tsx.tmpl
- Run (new app)
npm create @openelement my-app && cd my-app && npm run dev- Related doc
- Core concepts
- Limits
- The starter counter is a demo, not a data contract; the file ships as a .tmpl and is written by the generator. No hosted preview — the quickstart is the run path.
SSR + island
A server-rendered page that activates one interactive region: a notes app whose counter island hydrates on a request-time page.
- Source
- router-native-framework · note-counterapp/islands/note-counter.tsx
- Run (repo root)
pnpm --dir tests/fixtures/router-native-framework run build- Related doc
- Islands and SSR
- Limits
- Fixture only — no hosted preview. Request-time pages need a Node server: the fixture’s e2e harness serves the built app, and workspace sources (not a published package) are what get proven.
Form + routing
A form that keeps validation and routing server-owned: native POST plus redirect, with optional client-side enhancement.
- Source
- router-request-time · page-formapp/components/page-form.tsx
- Run (repo root)
pnpm --dir tests/fixtures/router-request-time run build- Related doc
- Form actions end to end
- Limits
- Request-time server required — this is not a static-hosting example. Fixture only, no hosted preview; the recipe page walks the same mechanics step by step.