How sagnik-11j/nodebase works
Nodeabase is a workflow-building web application: users manage workflows, edit connected trigger/action nodes, and can view executions. The sampled workflow router supports listing, creating, loading, saving, renaming, and deleting workflows, persisting graph nodes and connections in PostgreSQL. The repository also includes manual-trigger and HTTP-request node interfaces and an Inngest integration, but the sampled runtime code does not establish how saved workflows become executed; that relationship is therefore not asserted. Several dashboard and account paths are known from the tree, while their implementations were not sampled.
Main entry points: auth.ts Authentication · init.ts tRPC procedures · workflows/page.tsx Workflow pages · [workflowId]/page.tsx Editor page
Components 30
Workflow interface
- Workflow pages
src/app/(dashboard)/(rest)/workflows/page.tsx - Workflow list
src/features/workflows/components/workflows.tsx - Entity components
src/components/entity-components.tsx - Editor page
src/app/(dashboard)/(editor)/workflows/[workflowId]/page.tsx - Workflow editor
src/features/editor/components/editor.tsx - Editor header
src/features/editor/components/editor-header.tsx - Node registry
src/config/node-components.ts - Manual trigger
src/features/triggers/components/manual-trigger/node.tsx - HTTP request node
src/features/executions/components/http-request/node.tsx
Workflow management
- Workflow queries
src/features/workflows/hooks/use-workflows.ts - Workflow procedures
src/features/workflows/server/routers.ts - Workflow prefetch
src/features/workflows/server/prefetch.ts - Page parameters
src/features/workflows/server/params-loader.ts
Application platform
- PostgreSQL database
src/db/index.ts - Data schema
src/db/schema.ts - tRPC endpoint
src/app/api/trpc/[trpc]/route.ts - Application router
src/trpc/routers/_app.ts - tRPC procedures
src/trpc/init.ts - Server tRPC
src/trpc/server.tsx - Browser tRPC
src/trpc/client.tsx - Query cache
src/trpc/query-client.ts
Identity and billing
- Auth endpoint
src/app/api/auth/[...all]/route.ts - Authentication
src/lib/auth.ts - Auth utilities
src/lib/auth-utils.ts - Polar billing
src/lib/polar.ts
Execution runtime
- Execution pages
src/app/(dashboard)/(rest)/executions/page.tsx - Execution detail
src/app/(dashboard)/(rest)/executions/[executionId]/page.tsx - Inngest endpoint
src/app/api/inngest/route.ts - Inngest functions
src/inngest/functions.ts - Inngest client
src/inngest/client.ts
Connections 37
- Workflow pages → Workflow prefetch: prefetches
src/app/(dashboard)/(rest)/workflows/page.tsx - Workflow pages → Workflow list: renders
src/app/(dashboard)/(rest)/workflows/page.tsx - Workflow pages → Page parameters: loads parameters
src/app/(dashboard)/(rest)/workflows/page.tsx - Workflow list → Workflow queries: queries workflows
src/features/workflows/components/workflows.tsx - Workflow list → Entity components: uses
src/features/workflows/components/workflows.tsx - Editor page → Workflow prefetch: prefetches
src/app/(dashboard)/(editor)/workflows/[workflowId]/page.tsx - Editor page → Workflow editor: renders
src/app/(dashboard)/(editor)/workflows/[workflowId]/page.tsx - Editor page → Editor header: renders
src/app/(dashboard)/(editor)/workflows/[workflowId]/page.tsx - Workflow editor → Node registry: uses node types
- Node registry → Manual trigger: registers
src/config/node-components.ts - Node registry → HTTP request node: registers
src/config/node-components.ts - Workflow queries → Browser tRPC: calls
src/features/workflows/hooks/use-workflows.ts - Workflow queries → Page parameters: uses parameters
src/features/workflows/hooks/use-workflows.ts - Workflow prefetch → Server tRPC: prefetches through
src/features/workflows/server/prefetch.ts - tRPC endpoint → tRPC procedures: routes through
src/app/api/trpc/[trpc]/route.ts - tRPC endpoint → Application router: dispatches to
src/app/api/trpc/[trpc]/route.ts - Browser tRPC → Query cache: creates cache
src/trpc/client.tsx - Browser tRPC → Application router: types client
src/trpc/client.tsx - Server tRPC → tRPC procedures: creates context
src/trpc/server.tsx - Server tRPC → Query cache: creates cache
src/trpc/server.tsx - Server tRPC → Application router: uses router
src/trpc/server.tsx - Application router → Workflow procedures: mounts procedures
src/trpc/routers/_app.ts - Workflow procedures → tRPC procedures: uses protected procedures
src/features/workflows/server/routers.ts - Workflow procedures → PostgreSQL database: reads and writes
src/features/workflows/server/routers.ts - Workflow procedures → Data schema: queries tables
src/features/workflows/server/routers.ts - Auth endpoint → Authentication: serves auth
src/app/api/auth/[...all]/route.ts - Authentication → PostgreSQL database: persists identity
src/lib/auth.ts - Authentication → Data schema: uses schema
src/lib/auth.ts - Authentication → Polar billing: configures billing
src/lib/auth.ts - tRPC procedures → Authentication: checks session
src/trpc/init.ts - tRPC procedures → Polar billing: checks subscription
src/trpc/init.ts - Editor page → Auth utilities: checks access
src/app/(dashboard)/(editor)/workflows/[workflowId]/page.tsx - Workflow pages → Auth utilities: checks access
src/app/(dashboard)/(rest)/workflows/page.tsx - Inngest endpoint → Inngest functions: serves functions
src/app/api/inngest/route.ts - Inngest functions → Inngest client: uses client
src/inngest/functions.ts - Execution pages → Inngest functions: execution relationship unclear
- Execution detail → Inngest functions: execution relationship unclear