{"repo":"volfpeter/fasthx","free":true,"listed":false,"github":"https://github.com/volfpeter/fasthx","clone":"git clone https://github.com/volfpeter/fasthx.git","description":"Declarative Python server-side rendering utility for FastAPI with built-in HTMX support.","language":"Python","stars":727,"topics":["fastapi","html","jinja2","templating","website","server-side-rendering","htmx","python"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Source code : https://github.com/volfpeter/fasthx Documentation and examples : https://volfpeter.github.io/fasthx FastHX Python server-side rendering library for FastAPI with built-in HTMX support. FastHX simplifies building interactive web applications with FastAPI and hypermedia frameworks like HTMX. For an even deeper FastAPI integration and a Next.js-like developer experience, you should check out holm. Key features - Python decorator syntax that works with FastAPI as one would expect, no need for unused or magic dependencies in routes. - Built for HTMX , but can be used without it. - Works with any Python templating engine or server-side rendering library, e.g. htmy , jinja2 , or dominate . - Supports async HTML streaming for optimal time to first byte and first contentful paint. - Gives the rendering engine access to all dependencies of the decorated route. - HTMX routes work as expected if they receive non-HTMX requests, so the same route can serve data and render HTML at the same time. - Response headers you set in your routes are kept after rendering, as you would expect in FastAPI. - Correct typing makes it possible to apply other (typed) decorators to your routes. - Works with both sync and async routes . Testimonials \"Thanks for your work in the holm / htmy / FastHX stack, it's awesome.\" (David Brochart, Technical Director at QuantStack, Jupyter developer. ref) \"Thank you for your work on fasthx , as well as htmy ! I've never had an easier time developing with ano","default_branch":null,"files":null,"tree":[],"storefront":"/r/volfpeter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/volfpeter/fasthx/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."}