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
<PackageReference Include="Fuaran.ClientEffects" Version="0.1.0" />
<PackageVersion Include="Fuaran.ClientEffects" Version="0.1.0" />
<PackageReference Include="Fuaran.ClientEffects" />
paket add Fuaran.ClientEffects --version 0.1.0
#r "nuget: Fuaran.ClientEffects, 0.1.0"
#:package Fuaran.ClientEffects@0.1.0
#addin nuget:?package=Fuaran.ClientEffects&version=0.1.0
#tool nuget:?package=Fuaran.ClientEffects&version=0.1.0
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 | Versions 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. |
-
net10.0
- FSharp.Core (>= 10.1.300)
- Fuaran.Core.Wire (>= 0.44.1)
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 |