Skip to content

cogitave/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uid cogitave.web.overview
title web — marketing/web platform shell
description The core/shell for cogitave.com - a content-as-data, edge-first marketing platform where apps, landing pages, and campaigns drop into apps/<slug>/ behind a schema-validated manifest, with no shell rework.
type reference
owner cogitave/web
lastReviewed 2026-06-28
products
cogitave
roles
developer
content-developer
level beginner

web — marketing/web platform shell

This is the core, ready for apps to drop in. It is the source of the marketing-site property (cogitave.com / www in cogitave/bootstrap/domains.yaml). It is intentionally a skeleton: structure + configs + conventions + minimal stubs — not a finished site. A finished site is assembled by dropping apps in.

Note

Build-from-scratch ethos applies (see ADR-0003 in standards). The engines are ours (namzu/TS build, yuva/Rust serve). Off-the-shelf specs — DTCG design tokens, schema.org, MCP, dotenvx — are reference/spec, not lock-in. English only.

What this is

A vertically integrated marketing platform with one single source per concern: tokens in design/, content as typed data in each app's content/, domains mirrored from cogitave/bootstrap/domains.yaml, everything wired by site.config.yaml. Humans and agents read the same model (MCP-native, like the rest of the estate).

Architecture at a glance

The shell provides the frame (routing, render targets, shared components, SEO/analytics/i18n/a11y defaults, design tokens). Each app provides content + a manifest. Per diagrams standard, this is a C4-style container view; viewpoint: structural / build-time composition; concern: how an app composes into the shell.

flowchart LR
  subgraph Shell["web shell (the core)"]
    cfg["site.config.yaml<br/>routes · domains · targets"]
    tok["design/tokens.json<br/>(DTCG single source)"]
    cmp["components/<br/>shared UI"]
    cross["seo/ · analytics/<br/>i18n/ · a11y/"]
  end
  subgraph App["apps/&lt;slug&gt;/ (drops in)"]
    man["app.manifest.json<br/>(schema-validated slot)"]
    cnt["content/*.page.yaml<br/>(content-as-data)"]
  end
  build["namzu build → static + edge bundle"]
  serve["yuva serve (edge-first, multi-cloud)"]
  man --> cfg
  cnt --> cfg
  tok --> cmp --> build
  cfg --> build
  cross --> build
  build --> serve
  serve --> dom["cogitave.com / www"]
Loading

learn.cogitave.com / docs.cogitave.com are a separate property (learn-platform, built from cogitave/learn); we cross-link to it, we do not route it.

The slot — how an app/page/campaign drops in

The convention is a folder + a validated manifest. No shell code changes.

  1. Copy the template: apps/_template/apps/<your-app>/.
  2. Edit the manifest: apps/<your-app>/app.manifest.json — set id, kind (app | landing | campaign), route, render.mode (static | island | edge-ssr), content.root, components, seo, i18n, analytics.events, owner, status. It validates against apps/app.manifest.schema.json (blocking CI gate).
  3. Write content as data: typed *.page.yaml under content/, validated by content/schemas/page.schema.json. Prose lives in separate includes/*.md (docs convention).
  4. Register the route: add one line to apps.registry in site.config.yaml (discovery is automatic; the registry pins route/property/status and lets you stage or feature-flag).
  5. Ship: CI validates manifest + content schemas, a11y, SEO, token usage, and perf budgets; the edge-first, multi-cloud deploy picks the app up.

Full walkthrough: docs/adding-an-app.md.

Directory map

Path What it holds
site.config.yaml Routes/apps registry, domain mapping, build/deploy targets, env (dotenvx).
apps/ Drop-in apps / landing pages / campaigns. _template/ to copy; app.manifest.schema.json is the slot contract.
components/ Shared, token-driven UI; each component owns a content sub-schema.
content/ Content-as-data model + schemas (sourced like the docs/learn model).
design/ Design tokens (tokens.json, DTCG) + brand usage — the design-system single source.
seo/ Metadata, sitemap, robots.txt, structured data (JSON-LD), llms.txt.
analytics/ Privacy-respecting, consent-gated analytics (consent.config.json).
i18n/ Localization conventions (English-only today, locale-ready).
a11y/ WCAG 2.2 AA notes + CI gates.
docs/ architecture, adding-an-app, ADRs.

Standards this shell follows

  • Docs-as-code / front matter: every markdown doc here carries the documentation standard front matter; configs are schema-validated.
  • Diagrams-as-code: Mermaid inline, each declaring its 42010 viewpoint (diagrams standard).
  • MCP-native, certification-grade, English-only, per the org AGENTS.md.

About

cogitave.com marketing/web platform — the shell apps drop into.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors