Relatude Help

Server-hosted (the usual case)

// Program.cs
using Relatude.DB.NodeServer;   // RelatudeDBContext

var builder = WebApplication.CreateBuilder(args);
builder.AddRelatudeDB(options => {
    // file converters, folders and callbacks go here
});

var app = builder.Build();
app.MapGet("/", (RelatudeDBContext ctx) => $"{ctx.Database.Count()} nodes.");
app.UseRelatudeDB();   // starts the server and mounts the admin UI at /relatude.db
app.Run();

AddRelatudeDB and UseRelatudeDB are in the global namespace. Inject RelatudeDBContext wherever you need the database: ctx.Database is the NodeStore that the rest of this manual works with. The options are described in Options and events in Program.cs.