Skip to Content
Docs

Sites

Build and deploy web applications on Contextual with managed hosting and optional user authentication.

Contextual Sites let you build web applications with managed hosting and optional user authentication. A Site Worker can run your interface and the server-side application logic that supports it. Keep related functionality together, or distribute it across additional Workers when parts of your application need to deploy, scale, or run independently.

Develop, Authenticate, and Deploy

Build your Site with the framework and language that suit your application. Contextual provides an Astro starter with authentication integration and a Dockerfile, or you can deploy an existing or custom application image that meets the Site image contract.

Add sign-in with Managed Stytch or your own Stytch project through an Auth Profile. Your application controls which routes require sign-in and what each user may access.

Build your application into a container image and deploy it to a Site Worker. Contextual supplies the hosting and authentication gateway; you manage the application code, image updates, and access to any APIs it calls.

How Sites Work

A Site holds configuration; a Site Worker runs the application. The Worker's managed-site-worker template binds a Site ID to an application image, so you can update code independently of Site and authentication settings.

Parts of a Site

Part Purpose
Site Identifies the application and selects its optional Auth Profile.
Source repository Holds application code, build files, and review history.
Application image Packages the application and its HTTP server.
Site Worker Runs the image, serves the application, and integrates Site authentication.
Auth Profile Configures authentication for Sites that share a user population.
Site User Belongs to an Auth Profile and can sign in to Sites that use it.

Follow the Quickstart to create an authenticated Site and deploy your first application change.