Freenaute.Freebox.Client 1.1.0

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

<p align="center"> <img src="logo.svg" alt="Freenaute logo" width="120"/> </p>

<h1 align="center">Freenaute — Freebox Server SDK</h1>

<p align="center"> Typed <b>C# 15 / .NET 11</b> client for the <a href="https://dev.freebox.fr/sdk/os/">FreeboxOS API</a> —<br/> <b>dependency-injection friendly</b>, <b>Native AOT compatible</b>, one clean NuGet package for <b>Windows x64 & Linux x64</b>. </p>

<p align="center"> <a href="https://github.com/AriusII/Freenaute-Freebox-Api/actions/workflows/release.yml"><img src="https://github.com/AriusII/Freenaute-Freebox-Api/actions/workflows/release.yml/badge.svg" alt="Release"/></a> <a href="https://www.nuget.org/packages/Freenaute.Freebox.Client"><img src="https://img.shields.io/nuget/v/Freenaute.Freebox.Client?color=blue" alt="NuGet"/></a> <a href="https://www.nuget.org/packages/Freenaute.Freebox.Client"><img src="https://img.shields.io/nuget/dt/Freenaute.Freebox.Client" alt="Downloads"/></a> <img src="https://img.shields.io/badge/.NET-11-512BD4" alt=".NET 11"/> <img src="https://img.shields.io/badge/platforms-win--x64%20%7C%20linux--x64-blue" alt="Platforms"/> </p>


✨ What is it?

Freenaute is a strongly typed .NET client for the Freebox Server (FreeboxOS) REST & WebSocket API: discovery, pairing/authentication, and typed facades for network, Wi-Fi, files, downloads, calls, contacts, AirMedia, parental control, system… — all through standard Microsoft.Extensions.DependencyInjection.

✨ Feature Detail
💉 DI-native services.AddFreeboxClient(...), named/keyed clients, options validation on start
🚀 AOT-ready IsAotCompatible/IsTrimmable, source-generated JSON only (zero reflection), NativeAOT smoke gate in CI
🔌 Transports split JSON IFreeboxTransport, binary IFreeboxBinaryTransport, WebSocket IFreeboxWebSocketTransport
🔍 Discovery mDNS/DNS-SD _fbx-api._tcp with validation, HTTP fallback
🔐 Auth done right LCD pairing → app_token in a secure IFreeboxCredentialStore, HMAC-SHA1 sessions, X-Fbx-App-Auth
🧩 One package Freenaute.Freebox.Client embeds the Mapper contracts — nothing else to install
🎯 Policy-aware coverage stable APIs plus XML-documented unstable APIs and [Obsolete]-marked deprecated APIs

✅ API model reconciliation (wave2)

From docs/api-model.json against .Client + .Mapper:

  • Operations: 222 / 222 documented operations covered (100%)
  • Schemas: 120 / 120 component schemas covered (100%)
  • Coverage includes 7 documented alias mappings (contact bracket aliases + parental planning resource indirection).

Machine-readable evidence:
C:\Users\Arius-dev\.copilot\session-state\a6a9000b-eb02-48ef-a676-4fc1cb95fc0e\files\wave2-global-matrix-docs-coverage.json

📦 Install

dotnet add package Freenaute.Freebox.Client

or in your .csproj:

<PackageReference Include="Freenaute.Freebox.Client" Version="1.1.0" />

🚀 Quick start

using Freenaute.Freebox.Client;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddFreeboxClient(o => o
    .UseApplication("org.example.my-app")
    .WithApplicationVersion("1.0.0"));

using var provider = services.BuildServiceProvider();

// Pairing: the user approves the app once, physically, on the Freebox LCD.
var auth = provider.GetRequiredService<IFreeboxAuthorizationCoordinator>();
await auth.BeginPairingAsync(cancellationToken);
var creds = await auth.WaitForApprovalAsync(cancellationToken: cancellationToken);

var freebox = provider.GetRequiredService<IFreeboxClient>();
var status = await freebox.Connection.GetStatusAsync(cancellationToken);
var hosts  = await freebox.Lan.GetHostsAsync("eth0", cancellationToken);

⚠️ Security: the durable app_token must live in an OS-protected/encrypted IFreeboxCredentialStore — never in config files, environment variables, logs or source. Session tokens stay memory-only.

📚 Documentation

  • 🇬🇧 English docs — quickstart, authentication, DI, discovery, supported API, AOT & packaging
  • 🇫🇷 Documentation française — démarrage rapide, authentification, DI, découverte, API supportées, AOT & packaging

🗂️ Repository layout

Path What
Libs/Freenaute.Freebox.Client the published package: client, auth, discovery, transports, domain facades
Libs/Freenaute.Freebox.Mapper wire contracts + source-gen JSON (embedded in the package)
Tests/ xUnit v3 tests + NativeAOT smoke (Client.Tests, Mapper.Tests, AotSmoke)
.github/workflows/ pr.yml (tests on MR) · release.yml (pack + NuGet on main/tags) · _build-test.yml / _aot.yml templates

Build outputs are gitignored under .artifacts/ (build/, nuget/, test/, aot/).

🛠️ Build & test

dotnet restore Freenaute.Freebox.slnx --locked-mode
dotnet build Freenaute.Freebox.slnx -c Release -warnaserror
dotnet test --solution Freenaute.Freebox.slnx -c Release
dotnet pack Libs/Freenaute.Freebox.Client -c Release        # → .artifacts/nuget/

Official API reference (protocol authority): https://dev.freebox.fr/sdk/os/

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.0 215 11/22/2026
1.0.0 120 11/21/2026