hydro
From public sourcesHydro brings stateful and reactive components to ASP.NET Core without writing JavaScript
Overview
- asp-net-core
- asp-net-mvc
- razor-pages
- reactive
- webapp
Installation
Commands are shown, never run by the marketplace. Check them against the official documentation.- Official websiteFrom public sourcesfrom catalog metadatausehydro.dev/ ↗
- Build from sourceFrom public sourcesfrom catalog metadata
Build from source: no validated build recipe — follow the repository instructions.
github.com/hydrostack/hydro ↗
Compatibility
Unknown means no evidence was found — not that the product is incompatible.| Platform | Status | Architecture | Evidence | Confidence |
|---|---|---|---|---|
| Web browser | Unknown | — | — | — |
| Server / self-hosted | Unknown | — | — | — |
| Container (OCI) | Unknown | — | — | — |
Releases
checked Oct 30, 2026Files in 1.3.0
This release has no attached files.
Release history
- v1.2.0Apr 3, 2025Official source ↗
- v1.1.0Nov 8, 2024Official source ↗
- v1.0.0Oct 28, 2024Official source ↗
- v0.16.2Oct 4, 2024Official source ↗
- v0.15.1Sep 13, 2024Official source ↗
- v0.15.0Aug 29, 2024Official source ↗
- v0.14.2Jun 10, 2024Official source ↗
Quality profile
algorithm quality-v1.0 · assessed Oct 16, 2026Score components
License
MITThis is the catalog policy status, not legal advice.
Sources
Reviews
No reviews yet.
Alternatives
README
From hydrostack/hydro · license MIT · fetched Oct 30, 2026Bring stateful and reactive components to ASP.NET Core without writing JavaScript
Hydro is an extension to ASP.NET Core MVC and Razor Pages. It extends View Components to make them reactive and stateful with ability to communicate with each other without page reloads. As a result, you can create powerful components and make your application to feel like SPA with zero or minimal amount of the JavaScript code (depending on the needs) and without separate front-end build step. It can be used in new or existing ASP.NET Core applications.
Hydro utilizes the following technologies to make it all work:
-
Razor views (*.cshtml)
Razor views form the backbone of Hydro's UI generation. They allow for a familiar, server-side rendering strategy that has been a foundation of .NET web development for many years. These *.cshtml files enable a seamless mix of HTML and C# code, allowing for robust and dynamic webpage generation. -
AJAX
AJAX calls are used to communicate between the client and the server, specifically to send the application state to the server, receive updates and responses back, and then store this state to be used in subsequent requests. This ensures that each request has the most up-to-date context and information. -
Alpine.js
Alpine.js stands as a base for requests execution and DOM swapping. But beyond that, Alpine.js also empowers users by providing a framework for adding rich, client-side interactivity to the standard HTML. So, not only does it serve Hydro's internal operations, but it also provides an expansion point for users to enhance their web applications with powerful, interactive experiences.
Documentation
Toolkit
Samples
Installation
In ASP.NET Core Razor Pages / MVC project 6.0+ install Hydro package:
dotnet add package Hydro
If you don't have application yet, you can create it first:
dotnet new webapp -o MyApp
cd MyApp
In your application's startup code (either Program.cs or Startup.cs):
builder.Services.AddHydro();
...
app.UseHydro(builder.Environment);
In _ViewImports.cshtml add:
@addTagHelper *, {Your project assembly name}
@addTagHelper *, Hydro
In layout's head tag:
<meta name="hydro-config" />
<script defer src="~/hydro/hydro.js" asp-append-version="true"></script>
<script defer src="~/hydro/alpine.js" asp-append-version="true"></script>
Quick start
To create Hydro component, go to your components folder, for example in case of Razor Pages: ~/Pages/Components/, and create these files:
<!-- Counter.cshtml -->
@model Counter
<div>
Count: <strong>@Model.Count</strong>
<button on:click="@(() => Model.Add())">
Add
</button>
</div>
// Counter.cs
public class Counter : HydroComponent
{
public int Count { get; set; }
public void Add()
{
Count++;
}
}
Usage
To use your new component, you can render it in your Razor Page (e.g. Index.cshtml) in two ways:
by calling a custom tag:
...
<counter />
...
by calling a generic tag helper:
...
<hydro name="Counter"/>
...
or by calling an extension method:
...
@await Html.Hydro("Counter")
...
And voilà! You can test your component by clicking on the Add button.
External libraries
Hydro repository contains Alpine.js libraries MIT licensed.
License
Hydro is Copyright © Krzysztof Jeske and other contributors under the MIT license