Fuaran.ClientEffects 0.1.0

Prefix Reserved
dotnet add package Fuaran.ClientEffects --version 0.1.0
                    
NuGet\Install-Package Fuaran.ClientEffects -Version 0.1.0
                    
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="Fuaran.ClientEffects" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fuaran.ClientEffects" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Fuaran.ClientEffects" />
                    
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 Fuaran.ClientEffects --version 0.1.0
                    
#r "nuget: Fuaran.ClientEffects, 0.1.0"
                    
#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 Fuaran.ClientEffects@0.1.0
                    
#: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=Fuaran.ClientEffects&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Fuaran.ClientEffects&version=0.1.0
                    
Install as a Cake Tool

Fuaran.ClientEffects

The client effect vocabulary of the Fuaran stack: the effect type, its discriminator and its wire codec, declared once so that a server emitting effects, a browser performing them and a host mirroring them agree by construction.

Apache-2.0. See LICENSE and NOTICE.

What it holds

A client effect is something a server decides and a client performs, because it has no server-side form: a server has no clipboard, no address bar and no printer.

Arm Wire form
WriteToClipboard text {"kind":"WriteToClipboard","text":…}
Navigate(route, target) {"kind":"Navigate","route":…}, with "target":"Blank" only when the target is Blank
PushState route {"kind":"PushState","route":…}
Focus nodeId {"kind":"Focus","nodeId":…}
Download(url, name) {"kind":"Download","url":…,"name":…}
ReadFileBody(nodeId, encoding) {"kind":"ReadFileBody","nodeId":…,"encoding":…}, encoding one of Text, Base64, DataUrl
Print {"kind":"Print"}
Confirm(prompt, token) {"kind":"Confirm","prompt":…,"token":…}
open Fuaran.ClientEffects

ClientEffect.encode (ClientEffect.Navigate("/orders", NavigateTarget.Blank))
// {"kind":"Navigate","route":"/orders","target":"Blank"}

// Decoding takes a value Core's JSON reader produced; parsing, and its limits, are the host's.
match Fuaran.Core.Json.parse """{"kind":"Print"}""" with
| Ok value -> ClientEffect.decode value // Ok Print
| Error e -> failwith e

A refused document reports its class as the specification spells it (RefusalClass.id): missing-member, undeclared-member or unknown-effect-arm.

The wire form

The bytes are the Fuaran program specification's client-effect document, and its conformance corpus pins them. The test suite runs that corpus against this codec: every round-trip vector decodes and re-encodes byte-identically, and every reject vector is refused for its class.

Dependencies

FSharp.Core and Fuaran.Core.Wire. No runtime, no UI language. The library is Fable-clean, and its package ships its source under fable/ for Fable consumers.

Building

pwsh ./run.ps1 restores the tools, checks the formatting, builds, runs the tests and compiles the library with Fable. It needs PowerShell 7 and the .NET SDK that global.json pins. The decisions are in DECISIONS.md, and the version record in STABILITY.md.

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fuaran.ClientEffects:

Package Downloads
Fuaran.MVU.Browser

Fuaran.MVU.Browser: the standard client kinds for Fuaran.MVU in the browser. The client effects of Fuaran.ClientEffects (clipboard, navigation, history, focus, download, file read, print, confirm) with storage and the timers, each kind registered once with its classes so the gate decides it; a performer per kind, each a one-shot answer or none; the vocabulary embedded as one case of an application's effect type; and the browser host on the kernel's growing queue. Depends on Fuaran.MVU, FSharp.Core, Fuaran.ClientEffects and Fable.Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 45 11/21/2026