@orieljs/live-client
v0.1.0-alpha.6
Published
The browser runtime for Oriel Live components: o: directives, morphdom, o:navigate.
Readme
@orieljs/live-client
The browser runtime for Oriel Live components: the o: directives, DOM morphing with morphdom, and o:navigate. It is under 15 KB gzipped, morphdom included.
npm install @orieljs/live-client// resources/js/app.ts
import { Live } from '@orieljs/live-client'
Live.start()Live.start() initializes every component on the page and listens for directives. The Live object also offers stop(), find(), first(), all(), getByName(), dispatch(), dispatchTo(), on(), navigate() and settled().
The components themselves are written on the server with @orieljs/live, which is part of @orieljs/framework.
Known limitations:
- Loaded through Vite only: there is no script tag the server injects.
Status: early alpha. APIs will change.
License
Oriel is open-source software licensed under the Apache License 2.0 (Apache-2.0; see LICENSE and NOTICE). The Oriel name and logo are trademarks; see TRADEMARKS.md.
Website: https://orieljs.vercel.app
