How code-with-antonio/nodebase works
This is a workflow-automation web app: users configure trigger and action nodes in a visual editor, save workflows, and request executions that run asynchronously and expose execution history. The graph separates workflow management, the editor, execution orchestration, and account/API services. Relationships are limited to calls or registrations visible in excerpts or the source index; unsampled UI and provider implementations are represented without guessed wiring.
Main entry points: base-execution-node.tsx Trigger and action nodes · functions.ts Workflow runner · routers.ts Workflow procedures · utils.ts Execution dispatch and sorting
Components 34
Workflow management
- Workflow lists
src/features/workflows/components/workflows.tsx - Workflow procedures
src/features/workflows/server/routers.ts - Workflow data
src/lib/db.ts
Visual editor
- Workflow editor
src/features/editor/components/editor.tsx - Node selector
src/components/node-selector.tsx - Node component registry
src/config/node-components.ts - Trigger and action nodes
src/features/executions/components/base-execution-node.tsx - Initial and workflow nodes
src/components/initial-node.tsx - Dropdown menu primitive
src/components/ui/dropdown-menu.tsx - Anthropic node dialog
src/features/executions/components/anthropic/dialog.tsx - Gemini node dialog
src/features/executions/components/gemini/dialog.tsx
Execution runtime
- Execution procedures
src/features/executions/server/routers.ts - Execution history
src/features/executions/components/executions.tsx - Executor registry
src/features/executions/lib/executor-registry.ts - Workflow runner
src/inngest/functions.ts - Inngest client
src/inngest/client.ts - Inngest endpoint
src/app/api/inngest/route.ts - Execution dispatch and sorting
src/inngest/utils.ts - Provider channels
src/inngest/channels - Google Forms webhook
src/app/api/webhooks/google-form/route.ts - Stripe webhook
src/app/api/webhooks/stripe/route.ts - Node status display
src/features/executions/hooks/use-node-status.ts - Anthropic channel
src/inngest/channels/anthropic.ts - Discord channel
src/inngest/channels/discord.ts - Gemini channel
src/inngest/channels/gemini.ts
Accounts and API
- Authentication
src/lib/auth.ts - Database adapter
src/lib/db.ts - Subscription provider
src/lib/polar.ts - tRPC endpoint
src/app/api/trpc/[trpc]/route.ts - Application router
src/trpc/routers/_app.ts - tRPC procedures
src/trpc/init.ts - Query cache
src/trpc/query-client.ts - Auth endpoint
src/app/api/auth/[...all]/route.ts
Other components
- Workflow user
Connections 38
- Workflow user → Workflow lists: manages workflows
- Workflow procedures → Workflow data: reads and writes
src/features/workflows/server/routers.ts - Workflow procedures → Execution dispatch and sorting: dispatches execution
src/features/workflows/server/routers.ts - Execution dispatch and sorting → Inngest client: sends event
src/inngest/utils.ts - Workflow runner → Inngest client: registers function
src/inngest/functions.ts - Inngest endpoint → Inngest client: serves functions
src/app/api/inngest/route.ts - Inngest endpoint → Workflow runner: serves function
src/app/api/inngest/route.ts - Workflow runner → Workflow data: loads and updates
src/inngest/functions.ts - Workflow runner → Execution dispatch and sorting: sorts nodes
src/inngest/functions.ts - Workflow runner → Executor registry: selects executor
src/inngest/functions.ts - Workflow runner → Provider channels: registers channels
src/inngest/functions.ts - Node component registry → Initial and workflow nodes: registers node
src/config/node-components.ts - Node component registry → Trigger and action nodes: registers nodes
src/config/node-components.ts - Trigger and action nodes → Anthropic node dialog: opens dialog
src/features/executions/components/anthropic/node.tsx - Trigger and action nodes → Gemini node dialog: opens dialog
src/features/executions/components/gemini/node.tsx - Trigger and action nodes → Node status display: reads status
src/features/executions/components/anthropic/node.tsx - Trigger and action nodes → Anthropic channel: references channel
src/features/executions/components/anthropic/node.tsx - Trigger and action nodes → Discord channel: references channel
src/features/executions/components/discord/node.tsx - Trigger and action nodes → Gemini channel: references channel
src/features/executions/components/gemini/node.tsx - tRPC endpoint → tRPC procedures: uses procedures
src/app/api/trpc/[trpc]/route.ts - tRPC endpoint → Application router: routes requests
src/app/api/trpc/[trpc]/route.ts - Application router → tRPC procedures: creates router
src/trpc/routers/_app.ts - Application router → Workflow procedures: registers workflows
src/trpc/routers/_app.ts - Application router → Execution procedures: registers executions
src/trpc/routers/_app.ts - tRPC procedures → Authentication: checks session
src/trpc/init.ts - tRPC procedures → Subscription provider: checks subscription
src/trpc/init.ts - Authentication → Database adapter: uses adapter
src/lib/auth.ts - Authentication → Subscription provider: configures plugin
src/lib/auth.ts - Auth endpoint → Authentication: routes auth
src/app/api/auth/[...all]/route.ts - Google Forms webhook → Execution dispatch and sorting: uses dispatch utility
src/app/api/webhooks/google-form/route.ts - Stripe webhook → Execution dispatch and sorting: uses dispatch utility
src/app/api/webhooks/stripe/route.ts - Workflow user → Workflow editor: edits workflow
- Workflow editor → Workflow procedures: saves workflow
- Workflow user → Execution history: reviews runs
- Execution procedures → Workflow data: queries executions
src/features/executions/server/routers.ts - Workflow lists → Workflow procedures: loads workflows
- Workflow editor → Node component registry: renders registered nodes
- Node selector → Dropdown menu primitive: uses menu