.NET client library for the XRPL Commons Map API — explore projects, tools, and protocols built on the XRP Ledger.
- Typed HTTP client for all XRPL Commons API endpoints
- Sections, categories, and projects with full model mapping
- Dependency injection support via
IServiceCollection System.Text.Jsonserialization with custom converters- Async/await with
CancellationTokensupport - Blazor WebAssembly demo application
dotnet add package Staticbit.XrplCommons.Clientbuilder.Services.AddXrplCommonsClient();Or with a custom base URL:
builder.Services.AddXrplCommonsClient(options =>
{
options.BaseUrl = "https://map.xrpl-commons.org";
});public class MyService
{
private readonly IXrplCommonsClient _client;
public MyService(IXrplCommonsClient client)
{
_client = client;
}
public async Task ListProjectsAsync(CancellationToken cancellationToken)
{
List<Project> projects = await _client.GetProjectsAsync(cancellationToken);
foreach (Project project in projects)
{
Console.WriteLine($"{project.Name} — {project.Status}");
}
}
}Full API documentation is available at staticbit-io.github.io/XrplCommons.
| Method | Description |
|---|---|
GetSectionsAsync() |
Get all ecosystem sections |
GetSectionAsync(id) |
Get a section by ID |
GetCategoriesAsync(sectionId?) |
Get categories, optionally filtered by section |
GetProjectsAsync() |
Get all projects |
GetProjectBySlugAsync(slug) |
Get a project by its URL slug |
Section — ecosystem section (e.g., "Apps", "Infrastructure")
Id,Name,PrimaryColor,CreatedAt,UpdatedAt
Category — project category within a section
Id,Name,SectionId,CreatedAt,UpdatedAt
Project — individual XRPL ecosystem project
Id,Slug,Name,Logo,DescriptionCategoryId,Programs,Status,VisibleLaunchDate,Tags,Url,GithubCreatedAt,UpdatedAt
ProjectStatus — Active, Inactive, PreLaunch, Paid
src/
├── XrplCommons.Client/ # API client library (NuGet package)
├── XrplCommons.Client.Tests/ # Unit & integration tests
├── XrplCommons.Blazor/ # Blazor WebAssembly frontend
└── XrplCommons.Blazor.Server/ # ASP.NET Core host with API proxy
dotnet build# Unit tests
dotnet test
# Integration tests (requires network access)
dotnet test --filter Category=Integrationdotnet run --project src/XrplCommons.Blazor.Server/XrplCommons.Blazor.Server.csprojOpen http://localhost:5000 in your browser.
Documentation is built with DocFX and published to GitHub Pages.
dotnet tool install -g docfx
docfx DocFx/docfx.json --serveThis project is licensed under the Apache License 2.0 — see the LICENSE file for details.