How deskree-inc/blok works
Blok is a modular backend framework: developers define nodes and workflows, choose a trigger, and execute workflow logic through runtime services. The graph includes CLI project/workflow authoring, HTTP and gRPC trigger surfaces, shared workflow helpers, and TypeScript and Python execution components. README statements establish the product-level workflow; source-index references establish only the cited module relationships. Several runtime and CLI implementation files were not sampled, so their internal links are omitted rather than inferred.
Main entry points: Workflow.ts Workflow definition · HttpTrigger.ts HTTP trigger · server.py Python gRPC server · nanoservice.py Python node service
Components 26
Authoring tools
- Project creation
packages/cli/src/commands/create/project.ts - Workflow creation
packages/cli/src/commands/create/workflow.ts - Node creation
packages/cli/src/commands/create/node.ts - Deployment
packages/cli/src/commands/deploy/index.ts - Monitoring
packages/cli/src/commands/monitor/index.ts
Workflow model
- Workflow definition
core/workflow-helper/src/components/Workflow.ts - Step builder
core/workflow-helper/src/components/StepNode.ts - Step options
core/workflow-helper/src/types/StepOpts.ts - If condition
core/workflow-helper/src/components/AddIf.ts - Else condition
core/workflow-helper/src/components/AddElse.ts
Trigger ingress
- HTTP trigger
triggers/http/src/runner/HttpTrigger.ts - gRPC trigger
triggers/grpc/src/GRpcTrigger.ts - HTTP app routes
triggers/http/src/AppRoutes.ts
TypeScript runtime
- Node execution
core/runner/src/NanoService.ts - Runner node
core/runner/src/RunnerNode.ts - Workflow config
core/runner/src/types/Config.ts - Execution context
core/shared/src/types/Context.ts
Python runtime
- Python gRPC server
runtimes/python3/server.py - Message codec
runtimes/python3/util/message_manager.py - Python runner
runtimes/python3/runner.py - Python node base
runtimes/python3/core/node_base.py - Python node service
runtimes/python3/core/nanoservice.py - Python context
runtimes/python3/core/types/context.py - Python response
runtimes/python3/core/types/response.py
Other components
- Developer
- HTTP client
Connections 21
- Developer → Project creation: creates project
README.md - Developer → Workflow creation: creates workflow
README.md - Developer → Node creation: creates node
README.md - Workflow creation → Workflow definition: authors workflow
- Workflow definition → Step builder: contains steps
README.md - Step builder → If condition: uses condition
core/workflow-helper/src/components/StepNode.ts - Step builder → Else condition: uses condition
core/workflow-helper/src/components/StepNode.ts - Step options → If condition: types condition
core/workflow-helper/src/types/StepOpts.ts - Step options → Else condition: types condition
core/workflow-helper/src/types/StepOpts.ts - Workflow definition → HTTP trigger: starts with trigger
README.md - HTTP client → HTTP trigger: sends request
README.md - HTTP trigger → HTTP app routes: references routes
triggers/http/src/runner/HttpTrigger.ts - gRPC trigger → HTTP trigger: alternative ingress
- Workflow definition → Node execution: sequences node work
README.md - Workflow config → Runner node: names node type
core/runner/src/types/Config.ts - Python gRPC server → Message codec: decodes and encodes
runtimes/python3/server.py - Python gRPC server → Python runner: invokes runner
runtimes/python3/server.py - Python gRPC server → Python context: constructs context
runtimes/python3/server.py - Python node service → Python node base: extends base
runtimes/python3/core/nanoservice.py - Python node service → Python context: reads context
runtimes/python3/core/nanoservice.py - Python node service → Python response: returns response
runtimes/python3/core/nanoservice.py