https://github.com/phlex-ruby/flecks
https://github.com/phlex-ruby/flecks
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phlex-ruby/flecks
- Owner: phlex-ruby
- License: mit
- Created: 2024-09-24T21:45:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-30T23:23:49.000Z (over 1 year ago)
- Last Synced: 2025-03-30T08:07:45.520Z (11 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 70
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Flecks
Render IO-bound content asynchronously and stream it into a wrap-around shell in a single HTTP response with Phlex.
See [video demo](https://cloud.drapper.me/DYH7WFL8).
## Recommendations
We recommend using the [Falcon](https://github.com/socketry/falcon) web server which uses multiple fibers to handle requests concurrently, since this will play best with our fiber-based approach to background tasks.
## Acknowledgements
The declarative shadow DOM technique used in this project was inspired by these two articles:
- [Out of Order Streaming using Declarative Shadow DOM](https://kevinkipp.com/blog/out-of-order-streaming-using-declarative-shadow-dom/), Kevin Kipp
- [Streaming HTML out of order without JavaScript](https://lamplightdev.com/blog/2024/01/10/streaming-html-out-of-order-without-javascript/), Chris Haynes