@glimr/loom
v1.0.1
Published
Client runtime for Glimr's Loom template engine
Readme
Glimr Loom JS ✨
Client runtime for Glimr's Loom template engine, providing WebSocket management, DOM patching, SPA navigation, and event forwarding. This package is meant to be used alongside the glimr-org/framework package and the glimr-org/glimr starter repository.
If you'd like to stay updated on Glimr's development, Follow @migueljarias on X (that's me) for updates.
About
Note: This repository contains the client-side runtime for Loom. If you want to build an application using Glimr, visit the main Glimr repository.
Features
- WebSocket Management - Persistent connection for server-driven reactivity
- DOM Patching - Efficient diffing and patching via morphdom
- SPA Navigation - Intercepts link clicks for instant page transitions
- Event Forwarding - Captures browser events and sends them to the server
Installation
npm install @glimr/loomThen import it in your app.ts:
import "../css/app.css";
import "@glimr/loom";The runtime auto-initializes on page load — no setup required.
Learn More
- Glimr - Main Glimr repository
- Glimr Framework - Core framework
Built With
- morphdom - Fast and lightweight DOM diffing/patching
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
Glimr Loom JS is open-sourced software licensed under the MIT license.
