Oxpecker.Htmx

HTMX support for Oxpecker.ViewEngine


Keywords
DSL, F#, FSharp, HTMX, Html, Oxpecker, ViewEngine, Web
License
MIT
Install
Install-Package Oxpecker.Htmx -Version 1.0.0

Documentation



Oxpecker

Oxpecker

Oxpecker is a library started as functional wrapper around ASP.NET Core Endpoint routing, but now providing fullstack capabilities with Htmx and Solid.js integrations. Repository is a monorepo with all related projects included and documentation located in README.md files per project. As of November 2024, Oxpecker is the fastest .NET web framework in several categories in the TechEmpower benchmark

The server part of the Oxpecker library is a revised version of Giraffe, it mostly sticks to Giraffe's successful API (hence the name). Improvements involve changing some core types, performance of template handlers, simplifying handlers and dropping a lot of outdated functionality.

Medium posts:

Features:

  • Native ASP.NET Core Endpoint routing integration
  • Fast ViewEngine with convenient DSL for HTML
  • OpenApi integration
  • Htmx integration
  • Strongly typed route parameters
  • Endpoint handlers and endpoint middlewares, flexible composition
  • JSON binding and serialization
  • Form binding
  • URL parameters binding
  • Response caching
  • Streaming
  • Authorization
  • eTag support
  • IResult support
  • Many useful HttpContext extensions

Get started:

Examples:

Documentation links:

develop vs main branch:

develop is a development branch, projects are linked with each other using project references. Use this branch to send PRs.

main is a production branch, projects and examples are linked with each other using nuget (or npm) packages. Packages are published from this branch.

Packages

Support

You can promote the development of the project using Github sponsors option