Skip to content

About

Static analysis and intelligence engine for automation workflows — score, audit, and secure your n8n JSON exports.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlowIntel Typing animation

Audit a workflow

Fork of Aman-Gautam67/Flow-Intel GPL-3.0 341 rules 9 dimensions No execution

This is a fork. The engine was designed upstream by Aman Gautam; this deployment is the fork that stays current and runs a second instance.


What it is

You export a workflow from n8n as JSON and drop it in. FlowIntel parses the node graph, runs it against 341 rules, and returns an FQI — a Flow Quality Index from 0 to 100 — broken across nine dimensions: health, security, simplicity, reliability, debt, memory, resilience, privacy and AI guardrails.

Nothing is executed. There is no n8n instance attached, no credentials used, no node ever runs. It reads the JSON the way a linter reads source: the artifact is data, and everything FlowIntel knows comes from that data.

The consequence is that it is safe to point at a workflow handling live customer records — and equally that it cannot tell you whether the workflow works. It tells you whether it is built well.

Output is not a score and a shrug: per-rule flags with file-level line references, a remediation drawer for each finding, a workflow graph, a diff view against a previous version, and a PDF report.


What you get

  • FQI across nine dimensions — each dimension has published grading parameters, and each is shown with a popover explaining exactly what moved the number. No black box.
  • Rule-level findings — severity, category, the offending node, and a concrete remediation. Rules are grouped into packs so a finding can be framed as a class of problem rather than a one-off.
  • Workflow graph — the node graph rendered as a graph, so an orphaned or disconnected node is visible rather than inferred.
  • Quality gates — thresholds you can fail a pipeline on, not just a colour on a dashboard. That is what makes it usable in CI.
  • Diff and drift — re-analyse a later version and see which findings appeared, which were fixed, and which score dimensions moved, with a dedicated drift panel.
  • Badges and certificates — /api/badge/<slug>/<metric>.svg serves a live shield for a workflow's score or dimension, and a certificate route issues a verifiable record of a pass.
  • CI endpoint — POST /api/v1/audit takes a workflow and returns the report, so a repository can gate on FQI the same way it gates on tests.
  • MCP server — /api/mcp exposes the analyser as tools, so an agent can audit a workflow without a browser.
  • Bulk workspace — drop many exported workflows at once, compare, and export the results together instead of one file at a time.
  • Bilingual — en-US and zh-CN through one i18n provider with a language switcher.

Stack

  • Next.js 16 + React 19 + Bun — App Router, server routes for parsing and analysis, client components for the dashboard.
  • Drizzle + Neon Postgres — workflows, versions, engagement counters and certificates.
  • A rule engine with a registry — rules register themselves; packs are manifests; the engine never needs editing to gain a rule.
  • Tailwind CSS + Radix — the dashboard, drawers, command palette.
  • Server-rendered SVG badges — a badge is a route, not an image asset.
Next.js, React, TypeScript, Bun, Postgres, Tailwind, Vercel, Git

Under the hood

A registry that fails fast — why rule IDs are permanent

Every rule is a map entry, and registering a duplicate throws at module load:

register(rule: RuleDefinition): void {
  if (this.rules.has(rule.id)) {
    throw new Error(
      `[RuleRegistry] Duplicate rule ID "${rule.id}". Rule IDs are permanent — ` +
      `rename the new rule or deregister the existing one first.`
    );
  }
  this.rules.set(rule.id, rule);
}

The strictness is the point. A finding's identity is its rule ID; if IDs could be reused, every historical report, diff and badge would silently change meaning. Failing at startup is cheap; a diff that lies is not.

Packs are registered the same way, and a duplicate pack ID throws too. Adding a category of checks is a new file plus one line in rule-packs/index.ts.

341 rules, ten packs, sixteen extensions

The packs cover security, reliability, idempotency, observability, maintainability, performance, compatibility, privacy, documentation and cost optimisation. Each ships a base pack plus zero or more -ext files — security, reliability, privacy, performance and maintainability carry two extensions each.

So the extension files are not residue, they are the growth path: the base pack stays readable as the canonical set for a category, and new rules land beside it in an extension pack without turning one file into an unreadable list. Counted from the pack sources, that is 341 unique rule IDs.

Nine dimensions, and why they are not the rule packs

The rule packs are how checks are organised for authors. The nine dimensions are how scores are organised for readers. They are different axes on purpose:

  • Dimensions — health, security, simplicity, reliability, debt, memory, resilience, privacy, ai_guard. These are what the ring grid shows and what the FQI aggregates.
  • Packs — where a rule lives. One pack can feed several dimensions; one dimension draws from several packs.

Each dimension publishes its grading parameters — the actual node properties and conditions the engine inspects. "Security dropped 12 points" is only useful if you can read what "security" measures, so that text ships with the app rather than living in a wiki.

Two analysis paths, one output shape

The newer engine returns a v2 AnalysisReport; the original UI was built against a v1 ScoreBreakdown. Rather than rewrite the UI or fork the engine, an adapter bridges them:

ParsedWorkflow → analysis-runner → AnalysisReport → adapter-bridge → ScoreBreakdown
                                   (v2 attached as scores._v2Report)

The sync path is kept deliberately: an upload preview runs client-side and cannot await a SHA-256 fingerprint or a database write. So analyze() uses the sync fallback and returns immediately, while analyzeAsync() is used by server routes where the fingerprint is written to Postgres. Same rules, same scores — one of them just knows less about identity.

Static means static

No workflow is imported into n8n, no credential is decrypted, no node is invoked. Everything is computed from the exported JSON: node types, parameters, graph edges, and the presence or absence of configuration.

That constraint is why the security rules can be specific without being reckless — checking that a webhook node has authentication === 'none' is a static property, not a probe.


Project structure

Flow-Intel/
├── src/app/
│   ├── page.tsx  search/  upload/
│   ├── workflows/[slug]/        # dashboard + diff
│   └── api/
│       ├── parse  v2/analyze  v1/audit
│       ├── badge/[slug]/[metric]   # live SVG
│       ├── v2/certificate/[id]  v2/marketplace/*
│       ├── mcp                      # agent tools
│       └── workflows/[slug]/engage
├── src/lib/engine/
│   ├── registry.ts  rule-engine.ts  quality-gates.ts
│   ├── rule-packs/                  # 10 base + 16 extension packs
│   └── analysis-runner.ts  adapter-bridge.ts  passport.ts
├── src/lib/analyzer/                # v1 rules, one per dimension
└── src/config/dimensions.ts         # the nine dimensions, documented

Run it

git clone https://github.com/Jivaansh-Yadav/Flow-Intel.git
cd Flow-Intel
bun install
bun run dev            # next dev

A Neon DATABASE_URL is needed for persistence — workflow history, engagement and certificates. Analysis itself runs without it; you lose the archive, not the audit.

Built-by : Jivaansh and Aman .
License : GPL-3.0. This fork keeps the licence and the attribution; the deployment, the badge/certificate routes and the MCP surface are what it adds on top.

About

Static analysis and intelligence engine for automation workflows — score, audit, and secure your n8n JSON exports.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages