Skip to content
foxminchanPublic

About

Reference architecture for building agentic applications with Aspire microservices and micro frontends, integrating MCP, A2A, AG-UI, and A2UI

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

506 stars

Watchers

2 watching

Forks

Latest commit

 

History

751 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

BookWorm

BookWorm

SLSA 2 OpenSSF Scorecard

Coverage Duplicated Lines (%)

BookWorm CI (Backend) BookWorm CI (Frontend)

Warning

This project is for demo purposes only and is not production-ready.

Introduction

⭐ BookWorm showcases Aspire in a cloud-native application with AI integration. Built with DDD and VSA, it features multi-agent orchestration and standardized AI tooling through MCP with A2A & AG-UI Protocol support.

View Screenshots

BookWorm Storefront BookWorm Backoffice

Project Goals

  • Developed a cloud-native application using Aspire
  • Implemented Vertical Slice Architecture with Domain-Driven Design & CQRS
  • Enabled service-to-service communication with gRPC
  • Incorporated various microservices patterns
    • Utilized outbox and inbox patterns to manage commands and events
    • Implemented saga patterns for orchestration and choreography
    • Integrated event sourcing for storing domain events
    • Implemented a microservices chassis for cross-cutting concerns and service infrastructure
  • Implemented API versioning and feature flags for flexible application management
  • Set up AuthN/AuthZ with Microsoft Entra ID
    • Used Authorization Code Flow with PKCE for user authentication
    • Enabled Token Exchange for service-to-service authentication
  • Implemented caching with FusionCache
  • Incorporated AI components:
    • Use Microsoft Foundry for LLM and embeddings
    • Orchestrated multi-agent workflows using Agent Framework
    • Standardized AI tooling with Model Context Protocol (MCP)
    • Enabled agent-to-agent communication via A2A Protocol
    • Supported Agent interactions via AG-UI Protocol
    • Agent governance with policy-based controls and monitoring
    • Enabled AI agents to generate rich, interactive UIs using A2UI
  • Configured CI/CD with GitHub Actions
  • Created comprehensive documentation:
    • Used OpenAPI for REST API & AsyncAPI for event-driven endpoints
    • Utilized EventCatalog for centralized architecture documentation
  • Built modern client applications:
    • Monorepo architecture powered by Turborepo
    • Microfrontend (MFE) architecture using Next.js multi-zones
    • Customer-facing storefront and admin backoffice dashboard with Next.js
    • Targeted WCAG 2.1 AA accessibility standards (accessibility statement)
  • Established a testing strategy:
    • Conducted service unit tests
    • Implemented Pact-based contract testing
    • Established architecture testing strategy
    • Implemented frontend unit tests and component tests
    • Conducted end-to-end testing with BDD

Project Architecture

Project Architecture

Getting Started

Prerequisites

Required

  • mise — tool version manager
  • Docker — container runtime (must be running before starting the app)

Optional — install with mise run setup:<tool>:

  • mise run setup:buf — Buf CLI for gRPC schema & codegen
  • mise run setup:copilot — GitHub Copilot CLI for AI-assisted development

Note

  • Run mise tasks ls to view all available workspace tasks.
  • Cloud deployments require an Azure subscription along with Confluent Cloud, SendGrid, and Qdrant Cloud connections.

Run locally

# 1. Clone the repository
git clone git@github.com:foxminchan/BookWorm.git
cd BookWorm

# 2. Install tools (.NET SDK, Bun, JDK & tools — skip if already installed globally)
mise install

# 3. First-time setup (restore packages + git hooks)
mise run prepare

# 4. Start the application
mise run run

Note

On first run, you'll be prompted to enter the required environment variables.

Deploy to Azure

  1. Authenticate and configure
az login
aspire secret set "Azure:SubscriptionId" "your-subscription-id"
aspire secret set "Azure:Location" "your-location"
  1. Deploy
aspire deploy
  1. Get the app URL
az containerapp show --name <app-name> --resource-group <resource-group> \
  --query properties.configuration.ingress.fqdn --output tsv
  1. Clean up resources

To remove all deployed resources and avoid charges:

az group delete --name <resource-group> --yes --no-wait

Contributing

For full documentation, visit the BookWorm Catalog. Contributions are welcome — see CONTRIBUTING and CODE OF CONDUCT for details. For bugs or feature requests, open an issue.

License

MIT — see LICENSE for details.

About

Reference architecture for building agentic applications with Aspire microservices and micro frontends, integrating MCP, A2A, AG-UI, and A2UI

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

506 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages