Direktiv is an event-driven serverless orchestration and automation platform. It enables users to define, execute, and monitor workflows using TypeScript or YAML, manage API gateways with a plugin chain (authentication, inbound transformation, target routing, outbound transformation), schedule tasks via cron, handle events (CloudEvents), and orchestrate services on Kubernetes/Knative. The system is designed for integration and automation scenarios, providing a low-code page builder, workflow editor, and comprehensive management UI. The architecture consists of a Go backend (API server, workflow engine, gateway, scheduler, sidecar, telemetry) and a React/TypeScript frontend. Key entry points include the CLI (`cmd/main.go`), REST API (`internal/api/`), workflow runtime (`internal/engine/runtime/`), gateway router (`internal/gateway/`), and cron scheduler (`internal/sched/`). Data flows involve compiling workflows from TypeScript to an internal representation, executing them via a state machine, persisting state in PostgreSQL, and using NATS for cluster-wide messaging and event streaming. External dependencies include PostgreSQL, NATS, Kubernetes/Knative, OpenTelemetry, and various Go and Node.js libraries. The frontend is a modern React SPA using TanStack Router, Radix UI, react-hook-form, Zod, and i18next. It provides editors for workflows, endpoints (OpenAPI), services, pages (block editor), and gateway routes, along with dashboards for instances, events, logs, and monitoring. The UI includes a reusable design system with components like Button, Dialog, Table, and Pagination, all demonstrated in Storybook. The backend uses a custom Go-like language (likely a DSL) for its core modules, which may pose maintenance challenges but enables tight integration with the platform's specific needs.