Forget redundant controllers and DTO ceremony. Derive Web UI, REST API, Cryptographic Licensing, and 5 Standalone Server Batteries with declarative C# records.
1 2 3 4 5 6 7 8 9 10 11 12 13
[UiAction(Group = "Finance", DisplayName = "Approve Payment", Icon = "credit-card")] [RequireDualApprovalIf("Amount > 50000")] [FieldSecurity("InternalBudgetNotes", Role = "CFO")] public sealed record ApprovePayment( string InvoiceId, decimal Amount, string InternalBudgetNotes ) : IMechanismAction<ApproveResult>; // Generated at compile-time by Roslyn with zero reflection: // 1. /api/finance/approve-payment REST Endpoint and OpenAPI Schema // 2. Dynamic React Form Modal and Field Masking // 3. HMAC-SHA256 Merkle Audit Trail and Dual-Control Approval Pool
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
POST /api/finance/approve-payment HTTP/1.1 Host: api.codechu.com Authorization: Bearer eyJhbGciOiJSUzI1NiIs... Content-Type: application/json { "invoiceId": "INV-2026-9481", "amount": 75000.00, "internalBudgetNotes": "Infrastructure expansion approved." } HTTP/1.1 202 Accepted { "actionStatus": "PendingDualApproval", "approvalTrackingId": "APPR-8821-X", "requiredSignatures": 2, "currentSignatures": 1, "auditMerkleHash": "7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069" }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import React from 'react'; import { useMechanismAction, ActionModal } from '@mechanismweaver/cockpit'; export const ApprovePaymentAction = () => { const { invoke, isDualApprovalRequired, isLoading } = useMechanismAction('ApprovePayment'); return ( <ActionModal title="Approve Payment" icon="credit-card" securityGroup="Finance" onExecute={(payload) => invoke(payload)} > {/* Schema-derived dynamic form, 4-Eyes dual approval lock */} </ActionModal> ); };
Watch and test: An interactive developer journey from terminal scaffolding to C# declaration, compilation, and a live React cockpit.
using MechanismWeaver;
namespace FinGuard.Modules;
// Tek 1 C# deklarasyonu ile REST, React Formu ve Onay Havuzu üretilir:
[UiAction(Group = "Finans", DisplayName = "Harcama Fişi Onayla")]
[RequiredDualApprovalIf("Amount > 50000")]
[FieldSecurity("InternalAuditNotes", Role = "CFO")]
public sealed record ApproveExpense(
string InvoiceId,
decimal Amount,
string InternalAuditNotes
) : IMechanismAction<ApproveResult>;
SQLite driver, Outbox job queue, React Cockpit, and OpenAPI 3.1 scaffolded in seconds.
{
"path": "/api/finance/approve-expense",
"method": "POST",
"makerChecker": true,
"threshold": "Amount > 50000",
"reactModal": {
"title": "Harcama Fişi Onayla",
"fields": ["InvoiceId", "Amount", "InternalAuditNotes"]
}
}
'Finance' module and dynamic React surfaces mounted immediately.
Fully turnkey without writing any frontend code; 57 MB RAM, modern React 18, and zero reflection!
Live search, pagination, dynamic column reordering, visual FilterBuilder, and 1-click Excel/CSV export.
Auto-derived form modals with [UiMask], [LookupDependsOn], [UiRequiredIf], and live server-side validation.
Automated maker-checker queue that pauses high-risk actions (> $50k) until authorized by CFO.
Who modified what, when, and from where; provable cryptographic HMAC-SHA256 Merkle audit trail.
Drag-and-drop banded report designer, 45° watermark engine, PDF/SVG, and thermal ESC/POS receipt engine.
Respectful Rate Limiting for external APIs, background spooler, and 1-click Dead-Letter recovery.
Lightweight, dependency-free standalone templates tailored for every workload.
Full React Cockpit UI, REST API, OpenAPI 3.1, Maker-Checker Approval Pool, and Merkle Audit Trail.
dotnet new weaver-web -n MyPortalUI-free, microsecond latency backend engine with high-throughput REST and RESP protocol support.
dotnet new weaver-service -n CoreApiHTTP Outbox Spooler, Respectful Rate Limiter, Dead-Letter Queue quarantine and automatic recovery.
dotnet new weaver-worker -n JobSpoolerIsolated business action library that can be mounted into any Weaver host in a single line of code.
dotnet new weaver-module -n BillingCompile-time Roslyn Source Generators producing zero-reflection REST and Cockpit surfaces.
Air-gapped enterprise licensing engine with SHA-256 HMAC Merkle tree verifier.
OIDC Auth, Redis RESP Cache, S3 Storage, Merkle Ledger, and Http Outbox Spooler.
Automated dual-approval governance mechanism for sensitive operational actions.
Built-in TR/EN/DE localization, automated SEO, and lightweight Markdown CMS blog engine.
Prometheus metrics, distributed traces, and real-time execution telemetry.
Why spend hundreds of hours writing redundant boilerplate or struggling with heavy monoliths?
| Feature / Metric | The Others (Traditional .NET / Monolith) | ⚡ Codechu MechanismWeaver |
|---|---|---|
| Files Per New Action | 50+ Files (Controller, DTO, Service, Validator, React Component) | Single 1-Line C# Declaration |
| Runtime Memory (RAM) | ~400 MB - 800 MB (The Others / Heavy Reflection) | ~57.2 MB (100% Native AOT) |
| Cold Start Latency | 5.0 - 12.0 Seconds (The Others / Heavy Monolith) | 42 Milliseconds (Instant Ready) |
| UI Technology | Legacy WebForms / Blazor Server | Modern React 18, WebGL, SignalR Cockpit |
| Cryptographic Audit Trail | Standard SQL Log Table | HMAC-SHA256 Merkle Audit & Dual-Control Gate |
| External Dependencies (NuGet) | Dozens of 3rd party packages & heavy DLLs | 0 External Dependencies (BCL-Only Core) |
| Licensing & Cost | Thousands of $/developer/yr or Forced SaaS | Perpetual Fallback (You Own It Forever, Autonomous) |
No subscription trap. 1 Year of updates included with perpetual fallback.
Transparent answers regarding architecture and perpetual licensing.