Skip to content
Trellis
For developers

Libraries, not a platform.

Trellis is a set of .NET 10 NuGet packages. Your site references them, registers its own pages and blocks, and keeps its own data.

Set up

A host in a few lines.

Add the packages, describe your site, and map the endpoints you want. The sample host is about a hundred lines, editor included.

Storage is yours: SQLite or SQL Server, in your own DbContext, in the "trellis" schema.

Program.cs
var site = new SiteCatalog(hostPages: [], hostBlocks: []);

builder.Services.AddDbContext<SiteDb>((sp, o) =>
    o.UseSqlServer(connection).UseTrellis(sp));
builder.Services.AddTrellis<SiteDb>(o =>
{
    o.Site = site;
    o.ContentRoots = [builder.Environment.ContentRootPath];
});
builder.Services.AddTrellisRendering();
builder.Services.AddTrellisEditor(o => o.Paths = new() { Base = "/admin" });

app.MapTrellisStylesheet();
app.MapTrellisEditor().RequireAuthorization("site-editor");
Theme packs

Themes are plain folders.

A theme pack is a folder (or a zip) of JSON, Handlebars, CSS and assets. Token packs restyle the built-in sections; stencil themes draw the whole document.

Templates use a locked-down Handlebars grammar: no data access, no inline scripts, no files from other sites.

themes/my-theme
my-theme/
  pack.json          name, version, contractVersion
  tokens.json        palette, surfaces, editable colours
  config.json        owner options and section styles
  templates/
    layout/base.hbs  the whole document
    pages/           home, page, not-found
    modules/         how each built-in section looks
    partials/
  blocks/<key>/      the theme's own sections
  assets/            css, js, images, fonts
  seed/              example pages
Round trip

Export, edit anywhere, import back.

  1. Export

    Download any theme as a zip from Appearance, Advanced.

  2. Edit

    Change templates, CSS and tokens in your own editor or design tool.

  3. Import

    Upload the zip. It's validated, drafted, previewed and then published.

  4. Pin

    Each site stays on the version it chose until its owner updates.

Under the hood

What you get

  • .NET 10 packagesDomain, Application, Infrastructure, Rendering, Editing, Admin, Identity
  • SQLite or SQL ServerEF Core, with migrations for both
  • Safe templatesHandlebars, checked when a pack loads
  • Contrast enforcedEvery surface checked against WCAG AA
  • Self-hosted fontsNo third-party font requests
  • Bootstrap 5.3 adminOne admin look across Internet Heads products
Get started

Ready for a website that grows with you?

Tell us about your site and we'll show you Trellis on it. Pricing isn't public yet, so send us a message and we'll reply by email.

Get in touch