How sndkr/n8n-workflows works
This repository combines a large n8n workflow collection with a searchable documentation application. The primary user journey is to browse or search indexed workflows, inspect details or diagrams, and download workflow JSON. The Python FastAPI/SQLite implementation is the README’s recommended path; the tree and sampled sources also show a Node.js implementation. Categorization and workflow import are supporting capabilities. Relationships reflect the excerpts and README; unsampled internals are not assumed.
Main entry points: api_server.py FastAPI endpoints · workflow_db.py Workflow index and queries · workflows Workflow collection · create_categories.py Category builder
Components 15
Browse and search
- Search interface
static/index.html - Workflow collection
workflows
Index and categorize
- Category definitions
context/def_categories.json - Category builder
create_categories.py - Search categories
context/search_categories.json - Workflow importer
import_workflows.py
Python application
- FastAPI endpoints
api_server.py - Workflow index and queries
workflow_db.py - SQLite FTS database
- Search launcher
run.py
Node.js application
- Express endpoints
src/server.js - Workflow index and queries
src/database.js - Workflow indexer
src/index-workflows.js
Other components
- Workflow browser
- n8n CLI
Connections 20
- Workflow browser → Search interface: browses
README.md - Search interface → FastAPI endpoints: searches
README.md - FastAPI endpoints → Search interface: serves page
api_server.py - FastAPI endpoints → Workflow index and queries: queries
api_server.py - FastAPI endpoints → Workflow collection: downloads
api_server.py - FastAPI endpoints → Workflow index and queries: requests diagram data
api_server.py - Search launcher → Workflow index and queries: sets up index
run.py - Search launcher → FastAPI endpoints: starts API
run.py - Workflow index and queries → Workflow collection: indexes files
README.md - Workflow index and queries → SQLite FTS database: reads and writes
workflow_db.py - Category builder → Workflow collection: scans files
create_categories.py - Category builder → Category definitions: loads mappings
README.md - Category builder → Search categories: generates
README.md - Workflow browser → Workflow importer: starts import
README.md - Workflow importer → Workflow collection: imports files
import_workflows.py - Workflow importer → n8n CLI: runs CLI
import_workflows.py - Workflow browser → Express endpoints: uses API
README.md - Express endpoints → Workflow index and queries: queries
src/server.js - Workflow indexer → Workflow index and queries: indexes workflows
src/index-workflows.js - Workflow index and queries → Workflow collection: indexes files
src/database.js