Heimdall.Web 0.1.0-alpha.1

This is a prerelease version of Heimdall.Web.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Heimdall.Web --version 0.1.0-alpha.1
                    
NuGet\Install-Package Heimdall.Web -Version 0.1.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Heimdall.Web" Version="0.1.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Heimdall.Web" Version="0.1.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="Heimdall.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Heimdall.Web --version 0.1.0-alpha.1
                    
#r "nuget: Heimdall.Web, 0.1.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Heimdall.Web@0.1.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Heimdall.Web&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Heimdall.Web&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Tool

Heimdall.Web

ALPHA RELEASE

Heimdall.Web is the distribution package for the Heimdall JavaScript runtime (heimdall.js).

This package contains only the client-side library (served as a Razor Class Library static web asset). It does not include Razor components, MVC helpers, or server middleware.

If you want server-side endpoints and the action pipeline, use Heimdall.Server.


Install

dotnet add package Heimdall.Web --prerelease

Use

Reference the script from the RCL static web assets path:

<script src="/_content/Heimdall.Web/heimdall.js"></script>

That’s it. Heimdall will auto-boot on DOM ready.


What it does

heimdall.js enables HTML-first server actions by:

  • Listening for declarative attributes like:
    • heimdall-content-click="Action.Id"
    • heimdall-content-submit="Action.Id"
    • heimdall-content-load="Action.Id"
    • heimdall-content-visible="Action.Id"
    • heimdall-content-scroll="Action.Id"
  • Posting JSON payloads to the Heimdall server endpoint
  • Applying swaps (inner, outer, beforeend, afterbegin, none)
  • Processing out-of-band updates via <invocation> directives
  • Optional SSE support (“Bifrost”) using EventSource

Requirements / Assumptions

Heimdall.js assumes a same-origin Heimdall server implementation that provides:

  • Content actions: POST /__heimdall/v1/content/actions
  • CSRF token: GET /__heimdall/v1/csrf
  • Bifrost (SSE): GET /__heimdall/v1/bifrost?topic=...
  • Bifrost token: GET /__heimdall/v1/bifrost/token?topic=...

These endpoints are provided by Heimdall.Server (recommended).


Status

This package is currently alpha. APIs, attribute names, and behavior may change.


License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated