{"id":50781731,"url":"https://github.com/tairitsua/monica","last_synced_at":"2026-06-12T04:01:23.903Z","repository":{"id":284521241,"uuid":"935535542","full_name":"Tairitsua/Monica","owner":"Tairitsua","description":"Modular .NET infrastructure for C# AI-era backends: ProjectUnits, composable modules, built-in dashboards, and agent skills.","archived":false,"fork":false,"pushed_at":"2026-06-09T02:52:29.000Z","size":16159,"stargazers_count":11,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2026-06-09T04:27:58.755Z","etag":null,"topics":["ai-agent","blazor","ddd","dotnet","framework","job-scheduler","task-scheduler"],"latest_commit_sha":null,"homepage":"https://monica.dpdns.org/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tairitsua.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-02-19T15:51:52.000Z","updated_at":"2026-06-09T02:52:33.000Z","dependencies_parsed_at":"2025-07-07T03:32:56.276Z","dependency_job_id":null,"html_url":"https://github.com/Tairitsua/Monica","commit_stats":null,"previous_names":["euynac/molibrary","molloryn/molibrary","tairitsua/monica"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Tairitsua/Monica","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tairitsua%2FMonica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tairitsua%2FMonica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tairitsua%2FMonica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tairitsua%2FMonica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tairitsua","download_url":"https://codeload.github.com/Tairitsua/Monica/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tairitsua%2FMonica/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34228097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","blazor","ddd","dotnet","framework","job-scheduler","task-scheduler"],"created_at":"2026-06-12T04:00:39.071Z","updated_at":"2026-06-12T04:01:23.887Z","avatar_url":"https://github.com/Tairitsua.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monica\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Monica Logo\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Tairitsua/Monica/actions/workflows/unit-tests.yml\"\u003e\u003cimg src=\"https://github.com/Tairitsua/Monica/actions/workflows/unit-tests.yml/badge.svg\" alt=\"Unit Tests\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.nuget.org/packages?q=Monica\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/Monica.Core.svg\" alt=\"NuGet\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Tairitsua/Monica/blob/main/LICENSE.txt\"\u003e\u003cimg src=\"https://img.shields.io/github/license/Tairitsua/Monica\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://monica.dpdns.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs-online-brightgreen.svg\" alt=\"Documentation\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://deepwiki.com/Tairitsua/Monica\"\u003e\u003cimg src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  English | \u003ca href=\"README.zh_CN.md\"\u003e简体中文\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e **Mo**dular **.N**ET **I**nfrastructure for **C#** **A**I-era backends.\n\u003e Monica combines typed DDD ProjectUnits, composable infrastructure modules, built-in dashboards, and bundled agent skills so AI-assisted backend work stays observable as it grows.\n\n\u003e **Release candidate**: Monica 1.0.0-rc.2 is a pre-release for validation and feedback. Breaking changes may still happen before 1.0.0 stable.\n\n## Quick Links\n\n- Docs site: \u003chttps://monica.dpdns.org/\u003e\n- Monica.Docs example repo: \u003chttps://github.com/Tairitsua/Monica.Docs\u003e\n- JobScheduler guide: \u003chttps://monica.dpdns.org/markdown-docs?group=monica\u0026document=modules%2Fjob-scheduler%2Findex.md\u0026culture=zh-CN\u003e\n- Changelog: [CHANGELOG.md](CHANGELOG.md)\n\n\n## Why Monica\n\n- AI can produce code quickly, but without a shared spec the result becomes brittle and hard to observe as the system grows.\n- Monica turns infrastructure into the spec: every module registers through the same `Mo.Add*()` pattern, and every backend feature is expressed as typed ProjectUnits instead of ad hoc glue.\n- The bundled skills under `.claude/skills/` and `.agents/skills/` teach agents the Monica way before they write code.\n\n## Demo\n\nThe one-minute demo walks through the operator-facing parts of Monica:\n\n- JobScheduler health dashboard, recent activity, job definitions, and manual execution.\n- Cron expression editing without wiring a custom admin page by hand.\n- ModuleSystem performance and dependency views for the running host.\n- Runtime configuration inspection and theme switching.\n\n\nhttps://github.com/user-attachments/assets/250e1e5f-0a78-4b8b-b832-756d682a01bd\n\n## JobScheduler in Code\n\n```csharp\nusing Microsoft.Extensions.Logging;\nusing Monica.JobScheduler.Abstractions;\nusing Monica.JobScheduler.Annotations;\nusing Monica.Modules;\n\nMo.AddJobScheduler()\n    .UseInMemoryMetadataRepository()\n    .UseSchedulerScope(\"local-dev\")\n    .UseInMemoryProvider();\n\n[JobConfig(\n    JobName = \"Heartbeat\",\n    Description = \"Writes a heartbeat every five minutes.\",\n    CronSchedule = \"0 */5 * * * *\")]\npublic sealed class HeartbeatJob(ILogger\u003cHeartbeatJob\u003e logger) : RecurringJob\n{\n    public override Task ExecuteAsync(CancellationToken cancellationToken)\n    {\n        logger.LogInformation(\"Heartbeat job ran.\");\n        return Task.CompletedTask;\n    }\n}\n```\n\n- Recurring and triggered jobs share one scheduling model.\n- Concurrency guards, zombie detection, and persistence options are built in.\n- Add `Mo.AddJobSchedulerUI()` when you want the browser dashboard and job detail views. The UI requires an ASP.NET Core web host because it serves Blazor routes and static web assets; a plain console host is enough for scheduler-only jobs, but not for the dashboard.\n- See [`examples/JobSchedulerMinimal`](examples/JobSchedulerMinimal) for the smallest verified ASP.NET Core host that runs JobScheduler + JobScheduler UI at `/job-scheduler`.\n\n## Global Configuration\n\nConfigure Monica-wide defaults through root `Mo.Config*()` methods before registering modules:\n\n```csharp\nMo.ConfigApplication(options =\u003e\n{\n    options.AppName = \"My Application\";\n    options.AppId = \"my-application\";\n});\n\nMo.ConfigModuleSystem(options =\u003e\n{\n    options.DefaultApiGroupName = \"Core\";\n});\n```\n\nModule options still take precedence over these global defaults.\n\n## Dashboards, Themes, and i18n\n\nMonica ships multiple operational Blazor UIs on top of `Monica.UI`: JobScheduler, Configuration, DependencyInjection, ProjectUnits, ModuleSystem, AI, and more. The UI layer shares the same theme contract, several swappable theme variants, and shipped `en-US` + `zh-CN` localization resources.\n\n## Bundled Agent Skills\n\nThe repo includes ready-to-use skill packs in `.claude/skills/` and `.agents/skills/`.\n\n- Framework entry points: `monica-framework`, `monica-development`, `monica-architecture`, `monica-ui-development`, `monica-ui-design`, `monica-ui-audit`, `monica-docs-authoring`, `monica-requirement-design`, `monica-unit-testing`, `monica-ui-bridge-debug`\n- Application entry points: `monica-application`, `monica-application-microservice`, `monica-application-modular-monolith`, `monica-application-project-unit-development`\n- Supporting workflows: `code-simplifier`, `playwright-cli`, `subagent-progress-report`, `third-party-source-catalog`\n\n## Module Catalog\n\nMonica is organized as many small composable modules rather than a few large packages.\n\n- Core infrastructure: `Core`, `Tool`, `DependencyInjection`, `ResultEnvelope`, `Mediator`, `JsonSerialization`, `Localization`\n- DDD and application flow: `ProjectUnits`, `AutoController`, `AutoModel`, `Repository`, `UnitOfWork`\n- Background and ops: `JobScheduler`, `Configuration`, `Logging`, `ObservableInstance`, `HostedService`, `ServiceDiscovery`, `Locker`, `Resilience`\n- Communication and integration: `EventBus`, `SignalR`, `DataChannel`, `Dapr`, `Markdown`\n- AI and analysis: `AI`, `RAG`, `Framework`, `Framework.UI`, `AI.UI`, `JobScheduler.UI`, `Configuration.UI`, `DependencyInjection.UI`\n- Platform utilities: `WebApi`, `Validation`, `Office`, `Profiling`, `DevOps`, `K8S`, `Git`, `FileOps`, `Utilities`\n\n\u003e See the full module index in the docs site for the current authoritative list.\n\n## Architecture at a Glance\n\n### Module Pattern\n\n- `Module{Name}Option`: public configuration surface\n- `Module{Name}Guide`: fluent follow-up configuration\n- `Module{Name}`: the module implementation\n- `Module{Name}BuilderExtensions`: the `Mo.Add*()` entry point\n\n### ProjectUnit Pattern\n\nTyped DDD building blocks that define what AI is allowed to write: `ApplicationService`, `RequestDto`, `DomainService`, `Entity`, `Repository`, `DomainEvent`, `DomainEventHandler`, `LocalEventHandler`, `Configuration`, `RecurringJob`, `TriggeredJob`.\n\nProjectUnit guidance lives in `monica-application-project-unit-development` and in the Monica.Docs concept pages that explain the same vocabulary in context.\n\n## Technology Stack\n\n- [.NET 10](https://github.com/dotnet/runtime)\n- [ASP.NET Core](https://github.com/dotnet/aspnetcore)\n- [Entity Framework Core](https://github.com/dotnet/efcore)\n- [MudBlazor](https://github.com/MudBlazor/MudBlazor)\n- [Mapster](https://github.com/MapsterMapper/Mapster)\n- [Microsoft Agent Framework](https://github.com/microsoft/agent-framework)\n- [Dapr](https://github.com/dapr/dapr)\n- [Serilog](https://github.com/serilog/serilog)\n- [FluentValidation](https://github.com/FluentValidation/FluentValidation)\n- [Polly](https://github.com/App-vNext/Polly)\n\n## Contributing\n\n1. Fork the repository.\n2. Create a branch.\n3. Commit your changes.\n4. Open a pull request.\n\nFull contribution and release guidance is in [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Acknowledgements\n\nA small subset of Monica modules was informed by the [ABP Framework](https://github.com/abpframework/abp), which is licensed under LGPL-3.0. Any directly adapted code keeps its original notices and license terms. Monica is an independent project and is not affiliated with ABP.\n\n## License\n\nMIT License. See [LICENSE.txt](LICENSE.txt).\n\n## Contact\n\n- Issues: \u003chttps://github.com/Tairitsua/Monica/issues\u003e\n- Discussions: \u003chttps://github.com/Tairitsua/Monica/discussions\u003e\n- Docs: \u003chttps://monica.dpdns.org/\u003e\n- Security: [SECURITY.md](SECURITY.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftairitsua%2Fmonica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftairitsua%2Fmonica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftairitsua%2Fmonica/lists"}