{"repo":"jfyne/live","free":true,"listed":false,"github":"https://github.com/jfyne/live","clone":"git clone https://github.com/jfyne/live.git","description":"Live views and components for golang","language":"Go","stars":744,"topics":["golang","liveview","live-view","websockets","server-side-rendering","components"],"license":"MIT","category":"ui-components","readme_excerpt":"⚡ live Real-time user experiences with server-rendered HTML in Go. Inspired by and borrowing from Phoenix LiveViews. Live is intended as a replacement for React, Vue, Angular etc. You can write an interactive web app just using Go and its templates. The structures provided in this package are compatible with net/http , so will play nicely with middleware and other frameworks. Community For bugs please use github issues. If you have a question about design or adding features, I am happy to chat about it in the discussions tab. Discord server is here. Getting Started Examples - Alpinejs - Buttons - Chat - Clock - Clocks - Cluster - Error - Pagination - Todo Live components - World Clocks Install See the examples for usage. First handler Here is an example demonstrating how we would make a simple thermostat. Live is compatible with net/http . [embedmd]:# (example test.go) Notice the script tag. Live's javascript is embedded within the library for ease of use, and is required to be included for it to work. You can also use the companion npm package to add to any existing web app build pipeline. Live components Live can also render components. These are an easy way to encapsulate event logic and make it repeatable across a page. The components examples show how to create components. Those are then used in the world clocks example. [embedmd]:# (page/example test.go) Navigation Live provides functionality to use the browsers pushState API to update its query parameters. This can be ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jfyne","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jfyne/live/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}