Skip to content

Veva core · Veva.Web

A CMS in one line of .NET.

builder.BuildVeva() gives you the host. Modules load themselves, pages route by wildcard, and the editor, the admin API and an MCP endpoint come with it. Everything else is a package.

dotnet add package Veva.Web.Essentials

What it does

Small pieces, plain .NET.

One call

BuildVeva() sets up routing, sign-in, static assets and the setup wizard, on SQL Server or PostgreSQL.

Modules

A module is a class that implements IModule. It registers services, components, hooks and endpoints.

Components with metadata

EditorBrowsable properties become settings, AgentHint tells AI agents what a component is for.

Themes

A theme sets the layout, breakpoints, CSS classes and colour palettes. Templates hold its settings.

Data binding

Bind {_PageTitle}, a query string value or a document field into any text, in every render mode.

Ready for agents

An MCP endpoint at /mcp gives AI agents the editor's tools, with the same permissions.

How a request is served

From an address to HTML.

  1. 01

    Request

    Every path outside /_, /veva, /api and /library is a page address.

  2. 02

    Resolve

    The page is found, then routing rules run for redirects and other addresses.

    IRoutingRule
  3. 03

    Prepare

    Page request hooks and the theme add the layout, scripts and meta tags.

    IPageRequestHook
  4. 04

    Render

    The layout renders the template's areas. Each component runs through its render hooks.

    IContentRenderHook
  5. 05

    Respond

    HTML in the page's render mode: prerendered, interactive, or static for bots.

    ComponentRenderMode

For developers

Start with Program.cs.

BuildVeva() replaces the Blazor boilerplate. Your own code goes in modules, which Veva finds and loads at startup.

Program.cs
using Veva.Web;

var builder = WebApplication.CreateBuilder(args);
var app = builder.BuildVeva();
app.Run();

// A module of your own, found and loaded at startup
public class MyThemeModule : IModule
{
public string Name => "My Theme";
public int Priority => (int)ModulePriorityEnum.Default;

public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddNamed<ITheme, MyTheme>(Name);
}
}

Keep reading

Guides for this module.

All articles

Guide

Creating modules

The unit every feature of Veva is built from.

Read the guide

More of Veva

Explore the other modules.

Each one is a package. Reference it, restart, and its components are in the editor.

All modules

Page builder

Compose pages from components, then preview and publish

Open

Documents

Structured content you list, filter and serve anywhere

Open

Assets

One media library, with images sized on request

Open

Search

Crawl, index and search the whole site

Open

Integrations

Data sources, sign-in, mail, analytics and media

Open

Type to search the docs, components and API.

↑↓ to move ↵ to open Esc to close Search by Veva