first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
+1
View File
@@ -0,0 +1 @@
See LICENSE.md in the root of this repository for more information.
+1
View File
@@ -0,0 +1 @@
# @n8n/n8n-extension-insights
@@ -0,0 +1,35 @@
import { defineConfig, globalIgnores } from 'eslint/config';
import { baseConfig } from '@n8n/eslint-config/base';
export default defineConfig(
baseConfig,
globalIgnores(['src/shims.d.ts']),
{
rules: {
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
// TODO: Remove these
'import-x/order': 'warn',
'import-x/no-default-export': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
},
},
{
files: ['src/backend/**/*.ts'],
languageOptions: {
parserOptions: {
project: ['./tsconfig.backend.json'],
},
},
},
{
files: ['src/frontend/**/*.ts'],
languageOptions: {
parserOptions: {
project: ['./tsconfig.frontend.json'],
},
},
},
);
@@ -0,0 +1,23 @@
{
"name": "@n8n/n8n-extension-insights",
"version": "1.0.0",
"author": "n8n",
"category": "Internal",
"minSDKVersion": "0.0.0",
"permissions": {
"frontend": [],
"backend": []
},
"events": ["workflow:started"],
"setup": {
"backend": "./dist/backend/index.js",
"frontend": "./dist/frontend/index.js"
},
"extends": {
"views": {
"workflows": {
"header": "InsightsDashboard"
}
}
}
}
+62
View File
@@ -0,0 +1,62 @@
{
"name": "@n8n/n8n-extension-insights",
"version": "0.11.0",
"type": "module",
"files": [
"dist",
"n8n.manifest.json",
"LICENSE",
"README.md"
],
"main": "./n8n.manifest.json",
"module": "./n8n.manifest.json",
"exports": {
".": {
"import": "./n8n.manifest.json",
"require": "./n8n.manifest.json"
},
"./backend": {
"types": "./dist/backend/index.d.mts",
"import": "./dist/backend/index.mjs",
"require": "./dist/backend/index.cjs"
},
"./frontend": {
"types": "./dist/frontend/index.d.mts",
"import": "./dist/frontend/index.mjs",
"require": "./dist/frontend/index.umd.cjs"
},
"./*": "./*"
},
"scripts": {
"cleanup": "rimraf dist",
"dev": "tsdown --watch",
"lint": "eslint src --quiet",
"lint:fix": "eslint src --fix",
"lint:styles": "stylelint \"src/**/*.{scss,sass,vue}\" --cache",
"lint:styles:fix": "stylelint \"src/**/*.{scss,sass,vue}\" --fix --cache",
"typecheck": "vue-tsc --noEmit",
"build:backend": "tsdown",
"build:frontend": "vite build",
"build": "pnpm cleanup && pnpm run \"/^build:.*/\"",
"preview": "vite preview"
},
"peerDependencies": {
"vue": "catalog:frontend",
"vue-router": "catalog:frontend"
},
"dependencies": {
"@n8n/extension-sdk": "workspace:*"
},
"devDependencies": {
"@n8n/stylelint-config": "workspace:*",
"@n8n/typescript-config": "workspace:*",
"@vitejs/plugin-vue": "catalog:frontend",
"@vue/tsconfig": "catalog:frontend",
"tsdown": "catalog:",
"rimraf": "catalog:",
"vite": "catalog:",
"vue": "catalog:frontend",
"vue-router": "catalog:frontend",
"vue-tsc": "catalog:frontend"
}
}
@@ -0,0 +1,7 @@
import { defineBackendExtension } from '@n8n/extension-sdk/backend';
export default defineBackendExtension({
setup(n8n) {
console.log(n8n);
},
});
@@ -0,0 +1,6 @@
<script lang="ts" setup></script>
<template>
<div>
<h1>INSIGHTS DASHBOARD</h1>
</div>
</template>
@@ -0,0 +1,9 @@
import { markRaw } from 'vue';
import { defineFrontendExtension } from '@n8n/extension-sdk/frontend';
import InsightsDashboard from './InsightsDashboard.vue';
export default defineFrontendExtension({
setup(n8n) {
n8n.registerComponent('InsightsDashboard', markRaw(InsightsDashboard));
},
});
+1
View File
@@ -0,0 +1 @@
/// <reference types="vite/client" />
@@ -0,0 +1,3 @@
import { baseConfig } from '@n8n/stylelint-config/base';
export default baseConfig;
@@ -0,0 +1,9 @@
{
"extends": "@n8n/typescript-config/tsconfig.common.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"moduleResolution": "bundler",
"module": "esnext"
},
"include": ["src/backend/**/*.ts", "src/index.ts"]
}
@@ -0,0 +1,7 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
},
"include": ["src/frontend/**/*.ts", "src/frontend/**/*.vue"]
}
@@ -0,0 +1,8 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.backend.json" },
{ "path": "./tsconfig.frontend.json" },
{ "path": "./tsconfig.vite.json" }
]
}
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"isolatedModules": true,
"moduleDetection": "force",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["vite.config.ts", "tsdown.config.ts"]
}
@@ -0,0 +1,16 @@
import { defineConfig } from 'tsdown';
export default defineConfig({
entry: [
'src/backend/**/*.ts',
'!src/backend/**/*.test.ts',
'!src/backend/**/*.d.ts',
'!src/backend/__tests__**/*',
],
outDir: 'dist/backend',
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
tsconfig: 'tsconfig.backend.json',
hash: false,
});
@@ -0,0 +1,42 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import dts from 'vite-plugin-dts';
import { configDefaults as vitestConfig } from 'vitest/config';
const cwd = process.cwd();
export default defineConfig({
plugins: [
vue(),
dts({
rollupTypes: true,
tsconfigPath: resolve(cwd, 'tsconfig.frontend.json'),
}),
],
build: {
emptyOutDir: false,
outDir: resolve(cwd, 'dist', 'frontend'),
lib: {
entry: resolve(cwd, 'src', 'frontend', 'index.ts'),
name: 'n8nFrontEndSdk',
fileName: 'index',
},
rollupOptions: {
external: ['vue'],
output: {
preserveModules: false,
globals: {
vue: 'Vue',
},
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['src/__tests__/setup.ts'],
include: ['src/**/*.spec.ts'],
exclude: vitestConfig.exclude,
},
});