How suejinkim20/bdc-web works
1. This is a monorepo for the BDC web platform with three Astro applications, one shared design package, and one Python service. The top-level boundary is clear: apps/ contains user-facing sites, packages/ contains reusable styling, and services/ contains backend infrastructure.
2. apps/site is the public-facing marketing and information site. It is mostly static content built from Astro pages and MDX, with a few React islands used where interaction is required, such as search and parts of the global header. Its content model is page-centric and organized around about/data/help/news sections.
3. apps/docs is a separate documentation site. It uses Astro with Starlight and is structured like a technical docs portal: hierarchical markdown/MDX content, a sidebar config, and tests around navigation behavior. Its architecture is content-led rather than component-heavy.
4. apps/consortium is an internal portal for consortium operations. It is fully static, with no SSR runtime, and prerenders dynamic routes at build time. It combines Astro components with MDX/YAML content to surface member directory data, RFCs, meeting materials, BAMs, working groups, onboarding/offboarding resources, and form links.
5. The consortium app’s data flow is mostly build-time content ingestion. Member records, recurring meetings, and related structured data come from local YAML files, while narrative and document pages come from MDX and markdown under src/content. Dynamic pages such as member detail pages and document trees are generated from this content during the build.
6. packages/uswds-theme is a shared presentation layer package. It encapsulates USWDS theme customization in SCSS partials, so the apps can share consistent typography, color, and navigation styling without duplicating design-system overrides.
7. services/freshdesk is the only explicit backend service in the repo. It is a Python-based proxy intended for AWS Lambda, and it acts as a boundary around Freshdesk API access rather than being part of the static site runtime. In architecture terms, it supports support/contact workflows external to the Astro apps.
8. Content and routing are file-based throughout the repo. The public site and docs use nested src/content and src/pages structures for article, event, and topic routes; the consortium app uses route groups for resources, directories, and document archives. This makes navigation and content ownership map directly to the filesystem.
9. The main runtime boundary is “static at build time” versus “interactive in the browser.” Most pages are pre-rendered HTML, while client JavaScript is limited to targeted components in apps/site where interaction or state is necessary. The consortium app is especially strict here, with no server adapter and no runtime API dependencies for its content pages.
10. Quality gates are enforced at the monorepo level and per app. CI runs formatting/linting with Biome, builds the apps, executes Vitest suites, and performs accessibility checks with Playwright and axe-core. That means architecture decisions are constrained by static build success, content correctness, and accessibility compliance rather than by server uptime or API availability.
Main entry points: site Site · consortium Consortium · uswds-theme USWDS theme · docs Docs
Components 20
apps
User-facing Astro applications
- Site · Public marketing and information site
apps/site - Site pages · Public site pages and route-driven content sections
apps/site/src/pages - Site UI · Shared UI plus targeted browser islands
apps/site/src/components - Site content · MDX and structured content for news, events, publications, and site data
apps/site/src/content - Search island · Client-side interaction for search inside the otherwise static site
apps/site/src/components/layout/SearchInput.tsx - Docs · Starlight-based documentation portal
apps/docs - Docs content · Hierarchical markdown and MDX documentation structure
apps/docs/src/content/docs - Sidebar config · Docs navigation structure and its validation
apps/docs/src/config/sidebar.ts - Consortium · Internal portal for consortium operations
apps/consortium - Portal pages · File-based portal routes including directory, resources, and generated archives
apps/consortium/src/pages - Portal content · MDX, markdown, and YAML content ingested at build time
apps/consortium/src/content - Portal components · Page shells and content renderers for resources, meetings, and forms
apps/consortium/src/components - Directory routes · Member directory detail and listing routes generated from content
apps/consortium/src/pages/consortium-directory/[id].astro - Document routes · RFC and meeting-material archive routes built from content slugs
apps/consortium/src/pages/consortium-resources/rfcs/[...slug].astro
packages
Shared reusable styling and design
- USWDS theme · Shared presentation-layer theme customizations
packages/uswds-theme - Theme partials · USWDS color, typography, nav, and initialization partials
packages/uswds-theme/src
services
Backend infrastructure and integrations
- Freshdesk · Python proxy boundary for Freshdesk API access
services/freshdesk - API handler · Lambda-facing handler and proxy implementation
services/freshdesk/handler.py
ci
Monorepo quality gates and build checks
- CI checks · Formatting, linting, builds, tests, and accessibility checks
.github/workflows/ci.yaml
Other components
- BDC web · Top-level monorepo boundary for the BDC web platform
Connections 25
- BDC web → Site: contains · Top-level monorepo boundary includes the public site
- BDC web → Docs: contains · Top-level monorepo boundary includes the docs app
- BDC web → Consortium: contains · Top-level monorepo boundary includes the consortium portal
- BDC web → USWDS theme: contains · Top-level monorepo boundary includes shared styling
- BDC web → Freshdesk: contains · Top-level monorepo boundary includes backend support service
- BDC web → CI checks: checks · Repository-level CI constrains all major subsystems
- Site → Site pages: routes · Site pages are file-based Astro routes
- Site → Site UI: uses · Pages compose shared UI components and layouts
- Site → Site content: reads · Public site content is sourced from MDX and structured data
- Site UI → Search island: includes · Interactive browser behavior is limited to targeted React islands
- Docs → Docs content: publishes · Docs app is driven by the documentation content tree
- Docs → Sidebar config: navigates · Sidebar config defines portal navigation and ordering
- Consortium → Portal pages: routes · Consortium portal is organized as static file-based routes
- Consortium → Portal content: ingests · Portal content is built from local MDX, markdown, and YAML
- Consortium → Portal components: renders · Astro components render content-led pages and reusable sections
- Portal pages → Directory routes: generates · Directory views are built from member records at build time
- Portal pages → Document routes: generates · Resource and archive routes expand from content slugs
- Portal content → Directory routes: feeds · Member and recurring-meeting data power directory pages
- Portal content → Document routes: feeds · RFCs and meeting materials power prerendered document trees
- USWDS theme → Theme partials: contains · Shared package centralizes SCSS theme overrides
- Site → USWDS theme: shares · Public site consumes the shared USWDS theme package
- Docs → USWDS theme: shares · Docs app inherits the shared design layer
- Consortium → USWDS theme: shares · Consortium portal reuses the shared design layer
- Freshdesk → API handler: implements · Python handler provides the Lambda proxy boundary
- Freshdesk → Site: supports · Service supports support/contact workflows around the public site