From 73e3e6e7c199e15887651549f9d7773e7dbc2e08 Mon Sep 17 00:00:00 2001 From: projectcontinuum Date: Tue, 27 Oct 2026 13:14:18 +0530 Subject: [PATCH 1/2] CONTNM-129: Add new landing page for docs --- README.md | 21 + docusaurus.config.ts | 20 + src/pages/index.module.css | 1030 ++++++++++++++++- src/pages/index.tsx | 557 ++++++++- .../architecture/_category_.json | 8 + .../architecture/data-format.md | 14 + .../version-0.0.20/architecture/node-model.md | 66 ++ .../version-0.0.20/architecture/overview.md | 65 ++ .../contributing/_category_.json | 8 + .../create-new-nodes/_category_.json | 8 + .../contributing/create-new-nodes/overview.md | 58 + .../create-new-nodes/step-1-root-project.md | 48 + .../create-new-nodes/step-2-feature-module.md | 61 + .../create-new-nodes/step-3-write-the-node.md | 174 +++ .../step-4-node-documentation.md | 15 + .../create-new-nodes/step-5-unit-tests.md | 48 + .../create-new-nodes/step-6-worker-module.md | 95 ++ .../create-new-nodes/step-7-build-and-test.md | 21 + .../create-new-nodes/step-8-run-locally.md | 22 + .../create-new-nodes/step-9-ship-it.md | 11 + .../create-new-nodes/troubleshooting.md | 18 + .../contributing/feature-template.md | 18 + .../version-0.0.20/deployment/_category_.json | 8 + .../version-0.0.20/deployment/helm-charts.md | 39 + .../version-0.0.20/ecosystem/_category_.json | 8 + .../version-0.0.20/ecosystem/repositories.md | 26 + .../feature-nodes/_category_.json | 8 + .../version-0.0.20/feature-nodes/ai-ml.md | 49 + .../feature-nodes/base-analytics.md | 28 + .../feature-nodes/cheminformatics.md | 56 + .../version-0.0.20/feature-nodes/knime.md | 9 + .../getting-started/_category_.json | 8 + .../getting-started/local-setup.md | 100 ++ versioned_docs/version-0.0.20/intro.mdx | 29 + .../version-0.0.20-sidebars.json | 8 + versions.json | 3 + 36 files changed, 2745 insertions(+), 20 deletions(-) create mode 100644 versioned_docs/version-0.0.20/architecture/_category_.json create mode 100644 versioned_docs/version-0.0.20/architecture/data-format.md create mode 100644 versioned_docs/version-0.0.20/architecture/node-model.md create mode 100644 versioned_docs/version-0.0.20/architecture/overview.md create mode 100644 versioned_docs/version-0.0.20/contributing/_category_.json create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md create mode 100644 versioned_docs/version-0.0.20/contributing/create-new-nodes/troubleshooting.md create mode 100644 versioned_docs/version-0.0.20/contributing/feature-template.md create mode 100644 versioned_docs/version-0.0.20/deployment/_category_.json create mode 100644 versioned_docs/version-0.0.20/deployment/helm-charts.md create mode 100644 versioned_docs/version-0.0.20/ecosystem/_category_.json create mode 100644 versioned_docs/version-0.0.20/ecosystem/repositories.md create mode 100644 versioned_docs/version-0.0.20/feature-nodes/_category_.json create mode 100644 versioned_docs/version-0.0.20/feature-nodes/ai-ml.md create mode 100644 versioned_docs/version-0.0.20/feature-nodes/base-analytics.md create mode 100644 versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md create mode 100644 versioned_docs/version-0.0.20/feature-nodes/knime.md create mode 100644 versioned_docs/version-0.0.20/getting-started/_category_.json create mode 100644 versioned_docs/version-0.0.20/getting-started/local-setup.md create mode 100644 versioned_docs/version-0.0.20/intro.mdx create mode 100644 versioned_sidebars/version-0.0.20-sidebars.json create mode 100644 versions.json diff --git a/README.md b/README.md index 75cae2f..3d9316a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,27 @@ npm run build Generates static content into `build/`. +## Versioning + +The docs are versioned by **Continuum platform version** and readers pick one from the version dropdown in the navbar. + +| Folder | Served at | What it is | +|--------|-----------|------------| +| `docs/` | `/docs/next/` | Next (unreleased): edit here for upcoming platform changes | +| `versioned_docs/version-/` | `/docs/` (newest) or `/docs//` | Frozen snapshot for a released platform version | + +`versions.json` lists the released versions, newest first. The first entry is the default version served at `/docs/`. + +**When a new platform version is released**, update `docs/` for it, then snapshot it: + +```bash +npm run docusaurus docs:version 0.0.21 +``` + +This copies `docs/` to `versioned_docs/version-0.0.21/`, copies the sidebar to `versioned_sidebars/`, and adds the version to `versions.json`. + +**To fix a mistake in a released version**, edit its file under `versioned_docs/` as well as in `docs/` if the fix applies to the next version too. + ## Deployment Pushing to `main` triggers [`.github/workflows/deploy.yml`](.github/workflows/deploy.yml), which builds the site and publishes it to GitHub Pages. diff --git a/docusaurus.config.ts b/docusaurus.config.ts index d958205..e0b7d92 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -40,6 +40,15 @@ const config: Config = { docs: { sidebarPath: './sidebars.ts', editUrl: 'https://github.com/projectcontinuum-org/continuum-docs/tree/main/', + // Docs are versioned by Continuum platform version (see versions.json). + // The newest entry in versions.json is served at /docs/; docs/ (unreleased) at /docs/next/. + versions: { + current: { + label: 'Next (unreleased)', + path: 'next', + banner: 'unreleased', + }, + }, }, blog: false, theme: { @@ -67,6 +76,17 @@ const config: Config = { position: 'left', label: 'Docs', }, + { + type: 'docsVersionDropdown', + position: 'right', + dropdownItemsAfter: [ + {type: 'html', value: ''}, + { + href: 'https://github.com/projectcontinuum-org/continuum-platform-core/releases', + label: 'Platform releases', + }, + ], + }, { href: 'https://projectcontinuum.org', label: 'Website', diff --git a/src/pages/index.module.css b/src/pages/index.module.css index 9f71a5d..1b6175e 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -1,23 +1,1035 @@ /** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. + * Landing page styles. Scoped as a CSS module. + * Each card sets --accent / --accent2 inline; the shared rules below turn + * those into its gradient icon, border glow and hover state. */ -.heroBanner { - padding: 4rem 0; - text-align: center; +.main { + --card-bg: #ffffff; + --card-border: rgba(112, 86, 151, 0.14); + --card-shadow: 0 1px 2px rgba(17, 12, 46, 0.04), 0 8px 24px rgba(17, 12, 46, 0.06); + --muted: #5b6078; + --section-alt: linear-gradient(180deg, #f7f5ff 0%, #f1f6ff 100%); +} + +[data-theme='dark'] .main { + --card-bg: #1f2235; + --card-border: rgba(196, 168, 255, 0.12); + --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25); + --muted: #a7a9c2; + --section-alt: linear-gradient(180deg, #191b2b 0%, #1a1d30 100%); +} + +/* ---------------------------------------------------------------- */ +/* Hero */ +/* ---------------------------------------------------------------- */ + +.hero { position: relative; overflow: hidden; + padding: 5.5rem 0 6rem; + color: #fff; + background: radial-gradient(ellipse at top left, #2a1b5c 0%, #120f2b 45%, #0b0c1d 100%); } -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; +.gridOverlay { + position: absolute; + inset: 0; + background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), + linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); + background-size: 44px 44px; + mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); + pointer-events: none; +} + +.blob { + position: absolute; + border-radius: 50%; + filter: blur(80px); + opacity: 0.55; + pointer-events: none; + animation: float 18s ease-in-out infinite alternate; +} + +.blob1 { + width: 520px; + height: 520px; + top: -180px; + left: -120px; + background: #7c3aed; +} + +.blob2 { + width: 440px; + height: 440px; + top: 20%; + right: -140px; + background: #db2777; + animation-delay: -6s; +} + +.blob3 { + width: 380px; + height: 380px; + bottom: -200px; + left: 35%; + background: #0891b2; + animation-delay: -12s; +} + +@keyframes float { + 0% { + transform: translate(0, 0) scale(1); + } + 50% { + transform: translate(40px, -30px) scale(1.08); + } + 100% { + transform: translate(-30px, 20px) scale(0.95); } } -.buttons { +.heroInner { + position: relative; + z-index: 1; + display: grid; + grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); + gap: 3.5rem; + align-items: center; +} + +.heroText { + min-width: 0; +} + +.pill { + display: inline-flex; + align-items: center; + gap: 0.6rem; + padding: 0.3rem 0.9rem 0.3rem 0.3rem; + margin-bottom: 1.6rem; + border-radius: 999px; + border: 1px solid rgba(255, 255, 255, 0.16); + background: rgba(255, 255, 255, 0.06); + backdrop-filter: blur(8px); + color: #e9e3ff; + font-size: 0.85rem; + transition: border-color 0.2s, background 0.2s; +} + +.pill:hover { + color: #fff; + text-decoration: none; + border-color: rgba(255, 255, 255, 0.35); + background: rgba(255, 255, 255, 0.1); +} + +.pillTag { + padding: 0.15rem 0.6rem; + border-radius: 999px; + background: linear-gradient(135deg, #8b5cf6, #ec4899); + color: #fff; + font-weight: 600; + font-size: 0.75rem; +} + +.brandRow { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 1rem; +} + +.heroLogo { + width: 52px; + height: 52px; + padding: 6px; + border-radius: 14px; + background: rgba(255, 255, 255, 0.92); + box-shadow: 0 0 40px rgba(167, 139, 250, 0.45); +} + +.brandName { + font-weight: 600; + letter-spacing: 0.02em; + color: #d8ccff; +} + +.heroTitle { + font-size: clamp(2.4rem, 5vw, 3.9rem); + line-height: 1.07; + font-weight: 800; + letter-spacing: -0.025em; + margin-bottom: 1.25rem; + color: #fff; +} + +.gradientText { + background: linear-gradient(100deg, #c4b5fd 0%, #f472b6 45%, #fbbf24 100%); + -webkit-background-clip: text; + background-clip: text; + -webkit-text-fill-color: transparent; +} + +.gradientTextAlt { + background: linear-gradient(100deg, #7c3aed 0%, #db2777 55%, #ea580c 100%); + -webkit-background-clip: text; + background-clip: text; + -webkit-text-fill-color: transparent; +} + +[data-theme='dark'] .gradientTextAlt { + background-image: linear-gradient(100deg, #c4b5fd 0%, #f472b6 55%, #fbbf24 100%); +} + +.heroSubtitle { + font-size: 1.2rem; + line-height: 1.6; + color: #c9c6e3; + max-width: 36rem; + margin-bottom: 2rem; +} + +.heroButtons { + display: flex; + flex-wrap: wrap; + gap: 0.8rem; +} + +/* ---------------------------------------------------------------- */ +/* Buttons */ +/* ---------------------------------------------------------------- */ + +.btn { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0.75rem 1.4rem; + border-radius: 12px; + font-weight: 600; + font-size: 1rem; + border: 1px solid transparent; + transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s; +} + +.btn:hover { + text-decoration: none; + transform: translateY(-2px); +} + +.btnPrimary { + color: #fff; + background: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%); + box-shadow: 0 10px 30px rgba(192, 38, 211, 0.4); +} + +.btnPrimary:hover { + color: #fff; + box-shadow: 0 14px 40px rgba(192, 38, 211, 0.55); +} + +.btnGhost { + color: #fff; + border-color: rgba(255, 255, 255, 0.22); + background: rgba(255, 255, 255, 0.06); + backdrop-filter: blur(6px); +} + +.btnGhost:hover { + color: #fff; + border-color: rgba(255, 255, 255, 0.45); + background: rgba(255, 255, 255, 0.12); +} + +.btnLight { + color: #4c1d95; + background: #fff; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); +} + +.btnLight:hover { + color: #4c1d95; +} + +.btnOutline { + color: var(--ifm-color-primary); + border-color: var(--ifm-color-primary); + background: transparent; +} + +.btnOutline:hover { + color: #fff; + background: var(--ifm-color-primary); +} + +[data-theme='dark'] .btnOutline:hover { + color: #1a1530; +} + +/* ---------------------------------------------------------------- */ +/* Workflow preview */ +/* ---------------------------------------------------------------- */ + +.preview { + position: relative; + border-radius: 18px; + border: 1px solid rgba(255, 255, 255, 0.14); + background: rgba(20, 18, 45, 0.6); + backdrop-filter: blur(14px); + box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.08) inset; + overflow: hidden; +} + +.previewBar, +.terminalBar { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 0.7rem 1rem; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); + background: rgba(255, 255, 255, 0.03); +} + +.dots { + display: inline-flex; + gap: 6px; +} + +.dots i { + width: 11px; + height: 11px; + border-radius: 50%; + background: #ff5f57; +} + +.dots i:nth-child(2) { + background: #febc2e; +} + +.dots i:nth-child(3) { + background: #28c840; +} + +.previewTitle, +.terminalTitle { + flex: 1; + font-size: 0.8rem; + color: #a8a3c9; + font-family: var(--ifm-font-family-monospace); +} + +.liveBadge { + display: inline-flex; + align-items: center; + gap: 0.4rem; + padding: 0.15rem 0.6rem; + border-radius: 999px; + font-size: 0.72rem; + font-weight: 600; + color: #6ee7b7; + background: rgba(16, 185, 129, 0.14); + border: 1px solid rgba(16, 185, 129, 0.3); +} + +.liveDot { + width: 7px; + height: 7px; + border-radius: 50%; + background: #34d399; + animation: pulse 1.4s ease-in-out infinite; +} + +@keyframes pulse { + 0%, + 100% { + box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); + } + 50% { + box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); + } +} + +.flow { + display: block; + width: 100%; + height: auto; + padding: 1rem 0.75rem 1.25rem; +} + +.edgeBase { + fill: none; + stroke: rgba(255, 255, 255, 0.12); + stroke-width: 2; +} + +.edgeFlow { + fill: none; + stroke-width: 2.5; + stroke-dasharray: 6 10; + stroke-linecap: round; + animation: dash 1.2s linear infinite; +} + +@keyframes dash { + to { + stroke-dashoffset: -32; + } +} + +.nodeBox { + fill: rgba(30, 27, 62, 0.95); + stroke-width: 1.5; +} + +.nodeTitle { + fill: #fff; + font-size: 13px; + font-weight: 600; +} + +.nodeSub { + fill: #9d98c2; + font-size: 11px; +} + +.nodeTrack { + fill: rgba(255, 255, 255, 0.08); +} + +/* Nodes "run" in DAG order: stage 1, then the parallel stage 2, then stage 3. */ +.nodeProgress { + transform-box: fill-box; + transform-origin: left center; + transform: scaleX(0); + animation: progress 6s ease-in-out infinite; +} + +.nodeStatus { + fill: #6b7280; + animation: status 6s ease-in-out infinite; +} + +.stage2 .nodeProgress { + animation-name: progress2; +} + +.stage2 .nodeStatus { + animation-name: status2; +} + +.stage3 .nodeProgress { + animation-name: progress3; +} + +.stage3 .nodeStatus { + animation-name: status3; +} + +@keyframes progress { + 0% { transform: scaleX(0); } + 25%, 90% { transform: scaleX(1); } + 100% { transform: scaleX(0); } +} + +@keyframes progress2 { + 0%, 25% { transform: scaleX(0); } + 55%, 90% { transform: scaleX(1); } + 100% { transform: scaleX(0); } +} + +@keyframes progress3 { + 0%, 55% { transform: scaleX(0); } + 82%, 90% { transform: scaleX(1); } + 100% { transform: scaleX(0); } +} + +@keyframes status { + 0%, 2% { fill: #6b7280; } + 3%, 24% { fill: #fbbf24; } + 25%, 92% { fill: #34d399; } + 100% { fill: #6b7280; } +} + +@keyframes status2 { + 0%, 25% { fill: #6b7280; } + 26%, 54% { fill: #fbbf24; } + 55%, 92% { fill: #34d399; } + 100% { fill: #6b7280; } +} + +@keyframes status3 { + 0%, 55% { fill: #6b7280; } + 56%, 81% { fill: #fbbf24; } + 82%, 92% { fill: #34d399; } + 100% { fill: #6b7280; } +} + +/* ---------------------------------------------------------------- */ +/* Stats */ +/* ---------------------------------------------------------------- */ + +.stats { + position: relative; + z-index: 2; + display: grid; + grid-template-columns: repeat(4, 1fr); + margin-top: -2.75rem; + border-radius: 18px; + background: var(--card-bg); + border: 1px solid var(--card-border); + box-shadow: var(--card-shadow); +} + +.stat { + display: flex; + flex-direction: column; + align-items: center; + padding: 1.5rem 1rem; + text-align: center; +} + +.stat + .stat { + border-left: 1px solid var(--card-border); +} + +.statValue { + font-size: 2.1rem; + font-weight: 800; + line-height: 1.1; + background: linear-gradient(135deg, #7c3aed, #db2777, #f59e0b); + -webkit-background-clip: text; + background-clip: text; + -webkit-text-fill-color: transparent; +} + +.statLabel { + margin-top: 0.35rem; + font-size: 0.9rem; + color: var(--muted); +} + +/* ---------------------------------------------------------------- */ +/* Sections */ +/* ---------------------------------------------------------------- */ + +.section { + padding: 5.5rem 0; +} + +.sectionAlt { + background: var(--section-alt); +} + +.sectionHeader { + max-width: 44rem; + margin: 0 auto 3rem; + text-align: center; +} + +.eyebrow { + display: inline-block; + margin-bottom: 0.75rem; + padding: 0.25rem 0.8rem; + border-radius: 999px; + font-size: 0.78rem; + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + color: #7c3aed; + background: rgba(124, 58, 237, 0.1); +} + +[data-theme='dark'] .eyebrow { + color: #c4b5fd; + background: rgba(196, 181, 253, 0.12); +} + +.sectionTitle { + font-size: clamp(1.8rem, 3.2vw, 2.5rem); + font-weight: 800; + letter-spacing: -0.02em; + line-height: 1.15; + margin-bottom: 0.9rem; +} + +.sectionText { + font-size: 1.08rem; + line-height: 1.65; + color: var(--muted); +} + +.centered { + margin-top: 2.5rem; + text-align: center; +} + +/* ---------------------------------------------------------------- */ +/* Cards */ +/* ---------------------------------------------------------------- */ + +.featureGrid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 1.4rem; +} + +.featureCard, +.workerCard, +.step { + position: relative; display: flex; + flex-direction: column; + padding: 1.75rem; + border-radius: 18px; + background: var(--card-bg); + border: 1px solid var(--card-border); + box-shadow: var(--card-shadow); + color: inherit; + overflow: hidden; + transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s; +} + +.featureCard::before, +.workerCard::before, +.step::before { + content: ''; + position: absolute; + inset: 0 0 auto 0; + height: 3px; + background: linear-gradient(90deg, var(--accent), var(--accent2)); +} + +.featureCard:hover, +.workerCard:hover { + color: inherit; + text-decoration: none; + transform: translateY(-5px); + border-color: color-mix(in srgb, var(--accent) 45%, transparent); + box-shadow: 0 18px 45px color-mix(in srgb, var(--accent) 22%, transparent); +} + +.iconBadge { + display: inline-flex; + align-items: center; + justify-content: center; + width: 48px; + height: 48px; + margin-bottom: 1.1rem; + border-radius: 14px; + color: #fff; + background: linear-gradient(135deg, var(--accent), var(--accent2)); + box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); +} + +.icon { + width: 24px; + height: 24px; +} + +.cardTitle { + font-size: 1.2rem; + font-weight: 700; + margin-bottom: 0.5rem; +} + +.cardText { + flex: 1; + margin-bottom: 0; + font-size: 0.97rem; + line-height: 1.6; + color: var(--muted); +} + +.cardLink { + margin-top: 1.1rem; + font-weight: 600; + font-size: 0.92rem; + color: var(--accent, var(--ifm-color-primary)); +} + +/* ---------------------------------------------------------------- */ +/* How it works */ +/* ---------------------------------------------------------------- */ + +.steps { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 1.4rem; + margin: 0; + padding: 0; + list-style: none; +} + +.stepNumber { + display: inline-flex; align-items: center; justify-content: center; + width: 42px; + height: 42px; + margin-bottom: 1rem; + border-radius: 50%; + font-weight: 800; + font-size: 1.1rem; + color: #fff; + background: linear-gradient(135deg, var(--accent), var(--accent2)); + box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); +} + +/* ---------------------------------------------------------------- */ +/* Quick start */ +/* ---------------------------------------------------------------- */ + +.quickStart { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); + gap: 3.5rem; + align-items: center; +} + +.quickStart .sectionText { + margin-bottom: 1.25rem; +} + +.checks { + margin: 0 0 1.75rem; + padding: 0; + list-style: none; +} + +.checks li { + position: relative; + padding-left: 1.9rem; + margin-bottom: 0.6rem; +} + +.checks li::before { + content: '✓'; + position: absolute; + left: 0; + top: 0.05rem; + display: inline-flex; + align-items: center; + justify-content: center; + width: 1.3rem; + height: 1.3rem; + border-radius: 50%; + font-size: 0.75rem; + font-weight: 800; + color: #fff; + background: linear-gradient(135deg, #10b981, #06b6d4); +} + +.terminal { + border-radius: 16px; + overflow: hidden; + background: #0f1022; + border: 1px solid rgba(167, 139, 250, 0.25); + box-shadow: 0 25px 60px rgba(76, 29, 149, 0.3); +} + +.copyButton { + padding: 0.2rem 0.7rem; + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.15); + background: rgba(255, 255, 255, 0.06); + color: #d4d0f0; + font-size: 0.75rem; + cursor: pointer; + transition: background 0.2s; +} + +.copyButton:hover { + background: rgba(255, 255, 255, 0.14); +} + +.terminalBody { + margin: 0; + padding: 1.4rem 1.5rem; + border-radius: 0; + background: transparent; + color: #e5e7eb; + font-size: 0.88rem; + line-height: 1.9; + white-space: pre-wrap; + word-break: break-all; +} + +.prompt { + color: #f472b6; + user-select: none; +} + +.terminalOk { + margin-top: 0.4rem; + color: #34d399; +} + +/* ---------------------------------------------------------------- */ +/* Node libraries */ +/* ---------------------------------------------------------------- */ + +.workerGrid { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 1.4rem; +} + +.workerHead { + display: flex; + align-items: flex-start; + justify-content: space-between; +} + +.workerBadge { + padding: 0.2rem 0.7rem; + border-radius: 999px; + font-size: 0.75rem; + font-weight: 700; + color: var(--accent); + background: color-mix(in srgb, var(--accent) 12%, transparent); + border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); +} + +.tags { + display: flex; + flex-wrap: wrap; + gap: 0.4rem; + margin-top: 1.1rem; +} + +.tag { + padding: 0.15rem 0.55rem; + border-radius: 6px; + font-size: 0.75rem; + font-family: var(--ifm-font-family-monospace); + color: var(--muted); + background: color-mix(in srgb, var(--accent) 8%, transparent); +} + +/* Full-width banner under the four worker cards. */ +.workerCardOwn { + --accent: #7c3aed; + --accent2: #db2777; + grid-column: 1 / -1; + display: grid; + grid-template-columns: auto 1fr auto; + grid-template-areas: + 'plus title link' + 'plus text link'; + column-gap: 1.4rem; + align-items: center; + border-style: dashed; + border-width: 2px; + border-color: color-mix(in srgb, #7c3aed 35%, transparent); + background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(219, 39, 119, 0.06)), var(--card-bg); +} + +.workerCardOwn::before { + display: none; +} + +.workerCardOwn .cardTitle { + grid-area: title; + margin-bottom: 0.25rem; +} + +.workerCardOwn .cardText { + grid-area: text; +} + +.workerCardOwn .cardLink { + grid-area: link; + margin-top: 0; + white-space: nowrap; +} + +.plus { + grid-area: plus; + display: inline-flex; + align-items: center; + justify-content: center; + width: 56px; + height: 56px; + border-radius: 50%; + color: #7c3aed; + border: 2px dashed currentColor; +} + +[data-theme='dark'] .plus { + color: #c4b5fd; +} + +/* ---------------------------------------------------------------- */ +/* Tech stack */ +/* ---------------------------------------------------------------- */ + +.techGrid { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 0.75rem; + max-width: 56rem; + margin: 0 auto; +} + +.techChip { + display: inline-flex; + align-items: center; + gap: 0.55rem; + padding: 0.6rem 1.1rem; + border-radius: 999px; + font-weight: 600; + font-size: 0.95rem; + background: var(--card-bg); + border: 1px solid var(--card-border); + box-shadow: var(--card-shadow); + transition: transform 0.2s, border-color 0.2s; +} + +.techChip:hover { + transform: translateY(-3px); + border-color: var(--dot); +} + +.techDot { + width: 10px; + height: 10px; + border-radius: 50%; + background: var(--dot); + box-shadow: 0 0 10px var(--dot); +} + +/* ---------------------------------------------------------------- */ +/* Call to action */ +/* ---------------------------------------------------------------- */ + +.ctaWrap { + padding-bottom: 5.5rem; +} + +.cta { + position: relative; + overflow: hidden; + padding: 4rem 2rem; + border-radius: 26px; + text-align: center; + color: #fff; + background: linear-gradient(120deg, #5b21b6 0%, #9333ea 40%, #db2777 75%, #f97316 100%); + box-shadow: 0 30px 70px rgba(147, 51, 234, 0.35); +} + +.cta .heroButtons { + position: relative; + justify-content: center; +} + +.ctaBlob1 { + width: 340px; + height: 340px; + top: -160px; + left: -80px; + background: #22d3ee; + opacity: 0.35; +} + +.ctaBlob2 { + width: 300px; + height: 300px; + bottom: -160px; + right: -60px; + background: #fbbf24; + opacity: 0.35; + animation-delay: -9s; +} + +.ctaTitle { + position: relative; + font-size: clamp(1.8rem, 3.5vw, 2.6rem); + font-weight: 800; + color: #fff; + margin-bottom: 0.75rem; +} + +.ctaText { + position: relative; + max-width: 34rem; + margin: 0 auto 2rem; + font-size: 1.12rem; + color: rgba(255, 255, 255, 0.88); +} + +/* ---------------------------------------------------------------- */ +/* Responsive */ +/* ---------------------------------------------------------------- */ + +@media screen and (max-width: 996px) { + .hero { + padding: 3.5rem 0 5rem; + } + + .heroInner, + .quickStart { + grid-template-columns: 1fr; + gap: 2.5rem; + } + + .featureGrid { + grid-template-columns: repeat(2, 1fr); + } + + .steps, + .workerGrid { + grid-template-columns: repeat(2, 1fr); + } + + .stats { + grid-template-columns: repeat(2, 1fr); + } + + .stat:nth-child(3) { + border-left: none; + } + + .stat:nth-child(n + 3) { + border-top: 1px solid var(--card-border); + } + + .section { + padding: 4rem 0; + } +} + +@media screen and (max-width: 600px) { + .featureGrid, + .steps, + .workerGrid { + grid-template-columns: 1fr; + } + + .workerCardOwn { + grid-template-columns: auto 1fr; + grid-template-areas: + 'plus title' + 'text text' + 'link link'; + row-gap: 0.75rem; + } +} + +@media (prefers-reduced-motion: reduce) { + .blob, + .edgeFlow, + .liveDot, + .nodeProgress, + .nodeStatus { + animation: none; + } + + .nodeProgress { + transform: scaleX(1); + } + + .nodeStatus { + fill: #34d399; + } } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8337628..ffc4671 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,28 +1,554 @@ -import type {ReactNode} from 'react'; +import {useState, type CSSProperties, type ReactNode} from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; +import useBaseUrl from '@docusaurus/useBaseUrl'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import Heading from '@theme/Heading'; import styles from './index.module.css'; -function HomepageHeader() { +type Accent = {accent: string; accent2: string}; + +const accentStyle = ({accent, accent2}: Accent) => + ({'--accent': accent, '--accent2': accent2}) as CSSProperties; + +function Icon({d, className}: {d: string; className?: string}) { + return ( + + ); +} + +/* ------------------------------------------------------------------ */ +/* Data */ +/* ------------------------------------------------------------------ */ + +const STATS = [ + {value: '55+', label: 'ready-made nodes'}, + {value: '4', label: 'feature workers'}, + {value: '1', label: 'command to run locally'}, + {value: '100%', label: 'open source · Apache 2.0'}, +]; + +const FEATURES: (Accent & {title: string; text: string; icon: string; to: string})[] = [ + { + title: 'Browser-native canvas', + text: 'A full IDE built on Eclipse Theia and React Flow. Drag, drop and connect nodes with nothing to install.', + icon: 'M4 4h6v6H4zM14 14h6v6h-6zM10 7h4a3 3 0 013 3v4', + to: '/docs/intro', + accent: '#8b5cf6', + accent2: '#6366f1', + }, + { + title: 'Crash-proof execution', + text: "Every run is a durable Temporal workflow. A crashed worker, a restarted pod or a dropped connection doesn't lose progress.", + icon: 'M12 3l7.5 3v5.25c0 4.6-3.2 8.5-7.5 9.75-4.3-1.25-7.5-5.15-7.5-9.75V6L12 3zM9 12l2 2 4-4', + to: '/docs/architecture/overview', + accent: '#10b981', + accent2: '#06b6d4', + }, + { + title: 'Live execution updates', + text: 'Events flow from Kafka to the browser over MQTT and WebSockets, so each node lights up as it runs. No polling.', + icon: 'M13 2L4.5 13.5H12L11 22l8.5-11.5H12L13 2z', + to: '/docs/architecture/overview', + accent: '#f59e0b', + accent2: '#f97316', + }, + { + title: 'Columnar data', + text: 'Nodes exchange Snappy-compressed Apache Parquet tables stored in MinIO, not JSON blobs. Fast and query-ready.', + icon: 'M3 5h18v14H3zM3 10h18M3 15h18M9 5v14M15 5v14', + to: '/docs/architecture/data-format', + accent: '#06b6d4', + accent2: '#3b82f6', + }, + { + title: 'Extensible by design', + text: 'Add capabilities by deploying a new feature worker. Existing services stay untouched: zero downtime, zero coupling.', + icon: 'M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3zM12 12l8-4.5M12 12v9M12 12L4 7.5', + to: '/docs/architecture/node-model', + accent: '#ec4899', + accent2: '#8b5cf6', + }, + { + title: 'Kubernetes-ready', + text: 'Helm charts for the infrastructure, the platform and each worker take you from a laptop to a production cluster.', + icon: 'M12 8a4 4 0 100 8 4 4 0 000-8zM12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8', + to: '/docs/deployment/helm-charts', + accent: '#3b82f6', + accent2: '#6366f1', + }, +]; + +const STEPS: (Accent & {title: string; text: string})[] = [ + { + title: 'Design', + text: 'Drag nodes onto the canvas in the Workbench, configure them and hit Execute.', + accent: '#8b5cf6', + accent2: '#a855f7', + }, + { + title: 'Orchestrate', + text: 'The API server starts a Temporal workflow that walks the graph and runs independent nodes in parallel.', + accent: '#6366f1', + accent2: '#3b82f6', + }, + { + title: 'Execute', + text: 'Each node runs on the feature worker that registered it, reading and writing Parquet in MinIO.', + accent: '#06b6d4', + accent2: '#10b981', + }, + { + title: 'Watch', + text: 'Progress events travel through Kafka and MQTT and light up every node live in your browser.', + accent: '#f59e0b', + accent2: '#ec4899', + }, +]; + +const WORKERS: (Accent & {title: string; badge: string; text: string; tags: string[]; icon: string; to: string})[] = [ + { + title: 'Base Analytics', + badge: '16 nodes', + text: 'Transforms, joins, filters, aggregation, REST calls, Kotlin scripting and anomaly detection.', + tags: ['Pivot', 'JSON Exploder', 'REST Client', 'Z-Score'], + icon: 'M4 20V10M10 20V4M16 20v-7M21 20H3', + to: '/docs/feature-nodes/base-analytics', + accent: '#6366f1', + accent2: '#06b6d4', + }, + { + title: 'Cheminformatics', + badge: '38 nodes', + text: 'RDKit-powered molecular processing: parse, standardise, fingerprint, react and visualise molecules at scale.', + tags: ['SMILES', 'Fingerprints', 'Reactions', '3D geometry'], + icon: 'M12 2.5l8.2 4.75v9.5L12 21.5l-8.2-4.75v-9.5L12 2.5zM12 8.5l3 1.75v3.5L12 15.5l-3-1.75v-3.5L12 8.5z', + to: '/docs/feature-nodes/cheminformatics', + accent: '#10b981', + accent2: '#84cc16', + }, + { + title: 'AI / ML', + badge: 'LLM training', + text: 'Fine-tune large language models with LoRA and Unsloth acceleration, straight from a workflow graph.', + tags: ['Unsloth', 'LoRA', 'Llama', 'Phi-4', 'Qwen'], + icon: 'M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9L12 3zM19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9L19 15z', + to: '/docs/feature-nodes/ai-ml', + accent: '#ec4899', + accent2: '#f59e0b', + }, + { + title: 'KNIME', + badge: 'Bridge', + text: 'Run existing KNIME workflows (.knwf) as Continuum nodes and bring your KNIME work to the cloud.', + tags: ['.knwf', 'Executors'], + icon: 'M12 3.5l9 15.5H3L12 3.5z', + to: '/docs/feature-nodes/knime', + accent: '#f59e0b', + accent2: '#ef4444', + }, +]; + +const TECH: {name: string; color: string}[] = [ + {name: 'Temporal', color: '#a78bfa'}, + {name: 'Apache Kafka', color: '#f472b6'}, + {name: 'Spring Boot', color: '#4ade80'}, + {name: 'Kotlin', color: '#c084fc'}, + {name: 'Eclipse Theia', color: '#60a5fa'}, + {name: 'React Flow', color: '#f43f5e'}, + {name: 'Apache Parquet', color: '#22d3ee'}, + {name: 'MinIO', color: '#fb7185'}, + {name: 'MQTT', color: '#a3e635'}, + {name: 'PostgreSQL', color: '#38bdf8'}, + {name: 'Kubernetes', color: '#818cf8'}, + {name: 'Helm', color: '#2dd4bf'}, +]; + +const QUICK_START = [ + 'git clone https://github.com/projectcontinuum-org/continuum-local-setup.git', + 'cd continuum-local-setup/docker', + 'docker compose up -d', +]; + +/* ------------------------------------------------------------------ */ +/* Hero */ +/* ------------------------------------------------------------------ */ + +const NODE_W = 160; +const NODE_H = 64; + +const FLOW_NODES = [ + {id: 'a', x: 8, y: 128, title: 'Create Table', sub: 'Data', color: '#818cf8', stage: 1}, + {id: 'b', x: 220, y: 36, title: 'Text Normalizer', sub: 'Text', color: '#f472b6', stage: 2}, + {id: 'c', x: 220, y: 220, title: 'Crypto Hasher', sub: 'Security', color: '#fbbf24', stage: 2}, + {id: 'd', x: 432, y: 128, title: 'Anomaly Detector', sub: 'Analytics', color: '#34d399', stage: 3}, +]; + +const FLOW_EDGES: [string, string][] = [ + ['a', 'b'], + ['a', 'c'], + ['b', 'd'], + ['c', 'd'], +]; + +function edgePath(fromId: string, toId: string) { + const from = FLOW_NODES.find((n) => n.id === fromId)!; + const to = FLOW_NODES.find((n) => n.id === toId)!; + const x1 = from.x + NODE_W; + const y1 = from.y + NODE_H / 2; + const x2 = to.x; + const y2 = to.y + NODE_H / 2; + return `M${x1} ${y1} C${x1 + 30} ${y1}, ${x2 - 30} ${y2}, ${x2} ${y2}`; +} + +function WorkflowPreview() { + const stageClass = [styles.stage1, styles.stage2, styles.stage3]; + return ( +
+
+ + + + + + Continuum Workbench + + Live run + +
+ + + + + + + + + {FLOW_EDGES.map(([from, to]) => ( + + + + + ))} + {FLOW_NODES.map((n) => ( + + + + + + {n.title} + + + {n.sub} + + + + + ))} + +
+ ); +} + +function Hero() { const {siteConfig} = useDocusaurusContext(); + const logo = useBaseUrl('/img/Logo.png'); + return ( +
+
+
+
+
+
+
+ + Open source + Apache 2.0 · Star us on GitHub → + +
+ + Project Continuum +
+ + Visual workflows that never lose progress + +

{siteConfig.tagline} Inspired by KNIME, built for the cloud.

+
+ + Get started + + + Read the docs + + + Build a node + +
+
+ +
+
+ ); +} + +/* ------------------------------------------------------------------ */ +/* Sections */ +/* ------------------------------------------------------------------ */ + +function Stats() { + return ( +
+ {STATS.map((s) => ( +
+ {s.value} + {s.label} +
+ ))} +
+ ); +} + +function SectionHeader({eyebrow, title, text}: {eyebrow: string; title: ReactNode; text: string}) { return ( -
+
+ {eyebrow} + + {title} + +

{text}

+
+ ); +} + +function Features() { + return ( +
+
+ + Everything a data pipeline needs, nothing to install + + } + text="Design in the browser, run on durable infrastructure, and extend the platform without touching its core." + /> +
+ {FEATURES.map((f) => ( + + + + + + {f.title} + +

{f.text}

+ Learn more → + + ))} +
+
+
+ ); +} + +function HowItWorks() { + return ( +
+
+ +
    + {STEPS.map((s, i) => ( +
  1. + {i + 1} + + {s.title} + +

    {s.text}

    +
  2. + ))} +
+
+ + Explore the architecture + +
+
+
+ ); +} + +function QuickStart() { + const [copied, setCopied] = useState(false); + const copy = () => { + void navigator.clipboard?.writeText(QUICK_START.join('\n')); + setCopied(true); + setTimeout(() => setCopied(false), 1800); + }; + return ( +
+
+
+ Quick start + + The whole platform, one command away + +

+ No builds and no cloning five repositories. Docker Compose starts the infrastructure, the platform + backend, the Workbench and the feature workers, already wired together with example workflows. +

+
    +
  • Temporal, Kafka, MinIO and PostgreSQL included
  • +
  • Workbench at localhost:3002 with example workflows
  • +
  • Base, cheminformatics and AI workers ready to use
  • +
+ + Local setup guide + +
+
+
+ + + + + + bash + +
+
+            {QUICK_START.map((line) => (
+              
+ $ {line} +
+ ))} +
✔ Continuum is up: open http://127.0.0.1:3002
+
+
+
+
+ ); +} + +function Workers() { + return ( +
+
+ +
+ {WORKERS.map((w) => ( + +
+ + + + {w.badge} +
+ + {w.title} + +

{w.text}

+
+ {w.tags.map((t) => ( + + {t} + + ))} +
+ + ))} + + + + + + Build your own + +

+ Start from the feature template and ship a worker with your own nodes in Kotlin or Java. +

+ Create new nodes → + +
+
+
+ ); +} + +function TechStack() { + return ( +
- - {siteConfig.title} + +
+ {TECH.map((t) => ( + + + {t.name} + + ))} +
+
+
+ ); +} + +function CallToAction() { + return ( +
+
+
+
+ + Ready to build your first workflow? -

{siteConfig.tagline}

-
- - Read the Docs +

+ Spin up the stack locally, drag a few nodes onto the canvas and watch them run. +

+
+ + Get started + + + Browse the repositories
-
+ ); } @@ -32,7 +558,16 @@ export default function Home(): ReactNode { - + +
+ + + + + + + +
); } diff --git a/versioned_docs/version-0.0.20/architecture/_category_.json b/versioned_docs/version-0.0.20/architecture/_category_.json new file mode 100644 index 0000000..508533a --- /dev/null +++ b/versioned_docs/version-0.0.20/architecture/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Architecture", + "position": 3, + "link": { + "type": "generated-index", + "description": "How a workflow actually executes, end to end." + } +} diff --git a/versioned_docs/version-0.0.20/architecture/data-format.md b/versioned_docs/version-0.0.20/architecture/data-format.md new file mode 100644 index 0000000..a328376 --- /dev/null +++ b/versioned_docs/version-0.0.20/architecture/data-format.md @@ -0,0 +1,14 @@ +--- +sidebar_position: 3 +--- + +# Data Format + +All data passed between workflow nodes is **Apache Parquet** (Snappy-compressed, Avro schema `DataRow`) — not JSON. This keeps data columnar, compressed, and query-ready from the moment it leaves a node. + +- `NodeOutputWriter.OutputPortWriter` writes rows to the node's output port(s). +- `NodeInputReader` reads rows from each connected input port. +- Output files are named `output.{portId}.parquet`; input files `input.{portId}.parquet`. +- Files are staged in a local cache path before upload to (or after download from) MinIO, the platform's S3-compatible object store. + +Because every node reads and writes the same Parquet/Avro format regardless of which worker or language implements it, nodes written in different feature repos — base analytics, cheminformatics, AI/ML — can be freely wired together in the same workflow graph. diff --git a/versioned_docs/version-0.0.20/architecture/node-model.md b/versioned_docs/version-0.0.20/architecture/node-model.md new file mode 100644 index 0000000..e9dd55a --- /dev/null +++ b/versioned_docs/version-0.0.20/architecture/node-model.md @@ -0,0 +1,66 @@ +--- +sidebar_position: 2 +--- + +# Node Model & Feature Registration + +Every workflow node is defined inside a **feature worker** — an independent service (e.g. `continuum-feature-base`, `continuum-feature-ai`, `continuum-feature-cheminformatics`, or your own) built with the `continuum-worker-springboot-starter`. Workers register their nodes centrally so the orchestration service knows which worker to dispatch each node to. + +## Defining a node + +Every node: + +1. Is annotated `@ContinuumNode` (not just `@Component`) — enforced at build time by a Gradle validation task and at startup by the node activity handler. +2. Extends `ProcessNodeModel` (data nodes) or `TriggerNodeModel` (source nodes). +3. Overrides `inputPorts`, `outputPorts`, and `metadata` (as `ContinuumWorkflowModel.NodeData`). +4. Implements `execute()` — the simple overload for most nodes, or the `ExecutionContext` overload for nodes that need credentials. + +```kotlin +@ContinuumNode +class MyNodeModel : ProcessNodeModel() { + override val inputPorts = mapOf("input" to ContinuumWorkflowModel.NodePort(...)) + override val outputPorts = mapOf("output" to ContinuumWorkflowModel.NodePort(...)) + override val metadata = ContinuumWorkflowModel.NodeData(...) + + override fun execute( + properties: Map?, + inputs: Map, + nodeOutputWriter: NodeOutputWriter, + nodeProgressCallback: NodeProgressCallback, + executionContext: ExecutionContext // only needed for credential access + ) { /* ... */ } +} +``` + +Node documentation is auto-loaded from `resources//.doc.md` on startup. + +## How a node ends up in the registry + +At startup, each worker publishes its available nodes to Kafka so the platform can build a central registry of "which node lives on which worker": + +``` +┌──────────────────────┐ Avro binary ┌──────────────────────┐ PostgreSQL +│ Worker (startup) │ ──── Kafka topic ─────► │ Message Bridge │ ────► registered_nodes +│ Discovers all │ FeatureRegistration │ Consumes & upserts │ (nodeId + taskQueue) +│ @ContinuumNode │ │ per node │ +│ beans via Spring │ │ │ +└──────────────────────┘ └──────────────────────┘ +``` + +1. On `ApplicationReadyEvent`, the worker iterates every `ContinuumNodeModel` bean it has. +2. For each node, it builds a `FeatureRegistrationRequest` — containing `nodeId` (fully-qualified class name), `workerId`, `featureId`, `taskQueue`, a JSON `nodeManifest` (ports, schemas, title, icon), and the node's documentation markdown — and publishes it to Kafka (Avro, keyed by `nodeId`). +3. `continuum-message-bridge` consumes the message and performs an atomic upsert into the `registered_nodes` table. +4. The orchestration service's `InitializeActivity` later queries this registry (via the API server) to resolve which task queue should run each node in a workflow. + +`featureId` is derived by stripping the trailing `.node` package segment from the class name, e.g. `org.projectcontinuum.feature.analytics.node.CreateTableNodeModel` → `org.projectcontinuum.feature.analytics`. + +`nodeManifest` is kept as an opaque JSON string (not typed Avro fields) so the schema stays forward-compatible as `NodeData` evolves. Registration is one message per node, enabling clean idempotent upserts, and `extensions` (a `map`) is reserved for future fields without breaking schema compatibility. + +## Credentials + +Nodes that need external secrets (API keys, DB passwords) don't receive them automatically: + +- The node's `propertiesUISchema` declares a control with `options.format = "credential"` purely so `continuum-workbench` renders a credential picker in its config dialog — the backend doesn't read this schema. +- Inside `execute()`, the node reads its own `properties` to find the configured credential name, then calls `executionContext.getCredential(name)`. This fetches the credential on demand from `continuum-credentials-server` (`GET /api/v1/credentials/{name}`) and deserializes it into `T`, throwing if not found. + +Credentials are fetched lazily, per execution — never bundled into the workflow definition or passed through Kafka. diff --git a/versioned_docs/version-0.0.20/architecture/overview.md b/versioned_docs/version-0.0.20/architecture/overview.md new file mode 100644 index 0000000..c398536 --- /dev/null +++ b/versioned_docs/version-0.0.20/architecture/overview.md @@ -0,0 +1,65 @@ +--- +sidebar_position: 1 +--- + +# System Overview + +Continuum is split into a browser frontend, a core backend (API server + Temporal orchestration), and independent feature workers that provide the actual workflow nodes. + +``` +┌─────────────────────────────────────────────────────┐ +│ BROWSER (Continuum Workbench) │ +│ Eclipse Theia IDE + React Flow drag-and-drop │ +└──────────────┬────────────────────┬─────────────────┘ + │ REST │ MQTT / WebSocket + ▼ ▼ + ┌────────────────┐ ┌──────────────────┐ + │ API Server │ │ Message Bridge │ + │ │ │ Kafka → MQTT │ + └───────┬────────┘ └────────▲─────────┘ + │ │ + ▼ │ + ┌──────────────┐ ┌────────┴────────┐ + │ Temporal │ │ Kafka │ + │ orchestration │ │ │ + └───────┬───────┘ └────────▲────────┘ + │ dispatches │ events + ▼ │ + ┌──────────────────────────────┐ + │ FEATURE WORKERS │ + │ Base · Cheminformatics · AI │ + └──────────────┬───────────────┘ + │ read / write + ▼ + ┌─────────────────┐ + │ MinIO (S3) │ + │ Parquet files │ + └─────────────────┘ +``` + +## Execution flow + +1. You design a workflow in the browser (React Flow canvas) and hit **Execute**. +2. `continuum-api-server` receives the REST call and starts a Temporal workflow (`ContinuumWorkflow`, on `WORKFLOW_TASK_QUEUE`). +3. `InitializeActivity` resolves which task queue (= which worker) handles each node, via `POST /api/v1/node-explorer/nodes/task-queues` against the API server's node registry. +4. For each DAG node, `IContinuumNodeActivity.run()` is dispatched to the resolved worker's task queue (`ACTIVITY_TASK_QUEUE`). The worker downloads input Parquet from MinIO, runs `execute()`, and uploads output Parquet. +5. Nodes run in parallel where the DAG allows — `ContinuumWorkflow` waits for the first pending node to complete, then schedules newly unblocked nodes. +6. Each node sends progress signals; `ContinuumWorkflow` publishes a `WorkflowUpdateEvent` to Kafka. +7. `continuum-message-bridge` consumes the Kafka event and republishes it to Mosquitto (MQTT). +8. The browser receives the update over MQTT-over-WebSocket and lights up the corresponding node in real time. + +## Why this survives crashes + +Temporal persists workflow state (in PostgreSQL) at every step. If a worker process dies mid-execution, the orchestration service simply redispatches the pending activity once a worker becomes available again — no data loss, no restart from scratch. This is the "crash-proof execution" promise: a failed Kafka broker, a restarted worker pod, or a dropped network connection doesn't lose workflow progress. + +## Task queues + +Three Temporal task queues coordinate the system: + +| Queue | Consumer | Purpose | +|-------|----------|---------| +| `WORKFLOW_TASK_QUEUE` | `ContinuumWorkflow` (orchestration service) | Drives the DAG execution loop | +| `ACTIVITY_TASK_QUEUE` | `ContinuumNodeActivity` (feature workers) | Runs individual node logic — name overridable per worker via `continuum.core.worker.node-task-queue` | +| `ACTIVITY_TASK_QUEUE_INITIALIZE` | `InitializeActivity` (orchestration service) | Resolves node → task queue routing before dispatch | + +See [Node Model & Registration](./node-model.md) for how a worker's nodes end up in that registry in the first place, and [Data Format](./data-format.md) for how data actually moves between nodes. diff --git a/versioned_docs/version-0.0.20/contributing/_category_.json b/versioned_docs/version-0.0.20/contributing/_category_.json new file mode 100644 index 0000000..0e8f2f2 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Contributing", + "position": 7, + "link": { + "type": "generated-index", + "description": "Add your own workflow nodes to Project Continuum." + } +} diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json b/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json new file mode 100644 index 0000000..0deb03f --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Create New Nodes", + "position": 2, + "link": { + "type": "doc", + "id": "contributing/create-new-nodes/overview" + } +} diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md new file mode 100644 index 0000000..fbc11d2 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md @@ -0,0 +1,58 @@ +--- +sidebar_position: 1 +sidebar_label: Overview +title: Create New Nodes +slug: /contributing/create-new-nodes +--- + +# Create New Nodes + +This guide walks you through building a **feature worker** with your own workflow node, from an empty folder to a passing build and a worker that registers its node with the platform. The running example is a **Word Counter** node that counts the words in a text column and appends the count as a new column. + +You need to know some Kotlin and Gradle. You don't need to know Temporal, Kafka or Spring internals; the Continuum Gradle plugins and the worker starter handle those. + +:::info Versions used in this guide +Verified against **Continuum platform `0.0.20`** (Spring Boot 4.0.6, Kotlin 2.2, Jackson 3, Gradle 8.14, JDK 21). Check [Maven Central](https://central.sonatype.com/artifact/org.projectcontinuum.core/continuum-commons) for the latest platform version, and use the same version everywhere in your project. +::: + +## How the pieces fit + +A feature worker is a small Gradle multi-project: + +``` +continuum-feature-demo/ +├── settings.gradle.kts # plugin versions + module list +├── gradle.properties # continuumPlatformVersion, featureVersion +├── features/ +│ └── continuum-feature-demo/ # library module: your node classes +└── worker/ # thin Spring Boot app that hosts the nodes +``` + +- **Feature modules** (`org.projectcontinuum.feature` plugin) hold the node classes. They're plain libraries and can be published and reused. +- **The worker module** (`org.projectcontinuum.worker` plugin) is a Spring Boot app with no node logic of its own. It depends on your feature modules and on `continuum-worker-springboot-starter`. At startup the starter finds every `@ContinuumNode` bean, polls a Temporal task queue for node executions, and publishes one registration message per node to Kafka. + +See [Node Model & Feature Registration](../../architecture/node-model.md) for what happens after registration. + +## Prerequisites + +| Requirement | Notes | +|-------------|-------| +| JDK 21 | Eclipse Temurin recommended. The plugins set a Java 21 toolchain. | +| Gradle wrapper 8.14+ | Older wrappers (for example 8.4) can't load the Spring Boot 4 Gradle plugin. | +| Docker | Only needed to run the worker against the [local stack](../../getting-started/local-setup.md). | + +You **don't** need a GitHub token. All Continuum artifacts and Gradle plugins are published to **Maven Central**. + +## The steps + +1. [Create the root project](./step-1-root-project.md) +2. [Create the feature module](./step-2-feature-module.md) +3. [Write the node](./step-3-write-the-node.md) +4. [Add node documentation](./step-4-node-documentation.md) +5. [Write unit tests](./step-5-unit-tests.md) +6. [Create the worker module](./step-6-worker-module.md) +7. [Build and test](./step-7-build-and-test.md) +8. [Run the worker against the local stack](./step-8-run-locally.md) +9. [Ship it](./step-9-ship-it.md) + +If something goes wrong along the way, see [Troubleshooting](./troubleshooting.md). diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md new file mode 100644 index 0000000..b1a7951 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md @@ -0,0 +1,48 @@ +--- +sidebar_position: 2 +sidebar_label: "1. Root project" +title: "Step 1: Create the root project" +--- + +# Step 1: Create the root project + +Create the folder and add a Gradle wrapper. If Gradle is installed, run `gradle wrapper --gradle-version 8.14`. Otherwise, copy `gradlew`, `gradlew.bat` and `gradle/wrapper/` from an existing feature repo such as `continuum-feature-base`. + +**`gradle.properties`** + +```properties +repoName=your-org/continuum-feature-demo +continuumPlatformVersion=0.0.20 +featureVersion=0.0.1 + +# Spring Boot 4 pulls in a large Kotlin compiler jar; give the Gradle daemon enough heap. +org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g +``` + +- `continuumPlatformVersion` selects the Gradle plugin version and the `continuum-commons` / `continuum-worker-springboot-starter` versions. +- `featureVersion` is your own version. +- `repoName` is used in published POM metadata and in the default container image name. + +**`settings.gradle.kts`** + +```kotlin +pluginManagement { + val continuumPlatformVersion: String by settings + repositories { + mavenLocal() + mavenCentral() + gradlePluginPortal() + } + plugins { + id("org.projectcontinuum.feature") version continuumPlatformVersion + id("org.projectcontinuum.worker") version continuumPlatformVersion + } +} + +rootProject.name = "continuum-feature-demo" + +include(":features:continuum-feature-demo") +include(":worker") +``` + +The plugins are resolved from Maven Central, so `mavenCentral()` must be in `pluginManagement.repositories`, not only in `gradlePluginPortal()`. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md new file mode 100644 index 0000000..44f03ed --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md @@ -0,0 +1,61 @@ +--- +sidebar_position: 3 +sidebar_label: "2. Feature module" +title: "Step 2: Create the feature module" +--- + +# Step 2: Create the feature module + +**`features/continuum-feature-demo/build.gradle.kts`** + +```kotlin +plugins { + id("org.projectcontinuum.feature") +} + +group = "org.projectcontinuum.feature.demo" +description = "Continuum Feature Demo — demo nodes" +version = property("featureVersion").toString() + +continuum { + continuumVersion.set(property("continuumPlatformVersion").toString()) +} +``` + +:::warning Always set `continuumVersion` +If you leave out the `continuum { }` block, the plugin falls back to a built-in default version that is older than the plugin itself. Read the value from `gradle.properties` so plugins and libraries always match. +::: + +The `org.projectcontinuum.feature` plugin applies Kotlin and Spring dependency management and adds these dependencies for you, so you don't declare them yourself: + +- Spring Boot starter, web, actuator and autoconfigure +- `continuum-commons` +- `kotlin-reflect` and `tools.jackson.module:jackson-module-kotlin` +- Test: `spring-boot-starter-test`, `kotlin-test-junit5`, `mockito-kotlin` + +It also registers the `validateContinuumNodeAnnotations` task, which runs before `classes`. Add a `dependencies { }` block only for extra libraries your nodes need. + +## Register the module with Spring + +The worker finds your nodes through Spring Boot auto-configuration, so each feature module needs two small files. + +**`src/main/kotlin/org/projectcontinuum/feature/demo/AutoConfigure.kt`** + +```kotlin +package org.projectcontinuum.feature.demo + +import org.springframework.context.annotation.ComponentScan +import org.springframework.context.annotation.Configuration + +@Configuration +@ComponentScan +class AutoConfigure +``` + +**`src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports`** + +```text +org.projectcontinuum.feature.demo.AutoConfigure +``` + +`@ComponentScan` with no arguments scans the package of `AutoConfigure` and its subpackages. If the imports file is missing or names the wrong class, the build still passes but the worker starts with none of your nodes. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md new file mode 100644 index 0000000..c978c03 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md @@ -0,0 +1,174 @@ +--- +sidebar_position: 4 +sidebar_label: "3. Write the node" +title: "Step 3: Write the node" +--- + +# Step 3: Write the node + +Put node classes in a `.node` subpackage. The platform derives your **feature ID** by removing the trailing `.node` segment from the class name. For example, `org.projectcontinuum.feature.demo.node.WordCounterNodeModel` gets the feature ID `org.projectcontinuum.feature.demo`. + +**`src/main/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModel.kt`** + +```kotlin +package org.projectcontinuum.feature.demo.node + +import org.projectcontinuum.core.commons.annotation.ContinuumNode +import org.projectcontinuum.core.commons.exception.NodeRuntimeException +import org.projectcontinuum.core.commons.model.ContinuumWorkflowModel +import org.projectcontinuum.core.commons.node.ProcessNodeModel +import org.projectcontinuum.core.commons.protocol.progress.NodeProgressCallback +import org.projectcontinuum.core.commons.utils.NodeInputReader +import org.projectcontinuum.core.commons.utils.NodeOutputWriter +import org.slf4j.LoggerFactory +import org.springframework.http.MediaType.TEXT_PLAIN_VALUE +import tools.jackson.core.type.TypeReference +import tools.jackson.databind.ObjectMapper + +@ContinuumNode +class WordCounterNodeModel( + private val objectMapper: ObjectMapper +) : ProcessNodeModel() { + companion object { + private val LOGGER = LoggerFactory.getLogger(WordCounterNodeModel::class.java) + private val WHITESPACE = Regex("\\s+") + } + + // 1. Ports: the map keys ("data") are the port IDs used in execute() + final override val inputPorts = mapOf( + "data" to ContinuumWorkflowModel.NodePort(name = "input table", contentType = TEXT_PLAIN_VALUE) + ) + final override val outputPorts = mapOf( + "data" to ContinuumWorkflowModel.NodePort(name = "table with word counts", contentType = TEXT_PLAIN_VALUE) + ) + + // 2. Where the node appears in the workbench node explorer + override val categories = listOf("Demo") + + // 3. JSON Schema for the node's properties + val propertiesSchema: Map = objectMapper.readValue( + """ + { + "type": "object", + "properties": { + "inputCol": { "type": "string", "title": "Input Column" }, + "outputCol": { "type": "string", "title": "Output Column" }, + "minWordLength": { "type": "integer", "title": "Minimum Word Length", "minimum": 1, "default": 1 } + }, + "required": ["inputCol", "outputCol"] + } + """.trimIndent(), + object : TypeReference>() {} + ) + + // 4. JSON Forms UI schema: layout of the configuration dialog + val propertiesUiSchema: Map = objectMapper.readValue( + """ + { + "type": "VerticalLayout", + "elements": [ + { "type": "Control", "scope": "#/properties/inputCol" }, + { "type": "Control", "scope": "#/properties/outputCol" }, + { "type": "Control", "scope": "#/properties/minWordLength" } + ] + } + """.trimIndent(), + object : TypeReference>() {} + ) + + // 5. Metadata: what the workbench and registry see + override val metadata = ContinuumWorkflowModel.NodeData( + id = this.javaClass.name, + nodeModel = this.javaClass.name, + title = "Word Counter", + subTitle = "Count words per row", + description = "Counts the words in a text column and appends the count as a new column", + icon = """""", + inputs = inputPorts, + outputs = outputPorts, + properties = mapOf("inputCol" to "text", "outputCol" to "word_count", "minWordLength" to 1), + propertiesSchema = propertiesSchema, + propertiesUISchema = propertiesUiSchema + ) + + // 6. The node's logic + override fun execute( + properties: Map?, + inputs: Map, + nodeOutputWriter: NodeOutputWriter, + nodeProgressCallback: NodeProgressCallback + ) { + val inputCol = properties?.get("inputCol") as String? + ?: throw NodeRuntimeException(workflowId = "", nodeId = "", message = "inputCol is not provided") + val outputCol = properties["outputCol"] as String? + ?: throw NodeRuntimeException(workflowId = "", nodeId = "", message = "outputCol is not provided") + val minWordLength = (properties["minWordLength"] as Number?)?.toInt() ?: 1 + + val reader = inputs["data"] ?: throw NodeRuntimeException( + isRetriable = false, workflowId = "", nodeId = "", message = "Input port 'data' is not connected" + ) + val totalRows = reader.getRowCount() + + nodeOutputWriter.createOutputPortWriter("data").use { writer -> + reader.use { + var row = reader.read() + var rowNumber = 0L + while (row != null) { + val text = row[inputCol]?.toString() ?: "" + val count = text.trim().split(WHITESPACE).count { it.length >= minWordLength } + + writer.write(rowNumber, row.toMutableMap().apply { this[outputCol] = count }) + rowNumber++ + if (totalRows > 0) nodeProgressCallback.report((rowNumber * 100 / totalRows).toInt()) + row = reader.read() + } + LOGGER.info("Counted words in $rowNumber rows") + } + } + } +} +``` + +## The node contract + +| Rule | Why | +|------|-----| +| Annotate with `@ContinuumNode`, not `@Component`. | `@ContinuumNode` makes the bean prototype-scoped, so each execution gets a fresh instance. The build fails if a node class is missing it (see [Step 7](./step-7-build-and-test.md)). | +| Extend `ProcessNodeModel` for nodes with inputs, or `TriggerNodeModel` for source nodes. | `TriggerNodeModel` has only `outputPorts` and `execute(properties, nodeOutputWriter)`. | +| Set `metadata.id` and `metadata.nodeModel` to `this.javaClass.name`. | The fully qualified class name is the node's identity in the registry and in saved workflows. Renaming or moving the class breaks existing workflows that use it. | +| Use Jackson 3 imports (`tools.jackson.*`). | Platform `0.0.20` is on Spring Boot 4 / Jackson 3. `com.fasterxml.jackson.databind` isn't on the classpath and won't compile. | +| Take `ObjectMapper` as a constructor parameter. | Spring injects it. In unit tests, pass `jacksonObjectMapper()`. | + +## Properties and validation + +- `metadata.properties` holds the default values used when a node is dropped onto the canvas. +- Before `execute()` is called, `ProcessNodeModel.run()` **validates the configured properties against `propertiesSchema`**. Values that break `required`, `type`, `minimum` and similar rules fail the node before your code runs. You can still check values in `execute()` for clearer error messages. +- `propertiesUISchema` is a [JSON Forms](https://jsonforms.io/) UI schema, used only by the workbench to draw the configuration dialog. For credential pickers (`options.format = "credential"`), see [Credentials](../../architecture/node-model.md#credentials). You can try schemas in the [JSON Forms playground](https://github.com/projectcontinuum-org/continuum-jsonform-playground) before wiring them into a node. + +## Reading and writing rows + +- `inputs[portId]` is a `NodeInputReader`. `read()` returns the next row as `Map`, or `null` at the end of the table. `getRowCount()` returns the total number of rows. +- `nodeOutputWriter.createOutputPortWriter(portId)` returns a writer. `write(rowNumber, row)` takes a `Long` row index starting at `0`. +- Wrap both reader and writer in `.use { }`. The output Parquet file is only complete once the writer is closed. +- If an input port isn't connected, its key is missing from `inputs`. + +Cell values must be one of these types. Any other type makes `write()` throw `IllegalArgumentException: Unsupported type`. + +| Kotlin type | Stored as | +|-------------|-----------| +| `String` | `application/vnd.continuum.x-string` | +| `Int`, `Long` | `application/vnd.continuum.x-int`, `x-long` | +| `Float`, `Double` | `application/vnd.continuum.x-float`, `x-double` | +| `Boolean` | `application/vnd.continuum.x-boolean` | +| `List<*>`, `Map<*, *>` | `application/json` | +| SVG `org.w3c.dom.Document` | `image/svg+xml` | + +Convert anything else first, for example call `toString()` on a `LocalDate` or `BigDecimal`. A `null` value can't be stored either: leave the key out instead. + +## Errors and retries + +Every node runs as a Temporal activity, so an exception thrown from `execute()` is **retried** by default. Throw `NodeRuntimeException(isRetriable = false, ...)` for errors that a retry won't fix, such as missing configuration or a disconnected port. You can pass empty strings for `workflowId` and `nodeId`. The existing nodes do the same. + +## Progress + +Call `nodeProgressCallback.report(percent)` with a value from 0 to 100 as you go. The workbench uses it to show live progress on the node. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md new file mode 100644 index 0000000..6262afa --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md @@ -0,0 +1,15 @@ +--- +sidebar_position: 5 +sidebar_label: "4. Node documentation" +title: "Step 4: Add node documentation" +--- + +# Step 4: Add node documentation + +Each node has a Markdown help page that the workbench shows next to it. It's loaded from the classpath on startup, at a path that matches the node's package and class name exactly: + +```text +src/main/resources/org/projectcontinuum/feature/demo/node/WordCounterNodeModel.doc.md +``` + +If the file is missing, the node still works, but its help page reads *"Documentation not found for WordCounterNodeModel"*. A good help page covers what the node does, its ports, a properties table, and a small input/output example. See the `.doc.md` files in [`continuum-feature-base`](https://github.com/projectcontinuum-org/continuum-feature-base) for the house style. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md new file mode 100644 index 0000000..4a8c358 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md @@ -0,0 +1,48 @@ +--- +sidebar_position: 6 +sidebar_label: "5. Unit tests" +title: "Step 5: Write unit tests" +--- + +# Step 5: Write unit tests + +`execute()` only depends on its arguments, so you can test it with Mockito mocks and no Spring context: + +**`src/test/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModelTest.kt`** + +```kotlin +class WordCounterNodeModelTest { + private val outputWriter = mock() + private val portWriter = mock() + private val node = WordCounterNodeModel(jacksonObjectMapper()) + + @BeforeEach + fun setUp() { + whenever(outputWriter.createOutputPortWriter("data")).thenReturn(portWriter) + } + + @Test + fun `counts words and preserves original columns`() { + val reader = mockReader(listOf(mapOf("id" to 1, "text" to "the quick brown fox"))) + + node.execute(mapOf("inputCol" to "text", "outputCol" to "word_count"), mapOf("data" to reader), outputWriter, mock()) + + val rows = argumentCaptor>() + verify(portWriter).write(any(), rows.capture()) + assertEquals(4, rows.firstValue["word_count"]) + assertEquals(1, rows.firstValue["id"]) + } + + private fun mockReader(rows: List>): NodeInputReader { + val iterator = rows.iterator() + return mock().also { r -> + whenever(r.read()).thenAnswer { if (iterator.hasNext()) iterator.next() else null } + whenever(r.getRowCount()).thenReturn(rows.size.toLong()) + } + } +} +``` + +The imports come from `org.junit.jupiter.api`, `org.mockito.kotlin`, `kotlin.test` and `tools.jackson.module.kotlin.jacksonObjectMapper`. The feature plugin already adds all of them as test dependencies. + +These tests call `execute()` directly, so they skip the schema validation step. To test validation too, build a `ContinuumWorkflowModel.Node` and call `node.run(...)` instead. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md new file mode 100644 index 0000000..3748d25 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md @@ -0,0 +1,95 @@ +--- +sidebar_position: 7 +sidebar_label: "6. Worker module" +title: "Step 6: Create the worker module" +--- + +# Step 6: Create the worker module + +**`worker/build.gradle.kts`** + +```kotlin +plugins { + id("org.projectcontinuum.worker") +} + +group = "org.projectcontinuum.app.worker.demo" +description = "Continuum Feature Demo Worker" +version = property("featureVersion").toString() + +continuum { + continuumVersion.set(property("continuumPlatformVersion").toString()) + // Optional: set this to build a container image with `./gradlew :worker:jib` + // jibToImage.set("docker.io/your-org/continuum-feature-demo:${version}") +} + +dependencies { + implementation(project(":features:continuum-feature-demo")) +} +``` + +**`worker/src/main/kotlin/org/projectcontinuum/app/worker/demo/App.kt`** + +```kotlin +package org.projectcontinuum.app.worker.demo + +import org.springframework.boot.autoconfigure.SpringBootApplication +import org.springframework.boot.runApplication + +@SpringBootApplication +class App + +fun main(args: Array) { + runApplication(*args) +} +``` + +**`worker/src/main/resources/application.yaml`** + +```yaml +spring.application.name: continuum-feature-demo-worker + +# The worker runs a web server. Its default port 8080 clashes with +# continuum-api-server in the local stack. +server.port: ${SERVER_PORT:8090} + +spring: + temporal: + namespace: ${TEMPORAL_NAMESPACE:default} + connection: + target: ${TEMPORAL_SERVER_ADDRESS:localhost:7233} + workersAutoDiscovery: + packages: + - org.projectcontinuum.core.worker.starter + +continuum.core: + worker: + # Every worker needs its OWN task queue (see the warning below). + node-task-queue: ${CONTINUUM_NODE_TASK_QUEUE:CONTINUUM_FEATURE_DEMO_TASK_QUEUE} + +logging: + level: + root: error + org.projectcontinuum.core.worker: info + org.projectcontinuum.feature.demo: debug +``` + +:::danger Give every worker a unique task queue +If `node-task-queue` isn't set, a worker listens on the shared default queue `ACTIVITY_TASK_QUEUE`. When two workers share a queue, Temporal can send a node to a worker that doesn't have it, and the node fails. Every shipped worker sets its own queue (for example `CONTINUUM_FEATURE_BASE_TASK_QUEUE`), and yours must too. The worker sends its queue name in its registration message, so the orchestrator knows where to route your nodes. +::: + +## Environment variables + +You don't need to configure Kafka, MinIO, the API server or the credentials server here. `continuum-worker-springboot-starter` ships defaults that point at the [local stack](../../getting-started/local-setup.md) ports, and each one can be overridden with an environment variable: + +| Variable | Default | Purpose | +|----------|---------|---------| +| `TEMPORAL_SERVER_ADDRESS` | `localhost:7233` | Temporal frontend | +| `CONTINUUM_KAFKA_MAIN_BROKER_LIST` | `localhost:39092,localhost:39093,localhost:39094` | Kafka brokers for node registration | +| `CONTINUUM_KAFKA_MAIN_SCHEMA_REGISTRY` | `http://localhost:38080` | Avro schema registry | +| `CONTINUUM_MINIO_ENDPOINT` | `http://localhost:39000` | Object store for Parquet inputs and outputs | +| `CONTINUUM_MINIO_USERNAME` / `_PASSWORD` | `minioadmin` / `minioadmin` | MinIO credentials | +| `CONTINUUM_API_SERVER_BASE_URL` | `http://localhost:8080` | API server | +| `CONTINUUM_CREDENTIALS_SERVER_BASE_URL` | `http://localhost:8083` | Only used by nodes that call `getCredential()` | +| `CONTINUUM_NODE_TASK_QUEUE` | none (falls back to `ACTIVITY_TASK_QUEUE`) | This worker's Temporal task queue | +| `CONTINUUM_CACHE_STORAGE_PATH` | `./.continuum-cache/workflow-data` | Local staging folder for Parquet files | diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md new file mode 100644 index 0000000..dc63809 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md @@ -0,0 +1,21 @@ +--- +sidebar_position: 8 +sidebar_label: "7. Build and test" +title: "Step 7: Build and test" +--- + +# Step 7: Build and test + +```bash +./gradlew build +``` + +This compiles every module, runs `validateContinuumNodeAnnotations`, runs the unit tests and builds `worker/build/libs/worker-.jar`. + +To check that the annotation guard works, swap `@ContinuumNode` for `@Component` and run `./gradlew classes`. The build fails with: + +```text +> Task :features:continuum-feature-demo:validateContinuumNodeAnnotations FAILED + Continuum Node Annotation Validation Failed + The following classes implement ContinuumNodeModel but are missing the @ContinuumNode annotation: +``` diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md new file mode 100644 index 0000000..ac18d89 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md @@ -0,0 +1,22 @@ +--- +sidebar_position: 9 +sidebar_label: "8. Run locally" +title: "Step 8: Run the worker against the local stack" +--- + +# Step 8: Run the worker against the local stack + +1. Start the platform with the [Local Setup](../../getting-started/local-setup.md) compose file and wait until every service is healthy. +2. Start your worker: + + ```bash + ./gradlew :worker:bootRun + ``` + +3. Check that the worker loaded your node. This endpoint returns the node tree that the worker serves: + + ```bash + curl http://localhost:8090/api/v1/node-repo + ``` + +4. Open the [workbench](http://127.0.0.1:3002). **Word Counter** appears under the **Demo** category. Drop it onto the canvas after a node that outputs a `text` column, such as **Create Table**, and run the workflow. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md new file mode 100644 index 0000000..8af4000 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md @@ -0,0 +1,11 @@ +--- +sidebar_position: 10 +sidebar_label: "9. Ship it" +title: "Step 9: Ship it" +--- + +# Step 9: Ship it + +- **Container image:** set `jibToImage` in `worker/build.gradle.kts` and run `./gradlew :worker:jib`. Jib reads registry credentials from `DOCKER_REPO_USERNAME` / `DOCKER_REPO_PASSWORD`. The base image defaults to `eclipse-temurin:21-jre` and can be changed with `jibFromImage`. +- **Kubernetes:** deploy the worker as its own release in the platform's namespace and set the [environment variables](./step-6-worker-module.md#environment-variables) from Step 6, including a unique `CONTINUUM_NODE_TASK_QUEUE`. The charts in the existing feature repos (for example `continuum-feature-base/charts/`) are a working reference. See [Deployment](../../deployment/helm-charts.md). +- **Publishing feature modules:** the plugins configure Maven Central publishing through JReleaser by default. If you don't publish libraries, set `publishToMavenCentral.set(false)` in the `continuum { }` block. diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/troubleshooting.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/troubleshooting.md new file mode 100644 index 0000000..c714d8e --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/troubleshooting.md @@ -0,0 +1,18 @@ +--- +sidebar_position: 11 +sidebar_label: Troubleshooting +title: Troubleshooting +--- + +# Troubleshooting + +| Symptom | Cause and fix | +|---------|---------------| +| `Plugin [id: 'org.projectcontinuum.worker', version: '…'] was not found` | That version isn't on Maven Central (for example an old `-SNAPSHOT`), or `mavenCentral()` is missing from `pluginManagement.repositories`. Use a released `continuumPlatformVersion`. See [Step 1](./step-1-root-project.md). | +| `Unresolved reference 'databind'` / `'ObjectMapper'` | You're using Jackson 2 imports (`com.fasterxml.jackson.*`). Switch to `tools.jackson.core.type.TypeReference` and `tools.jackson.databind.ObjectMapper`. | +| `validateContinuumNodeAnnotations FAILED` | A class extends `ProcessNodeModel` or `TriggerNodeModel` without `@ContinuumNode`. | +| Worker starts but your node isn't listed | The `AutoConfiguration.imports` file is missing or points at the wrong class, or the node is outside the `AutoConfigure` package. See [Step 2](./step-2-feature-module.md#register-the-module-with-spring). | +| `Port 8080 was already in use` on `bootRun` | The local API server already uses 8080. Set `server.port` (see [Step 6](./step-6-worker-module.md)). | +| Node fails at random, or runs on the wrong worker | Several workers share a task queue. Set a unique `CONTINUUM_NODE_TASK_QUEUE`. | +| `IllegalArgumentException: Unsupported type` while writing | A cell value isn't one of the [supported types](./step-3-write-the-node.md#reading-and-writing-rows). | +| Help page reads "Documentation not found" | The `.doc.md` path doesn't match the node's package and class name. See [Step 4](./step-4-node-documentation.md). | diff --git a/versioned_docs/version-0.0.20/contributing/feature-template.md b/versioned_docs/version-0.0.20/contributing/feature-template.md new file mode 100644 index 0000000..6e63fb4 --- /dev/null +++ b/versioned_docs/version-0.0.20/contributing/feature-template.md @@ -0,0 +1,18 @@ +--- +sidebar_position: 1 +slug: /contributing +--- + +# Scaffolding a New Feature Worker + +Continuum is designed to be extended by **adding new workers**, not modifying existing ones — see [Node Model & Feature Registration](../architecture/node-model.md) for why that's safe to do independently. + +To build your own set of nodes, start from [`continuum-feature-template`](https://github.com/projectcontinuum-org/continuum-feature-template) — a scaffold for a standalone Gradle project with the Spring Boot worker setup, Temporal registration, and `@ContinuumNode` conventions already wired up. + +:::tip +The template builds against platform `0.0.20` out of the box and includes a Kotlin and a Java example node, CI/CD workflows, a Helm chart and a local Docker stack. Its README covers renaming it for your own feature. For a walkthrough of writing a node from scratch, see [Create New Nodes](./create-new-nodes/overview.md). +::: + +Once your worker is running and registering nodes, it can be deployed as an independent release into the same Kubernetes namespace as the core platform (see [Deployment](../deployment/helm-charts.md)) — no changes to `continuum-platform-core` or any other feature repo required. + +For questions or to report issues, use the [GitHub issue tracker](https://github.com/projectcontinuum-org/continuum-platform-core/issues) on the core repo. diff --git a/versioned_docs/version-0.0.20/deployment/_category_.json b/versioned_docs/version-0.0.20/deployment/_category_.json new file mode 100644 index 0000000..5c2d01a --- /dev/null +++ b/versioned_docs/version-0.0.20/deployment/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Deployment", + "position": 5, + "link": { + "type": "generated-index", + "description": "Running Continuum on Kubernetes with Helm." + } +} diff --git a/versioned_docs/version-0.0.20/deployment/helm-charts.md b/versioned_docs/version-0.0.20/deployment/helm-charts.md new file mode 100644 index 0000000..9842ee7 --- /dev/null +++ b/versioned_docs/version-0.0.20/deployment/helm-charts.md @@ -0,0 +1,39 @@ +--- +sidebar_position: 1 +--- + +# Helm Charts + +[`continuum-charts`](https://github.com/projectcontinuum-org/continuum-charts) publishes three Helm charts for deploying Continuum on Kubernetes, served as a standard Helm chart repository via GitHub Pages. + +| Chart | Description | Required | +|-------|-------------|----------| +| `continuum-infra` | Core infrastructure — PostgreSQL, Temporal, Kafka, Schema Registry, Kafka UI, Mosquitto, MinIO | Yes | +| `continuum-platform` | Application services — API Server, Orchestration Service, Message Bridge, Workbench | Yes | +| `continuum-sso` | Optional Single Sign-On — OAuth2 Proxy with Keycloak OIDC | No | + +Feature workers (`continuum-feature-base`, `continuum-feature-cheminformatics`, `continuum-feature-ai`, `continuum-feature-knime`) are **not** part of this chart repo — each lives in its own repo with its own standalone chart, installable as an independent release into the same namespace. + +## Add the repository + +```bash +helm repo add continuum https://projectcontinuum.github.io/continuum-charts +helm repo update +helm search repo continuum +``` + +## Install + +```bash +# Prerequisites: Kubernetes v1.26+, Helm v3.12+, kubectl configured + +helm install continuum-infra continuum/continuum-infra \ + -n continuum --create-namespace \ + --wait --timeout 15m + +helm install continuum-platform continuum/continuum-platform \ + -n continuum \ + --wait --timeout 10m +``` + +Want to try it in under 5 minutes with Minikube, configure external databases/S3, set up SSO, or troubleshoot an install? The [`continuum-charts` README](https://github.com/projectcontinuum-org/continuum-charts) has a full walkthrough — Minikube quick-launch, dev-vs-prod Temporal backend options, customization recipes, and a troubleshooting section. diff --git a/versioned_docs/version-0.0.20/ecosystem/_category_.json b/versioned_docs/version-0.0.20/ecosystem/_category_.json new file mode 100644 index 0000000..03d9431 --- /dev/null +++ b/versioned_docs/version-0.0.20/ecosystem/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Ecosystem", + "position": 4, + "link": { + "type": "generated-index", + "description": "The repositories that make up Project Continuum." + } +} diff --git a/versioned_docs/version-0.0.20/ecosystem/repositories.md b/versioned_docs/version-0.0.20/ecosystem/repositories.md new file mode 100644 index 0000000..f87334a --- /dev/null +++ b/versioned_docs/version-0.0.20/ecosystem/repositories.md @@ -0,0 +1,26 @@ +--- +sidebar_position: 1 +slug: /ecosystem +--- + +# Repositories + +Project Continuum is split across several focused repositories under the [`projectcontinuum-org`](https://github.com/projectcontinuum-org) GitHub organization — not a monorepo. Each one can be built and released independently. + +| Repository | Description | +|-----------|-------------| +| [continuum-platform-core](https://github.com/projectcontinuum-org/continuum-platform-core) | Core backend — API server, Temporal orchestration, message bridge, credentials server, cluster manager, cloud gateway | +| [continuum-workbench](https://github.com/projectcontinuum-org/continuum-workbench) | Browser IDE — Eclipse Theia + React Flow workflow editor | +| [continuum-feature-base](https://github.com/projectcontinuum-org/continuum-feature-base) | Base analytics nodes — data transforms, REST, scripting, anomaly detection | +| [continuum-feature-ai](https://github.com/projectcontinuum-org/continuum-feature-ai) | AI/ML nodes — LLM fine-tuning with Unsloth + LoRA | +| [continuum-feature-cheminformatics](https://github.com/projectcontinuum-org/continuum-feature-cheminformatics) | Cheminformatics nodes — RDKit-powered molecular processing | +| [continuum-feature-knime](https://github.com/projectcontinuum-org/continuum-feature-knime) | KNIME-compatible workflow executors | +| [continuum-feature-template](https://github.com/projectcontinuum-org/continuum-feature-template) | Template — scaffold your own custom feature worker | +| [continuum-charts](https://github.com/projectcontinuum-org/continuum-charts) | Helm charts for deploying Continuum on Kubernetes | +| [continuum-local-setup](https://github.com/projectcontinuum-org/continuum-local-setup) | Docker Compose setup for running the entire platform locally | +| [continuum-website](https://github.com/projectcontinuum-org/continuum-website) | Marketing site ([projectcontinuum.org](https://projectcontinuum.org)) | +| [continuum-docs](https://github.com/projectcontinuum-org/continuum-docs) | This documentation site | + +## Feature workers are independent + +Feature workers (`continuum-feature-*`) are not part of `continuum-platform-core` — each lives in its own repo with its own build and release pipeline, and can be deployed as an independent worker service into the same namespace as the core platform. This is intentional: new capabilities ship as new workers, not as changes to existing ones. See [Node Model & Feature Registration](../architecture/node-model.md) for how a worker's nodes get discovered by the platform at runtime. diff --git a/versioned_docs/version-0.0.20/feature-nodes/_category_.json b/versioned_docs/version-0.0.20/feature-nodes/_category_.json new file mode 100644 index 0000000..0c6b477 --- /dev/null +++ b/versioned_docs/version-0.0.20/feature-nodes/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Feature Nodes", + "position": 6, + "link": { + "type": "generated-index", + "description": "What you can build with today — nodes shipped by each feature worker." + } +} diff --git a/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md b/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md new file mode 100644 index 0000000..62fbac8 --- /dev/null +++ b/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md @@ -0,0 +1,49 @@ +--- +sidebar_position: 2 +--- + +# AI / ML Nodes + +[`continuum-feature-ai`](https://github.com/projectcontinuum-org/continuum-feature-ai) provides nodes for training and fine-tuning LLMs directly inside workflow graphs. Ships as a Spring Boot worker with an auto-managed Python virtual environment for ML execution. + +## LLM Trainer (Unsloth) + +Fine-tune large language models using LoRA (Low-Rank Adaptation) with Unsloth acceleration. + +| | | +|---|---| +| **Input** | Parquet table with instruction + response columns | +| **Output** | Model info — path to LoRA adapter weights, base model, training config | +| **Category** | Machine Learning, LLM Training | + +### Supported base models + +| Provider | Models | +|----------|--------| +| Unsloth (fastest) | Phi-4, Phi-4-mini-instruct, Mistral 7B, Llama 3/3.1/3.2, Gemma 2, Qwen 2.5 | +| Microsoft | Phi-2, Phi-3-mini-4k-instruct | +| Meta | Llama-2-7b, Llama-2-7b-chat | +| Google | Gemma 2B, Gemma 7B | +| Qwen | Qwen2-7B, Qwen2-7B-Instruct | +| TII | Falcon 7B, Falcon 7B-instruct | +| Custom | Any HuggingFace causal language model | + +### Configurable parameters + +| Group | Parameters | +|-------|-----------| +| Model | Base model (HuggingFace ID), HuggingFace token for gated models | +| Data | Input column, output column, system prompt | +| Training | Epochs, batch size, learning rate, max sequence length, warmup steps, weight decay, gradient accumulation | +| LoRA | Rank (r), alpha, dropout | +| Advanced | 4-bit quantization, random seed, save steps, logging steps, Parquet batch size | + +### Key features + +- Unsloth acceleration on Linux + CUDA (2x faster, 60% less memory) +- Falls back to standard HuggingFace transformers on other platforms +- 4-bit quantization for reduced memory usage +- Real-time training progress streaming via Kafka +- Auto-managed Python virtual environment + +See the [`continuum-feature-ai` README](https://github.com/projectcontinuum-org/continuum-feature-ai) for build and run instructions. diff --git a/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md b/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md new file mode 100644 index 0000000..479f8cf --- /dev/null +++ b/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md @@ -0,0 +1,28 @@ +--- +sidebar_position: 1 +--- + +# Base Analytics Nodes + +[`continuum-feature-base`](https://github.com/projectcontinuum-org/continuum-feature-base) ships 16 production-ready nodes for data transformation, filtering, aggregation, REST integration, scripting, and anomaly detection. + +| Category | Node | Description | +|----------|------|-------------| +| Data | Create Table | Creates a structured table from FreeMarker template configuration | +| Data | Column Join | Joins two columns from left and right tables into one output column | +| Data | Joint Node | Joins input strings into one | +| Data | Join on Multiple Keys | Performs inner join on two tables using two key columns from each table | +| Transform | Pivot Columns | Pivots table so pivot column values become new columns with value column as cell values | +| Transform | JSON Exploder | Parses JSON strings and flattens keys into new columns | +| Transform | Column Splitter | Splits a column into two parts | +| Transform | Kotlin Script | Runs a Kotlin script for each row, adding a `script_result` column | +| Filter | Dynamic Row Filter | Filters rows where the specified column value is greater than the threshold | +| Filter | Conditional Splitter | Splits rows into two outputs based on threshold comparison | +| Aggregation | Time Window Aggregator | Aggregates values into time windows, summing by window buckets | +| Aggregation | Batch Accumulator | Groups rows into batches and adds `batch_id` and `row_count` columns | +| Text | Text Normalizer | Normalizes text by trimming, lowercasing, and removing non-alphanumeric characters | +| Security | Crypto Hasher | Generates SHA-256 hash of column values | +| Analytics | Anomaly Detector (Z-Score) | Detects outliers using Z-score method (flags values with \|Z\| > 2) | +| Integration | REST Client | Makes HTTP requests for each row using FreeMarker templated URLs and payloads | + +See the [`continuum-feature-base` README](https://github.com/projectcontinuum-org/continuum-feature-base) for build instructions and dependencies. diff --git a/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md b/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md new file mode 100644 index 0000000..3892002 --- /dev/null +++ b/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md @@ -0,0 +1,56 @@ +--- +sidebar_position: 3 +--- + +# Cheminformatics Nodes + +[`continuum-feature-cheminformatics`](https://github.com/projectcontinuum-org/continuum-feature-cheminformatics) ships 38 production-grade cheminformatics nodes across 10 categories, powered by [RDKit](https://www.rdkit.org/). Built for computational chemistry, medicinal chemistry, and drug discovery teams who need scalable, reproducible molecular processing pipelines — parse, standardize, fingerprint, filter, react, and visualize molecules at scale. + +## Node categories + +| Category | Example nodes | +|----------|----------------| +| Calculators | Calculate Charges, Descriptor Calculation (up to 41 descriptors) | +| Converters | Canonical SMILES, InChI ↔ Molecule, Molecule Writer, SMILES Parser | +| Experimental | Molecule Catalog Filter (PAINS/BRENK/NIH/ZINC), R-Group Decomposition, Structure Normalizer | +| Fingerprints | Fingerprint (9 algorithms), Count-Based Fingerprint, Fingerprint Similarity, Diversity Picker | +| Fragments | Molecule Fragmenter, Molecule Extractor, Murcko Scaffold | +| Geometry | Add Conformers, Add Coordinates, Optimize Geometry (MMFF94/UFF), Open 3D Alignment, RMSD Filter | +| Modifiers | Add/Remove Hydrogens, Aromatize, Kekulize, Salt Stripper | +| Reactions | Chemical Transformation, One/Two Component Reaction (SMARTS-based) | +| Rendering | RDKit to SVG | +| Searching | Substructure Filter/Counter, Functional Group Filter, Maximum Common Substructure | + +Plus a **Testing** node (SDF Difference Checker) for validating molecular data pipelines. + +## Fingerprint algorithms + +| Algorithm | Type | Typical use case | +|-----------|------|-------------------| +| Morgan (ECFP) | Circular | General-purpose similarity, QSAR, virtual screening | +| FeatMorgan (FCFP) | Circular (pharmacophoric) | Pharmacophore-aware similarity | +| AtomPair | Topological | Scaffold hopping, diversity analysis | +| Torsion | Topological | Conformational similarity | +| RDKit | Path-based | Substructure-oriented similarity | +| Avalon | Substructure | Fast screening, patent searching | +| Layered | Path-based (layered) | Similarity with tunable abstraction layers | +| MACCS | Structural keys (166-bit) | Quick pharmacophore screening | +| Pattern | Substructure | Substructure matching fingerprints | + +## Molecular descriptors (41 available) + +Physicochemical (AMW, SlogP, TPSA...), hydrogen bonding, structural counts, stereochemistry, ring systems, complexity, connectivity (Chi), and shape (Kier) descriptors — all computable in a single node pass. + +## Structural alert catalogs + +The Molecule Catalog Filter node screens compounds against **PAINS** (assay interference), **BRENK** (unstable/reactive motifs), **NIH** (MLSMR exclusion filters), and **ZINC** (drug-likeness filters). + +## Example pipeline pattern + +``` +SMILES Parser --> Salt Stripper --> Structure Normalizer --> Canonical SMILES --> Descriptor Calculation +``` + +A typical compound library standardization pipeline: parse raw structures, strip salts, normalize, canonicalize, then compute descriptors — each step a versioned, reconfigurable node. + +See the [`continuum-feature-cheminformatics` README](https://github.com/projectcontinuum-org/continuum-feature-cheminformatics) for the full node reference and more pipeline patterns (hit triage, virtual screening, 3D modeling prep). diff --git a/versioned_docs/version-0.0.20/feature-nodes/knime.md b/versioned_docs/version-0.0.20/feature-nodes/knime.md new file mode 100644 index 0000000..de1f7e3 --- /dev/null +++ b/versioned_docs/version-0.0.20/feature-nodes/knime.md @@ -0,0 +1,9 @@ +--- +sidebar_position: 4 +--- + +# KNIME Nodes + +[`continuum-feature-knime`](https://github.com/projectcontinuum-org/continuum-feature-knime) provides Continuum workflow executors for KNIME workflows (`.knwf` files), bridging KNIME's compatibility layer (`continuum-knime-base` in `continuum-platform-core`) with Continuum's execution model. + +This worker doesn't yet have a published node reference — check the [repository](https://github.com/projectcontinuum-org/continuum-feature-knime) directly for current capabilities. diff --git a/versioned_docs/version-0.0.20/getting-started/_category_.json b/versioned_docs/version-0.0.20/getting-started/_category_.json new file mode 100644 index 0000000..61031a5 --- /dev/null +++ b/versioned_docs/version-0.0.20/getting-started/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Getting Started", + "position": 2, + "link": { + "type": "generated-index", + "description": "Run the entire Continuum platform locally with one command." + } +} diff --git a/versioned_docs/version-0.0.20/getting-started/local-setup.md b/versioned_docs/version-0.0.20/getting-started/local-setup.md new file mode 100644 index 0000000..6e6043c --- /dev/null +++ b/versioned_docs/version-0.0.20/getting-started/local-setup.md @@ -0,0 +1,100 @@ +--- +sidebar_position: 1 +--- + +# Local Setup + +The [`continuum-local-setup`](https://github.com/projectcontinuum-org/continuum-local-setup) repo gives you a single `docker compose up` that launches the **complete** Project Continuum stack — infrastructure services, platform backend, browser IDE, and feature workers — all wired together and ready to go. + +No builds. No cloning five repos. Just Docker. + +## Prerequisites + +| Requirement | Minimum | +|-------------|---------| +| Docker | 20.10+ | +| Docker Compose | v2.0+ | +| RAM | 8 GB available for containers | +| Disk | ~5 GB for images + volumes | + +## Quick start + +```bash +git clone https://github.com/projectcontinuum-org/continuum-local-setup.git +cd continuum-local-setup/docker +docker compose up -d +``` + +Wait for all containers to become healthy, then open the [Continuum Workbench](http://127.0.0.1:3002/#/home/node/example-workflows). Example workflows are pre-loaded under `/home/node/example-workflows/`. + +Verify everything is running: + +```bash +docker compose ps +``` + +All services should show `running` (the `temporal-search-attributes-init` container exits after setup — that's expected). + +Stop everything: + +```bash +docker compose down # keep data +docker compose down -v # also remove volumes +``` + +## What's inside + +The compose stack has three layers: infrastructure, platform services, and feature workers. + +### Infrastructure services + +| Service | Port | Purpose | +|---------|------|---------| +| PostgreSQL | 35432 | Database backing Temporal's workflow state and history | +| Temporal | 7233 | Durable workflow execution engine — orchestrates node-by-node execution, handles retries and crash recovery | +| Temporal UI | [localhost:38081](http://localhost:38081) | Inspect running workflows, view execution history, debug | +| Kafka (3-node KRaft cluster) | 39092–39094 | Carries real-time node execution events from workers to the browser | +| Schema Registry | [localhost:38080](http://localhost:38080) | Avro schemas for Kafka messages | +| Kafka UI | [localhost:38082](http://localhost:38082) | Browse Kafka topics, messages, consumer groups | +| Mosquitto | 31883 (TCP), 31884 (WS) | MQTT broker — last hop pushing execution events to the browser over WebSockets | +| MinIO | [localhost:39000](http://localhost:39000) (API), [localhost:39001](http://localhost:39001) (Console) | S3-compatible storage for Parquet data files passed between nodes | + +### Platform services + +| Service | Port | Purpose | +|---------|------|---------| +| continuum-api-server | [localhost:8080](http://localhost:8080) | REST API — workflows, node registry, execution trigger. Single entry point for the workbench UI | +| continuum-message-bridge | — | Kafka-to-MQTT bridge for live browser updates | +| continuum-workbench | [localhost:3002](http://localhost:3002) | Browser IDE — Eclipse Theia + React Flow canvas | + +### Feature workers + +| Service | Nodes | Purpose | +|---------|-------|---------| +| continuum-feature-base | 16 nodes | Core analytics — table ops, filtering, REST, scripting, anomaly detection | +| continuum-feature-cheminformatics | RDKit nodes | Molecular descriptors and cheminformatics operations | + +Want AI nodes? Add the `continuum-feature-ai` worker image to the compose file for LLM fine-tuning with Unsloth. + +## Example workflows + +The `docker/example-workflows/` directory is mounted into the workbench container: + +| Workflow | What it demonstrates | +|----------|---------------------| +| `SensorDataPipeline.cwf` | IoT sensor data → anomaly detection → conditional routing → batch alerts via REST | +| `AnomalyDetector.cwf` | Z-score anomaly detection with conditional splitting | +| `RESTNode.cwf` | Making HTTP requests to external APIs from a workflow | +| `Unsloth.cwf` | LLM fine-tuning configuration (requires the AI worker) | + +## Troubleshooting + +**Containers keep restarting?** Check logs: `docker compose logs --tail 100` + +**Temporal not starting?** PostgreSQL needs to be healthy first — give it 30–60 seconds on first run. + +**Workbench shows connection errors?** The API server may still be starting. Wait until `docker compose ps` shows all services as `running`. + +**Out of memory?** Kafka + Temporal + all services need ~6–8 GB. Increase Docker's memory limit in Docker Desktop settings. + +See the full [continuum-local-setup README](https://github.com/projectcontinuum-org/continuum-local-setup) for more detail. diff --git a/versioned_docs/version-0.0.20/intro.mdx b/versioned_docs/version-0.0.20/intro.mdx new file mode 100644 index 0000000..9fb8cf0 --- /dev/null +++ b/versioned_docs/version-0.0.20/intro.mdx @@ -0,0 +1,29 @@ +--- +sidebar_position: 1 +slug: /intro +--- + +# Introduction + +Project Continuum is an open-source, browser-native visual workflow platform — inspired by [KNIME](https://www.knime.com/), built for the cloud. You design workflows as a drag-and-drop graph of nodes, and the platform runs them durably: a crashed worker, a dead Kafka broker, or a dropped connection doesn't lose your progress. + +Apache 2.0 licensed. No desktop install — the entire IDE runs in your browser. + +## Why Continuum + +- **Browser-native canvas** — a full IDE experience (Eclipse Theia + React Flow) with zero install. +- **Crash-proof execution** — powered by [Temporal](https://temporal.io), workflows survive process crashes, network failures, and restarts. Every step retries automatically. +- **Real-time streaming** — watch workflows execute step-by-step. Kafka streams events to your browser via MQTT over WebSockets. No polling, no refresh. +- **Columnar data passing** — nodes exchange Apache Parquet tables, not JSON blobs. Fast, compressed, query-ready. +- **Extensible by design** — add capabilities by deploying new worker services, not by modifying existing ones. Zero downtime, zero coupling. + +## How it fits together + +A workflow is a directed graph of nodes. Each node runs as a Temporal activity dispatched to whichever feature worker registered it — base analytics, cheminformatics, AI/ML, or your own custom worker. See [Architecture Overview](./architecture/overview.md) for the full execution path. + +## Where to go next + +- [Getting Started](./getting-started/local-setup.md) — run the whole platform locally with one `docker compose up`. +- [Architecture](./architecture/overview.md) — how a workflow actually executes, end to end. +- [Feature Nodes](./feature-nodes/base-analytics.md) — what you can build with today. +- [Deployment](./deployment/helm-charts.md) — running Continuum on Kubernetes. diff --git a/versioned_sidebars/version-0.0.20-sidebars.json b/versioned_sidebars/version-0.0.20-sidebars.json new file mode 100644 index 0000000..39332bf --- /dev/null +++ b/versioned_sidebars/version-0.0.20-sidebars.json @@ -0,0 +1,8 @@ +{ + "docsSidebar": [ + { + "type": "autogenerated", + "dirName": "." + } + ] +} diff --git a/versions.json b/versions.json new file mode 100644 index 0000000..f6d5e7b --- /dev/null +++ b/versions.json @@ -0,0 +1,3 @@ +[ + "0.0.20" +] From fb4b84d6b69639904df78323be763401e850f050 Mon Sep 17 00:00:00 2001 From: projectcontinuum Date: Tue, 27 Oct 2026 14:38:24 +0530 Subject: [PATCH 2/2] CONTNM-129: Reinnovate the docs theme --- README.md | 19 + docs/architecture/_category_.json | 6 +- docs/architecture/data-format.md | 42 +- docs/architecture/node-model.md | 37 +- docs/architecture/overview.md | 103 ++- docs/contributing/_category_.json | 6 +- .../create-new-nodes/_category_.json | 2 +- .../contributing/create-new-nodes/overview.md | 12 +- .../create-new-nodes/step-1-root-project.md | 5 + .../create-new-nodes/step-2-feature-module.md | 7 +- .../create-new-nodes/step-3-write-the-node.md | 5 + .../step-4-node-documentation.md | 5 + .../create-new-nodes/step-5-unit-tests.md | 5 + .../create-new-nodes/step-6-worker-module.md | 7 +- .../create-new-nodes/step-7-build-and-test.md | 5 + .../create-new-nodes/step-8-run-locally.md | 5 + .../create-new-nodes/step-9-ship-it.md | 5 + docs/contributing/feature-template.md | 1 + docs/deployment/_category_.json | 6 +- docs/deployment/helm-charts.md | 7 + docs/ecosystem/_category_.json | 6 +- docs/ecosystem/repositories.md | 7 + docs/feature-nodes/_category_.json | 6 +- docs/feature-nodes/ai-ml.md | 7 + docs/feature-nodes/base-analytics.md | 7 + docs/feature-nodes/cheminformatics.md | 7 + docs/feature-nodes/knime.md | 9 + docs/getting-started/_category_.json | 6 +- docs/getting-started/local-setup.md | 115 ++- docs/intro.mdx | 78 +- docusaurus.config.ts | 32 + package.json | 2 + src/components/DocBlocks/index.tsx | 103 +++ src/components/DocBlocks/styles.module.css | 213 ++++++ src/css/custom.css | 686 ++++++++++++++++++ src/theme/MDXComponents.tsx | 13 + .../architecture/_category_.json | 6 +- .../architecture/data-format.md | 42 +- .../version-0.0.20/architecture/node-model.md | 37 +- .../version-0.0.20/architecture/overview.md | 103 ++- .../contributing/_category_.json | 6 +- .../create-new-nodes/_category_.json | 2 +- .../contributing/create-new-nodes/overview.md | 12 +- .../create-new-nodes/step-1-root-project.md | 5 + .../create-new-nodes/step-2-feature-module.md | 7 +- .../create-new-nodes/step-3-write-the-node.md | 5 + .../step-4-node-documentation.md | 5 + .../create-new-nodes/step-5-unit-tests.md | 5 + .../create-new-nodes/step-6-worker-module.md | 7 +- .../create-new-nodes/step-7-build-and-test.md | 5 + .../create-new-nodes/step-8-run-locally.md | 5 + .../create-new-nodes/step-9-ship-it.md | 5 + .../contributing/feature-template.md | 1 + .../version-0.0.20/deployment/_category_.json | 6 +- .../version-0.0.20/deployment/helm-charts.md | 7 + .../version-0.0.20/ecosystem/_category_.json | 6 +- .../version-0.0.20/ecosystem/repositories.md | 7 + .../feature-nodes/_category_.json | 6 +- .../version-0.0.20/feature-nodes/ai-ml.md | 7 + .../feature-nodes/base-analytics.md | 7 + .../feature-nodes/cheminformatics.md | 7 + .../version-0.0.20/feature-nodes/knime.md | 9 + .../getting-started/_category_.json | 6 +- .../getting-started/local-setup.md | 115 ++- versioned_docs/version-0.0.20/intro.mdx | 78 +- 65 files changed, 1914 insertions(+), 192 deletions(-) create mode 100644 src/components/DocBlocks/index.tsx create mode 100644 src/components/DocBlocks/styles.module.css create mode 100644 src/theme/MDXComponents.tsx diff --git a/README.md b/README.md index 3d9316a..f3f8a04 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,25 @@ npm run build Generates static content into `build/`. +## Search + +Full-text search uses [`@easyops-cn/docusaurus-search-local`](https://github.com/easyops-cn/docusaurus-search-local). The index is built with the site, so there's no external service or API key. Search only works in a production build (`npm run build && npm run serve`), not with `npm run start`. Press Ctrl/⌘ + K to focus the search box. Results come from the docs version you're reading. + +## Writing docs + +Pages are Markdown with MDX, so besides normal Markdown, admonitions (`:::tip[Title]`) and ` ```mermaid ` diagrams, every page can use these components without importing them ([src/components/DocBlocks](src/components/DocBlocks/index.tsx)): + +| Component | Use it for | +|-----------|------------| +| `` | A larger intro paragraph under the page title | +| `` / `` | A row of small coloured tags | +| `` / `` | Feature or link cards. `doc` takes a doc id and links within the version being viewed; use `href` for external links | +| `` | Wrap a Markdown numbered list to show it as connected, numbered steps | + +Colours: `purple`, `pink`, `amber`, `green`, `cyan`, `blue`, `red`, `lime`. Leave a blank line inside `` and `` so their content is parsed as Markdown. + +Sidebar icons come from a leading emoji in `sidebar_label` or a category `label`. Categories with an emoji also set `link.title` and `link.slug` so the page heading and URL stay clean. + ## Versioning The docs are versioned by **Continuum platform version** and readers pick one from the version dropdown in the navbar. diff --git a/docs/architecture/_category_.json b/docs/architecture/_category_.json index 508533a..9a696ef 100644 --- a/docs/architecture/_category_.json +++ b/docs/architecture/_category_.json @@ -1,8 +1,10 @@ { - "label": "Architecture", + "label": "🏗️ Architecture", "position": 3, "link": { "type": "generated-index", - "description": "How a workflow actually executes, end to end." + "description": "How a workflow actually executes, end to end.", + "title": "Architecture", + "slug": "/category/architecture" } } diff --git a/docs/architecture/data-format.md b/docs/architecture/data-format.md index a328376..e08e086 100644 --- a/docs/architecture/data-format.md +++ b/docs/architecture/data-format.md @@ -1,14 +1,48 @@ --- +sidebar_label: "📦 Data Format" sidebar_position: 3 --- # Data Format + + All data passed between workflow nodes is **Apache Parquet** (Snappy-compressed, Avro schema `DataRow`) — not JSON. This keeps data columnar, compressed, and query-ready from the moment it leaves a node. -- `NodeOutputWriter.OutputPortWriter` writes rows to the node's output port(s). -- `NodeInputReader` reads rows from each connected input port. -- Output files are named `output.{portId}.parquet`; input files `input.{portId}.parquet`. -- Files are staged in a local cache path before upload to (or after download from) MinIO, the platform's S3-compatible object store. + + + + Apache Parquet + Snappy + Avro schema DataRow + + +```mermaid +flowchart LR + A["🧩 Node A
NodeOutputWriter"] -->|"output.{portId}.parquet"| S3[("🗄️ MinIO (S3)")] + S3 -->|"input.{portId}.parquet"| B["🧩 Node B
NodeInputReader"] + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class A,B worker + class S3 store +``` + + + + `NodeOutputWriter.OutputPortWriter` writes rows to the node's output port(s). + + + `NodeInputReader` reads rows from each connected input port. + + + Output files are named `output.{portId}.parquet`; input files `input.{portId}.parquet`. + + + Files are staged in a local cache path before upload to (or after download from) MinIO, the platform's S3-compatible object store. + + +:::tip[Mix and match workers] Because every node reads and writes the same Parquet/Avro format regardless of which worker or language implements it, nodes written in different feature repos — base analytics, cheminformatics, AI/ML — can be freely wired together in the same workflow graph. +::: diff --git a/docs/architecture/node-model.md b/docs/architecture/node-model.md index e9dd55a..bd47aa6 100644 --- a/docs/architecture/node-model.md +++ b/docs/architecture/node-model.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧩 Node Model & Registration" sidebar_position: 2 --- @@ -10,12 +11,16 @@ Every workflow node is defined inside a **feature worker** — an independent se Every node: + + 1. Is annotated `@ContinuumNode` (not just `@Component`) — enforced at build time by a Gradle validation task and at startup by the node activity handler. 2. Extends `ProcessNodeModel` (data nodes) or `TriggerNodeModel` (source nodes). 3. Overrides `inputPorts`, `outputPorts`, and `metadata` (as `ContinuumWorkflowModel.NodeData`). 4. Implements `execute()` — the simple overload for most nodes, or the `ExecutionContext` overload for nodes that need credentials. -```kotlin + + +```kotlin title="MyNodeModel.kt" @ContinuumNode class MyNodeModel : ProcessNodeModel() { override val inputPorts = mapOf("input" to ContinuumWorkflowModel.NodePort(...)) @@ -38,20 +43,34 @@ Node documentation is auto-loaded from `resources//.doc.md` At startup, each worker publishes its available nodes to Kafka so the platform can build a central registry of "which node lives on which worker": -``` -┌──────────────────────┐ Avro binary ┌──────────────────────┐ PostgreSQL -│ Worker (startup) │ ──── Kafka topic ─────► │ Message Bridge │ ────► registered_nodes -│ Discovers all │ FeatureRegistration │ Consumes & upserts │ (nodeId + taskQueue) -│ @ContinuumNode │ │ per node │ -│ beans via Spring │ │ │ -└──────────────────────┘ └──────────────────────┘ +```mermaid +flowchart LR + W["🧩 Worker (startup)
discovers all @ContinuumNode
beans via Spring"] + K["📨 Kafka topic
FeatureRegistration
(Avro binary)"] + B["🔁 Message Bridge
consumes & upserts
per node"] + DB[("🐘 PostgreSQL
registered_nodes
nodeId + taskQueue")] + + W -->|publish| K --> B -->|upsert| DB + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef stream fill:#f59e0b33,stroke:#f59e0b,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class W worker + class K stream + class B core + class DB store ``` + + 1. On `ApplicationReadyEvent`, the worker iterates every `ContinuumNodeModel` bean it has. 2. For each node, it builds a `FeatureRegistrationRequest` — containing `nodeId` (fully-qualified class name), `workerId`, `featureId`, `taskQueue`, a JSON `nodeManifest` (ports, schemas, title, icon), and the node's documentation markdown — and publishes it to Kafka (Avro, keyed by `nodeId`). 3. `continuum-message-bridge` consumes the message and performs an atomic upsert into the `registered_nodes` table. 4. The orchestration service's `InitializeActivity` later queries this registry (via the API server) to resolve which task queue should run each node in a workflow. + + `featureId` is derived by stripping the trailing `.node` package segment from the class name, e.g. `org.projectcontinuum.feature.analytics.node.CreateTableNodeModel` → `org.projectcontinuum.feature.analytics`. `nodeManifest` is kept as an opaque JSON string (not typed Avro fields) so the schema stays forward-compatible as `NodeData` evolves. Registration is one message per node, enabling clean idempotent upserts, and `extensions` (a `map`) is reserved for future fields without breaking schema compatibility. @@ -63,4 +82,6 @@ Nodes that need external secrets (API keys, DB passwords) don't receive them aut - The node's `propertiesUISchema` declares a control with `options.format = "credential"` purely so `continuum-workbench` renders a credential picker in its config dialog — the backend doesn't read this schema. - Inside `execute()`, the node reads its own `properties` to find the configured credential name, then calls `executionContext.getCredential(name)`. This fetches the credential on demand from `continuum-credentials-server` (`GET /api/v1/credentials/{name}`) and deserializes it into `T`, throwing if not found. +:::info[Credentials are never stored in the workflow] Credentials are fetched lazily, per execution — never bundled into the workflow definition or passed through Kafka. +::: diff --git a/docs/architecture/overview.md b/docs/architecture/overview.md index c398536..b743d12 100644 --- a/docs/architecture/overview.md +++ b/docs/architecture/overview.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🗺️ System Overview" sidebar_position: 1 --- @@ -6,39 +7,50 @@ sidebar_position: 1 Continuum is split into a browser frontend, a core backend (API server + Temporal orchestration), and independent feature workers that provide the actual workflow nodes. -``` -┌─────────────────────────────────────────────────────┐ -│ BROWSER (Continuum Workbench) │ -│ Eclipse Theia IDE + React Flow drag-and-drop │ -└──────────────┬────────────────────┬─────────────────┘ - │ REST │ MQTT / WebSocket - ▼ ▼ - ┌────────────────┐ ┌──────────────────┐ - │ API Server │ │ Message Bridge │ - │ │ │ Kafka → MQTT │ - └───────┬────────┘ └────────▲─────────┘ - │ │ - ▼ │ - ┌──────────────┐ ┌────────┴────────┐ - │ Temporal │ │ Kafka │ - │ orchestration │ │ │ - └───────┬───────┘ └────────▲────────┘ - │ dispatches │ events - ▼ │ - ┌──────────────────────────────┐ - │ FEATURE WORKERS │ - │ Base · Cheminformatics · AI │ - └──────────────┬───────────────┘ - │ read / write - ▼ - ┌─────────────────┐ - │ MinIO (S3) │ - │ Parquet files │ - └─────────────────┘ +```mermaid +flowchart TB + subgraph Browser["🖥️ Browser — Continuum Workbench"] + UI["Eclipse Theia IDE + React Flow canvas"] + end + + API["🌐 API Server"] + Bridge["🔁 Message Bridge
Kafka → MQTT"] + Temporal["⏱️ Temporal
orchestration"] + Kafka["📨 Kafka"] + + subgraph Workers["🧩 Feature Workers"] + direction LR + Base["📊 Base"] + Chem["🧪 Cheminformatics"] + AI["🤖 AI / ML"] + end + + MinIO[("🗄️ MinIO (S3)
Parquet files")] + + UI -->|REST| API + Bridge -->|MQTT / WebSocket| UI + API --> Temporal + Temporal -->|dispatches| Workers + Workers -->|events| Kafka + Kafka --> Bridge + Workers <-->|read / write| MinIO + + classDef ui fill:#8b5cf633,stroke:#8b5cf6,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef stream fill:#f59e0b33,stroke:#f59e0b,stroke-width:2px + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class UI ui + class API,Temporal core + class Kafka,Bridge stream + class Base,Chem,AI worker + class MinIO store ``` ## Execution flow + + 1. You design a workflow in the browser (React Flow canvas) and hit **Execute**. 2. `continuum-api-server` receives the REST call and starts a Temporal workflow (`ContinuumWorkflow`, on `WORKFLOW_TASK_QUEUE`). 3. `InitializeActivity` resolves which task queue (= which worker) handles each node, via `POST /api/v1/node-explorer/nodes/task-queues` against the API server's node registry. @@ -48,9 +60,40 @@ Continuum is split into a browser frontend, a core backend (API server + Tempora 7. `continuum-message-bridge` consumes the Kafka event and republishes it to Mosquitto (MQTT). 8. The browser receives the update over MQTT-over-WebSocket and lights up the corresponding node in real time. + + +The same flow as a sequence: + +```mermaid +sequenceDiagram + autonumber + participant B as 🖥️ Browser + participant A as 🌐 API Server + participant T as ⏱️ Temporal + participant W as 🧩 Worker + participant S as 🗄️ MinIO + participant K as 📨 Kafka → MQTT + + B->>A: Execute workflow (REST) + A->>T: Start ContinuumWorkflow + T->>A: InitializeActivity: resolve task queues + loop each unblocked DAG node + T->>W: IContinuumNodeActivity.run() + W->>S: Read input Parquet + W->>S: Write output Parquet + W-->>T: Progress signals + T-->>K: WorkflowUpdateEvent + K-->>B: Node status (MQTT over WebSocket) + end +``` + ## Why this survives crashes -Temporal persists workflow state (in PostgreSQL) at every step. If a worker process dies mid-execution, the orchestration service simply redispatches the pending activity once a worker becomes available again — no data loss, no restart from scratch. This is the "crash-proof execution" promise: a failed Kafka broker, a restarted worker pod, or a dropped network connection doesn't lose workflow progress. +:::tip[Crash-proof by design] +Temporal persists workflow state (in PostgreSQL) at every step. If a worker process dies mid-execution, the orchestration service simply redispatches the pending activity once a worker becomes available again — no data loss, no restart from scratch. +::: + +This is the "crash-proof execution" promise: a failed Kafka broker, a restarted worker pod, or a dropped network connection doesn't lose workflow progress. ## Task queues diff --git a/docs/contributing/_category_.json b/docs/contributing/_category_.json index 0e8f2f2..12e8635 100644 --- a/docs/contributing/_category_.json +++ b/docs/contributing/_category_.json @@ -1,8 +1,10 @@ { - "label": "Contributing", + "label": "🤝 Contributing", "position": 7, "link": { "type": "generated-index", - "description": "Add your own workflow nodes to Project Continuum." + "description": "Add your own workflow nodes to Project Continuum.", + "title": "Contributing", + "slug": "/category/contributing" } } diff --git a/docs/contributing/create-new-nodes/_category_.json b/docs/contributing/create-new-nodes/_category_.json index 0deb03f..d62cb64 100644 --- a/docs/contributing/create-new-nodes/_category_.json +++ b/docs/contributing/create-new-nodes/_category_.json @@ -1,5 +1,5 @@ { - "label": "Create New Nodes", + "label": "🛠️ Create New Nodes", "position": 2, "link": { "type": "doc", diff --git a/docs/contributing/create-new-nodes/overview.md b/docs/contributing/create-new-nodes/overview.md index fbc11d2..7c53887 100644 --- a/docs/contributing/create-new-nodes/overview.md +++ b/docs/contributing/create-new-nodes/overview.md @@ -9,9 +9,15 @@ slug: /contributing/create-new-nodes This guide walks you through building a **feature worker** with your own workflow node, from an empty folder to a passing build and a worker that registers its node with the platform. The running example is a **Word Counter** node that counts the words in a text column and appends the count as a new column. + + Kotlin + Gradle + 9 steps + Platform 0.0.20 + + You need to know some Kotlin and Gradle. You don't need to know Temporal, Kafka or Spring internals; the Continuum Gradle plugins and the worker starter handle those. -:::info Versions used in this guide +:::info[Versions used in this guide] Verified against **Continuum platform `0.0.20`** (Spring Boot 4.0.6, Kotlin 2.2, Jackson 3, Gradle 8.14, JDK 21). Check [Maven Central](https://central.sonatype.com/artifact/org.projectcontinuum.core/continuum-commons) for the latest platform version, and use the same version everywhere in your project. ::: @@ -45,6 +51,8 @@ You **don't** need a GitHub token. All Continuum artifacts and Gradle plugins ar ## The steps + + 1. [Create the root project](./step-1-root-project.md) 2. [Create the feature module](./step-2-feature-module.md) 3. [Write the node](./step-3-write-the-node.md) @@ -55,4 +63,6 @@ You **don't** need a GitHub token. All Continuum artifacts and Gradle plugins ar 8. [Run the worker against the local stack](./step-8-run-locally.md) 9. [Ship it](./step-9-ship-it.md) + + If something goes wrong along the way, see [Troubleshooting](./troubleshooting.md). diff --git a/docs/contributing/create-new-nodes/step-1-root-project.md b/docs/contributing/create-new-nodes/step-1-root-project.md index b1a7951..084424a 100644 --- a/docs/contributing/create-new-nodes/step-1-root-project.md +++ b/docs/contributing/create-new-nodes/step-1-root-project.md @@ -6,6 +6,11 @@ title: "Step 1: Create the root project" # Step 1: Create the root project + + Step 1 of 9 + 11% through the guide + + Create the folder and add a Gradle wrapper. If Gradle is installed, run `gradle wrapper --gradle-version 8.14`. Otherwise, copy `gradlew`, `gradlew.bat` and `gradle/wrapper/` from an existing feature repo such as `continuum-feature-base`. **`gradle.properties`** diff --git a/docs/contributing/create-new-nodes/step-2-feature-module.md b/docs/contributing/create-new-nodes/step-2-feature-module.md index 44f03ed..77d01b7 100644 --- a/docs/contributing/create-new-nodes/step-2-feature-module.md +++ b/docs/contributing/create-new-nodes/step-2-feature-module.md @@ -6,6 +6,11 @@ title: "Step 2: Create the feature module" # Step 2: Create the feature module + + Step 2 of 9 + 22% through the guide + + **`features/continuum-feature-demo/build.gradle.kts`** ```kotlin @@ -22,7 +27,7 @@ continuum { } ``` -:::warning Always set `continuumVersion` +:::warning[Always set `continuumVersion`] If you leave out the `continuum { }` block, the plugin falls back to a built-in default version that is older than the plugin itself. Read the value from `gradle.properties` so plugins and libraries always match. ::: diff --git a/docs/contributing/create-new-nodes/step-3-write-the-node.md b/docs/contributing/create-new-nodes/step-3-write-the-node.md index c978c03..6a2f9b0 100644 --- a/docs/contributing/create-new-nodes/step-3-write-the-node.md +++ b/docs/contributing/create-new-nodes/step-3-write-the-node.md @@ -6,6 +6,11 @@ title: "Step 3: Write the node" # Step 3: Write the node + + Step 3 of 9 + 33% through the guide + + Put node classes in a `.node` subpackage. The platform derives your **feature ID** by removing the trailing `.node` segment from the class name. For example, `org.projectcontinuum.feature.demo.node.WordCounterNodeModel` gets the feature ID `org.projectcontinuum.feature.demo`. **`src/main/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModel.kt`** diff --git a/docs/contributing/create-new-nodes/step-4-node-documentation.md b/docs/contributing/create-new-nodes/step-4-node-documentation.md index 6262afa..e06e3d8 100644 --- a/docs/contributing/create-new-nodes/step-4-node-documentation.md +++ b/docs/contributing/create-new-nodes/step-4-node-documentation.md @@ -6,6 +6,11 @@ title: "Step 4: Add node documentation" # Step 4: Add node documentation + + Step 4 of 9 + 44% through the guide + + Each node has a Markdown help page that the workbench shows next to it. It's loaded from the classpath on startup, at a path that matches the node's package and class name exactly: ```text diff --git a/docs/contributing/create-new-nodes/step-5-unit-tests.md b/docs/contributing/create-new-nodes/step-5-unit-tests.md index 4a8c358..fac9946 100644 --- a/docs/contributing/create-new-nodes/step-5-unit-tests.md +++ b/docs/contributing/create-new-nodes/step-5-unit-tests.md @@ -6,6 +6,11 @@ title: "Step 5: Write unit tests" # Step 5: Write unit tests + + Step 5 of 9 + 56% through the guide + + `execute()` only depends on its arguments, so you can test it with Mockito mocks and no Spring context: **`src/test/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModelTest.kt`** diff --git a/docs/contributing/create-new-nodes/step-6-worker-module.md b/docs/contributing/create-new-nodes/step-6-worker-module.md index 3748d25..48343e7 100644 --- a/docs/contributing/create-new-nodes/step-6-worker-module.md +++ b/docs/contributing/create-new-nodes/step-6-worker-module.md @@ -6,6 +6,11 @@ title: "Step 6: Create the worker module" # Step 6: Create the worker module + + Step 6 of 9 + 67% through the guide + + **`worker/build.gradle.kts`** ```kotlin @@ -74,7 +79,7 @@ logging: org.projectcontinuum.feature.demo: debug ``` -:::danger Give every worker a unique task queue +:::danger[Give every worker a unique task queue] If `node-task-queue` isn't set, a worker listens on the shared default queue `ACTIVITY_TASK_QUEUE`. When two workers share a queue, Temporal can send a node to a worker that doesn't have it, and the node fails. Every shipped worker sets its own queue (for example `CONTINUUM_FEATURE_BASE_TASK_QUEUE`), and yours must too. The worker sends its queue name in its registration message, so the orchestrator knows where to route your nodes. ::: diff --git a/docs/contributing/create-new-nodes/step-7-build-and-test.md b/docs/contributing/create-new-nodes/step-7-build-and-test.md index dc63809..664368f 100644 --- a/docs/contributing/create-new-nodes/step-7-build-and-test.md +++ b/docs/contributing/create-new-nodes/step-7-build-and-test.md @@ -6,6 +6,11 @@ title: "Step 7: Build and test" # Step 7: Build and test + + Step 7 of 9 + 78% through the guide + + ```bash ./gradlew build ``` diff --git a/docs/contributing/create-new-nodes/step-8-run-locally.md b/docs/contributing/create-new-nodes/step-8-run-locally.md index ac18d89..6682dc3 100644 --- a/docs/contributing/create-new-nodes/step-8-run-locally.md +++ b/docs/contributing/create-new-nodes/step-8-run-locally.md @@ -6,6 +6,11 @@ title: "Step 8: Run the worker against the local stack" # Step 8: Run the worker against the local stack + + Step 8 of 9 + 89% through the guide + + 1. Start the platform with the [Local Setup](../../getting-started/local-setup.md) compose file and wait until every service is healthy. 2. Start your worker: diff --git a/docs/contributing/create-new-nodes/step-9-ship-it.md b/docs/contributing/create-new-nodes/step-9-ship-it.md index 8af4000..6e4ceba 100644 --- a/docs/contributing/create-new-nodes/step-9-ship-it.md +++ b/docs/contributing/create-new-nodes/step-9-ship-it.md @@ -6,6 +6,11 @@ title: "Step 9: Ship it" # Step 9: Ship it + + Step 9 of 9 + 100% through the guide + + - **Container image:** set `jibToImage` in `worker/build.gradle.kts` and run `./gradlew :worker:jib`. Jib reads registry credentials from `DOCKER_REPO_USERNAME` / `DOCKER_REPO_PASSWORD`. The base image defaults to `eclipse-temurin:21-jre` and can be changed with `jibFromImage`. - **Kubernetes:** deploy the worker as its own release in the platform's namespace and set the [environment variables](./step-6-worker-module.md#environment-variables) from Step 6, including a unique `CONTINUUM_NODE_TASK_QUEUE`. The charts in the existing feature repos (for example `continuum-feature-base/charts/`) are a working reference. See [Deployment](../../deployment/helm-charts.md). - **Publishing feature modules:** the plugins configure Maven Central publishing through JReleaser by default. If you don't publish libraries, set `publishToMavenCentral.set(false)` in the `continuum { }` block. diff --git a/docs/contributing/feature-template.md b/docs/contributing/feature-template.md index 6e63fb4..6a8239b 100644 --- a/docs/contributing/feature-template.md +++ b/docs/contributing/feature-template.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧱 Scaffolding a Worker" sidebar_position: 1 slug: /contributing --- diff --git a/docs/deployment/_category_.json b/docs/deployment/_category_.json index 5c2d01a..5f3fe75 100644 --- a/docs/deployment/_category_.json +++ b/docs/deployment/_category_.json @@ -1,8 +1,10 @@ { - "label": "Deployment", + "label": "☸️ Deployment", "position": 5, "link": { "type": "generated-index", - "description": "Running Continuum on Kubernetes with Helm." + "description": "Running Continuum on Kubernetes with Helm.", + "title": "Deployment", + "slug": "/category/deployment" } } diff --git a/docs/deployment/helm-charts.md b/docs/deployment/helm-charts.md index 9842ee7..9484185 100644 --- a/docs/deployment/helm-charts.md +++ b/docs/deployment/helm-charts.md @@ -1,4 +1,5 @@ --- +sidebar_label: "⎈ Helm Charts" sidebar_position: 1 --- @@ -6,6 +7,12 @@ sidebar_position: 1 [`continuum-charts`](https://github.com/projectcontinuum-org/continuum-charts) publishes three Helm charts for deploying Continuum on Kubernetes, served as a standard Helm chart repository via GitHub Pages. + + Kubernetes + 3 charts + GitHub Pages Helm repo + + | Chart | Description | Required | |-------|-------------|----------| | `continuum-infra` | Core infrastructure — PostgreSQL, Temporal, Kafka, Schema Registry, Kafka UI, Mosquitto, MinIO | Yes | diff --git a/docs/ecosystem/_category_.json b/docs/ecosystem/_category_.json index 03d9431..649bbc2 100644 --- a/docs/ecosystem/_category_.json +++ b/docs/ecosystem/_category_.json @@ -1,8 +1,10 @@ { - "label": "Ecosystem", + "label": "🌐 Ecosystem", "position": 4, "link": { "type": "generated-index", - "description": "The repositories that make up Project Continuum." + "description": "The repositories that make up Project Continuum.", + "title": "Ecosystem", + "slug": "/category/ecosystem" } } diff --git a/docs/ecosystem/repositories.md b/docs/ecosystem/repositories.md index f87334a..ca1b5b0 100644 --- a/docs/ecosystem/repositories.md +++ b/docs/ecosystem/repositories.md @@ -1,4 +1,5 @@ --- +sidebar_label: "📚 Repositories" sidebar_position: 1 slug: /ecosystem --- @@ -7,6 +8,12 @@ slug: /ecosystem Project Continuum is split across several focused repositories under the [`projectcontinuum-org`](https://github.com/projectcontinuum-org) GitHub organization — not a monorepo. Each one can be built and released independently. + + Multi-repo + Independently released + Apache 2.0 + + | Repository | Description | |-----------|-------------| | [continuum-platform-core](https://github.com/projectcontinuum-org/continuum-platform-core) | Core backend — API server, Temporal orchestration, message bridge, credentials server, cluster manager, cloud gateway | diff --git a/docs/feature-nodes/_category_.json b/docs/feature-nodes/_category_.json index 0c6b477..a92e60a 100644 --- a/docs/feature-nodes/_category_.json +++ b/docs/feature-nodes/_category_.json @@ -1,8 +1,10 @@ { - "label": "Feature Nodes", + "label": "🧰 Feature Nodes", "position": 6, "link": { "type": "generated-index", - "description": "What you can build with today — nodes shipped by each feature worker." + "description": "What you can build with today — nodes shipped by each feature worker.", + "title": "Feature Nodes", + "slug": "/category/feature-nodes" } } diff --git a/docs/feature-nodes/ai-ml.md b/docs/feature-nodes/ai-ml.md index 62fbac8..25456b6 100644 --- a/docs/feature-nodes/ai-ml.md +++ b/docs/feature-nodes/ai-ml.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🤖 AI / ML" sidebar_position: 2 --- @@ -6,6 +7,12 @@ sidebar_position: 2 [`continuum-feature-ai`](https://github.com/projectcontinuum-org/continuum-feature-ai) provides nodes for training and fine-tuning LLMs directly inside workflow graphs. Ships as a Spring Boot worker with an auto-managed Python virtual environment for ML execution. + + LLM fine-tuning + Unsloth + LoRA + Managed Python venv + + ## LLM Trainer (Unsloth) Fine-tune large language models using LoRA (Low-Rank Adaptation) with Unsloth acceleration. diff --git a/docs/feature-nodes/base-analytics.md b/docs/feature-nodes/base-analytics.md index 479f8cf..e3f1c68 100644 --- a/docs/feature-nodes/base-analytics.md +++ b/docs/feature-nodes/base-analytics.md @@ -1,4 +1,5 @@ --- +sidebar_label: "📊 Base Analytics" sidebar_position: 1 --- @@ -6,6 +7,12 @@ sidebar_position: 1 [`continuum-feature-base`](https://github.com/projectcontinuum-org/continuum-feature-base) ships 16 production-ready nodes for data transformation, filtering, aggregation, REST integration, scripting, and anomaly detection. + + 16 nodes + Kotlin / Spring Boot + Data · Transform · Filter · REST · Scripting + + | Category | Node | Description | |----------|------|-------------| | Data | Create Table | Creates a structured table from FreeMarker template configuration | diff --git a/docs/feature-nodes/cheminformatics.md b/docs/feature-nodes/cheminformatics.md index 3892002..be66312 100644 --- a/docs/feature-nodes/cheminformatics.md +++ b/docs/feature-nodes/cheminformatics.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧪 Cheminformatics" sidebar_position: 3 --- @@ -6,6 +7,12 @@ sidebar_position: 3 [`continuum-feature-cheminformatics`](https://github.com/projectcontinuum-org/continuum-feature-cheminformatics) ships 38 production-grade cheminformatics nodes across 10 categories, powered by [RDKit](https://www.rdkit.org/). Built for computational chemistry, medicinal chemistry, and drug discovery teams who need scalable, reproducible molecular processing pipelines — parse, standardize, fingerprint, filter, react, and visualize molecules at scale. + + 38 nodes + 10 categories + Powered by RDKit + + ## Node categories | Category | Example nodes | diff --git a/docs/feature-nodes/knime.md b/docs/feature-nodes/knime.md index de1f7e3..de2780a 100644 --- a/docs/feature-nodes/knime.md +++ b/docs/feature-nodes/knime.md @@ -1,9 +1,18 @@ --- +sidebar_label: "🔶 KNIME" sidebar_position: 4 +description: "continuum-feature-knime runs KNIME workflows (.knwf) on Continuum." --- # KNIME Nodes + + 🚧 Node reference coming soon + .knwf workflows + + [`continuum-feature-knime`](https://github.com/projectcontinuum-org/continuum-feature-knime) provides Continuum workflow executors for KNIME workflows (`.knwf` files), bridging KNIME's compatibility layer (`continuum-knime-base` in `continuum-platform-core`) with Continuum's execution model. +:::note This worker doesn't yet have a published node reference — check the [repository](https://github.com/projectcontinuum-org/continuum-feature-knime) directly for current capabilities. +::: diff --git a/docs/getting-started/_category_.json b/docs/getting-started/_category_.json index 61031a5..5da8490 100644 --- a/docs/getting-started/_category_.json +++ b/docs/getting-started/_category_.json @@ -1,8 +1,10 @@ { - "label": "Getting Started", + "label": "🚀 Getting Started", "position": 2, "link": { "type": "generated-index", - "description": "Run the entire Continuum platform locally with one command." + "description": "Run the entire Continuum platform locally with one command.", + "title": "Getting Started", + "slug": "/category/getting-started" } } diff --git a/docs/getting-started/local-setup.md b/docs/getting-started/local-setup.md index 6e6043c..4f86992 100644 --- a/docs/getting-started/local-setup.md +++ b/docs/getting-started/local-setup.md @@ -1,39 +1,55 @@ --- +sidebar_label: "🐳 Local Setup" sidebar_position: 1 --- # Local Setup + + The [`continuum-local-setup`](https://github.com/projectcontinuum-org/continuum-local-setup) repo gives you a single `docker compose up` that launches the **complete** Project Continuum stack — infrastructure services, platform backend, browser IDE, and feature workers — all wired together and ready to go. + + + + 🐳 Docker only + No builds + + No builds. No cloning five repos. Just Docker. ## Prerequisites -| Requirement | Minimum | -|-------------|---------| -| Docker | 20.10+ | -| Docker Compose | v2.0+ | -| RAM | 8 GB available for containers | -| Disk | ~5 GB for images + volumes | + + 20.10+ + v2.0+ + 8 GB available for containers + ~5 GB for images + volumes + ## Quick start -```bash -git clone https://github.com/projectcontinuum-org/continuum-local-setup.git -cd continuum-local-setup/docker -docker compose up -d -``` + -Wait for all containers to become healthy, then open the [Continuum Workbench](http://127.0.0.1:3002/#/home/node/example-workflows). Example workflows are pre-loaded under `/home/node/example-workflows/`. +1. Clone the repo and start the stack: -Verify everything is running: + ```bash + git clone https://github.com/projectcontinuum-org/continuum-local-setup.git + cd continuum-local-setup/docker + docker compose up -d + ``` -```bash -docker compose ps -``` +2. Verify everything is running: + + ```bash + docker compose ps + ``` + + All services should show `running` (the `temporal-search-attributes-init` container exits after setup — that's expected). -All services should show `running` (the `temporal-search-attributes-init` container exits after setup — that's expected). +3. Open the [Continuum Workbench](http://127.0.0.1:3002/#/home/node/example-workflows). Example workflows are pre-loaded under `/home/node/example-workflows/`. + + Stop everything: @@ -46,6 +62,35 @@ docker compose down -v # also remove volumes The compose stack has three layers: infrastructure, platform services, and feature workers. +```mermaid +flowchart LR + subgraph Workers["🧩 Feature workers"] + FB["continuum-feature-base"] + FC["continuum-feature-cheminformatics"] + end + subgraph Platform["🌐 Platform services"] + WB["continuum-workbench"] + API["continuum-api-server"] + MB["continuum-message-bridge"] + end + subgraph Infra["🏗️ Infrastructure"] + PG[("PostgreSQL")] + T["Temporal"] + K["Kafka + Schema Registry"] + MQ["Mosquitto"] + S3[("MinIO")] + end + Workers --> Platform --> Infra + Workers --> Infra + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class FB,FC worker + class WB,API,MB core + class PG,T,K,MQ,S3 store +``` + ### Infrastructure services | Service | Port | Purpose | @@ -80,21 +125,37 @@ Want AI nodes? Add the `continuum-feature-ai` worker image to the compose file f The `docker/example-workflows/` directory is mounted into the workbench container: -| Workflow | What it demonstrates | -|----------|---------------------| -| `SensorDataPipeline.cwf` | IoT sensor data → anomaly detection → conditional routing → batch alerts via REST | -| `AnomalyDetector.cwf` | Z-score anomaly detection with conditional splitting | -| `RESTNode.cwf` | Making HTTP requests to external APIs from a workflow | -| `Unsloth.cwf` | LLM fine-tuning configuration (requires the AI worker) | + + + IoT sensor data → anomaly detection → conditional routing → batch alerts via REST + + + Z-score anomaly detection with conditional splitting + + + Making HTTP requests to external APIs from a workflow + + + LLM fine-tuning configuration (requires the AI worker) + + ## Troubleshooting -**Containers keep restarting?** Check logs: `docker compose logs --tail 100` +:::warning[Containers keep restarting?] +Check logs: `docker compose logs --tail 100` +::: -**Temporal not starting?** PostgreSQL needs to be healthy first — give it 30–60 seconds on first run. +:::info[Temporal not starting?] +PostgreSQL needs to be healthy first — give it 30–60 seconds on first run. +::: -**Workbench shows connection errors?** The API server may still be starting. Wait until `docker compose ps` shows all services as `running`. +:::info[Workbench shows connection errors?] +The API server may still be starting. Wait until `docker compose ps` shows all services as `running`. +::: -**Out of memory?** Kafka + Temporal + all services need ~6–8 GB. Increase Docker's memory limit in Docker Desktop settings. +:::danger[Out of memory?] +Kafka + Temporal + all services need ~6–8 GB. Increase Docker's memory limit in Docker Desktop settings. +::: See the full [continuum-local-setup README](https://github.com/projectcontinuum-org/continuum-local-setup) for more detail. diff --git a/docs/intro.mdx b/docs/intro.mdx index 9fb8cf0..bf039a8 100644 --- a/docs/intro.mdx +++ b/docs/intro.mdx @@ -1,29 +1,85 @@ --- sidebar_position: 1 slug: /intro +sidebar_label: 👋 Introduction --- # Introduction + + Project Continuum is an open-source, browser-native visual workflow platform — inspired by [KNIME](https://www.knime.com/), built for the cloud. You design workflows as a drag-and-drop graph of nodes, and the platform runs them durably: a crashed worker, a dead Kafka broker, or a dropped connection doesn't lose your progress. -Apache 2.0 licensed. No desktop install — the entire IDE runs in your browser. + + + + Apache 2.0 + Browser-native IDE + Powered by Temporal + Parquet data passing + + +No desktop install — the entire IDE runs in your browser. ## Why Continuum -- **Browser-native canvas** — a full IDE experience (Eclipse Theia + React Flow) with zero install. -- **Crash-proof execution** — powered by [Temporal](https://temporal.io), workflows survive process crashes, network failures, and restarts. Every step retries automatically. -- **Real-time streaming** — watch workflows execute step-by-step. Kafka streams events to your browser via MQTT over WebSockets. No polling, no refresh. -- **Columnar data passing** — nodes exchange Apache Parquet tables, not JSON blobs. Fast, compressed, query-ready. -- **Extensible by design** — add capabilities by deploying new worker services, not by modifying existing ones. Zero downtime, zero coupling. + + + A full IDE experience (Eclipse Theia + React Flow) with zero install. + + + Powered by [Temporal](https://temporal.io), workflows survive process crashes, network failures, and restarts. Every step retries automatically. + + + Watch workflows execute step-by-step. Kafka streams events to your browser via MQTT over WebSockets. No polling, no refresh. + + + Nodes exchange Apache Parquet tables, not JSON blobs. Fast, compressed, query-ready. + + + Add capabilities by deploying new worker services, not by modifying existing ones. Zero downtime, zero coupling. + + + Apache 2.0 licensed, from the workbench to the workers. + + ## How it fits together -A workflow is a directed graph of nodes. Each node runs as a Temporal activity dispatched to whichever feature worker registered it — base analytics, cheminformatics, AI/ML, or your own custom worker. See [Architecture Overview](./architecture/overview.md) for the full execution path. +A workflow is a directed graph of nodes. Each node runs as a Temporal activity dispatched to whichever feature worker registered it — base analytics, cheminformatics, AI/ML, or your own custom worker. + +```mermaid +flowchart LR + UI["🖥️ Workbench
(browser)"] -->|Execute| API["API Server"] + API --> T["⏱️ Temporal"] + T -->|dispatch node| W1["📊 Base Analytics"] + T -->|dispatch node| W2["🧪 Cheminformatics"] + T -->|dispatch node| W3["🤖 AI / ML"] + T -->|dispatch node| W4["🧩 Your worker"] + + classDef ui fill:#8b5cf633,stroke:#8b5cf6,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + class UI ui + class API,T core + class W1,W2,W3,W4 worker +``` + +See [Architecture Overview](./architecture/overview.md) for the full execution path. ## Where to go next -- [Getting Started](./getting-started/local-setup.md) — run the whole platform locally with one `docker compose up`. -- [Architecture](./architecture/overview.md) — how a workflow actually executes, end to end. -- [Feature Nodes](./feature-nodes/base-analytics.md) — what you can build with today. -- [Deployment](./deployment/helm-charts.md) — running Continuum on Kubernetes. + + + Run the whole platform locally with one `docker compose up`. + + + How a workflow actually executes, end to end. + + + What you can build with today. + + + Running Continuum on Kubernetes. + + diff --git a/docusaurus.config.ts b/docusaurus.config.ts index e0b7d92..9a245ea 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -33,6 +33,33 @@ const config: Config = { locales: ['en'], }, + markdown: { + mermaid: true, + }, + themes: [ + '@docusaurus/theme-mermaid', + [ + // Offline full-text search: the index is built with the site, no external service. + // Each docs version gets its own index; results follow the version being read. + '@easyops-cn/docusaurus-search-local', + { + hashed: true, + indexDocs: true, + indexBlog: false, + indexPages: true, + docsRouteBasePath: '/docs', + highlightSearchTermsOnTargetPage: true, + explicitSearchResultPath: true, + searchResultLimits: 10, + searchResultContextMaxLength: 60, + searchBarShortcutHint: true, + searchBarPosition: 'right', + // The breadcrumbs and version badge would otherwise pollute every result snippet. + ignoreCssSelectors: ['.theme-doc-breadcrumbs', '.theme-doc-version-badge', '.theme-doc-version-banner'], + }, + ], + ], + presets: [ [ 'classic', @@ -132,6 +159,11 @@ const config: Config = { prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, + additionalLanguages: ['kotlin', 'bash', 'yaml', 'json'], + }, + // Diagrams colour their nodes with translucent classDefs so they read in both modes. + mermaid: { + theme: {light: 'default', dark: 'dark'}, }, } satisfies Preset.ThemeConfig, }; diff --git a/package.json b/package.json index 999a612..2663ab2 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ "@docusaurus/core": "3.10.2", "@docusaurus/faster": "3.10.2", "@docusaurus/preset-classic": "3.10.2", + "@docusaurus/theme-mermaid": "^3.10.2", + "@easyops-cn/docusaurus-search-local": "^0.55.3", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "prism-react-renderer": "^2.3.0", diff --git a/src/components/DocBlocks/index.tsx b/src/components/DocBlocks/index.tsx new file mode 100644 index 0000000..e1f362b --- /dev/null +++ b/src/components/DocBlocks/index.tsx @@ -0,0 +1,103 @@ +/** + * Building blocks for doc pages, registered globally in src/theme/MDXComponents.tsx + * so any .md/.mdx page can use them without imports. + */ +import type {CSSProperties, ReactNode} from 'react'; +import clsx from 'clsx'; +import Link from '@docusaurus/Link'; +import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client'; + +import styles from './styles.module.css'; + +const PALETTE = { + purple: ['#8b5cf6', '#6366f1'], + pink: ['#ec4899', '#8b5cf6'], + amber: ['#f59e0b', '#f97316'], + green: ['#10b981', '#06b6d4'], + cyan: ['#06b6d4', '#3b82f6'], + blue: ['#3b82f6', '#6366f1'], + red: ['#ef4444', '#f59e0b'], + lime: ['#84cc16', '#10b981'], +} as const; + +export type Color = keyof typeof PALETTE; + +function accent(color: Color = 'purple'): CSSProperties { + const [a, b] = PALETTE[color]; + return {'--accent': a, '--accent2': b} as CSSProperties; +} + +/** Resolves a doc id to its URL in the docs version currently being viewed. */ +function useDocPath(docId?: string): string | undefined { + const {activeVersion} = useActiveDocContext(undefined); + if (!docId) { + return undefined; + } + const doc = activeVersion?.docs.find((d) => d.id === docId); + if (!doc) { + throw new Error(`DocBlocks: no doc with id "${docId}" in version "${activeVersion?.name}"`); + } + return doc.path; +} + +/** Larger intro paragraph shown under the page title. */ +export function Lead({children}: {children: ReactNode}) { + return
{children}
; +} + +/** Row of small coloured badges, e.g. versions or node counts. */ +export function Badges({children}: {children: ReactNode}) { + return
{children}
; +} + +export function Badge({color = 'purple', children}: {color?: Color; children: ReactNode}) { + return ( + + {children} + + ); +} + +/** Responsive grid of cards. */ +export function CardGrid({cols = 2, children}: {cols?: 2 | 3 | 4; children: ReactNode}) { + return
{children}
; +} + +type CardProps = { + title: string; + /** Emoji or short text shown in the gradient badge. */ + icon?: string; + color?: Color; + /** Doc id (for example `getting-started/local-setup`), resolved in the current docs version. */ + doc?: string; + /** External URL. Use `doc` for links inside the docs. */ + href?: string; + children?: ReactNode; +}; + +export function Card({title, icon, color = 'purple', doc, href, children}: CardProps) { + const docPath = useDocPath(doc); + const target = docPath ?? href; + const body = ( + <> + {icon && {icon}} + {title} + {children &&
{children}
} + {target && {docPath ? 'Read more →' : 'Open ↗'}} + + ); + return target ? ( + + {body} + + ) : ( +
+ {body} +
+ ); +} + +/** Wrap a Markdown ordered list to render it as numbered, connected steps. */ +export function Steps({children}: {children: ReactNode}) { + return
{children}
; +} diff --git a/src/components/DocBlocks/styles.module.css b/src/components/DocBlocks/styles.module.css new file mode 100644 index 0000000..c15fbd1 --- /dev/null +++ b/src/components/DocBlocks/styles.module.css @@ -0,0 +1,213 @@ +/* Each block reads --accent / --accent2, set inline from its `color` prop. */ + +.lead { + margin: -0.5rem 0 1.75rem; + font-size: 1.18rem; + line-height: 1.65; + color: var(--ifm-color-emphasis-700); +} + +.lead > p:last-child { + margin-bottom: 0; +} + +/* ---- Badges ---- */ + +.badges { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + margin: -0.5rem 0 1.5rem; +} + +.badge { + display: inline-flex; + align-items: center; + gap: 0.35rem; + padding: 0.2rem 0.75rem; + border-radius: 999px; + font-size: 0.8rem; + font-weight: 600; + color: var(--accent); + background: color-mix(in srgb, var(--accent) 11%, transparent); + border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); +} + +[data-theme='dark'] .badge { + color: color-mix(in srgb, var(--accent) 60%, white); +} + +/* ---- Cards ---- */ + +.cardGrid { + display: grid; + gap: 1rem; + margin: 1.25rem 0 2rem; +} + +.cols2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.cols3 { + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + +.cols4 { + grid-template-columns: repeat(4, minmax(0, 1fr)); +} + +.card { + position: relative; + display: flex; + flex-direction: column; + padding: 1.25rem 1.3rem 1.2rem; + border-radius: 16px; + background: var(--continuum-card-bg); + border: 1px solid var(--continuum-card-border); + box-shadow: var(--continuum-card-shadow); + color: var(--ifm-font-color-base); + overflow: hidden; + transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s; +} + +.card::before { + content: ''; + position: absolute; + inset: 0 0 auto 0; + height: 3px; + background: linear-gradient(90deg, var(--accent), var(--accent2)); +} + +.cardLink:hover { + color: var(--ifm-font-color-base); + text-decoration: none; + transform: translateY(-3px); + border-color: color-mix(in srgb, var(--accent) 45%, transparent); + box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 22%, transparent); +} + +.cardIcon { + display: inline-flex; + align-items: center; + justify-content: center; + width: 42px; + height: 42px; + margin-bottom: 0.85rem; + border-radius: 12px; + font-size: 1.3rem; + background: linear-gradient(135deg, var(--accent), var(--accent2)); + box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); +} + +.cardTitle { + font-size: 1.05rem; + font-weight: 700; + margin-bottom: 0.35rem; +} + +.cardBody { + flex: 1; + font-size: 0.93rem; + line-height: 1.55; + color: var(--ifm-color-emphasis-700); +} + +.cardBody > :last-child { + margin-bottom: 0; +} + +.cardBody code { + font-size: 0.85em; +} + +.cardMore { + margin-top: 0.8rem; + font-size: 0.88rem; + font-weight: 600; + color: var(--accent); +} + +[data-theme='dark'] .cardMore { + color: color-mix(in srgb, var(--accent) 65%, white); +} + +/* ---- Steps ---- */ + +.steps > ol { + counter-reset: step; + list-style: none; + padding-left: 0; + margin: 1.25rem 0 2rem; +} + +.steps > ol > li { + counter-increment: step; + position: relative; + padding: 0 0 1.4rem 3.4rem; + margin: 0; +} + +.steps > ol > li::before { + content: counter(step); + position: absolute; + left: 0; + top: -0.1rem; + display: flex; + align-items: center; + justify-content: center; + width: 2.2rem; + height: 2.2rem; + border-radius: 50%; + font-weight: 800; + font-size: 0.95rem; + color: #fff; + background: linear-gradient(135deg, #8b5cf6, #ec4899); + box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35); +} + +.steps > ol > li:nth-child(4n + 2)::before { + background: linear-gradient(135deg, #6366f1, #06b6d4); + box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35); +} + +.steps > ol > li:nth-child(4n + 3)::before { + background: linear-gradient(135deg, #10b981, #06b6d4); + box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); +} + +.steps > ol > li:nth-child(4n + 4)::before { + background: linear-gradient(135deg, #f59e0b, #ec4899); + box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35); +} + +/* Connector line between step numbers. */ +.steps > ol > li:not(:last-child)::after { + content: ''; + position: absolute; + left: 1.07rem; + top: 2.3rem; + bottom: 0.15rem; + width: 2px; + border-radius: 1px; + background: linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(236, 72, 153, 0.15)); +} + +.steps > ol > li > :last-child { + margin-bottom: 0; +} + +@media screen and (max-width: 996px) { + .cols3, + .cols4 { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media screen and (max-width: 600px) { + .cols2, + .cols3, + .cols4 { + grid-template-columns: 1fr; + } +} diff --git a/src/css/custom.css b/src/css/custom.css index 4040529..79f4a38 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -15,6 +15,28 @@ --ifm-color-primary-lightest: #a894c4; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); + + /* Accents shared with the landing page. */ + --continuum-violet: #7c3aed; + --continuum-pink: #db2777; + --continuum-cyan: #06b6d4; + --continuum-gradient: linear-gradient(90deg, #7c3aed, #db2777); + --continuum-gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(219, 39, 119, 0.06)); + + --continuum-card-bg: #ffffff; + --continuum-card-border: rgba(112, 86, 151, 0.16); + --continuum-card-shadow: 0 1px 2px rgba(17, 12, 46, 0.04), 0 6px 20px rgba(17, 12, 46, 0.05); + --continuum-table-head: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(219, 39, 119, 0.08)); + --continuum-table-stripe: rgba(112, 86, 151, 0.035); + --continuum-table-border: rgba(112, 86, 151, 0.16); + --continuum-inline-code-bg: rgba(124, 58, 237, 0.08); + --continuum-inline-code-color: #6d28d9; + + --ifm-table-cell-padding: 0.65rem 0.9rem; + --ifm-code-border-radius: 0.4rem; + --ifm-pre-border-radius: 12px; + --ifm-alert-border-radius: 12px; + --ifm-card-border-radius: 16px; } /* For readability concerns, you should choose a lighter palette in dark mode. */ @@ -27,4 +49,668 @@ --ifm-color-primary-lighter: #ddcbff; --ifm-color-primary-lightest: #ecdfff; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + + --ifm-background-color: #0e0d1c; + --ifm-background-surface-color: #13122a; + --ifm-navbar-background-color: rgba(14, 13, 28, 0.82); + + --continuum-gradient: linear-gradient(90deg, #a78bfa, #f472b6); + --continuum-gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.08)); + + --continuum-card-bg: #16152e; + --continuum-card-border: rgba(196, 168, 255, 0.14); + --continuum-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25); + --continuum-table-head: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.14)); + --continuum-table-stripe: rgba(196, 168, 255, 0.04); + --continuum-table-border: rgba(196, 168, 255, 0.14); + --continuum-inline-code-bg: rgba(167, 139, 250, 0.14); + --continuum-inline-code-color: #d8c7ff; +} + +/* ================================================================ + * Navbar + * ================================================================ */ + +.navbar { + backdrop-filter: saturate(160%) blur(12px); + -webkit-backdrop-filter: saturate(160%) blur(12px); + background-color: rgba(255, 255, 255, 0.85); + box-shadow: none; + border-bottom: 1px solid var(--continuum-card-border); +} + +[data-theme='dark'] .navbar { + background-color: var(--ifm-navbar-background-color); +} + +/* Thin brand gradient under the navbar. */ +.navbar::after { + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: -1px; + height: 2px; + background: linear-gradient(90deg, #7c3aed, #db2777, #06b6d4); + opacity: 0.85; +} + +.navbar__title { + font-weight: 800; + letter-spacing: -0.01em; +} + +.navbar__link { + font-weight: 500; +} + +/* ================================================================ + * Doc page background — soft colour wash behind the content + * ================================================================ */ + +.main-wrapper:has(.theme-doc-markdown) { + background: + radial-gradient(900px 420px at 100% 0%, rgba(139, 92, 246, 0.08), transparent 70%), + radial-gradient(700px 380px at 0% 30%, rgba(236, 72, 153, 0.045), transparent 70%); +} + +[data-theme='dark'] .main-wrapper:has(.theme-doc-markdown) { + background: + radial-gradient(900px 420px at 100% 0%, rgba(139, 92, 246, 0.16), transparent 70%), + radial-gradient(700px 380px at 0% 30%, rgba(236, 72, 153, 0.07), transparent 70%); +} + +/* ================================================================ + * Headings + * ================================================================ */ + +.theme-doc-markdown h1, +.markdown header > h1 { + font-size: clamp(2.1rem, 3.4vw, 2.75rem); + font-weight: 800; + letter-spacing: -0.025em; + line-height: 1.15; + background: linear-gradient(90deg, #4c1d95 0%, #7c3aed 45%, #db2777 100%); + -webkit-background-clip: text; + background-clip: text; + color: transparent; + padding-bottom: 0.1em; +} + +[data-theme='dark'] .theme-doc-markdown h1, +[data-theme='dark'] .markdown header > h1 { + background-image: linear-gradient(90deg, #e9ddff 0%, #c4a8ff 40%, #f9a8d4 100%); +} + +.theme-doc-markdown h2 { + position: relative; + margin-top: 2.75rem; + padding-left: 0.95rem; + font-weight: 750; + letter-spacing: -0.015em; +} + +.theme-doc-markdown h2::before { + content: ''; + position: absolute; + left: 0; + top: 0.18em; + bottom: 0.18em; + width: 4px; + border-radius: 4px; + background: linear-gradient(180deg, #7c3aed, #db2777); +} + +.theme-doc-markdown h3 { + margin-top: 2rem; + font-weight: 700; + color: var(--ifm-color-primary-darker); +} + +[data-theme='dark'] .theme-doc-markdown h3 { + color: var(--ifm-color-primary-lighter); +} + +.theme-doc-markdown h2 code, +.theme-doc-markdown h3 code { + font-size: 0.85em; +} + +/* ================================================================ + * Body text, links, inline code, blockquotes, rules + * ================================================================ */ + +.theme-doc-markdown { + font-size: 1.02rem; + line-height: 1.75; +} + +.theme-doc-markdown a:not(.card):not([class*='card']) { + text-decoration: underline; + text-decoration-color: color-mix(in srgb, var(--ifm-color-primary) 35%, transparent); + text-decoration-thickness: 1.5px; + text-underline-offset: 3px; + transition: text-decoration-color 0.2s, color 0.2s; +} + +.theme-doc-markdown a:not(.card):not([class*='card']):hover { + text-decoration-color: currentColor; +} + +/* Heading anchors keep the default look. */ +.theme-doc-markdown a.hash-link { + text-decoration: none; +} + +.theme-doc-markdown :not(pre) > code { + padding: 0.12em 0.4em; + border: 1px solid color-mix(in srgb, var(--continuum-inline-code-color) 18%, transparent); + background: var(--continuum-inline-code-bg); + color: var(--continuum-inline-code-color); + font-weight: 500; + vertical-align: baseline; +} + +.theme-doc-markdown a code { + color: inherit; +} + +.theme-doc-markdown blockquote { + border-left: 4px solid transparent; + border-image: linear-gradient(180deg, #7c3aed, #db2777) 1; + background: var(--continuum-gradient-soft); + padding: 0.85rem 1.1rem; + color: var(--ifm-color-emphasis-800); +} + +.theme-doc-markdown hr { + height: 2px; + border: 0; + background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), rgba(219, 39, 119, 0.4), transparent); + margin: 2.5rem 0; +} + +.theme-doc-markdown ul > li::marker { + color: var(--ifm-color-primary); +} + +.theme-doc-markdown ol > li::marker { + color: var(--ifm-color-primary); + font-weight: 700; +} + +.theme-doc-markdown strong { + color: var(--ifm-color-emphasis-900); +} + +/* ================================================================ + * Tables + * ================================================================ */ + +.theme-doc-markdown table { + display: table; + width: 100%; + border-collapse: separate; + border-spacing: 0; + border: 1px solid var(--continuum-table-border); + border-radius: 12px; + overflow: hidden; + box-shadow: var(--continuum-card-shadow); + background: var(--continuum-card-bg); + font-size: 0.94rem; +} + +/* Wide tables scroll inside a wrapper-like block on small screens. */ +@media screen and (max-width: 996px) { + .theme-doc-markdown table { + display: block; + overflow-x: auto; + } +} + +.theme-doc-markdown thead tr { + background: var(--continuum-table-head); + border: 0; +} + +.theme-doc-markdown th { + border: 0; + border-bottom: 1px solid var(--continuum-table-border); + font-size: 0.78rem; + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--ifm-color-primary-darkest); + text-align: left; +} + +[data-theme='dark'] .theme-doc-markdown th { + color: var(--ifm-color-primary-lightest); +} + +.theme-doc-markdown td { + border: 0; + border-bottom: 1px solid var(--continuum-table-border); +} + +.theme-doc-markdown tbody tr { + border: 0; + background: transparent; + transition: background 0.15s; +} + +.theme-doc-markdown tbody tr:nth-child(2n) { + background: var(--continuum-table-stripe); +} + +.theme-doc-markdown tbody tr:hover { + background: rgba(124, 58, 237, 0.06); +} + +.theme-doc-markdown tbody tr:last-child td { + border-bottom: 0; +} + +.theme-doc-markdown td:first-child { + font-weight: 600; +} + +/* ================================================================ + * Code blocks + * ================================================================ */ + +.theme-doc-markdown .theme-code-block { + position: relative; + border: 1px solid var(--continuum-card-border); + box-shadow: var(--continuum-card-shadow); + overflow: hidden; +} + +/* Brand stripe across the top of every code block. */ +.theme-doc-markdown .theme-code-block::before { + content: ''; + position: absolute; + inset: 0 0 auto 0; + height: 3px; + z-index: 1; + background: linear-gradient(90deg, #7c3aed, #db2777, #06b6d4); +} + +.theme-doc-markdown .theme-code-block [class*='codeBlockTitle'] { + padding-top: 0.85rem; + font-family: var(--ifm-font-family-monospace); + font-size: 0.82rem; + font-weight: 600; +} + +/* ================================================================ + * Admonitions + * ================================================================ */ + +.theme-doc-markdown .theme-admonition { + border: 1px solid; + border-left-width: 5px; + box-shadow: var(--continuum-card-shadow); +} + +.alert--secondary { + --ifm-alert-background-color: rgba(100, 116, 139, 0.07); + --ifm-alert-border-color: #94a3b8; +} + +.alert--success { + --ifm-alert-background-color: rgba(16, 185, 129, 0.08); + --ifm-alert-border-color: #10b981; +} + +.alert--info { + --ifm-alert-background-color: rgba(124, 58, 237, 0.07); + --ifm-alert-border-color: #8b5cf6; +} + +.alert--warning { + --ifm-alert-background-color: rgba(245, 158, 11, 0.09); + --ifm-alert-border-color: #f59e0b; +} + +.alert--danger { + --ifm-alert-background-color: rgba(239, 68, 68, 0.08); + --ifm-alert-border-color: #ef4444; +} + +.theme-doc-markdown .theme-admonition { + border-color: color-mix(in srgb, var(--ifm-alert-border-color) 35%, transparent); + border-left-color: var(--ifm-alert-border-color); +} + +[data-theme='dark'] .alert--info { + --ifm-alert-background-color: rgba(139, 92, 246, 0.12); +} + +[data-theme='dark'] .alert--success { + --ifm-alert-background-color: rgba(16, 185, 129, 0.12); +} + +[data-theme='dark'] .alert--warning { + --ifm-alert-background-color: rgba(245, 158, 11, 0.12); +} + +[data-theme='dark'] .alert--danger { + --ifm-alert-background-color: rgba(239, 68, 68, 0.12); +} + +[data-theme='dark'] .alert--secondary { + --ifm-alert-background-color: rgba(148, 163, 184, 0.1); +} + +/* ================================================================ + * Sidebar + * ================================================================ */ + +.theme-doc-sidebar-container { + border-right: 1px solid var(--continuum-card-border) !important; +} + +.theme-doc-sidebar-menu .menu__link { + border-radius: 8px; + font-size: 0.93rem; + transition: background 0.15s, color 0.15s; +} + +.theme-doc-sidebar-menu .menu__link--active:not(.menu__link--sublist) { + color: #fff; + font-weight: 600; + background: linear-gradient(90deg, #7c3aed, #a855f7); + box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); +} + +[data-theme='dark'] .theme-doc-sidebar-menu .menu__link--active:not(.menu__link--sublist) { + background: linear-gradient(90deg, #6d28d9, #9333ea); +} + +.theme-doc-sidebar-menu .menu__link--sublist.menu__link--active { + color: var(--ifm-color-primary); + font-weight: 650; +} + +.theme-doc-sidebar-menu > .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link, +.theme-doc-sidebar-menu > .theme-doc-sidebar-item-link-level-1 > .menu__link { + font-weight: 600; +} + +.theme-doc-sidebar-item-category-level-1 > .menu__list { + margin-left: 0.6rem; + padding-left: 0.4rem; + border-left: 1px solid var(--continuum-card-border); +} + +/* ================================================================ + * Table of contents + * ================================================================ */ + +.table-of-contents { + border-left: 1px solid var(--continuum-card-border); +} + +.table-of-contents__link--active { + font-weight: 600; + background: var(--continuum-gradient); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} + +/* ================================================================ + * Breadcrumbs, version badge and banner + * ================================================================ */ + +.theme-doc-breadcrumbs .breadcrumbs__item--active .breadcrumbs__link { + background: var(--continuum-gradient-soft); + color: var(--ifm-color-primary-darker); + font-weight: 600; +} + +[data-theme='dark'] .theme-doc-breadcrumbs .breadcrumbs__item--active .breadcrumbs__link { + color: var(--ifm-color-primary-lighter); +} + +.theme-doc-version-badge { + border: 0; + border-radius: 999px; + padding: 0.25rem 0.75rem; + color: #fff; + background: linear-gradient(90deg, #7c3aed, #db2777); +} + +.theme-doc-version-banner { + border: 1px solid rgba(245, 158, 11, 0.45); + border-left-width: 5px; + border-left-color: #f59e0b; +} + +/* ================================================================ + * Doc cards (category index pages and DocCardList) + * ================================================================ */ + +.theme-doc-card-container, +a.card { + position: relative; + border: 1px solid var(--continuum-card-border) !important; + background: var(--continuum-card-bg); + box-shadow: var(--continuum-card-shadow); + overflow: hidden; + transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s !important; +} + +.theme-doc-card-container::before { + content: ''; + position: absolute; + inset: 0 0 auto 0; + height: 3px; + background: linear-gradient(90deg, #7c3aed, #db2777); + opacity: 0.75; + transition: opacity 0.2s; +} + +/* Rotate the accent stripe colour across the grid. */ +.col:nth-child(4n + 2) > .theme-doc-card-container::before { + background: linear-gradient(90deg, #6366f1, #06b6d4); +} + +.col:nth-child(4n + 3) > .theme-doc-card-container::before { + background: linear-gradient(90deg, #10b981, #06b6d4); +} + +.col:nth-child(4n + 4) > .theme-doc-card-container::before { + background: linear-gradient(90deg, #f59e0b, #ec4899); +} + +.theme-doc-card-container:hover { + transform: translateY(-3px); + border-color: rgba(124, 58, 237, 0.4) !important; + box-shadow: 0 14px 36px rgba(124, 58, 237, 0.18); +} + +.theme-doc-card-container:hover::before { + opacity: 1; +} + +.theme-doc-card-container h2 { + font-size: 1.1rem; +} + +/* Generated-index page header. */ +[class*='generatedIndexPage'] header h1 { + font-size: clamp(2.1rem, 3.4vw, 2.75rem); + font-weight: 800; + letter-spacing: -0.025em; + background: linear-gradient(90deg, #4c1d95 0%, #7c3aed 45%, #db2777 100%); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} + +[data-theme='dark'] [class*='generatedIndexPage'] header h1 { + background-image: linear-gradient(90deg, #e9ddff 0%, #c4a8ff 40%, #f9a8d4 100%); +} + +[class*='generatedIndexPage'] header p { + font-size: 1.15rem; + color: var(--ifm-color-emphasis-700); +} + +/* ================================================================ + * Prev / next pagination + * ================================================================ */ + +.pagination-nav__link { + border: 1px solid var(--continuum-card-border); + border-radius: 14px; + background: var(--continuum-card-bg); + box-shadow: var(--continuum-card-shadow); + transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s; +} + +.pagination-nav__link:hover { + transform: translateY(-2px); + border-color: rgba(124, 58, 237, 0.45); + box-shadow: 0 12px 30px rgba(124, 58, 237, 0.16); +} + +.pagination-nav__sublabel { + font-size: 0.75rem; + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--ifm-color-primary); +} + +.pagination-nav__label { + font-weight: 700; +} + +/* ================================================================ + * Mermaid diagrams + * ================================================================ */ + +.theme-doc-markdown .docusaurus-mermaid-container { + margin: 1.5rem 0 2rem; + padding: 1.5rem 1rem; + border: 1px solid var(--continuum-card-border); + border-radius: 16px; + background: + radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, 0.07), transparent 70%), + var(--continuum-card-bg); + box-shadow: var(--continuum-card-shadow); + text-align: center; + overflow-x: auto; +} + +/* Subgraphs: replace Mermaid's default yellow with the brand violet in both modes. */ +.theme-doc-markdown .docusaurus-mermaid-container .cluster rect { + fill: rgba(139, 92, 246, 0.06) !important; + stroke: rgba(139, 92, 246, 0.45) !important; + rx: 10px; +} + +/* Mermaid caps SVGs at their natural width; let wide diagrams (sequences) fill the card. */ +.theme-doc-markdown .docusaurus-mermaid-container svg[aria-roledescription='sequence'] { + min-width: 640px; + width: 100%; + max-width: 100% !important; + height: auto; +} + +/* ================================================================ + * Search (@easyops-cn/docusaurus-search-local, themed via its CSS variables) + * ================================================================ */ + +:root { + --search-local-modal-background: #ffffff; + --search-local-modal-shadow: 0 18px 50px rgba(17, 12, 46, 0.18), 0 0 0 1px rgba(112, 86, 151, 0.16); + --search-local-modal-width: 600px; + --search-local-hit-background: #faf8ff; + --search-local-hit-shadow: 0 0 0 1px rgba(112, 86, 151, 0.12); + --search-local-hit-height: 60px; + --search-local-highlight-color: #7c3aed; + --search-local-muted-color: #8b84a3; + --search-local-input-active-border-color: #8b5cf6; +} + +[data-theme='dark'] { + --search-local-modal-background: #16152e; + --search-local-modal-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(196, 168, 255, 0.16); + --search-local-hit-background: #1e1c3a; + --search-local-hit-shadow: 0 0 0 1px rgba(196, 168, 255, 0.1); + --search-local-highlight-color: #8b5cf6; + --search-local-muted-color: #9d95bd; +} + +.navbar__search-input { + width: 13.5rem; + border: 1px solid var(--continuum-card-border); + background-color: color-mix(in srgb, var(--ifm-color-primary) 6%, transparent); + transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; +} + +.navbar__search-input:hover { + border-color: color-mix(in srgb, var(--ifm-color-primary) 45%, transparent); +} + +.navbar__search-input:focus { + background-color: var(--ifm-background-color); + box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); +} + +@media (max-width: 576px) { + .navbar__search-input:not(:focus) { + width: 2rem; + } +} + +/* Selected result uses the brand gradient instead of a flat fill. */ +.navbar__search [class*='suggestion'][class*='cursor'] { + background: linear-gradient(90deg, #7c3aed, #db2777) !important; +} + +.navbar__search mark { + font-weight: 700; +} + +/* ================================================================ + * Footer + * ================================================================ */ + +.footer--dark { + --ifm-footer-background-color: #0b0c1d; + position: relative; + background: + radial-gradient(800px 260px at 15% 0%, rgba(124, 58, 237, 0.22), transparent 70%), + radial-gradient(700px 240px at 90% 100%, rgba(219, 39, 119, 0.14), transparent 70%), + #0b0c1d; +} + +.footer--dark::before { + content: ''; + position: absolute; + inset: 0 0 auto 0; + height: 2px; + background: linear-gradient(90deg, #7c3aed, #db2777, #06b6d4); +} + +.footer__title { + font-size: 0.8rem; + letter-spacing: 0.1em; + text-transform: uppercase; + color: #c4a8ff; +} + +.footer__link-item { + color: rgba(255, 255, 255, 0.72); + transition: color 0.15s; +} + +.footer__link-item:hover { + color: #fff; + text-decoration: none; } diff --git a/src/theme/MDXComponents.tsx b/src/theme/MDXComponents.tsx new file mode 100644 index 0000000..e2d2f7d --- /dev/null +++ b/src/theme/MDXComponents.tsx @@ -0,0 +1,13 @@ +// Makes the DocBlocks components available in every .md/.mdx page without imports. +import MDXComponents from '@theme-original/MDXComponents'; +import {Badge, Badges, Card, CardGrid, Lead, Steps} from '@site/src/components/DocBlocks'; + +export default { + ...MDXComponents, + Badge, + Badges, + Card, + CardGrid, + Lead, + Steps, +}; diff --git a/versioned_docs/version-0.0.20/architecture/_category_.json b/versioned_docs/version-0.0.20/architecture/_category_.json index 508533a..9a696ef 100644 --- a/versioned_docs/version-0.0.20/architecture/_category_.json +++ b/versioned_docs/version-0.0.20/architecture/_category_.json @@ -1,8 +1,10 @@ { - "label": "Architecture", + "label": "🏗️ Architecture", "position": 3, "link": { "type": "generated-index", - "description": "How a workflow actually executes, end to end." + "description": "How a workflow actually executes, end to end.", + "title": "Architecture", + "slug": "/category/architecture" } } diff --git a/versioned_docs/version-0.0.20/architecture/data-format.md b/versioned_docs/version-0.0.20/architecture/data-format.md index a328376..e08e086 100644 --- a/versioned_docs/version-0.0.20/architecture/data-format.md +++ b/versioned_docs/version-0.0.20/architecture/data-format.md @@ -1,14 +1,48 @@ --- +sidebar_label: "📦 Data Format" sidebar_position: 3 --- # Data Format + + All data passed between workflow nodes is **Apache Parquet** (Snappy-compressed, Avro schema `DataRow`) — not JSON. This keeps data columnar, compressed, and query-ready from the moment it leaves a node. -- `NodeOutputWriter.OutputPortWriter` writes rows to the node's output port(s). -- `NodeInputReader` reads rows from each connected input port. -- Output files are named `output.{portId}.parquet`; input files `input.{portId}.parquet`. -- Files are staged in a local cache path before upload to (or after download from) MinIO, the platform's S3-compatible object store. + + + + Apache Parquet + Snappy + Avro schema DataRow + + +```mermaid +flowchart LR + A["🧩 Node A
NodeOutputWriter"] -->|"output.{portId}.parquet"| S3[("🗄️ MinIO (S3)")] + S3 -->|"input.{portId}.parquet"| B["🧩 Node B
NodeInputReader"] + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class A,B worker + class S3 store +``` + + + + `NodeOutputWriter.OutputPortWriter` writes rows to the node's output port(s). + + + `NodeInputReader` reads rows from each connected input port. + + + Output files are named `output.{portId}.parquet`; input files `input.{portId}.parquet`. + + + Files are staged in a local cache path before upload to (or after download from) MinIO, the platform's S3-compatible object store. + + +:::tip[Mix and match workers] Because every node reads and writes the same Parquet/Avro format regardless of which worker or language implements it, nodes written in different feature repos — base analytics, cheminformatics, AI/ML — can be freely wired together in the same workflow graph. +::: diff --git a/versioned_docs/version-0.0.20/architecture/node-model.md b/versioned_docs/version-0.0.20/architecture/node-model.md index e9dd55a..bd47aa6 100644 --- a/versioned_docs/version-0.0.20/architecture/node-model.md +++ b/versioned_docs/version-0.0.20/architecture/node-model.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧩 Node Model & Registration" sidebar_position: 2 --- @@ -10,12 +11,16 @@ Every workflow node is defined inside a **feature worker** — an independent se Every node: + + 1. Is annotated `@ContinuumNode` (not just `@Component`) — enforced at build time by a Gradle validation task and at startup by the node activity handler. 2. Extends `ProcessNodeModel` (data nodes) or `TriggerNodeModel` (source nodes). 3. Overrides `inputPorts`, `outputPorts`, and `metadata` (as `ContinuumWorkflowModel.NodeData`). 4. Implements `execute()` — the simple overload for most nodes, or the `ExecutionContext` overload for nodes that need credentials. -```kotlin + + +```kotlin title="MyNodeModel.kt" @ContinuumNode class MyNodeModel : ProcessNodeModel() { override val inputPorts = mapOf("input" to ContinuumWorkflowModel.NodePort(...)) @@ -38,20 +43,34 @@ Node documentation is auto-loaded from `resources//.doc.md` At startup, each worker publishes its available nodes to Kafka so the platform can build a central registry of "which node lives on which worker": -``` -┌──────────────────────┐ Avro binary ┌──────────────────────┐ PostgreSQL -│ Worker (startup) │ ──── Kafka topic ─────► │ Message Bridge │ ────► registered_nodes -│ Discovers all │ FeatureRegistration │ Consumes & upserts │ (nodeId + taskQueue) -│ @ContinuumNode │ │ per node │ -│ beans via Spring │ │ │ -└──────────────────────┘ └──────────────────────┘ +```mermaid +flowchart LR + W["🧩 Worker (startup)
discovers all @ContinuumNode
beans via Spring"] + K["📨 Kafka topic
FeatureRegistration
(Avro binary)"] + B["🔁 Message Bridge
consumes & upserts
per node"] + DB[("🐘 PostgreSQL
registered_nodes
nodeId + taskQueue")] + + W -->|publish| K --> B -->|upsert| DB + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef stream fill:#f59e0b33,stroke:#f59e0b,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class W worker + class K stream + class B core + class DB store ``` + + 1. On `ApplicationReadyEvent`, the worker iterates every `ContinuumNodeModel` bean it has. 2. For each node, it builds a `FeatureRegistrationRequest` — containing `nodeId` (fully-qualified class name), `workerId`, `featureId`, `taskQueue`, a JSON `nodeManifest` (ports, schemas, title, icon), and the node's documentation markdown — and publishes it to Kafka (Avro, keyed by `nodeId`). 3. `continuum-message-bridge` consumes the message and performs an atomic upsert into the `registered_nodes` table. 4. The orchestration service's `InitializeActivity` later queries this registry (via the API server) to resolve which task queue should run each node in a workflow. + + `featureId` is derived by stripping the trailing `.node` package segment from the class name, e.g. `org.projectcontinuum.feature.analytics.node.CreateTableNodeModel` → `org.projectcontinuum.feature.analytics`. `nodeManifest` is kept as an opaque JSON string (not typed Avro fields) so the schema stays forward-compatible as `NodeData` evolves. Registration is one message per node, enabling clean idempotent upserts, and `extensions` (a `map`) is reserved for future fields without breaking schema compatibility. @@ -63,4 +82,6 @@ Nodes that need external secrets (API keys, DB passwords) don't receive them aut - The node's `propertiesUISchema` declares a control with `options.format = "credential"` purely so `continuum-workbench` renders a credential picker in its config dialog — the backend doesn't read this schema. - Inside `execute()`, the node reads its own `properties` to find the configured credential name, then calls `executionContext.getCredential(name)`. This fetches the credential on demand from `continuum-credentials-server` (`GET /api/v1/credentials/{name}`) and deserializes it into `T`, throwing if not found. +:::info[Credentials are never stored in the workflow] Credentials are fetched lazily, per execution — never bundled into the workflow definition or passed through Kafka. +::: diff --git a/versioned_docs/version-0.0.20/architecture/overview.md b/versioned_docs/version-0.0.20/architecture/overview.md index c398536..b743d12 100644 --- a/versioned_docs/version-0.0.20/architecture/overview.md +++ b/versioned_docs/version-0.0.20/architecture/overview.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🗺️ System Overview" sidebar_position: 1 --- @@ -6,39 +7,50 @@ sidebar_position: 1 Continuum is split into a browser frontend, a core backend (API server + Temporal orchestration), and independent feature workers that provide the actual workflow nodes. -``` -┌─────────────────────────────────────────────────────┐ -│ BROWSER (Continuum Workbench) │ -│ Eclipse Theia IDE + React Flow drag-and-drop │ -└──────────────┬────────────────────┬─────────────────┘ - │ REST │ MQTT / WebSocket - ▼ ▼ - ┌────────────────┐ ┌──────────────────┐ - │ API Server │ │ Message Bridge │ - │ │ │ Kafka → MQTT │ - └───────┬────────┘ └────────▲─────────┘ - │ │ - ▼ │ - ┌──────────────┐ ┌────────┴────────┐ - │ Temporal │ │ Kafka │ - │ orchestration │ │ │ - └───────┬───────┘ └────────▲────────┘ - │ dispatches │ events - ▼ │ - ┌──────────────────────────────┐ - │ FEATURE WORKERS │ - │ Base · Cheminformatics · AI │ - └──────────────┬───────────────┘ - │ read / write - ▼ - ┌─────────────────┐ - │ MinIO (S3) │ - │ Parquet files │ - └─────────────────┘ +```mermaid +flowchart TB + subgraph Browser["🖥️ Browser — Continuum Workbench"] + UI["Eclipse Theia IDE + React Flow canvas"] + end + + API["🌐 API Server"] + Bridge["🔁 Message Bridge
Kafka → MQTT"] + Temporal["⏱️ Temporal
orchestration"] + Kafka["📨 Kafka"] + + subgraph Workers["🧩 Feature Workers"] + direction LR + Base["📊 Base"] + Chem["🧪 Cheminformatics"] + AI["🤖 AI / ML"] + end + + MinIO[("🗄️ MinIO (S3)
Parquet files")] + + UI -->|REST| API + Bridge -->|MQTT / WebSocket| UI + API --> Temporal + Temporal -->|dispatches| Workers + Workers -->|events| Kafka + Kafka --> Bridge + Workers <-->|read / write| MinIO + + classDef ui fill:#8b5cf633,stroke:#8b5cf6,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef stream fill:#f59e0b33,stroke:#f59e0b,stroke-width:2px + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class UI ui + class API,Temporal core + class Kafka,Bridge stream + class Base,Chem,AI worker + class MinIO store ``` ## Execution flow + + 1. You design a workflow in the browser (React Flow canvas) and hit **Execute**. 2. `continuum-api-server` receives the REST call and starts a Temporal workflow (`ContinuumWorkflow`, on `WORKFLOW_TASK_QUEUE`). 3. `InitializeActivity` resolves which task queue (= which worker) handles each node, via `POST /api/v1/node-explorer/nodes/task-queues` against the API server's node registry. @@ -48,9 +60,40 @@ Continuum is split into a browser frontend, a core backend (API server + Tempora 7. `continuum-message-bridge` consumes the Kafka event and republishes it to Mosquitto (MQTT). 8. The browser receives the update over MQTT-over-WebSocket and lights up the corresponding node in real time. + + +The same flow as a sequence: + +```mermaid +sequenceDiagram + autonumber + participant B as 🖥️ Browser + participant A as 🌐 API Server + participant T as ⏱️ Temporal + participant W as 🧩 Worker + participant S as 🗄️ MinIO + participant K as 📨 Kafka → MQTT + + B->>A: Execute workflow (REST) + A->>T: Start ContinuumWorkflow + T->>A: InitializeActivity: resolve task queues + loop each unblocked DAG node + T->>W: IContinuumNodeActivity.run() + W->>S: Read input Parquet + W->>S: Write output Parquet + W-->>T: Progress signals + T-->>K: WorkflowUpdateEvent + K-->>B: Node status (MQTT over WebSocket) + end +``` + ## Why this survives crashes -Temporal persists workflow state (in PostgreSQL) at every step. If a worker process dies mid-execution, the orchestration service simply redispatches the pending activity once a worker becomes available again — no data loss, no restart from scratch. This is the "crash-proof execution" promise: a failed Kafka broker, a restarted worker pod, or a dropped network connection doesn't lose workflow progress. +:::tip[Crash-proof by design] +Temporal persists workflow state (in PostgreSQL) at every step. If a worker process dies mid-execution, the orchestration service simply redispatches the pending activity once a worker becomes available again — no data loss, no restart from scratch. +::: + +This is the "crash-proof execution" promise: a failed Kafka broker, a restarted worker pod, or a dropped network connection doesn't lose workflow progress. ## Task queues diff --git a/versioned_docs/version-0.0.20/contributing/_category_.json b/versioned_docs/version-0.0.20/contributing/_category_.json index 0e8f2f2..12e8635 100644 --- a/versioned_docs/version-0.0.20/contributing/_category_.json +++ b/versioned_docs/version-0.0.20/contributing/_category_.json @@ -1,8 +1,10 @@ { - "label": "Contributing", + "label": "🤝 Contributing", "position": 7, "link": { "type": "generated-index", - "description": "Add your own workflow nodes to Project Continuum." + "description": "Add your own workflow nodes to Project Continuum.", + "title": "Contributing", + "slug": "/category/contributing" } } diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json b/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json index 0deb03f..d62cb64 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/_category_.json @@ -1,5 +1,5 @@ { - "label": "Create New Nodes", + "label": "🛠️ Create New Nodes", "position": 2, "link": { "type": "doc", diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md index fbc11d2..7c53887 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/overview.md @@ -9,9 +9,15 @@ slug: /contributing/create-new-nodes This guide walks you through building a **feature worker** with your own workflow node, from an empty folder to a passing build and a worker that registers its node with the platform. The running example is a **Word Counter** node that counts the words in a text column and appends the count as a new column. + + Kotlin + Gradle + 9 steps + Platform 0.0.20 + + You need to know some Kotlin and Gradle. You don't need to know Temporal, Kafka or Spring internals; the Continuum Gradle plugins and the worker starter handle those. -:::info Versions used in this guide +:::info[Versions used in this guide] Verified against **Continuum platform `0.0.20`** (Spring Boot 4.0.6, Kotlin 2.2, Jackson 3, Gradle 8.14, JDK 21). Check [Maven Central](https://central.sonatype.com/artifact/org.projectcontinuum.core/continuum-commons) for the latest platform version, and use the same version everywhere in your project. ::: @@ -45,6 +51,8 @@ You **don't** need a GitHub token. All Continuum artifacts and Gradle plugins ar ## The steps + + 1. [Create the root project](./step-1-root-project.md) 2. [Create the feature module](./step-2-feature-module.md) 3. [Write the node](./step-3-write-the-node.md) @@ -55,4 +63,6 @@ You **don't** need a GitHub token. All Continuum artifacts and Gradle plugins ar 8. [Run the worker against the local stack](./step-8-run-locally.md) 9. [Ship it](./step-9-ship-it.md) + + If something goes wrong along the way, see [Troubleshooting](./troubleshooting.md). diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md index b1a7951..084424a 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-1-root-project.md @@ -6,6 +6,11 @@ title: "Step 1: Create the root project" # Step 1: Create the root project + + Step 1 of 9 + 11% through the guide + + Create the folder and add a Gradle wrapper. If Gradle is installed, run `gradle wrapper --gradle-version 8.14`. Otherwise, copy `gradlew`, `gradlew.bat` and `gradle/wrapper/` from an existing feature repo such as `continuum-feature-base`. **`gradle.properties`** diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md index 44f03ed..77d01b7 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-2-feature-module.md @@ -6,6 +6,11 @@ title: "Step 2: Create the feature module" # Step 2: Create the feature module + + Step 2 of 9 + 22% through the guide + + **`features/continuum-feature-demo/build.gradle.kts`** ```kotlin @@ -22,7 +27,7 @@ continuum { } ``` -:::warning Always set `continuumVersion` +:::warning[Always set `continuumVersion`] If you leave out the `continuum { }` block, the plugin falls back to a built-in default version that is older than the plugin itself. Read the value from `gradle.properties` so plugins and libraries always match. ::: diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md index c978c03..6a2f9b0 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-3-write-the-node.md @@ -6,6 +6,11 @@ title: "Step 3: Write the node" # Step 3: Write the node + + Step 3 of 9 + 33% through the guide + + Put node classes in a `.node` subpackage. The platform derives your **feature ID** by removing the trailing `.node` segment from the class name. For example, `org.projectcontinuum.feature.demo.node.WordCounterNodeModel` gets the feature ID `org.projectcontinuum.feature.demo`. **`src/main/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModel.kt`** diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md index 6262afa..e06e3d8 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-4-node-documentation.md @@ -6,6 +6,11 @@ title: "Step 4: Add node documentation" # Step 4: Add node documentation + + Step 4 of 9 + 44% through the guide + + Each node has a Markdown help page that the workbench shows next to it. It's loaded from the classpath on startup, at a path that matches the node's package and class name exactly: ```text diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md index 4a8c358..fac9946 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-5-unit-tests.md @@ -6,6 +6,11 @@ title: "Step 5: Write unit tests" # Step 5: Write unit tests + + Step 5 of 9 + 56% through the guide + + `execute()` only depends on its arguments, so you can test it with Mockito mocks and no Spring context: **`src/test/kotlin/org/projectcontinuum/feature/demo/node/WordCounterNodeModelTest.kt`** diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md index 3748d25..48343e7 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-6-worker-module.md @@ -6,6 +6,11 @@ title: "Step 6: Create the worker module" # Step 6: Create the worker module + + Step 6 of 9 + 67% through the guide + + **`worker/build.gradle.kts`** ```kotlin @@ -74,7 +79,7 @@ logging: org.projectcontinuum.feature.demo: debug ``` -:::danger Give every worker a unique task queue +:::danger[Give every worker a unique task queue] If `node-task-queue` isn't set, a worker listens on the shared default queue `ACTIVITY_TASK_QUEUE`. When two workers share a queue, Temporal can send a node to a worker that doesn't have it, and the node fails. Every shipped worker sets its own queue (for example `CONTINUUM_FEATURE_BASE_TASK_QUEUE`), and yours must too. The worker sends its queue name in its registration message, so the orchestrator knows where to route your nodes. ::: diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md index dc63809..664368f 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-7-build-and-test.md @@ -6,6 +6,11 @@ title: "Step 7: Build and test" # Step 7: Build and test + + Step 7 of 9 + 78% through the guide + + ```bash ./gradlew build ``` diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md index ac18d89..6682dc3 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-8-run-locally.md @@ -6,6 +6,11 @@ title: "Step 8: Run the worker against the local stack" # Step 8: Run the worker against the local stack + + Step 8 of 9 + 89% through the guide + + 1. Start the platform with the [Local Setup](../../getting-started/local-setup.md) compose file and wait until every service is healthy. 2. Start your worker: diff --git a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md index 8af4000..6e4ceba 100644 --- a/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md +++ b/versioned_docs/version-0.0.20/contributing/create-new-nodes/step-9-ship-it.md @@ -6,6 +6,11 @@ title: "Step 9: Ship it" # Step 9: Ship it + + Step 9 of 9 + 100% through the guide + + - **Container image:** set `jibToImage` in `worker/build.gradle.kts` and run `./gradlew :worker:jib`. Jib reads registry credentials from `DOCKER_REPO_USERNAME` / `DOCKER_REPO_PASSWORD`. The base image defaults to `eclipse-temurin:21-jre` and can be changed with `jibFromImage`. - **Kubernetes:** deploy the worker as its own release in the platform's namespace and set the [environment variables](./step-6-worker-module.md#environment-variables) from Step 6, including a unique `CONTINUUM_NODE_TASK_QUEUE`. The charts in the existing feature repos (for example `continuum-feature-base/charts/`) are a working reference. See [Deployment](../../deployment/helm-charts.md). - **Publishing feature modules:** the plugins configure Maven Central publishing through JReleaser by default. If you don't publish libraries, set `publishToMavenCentral.set(false)` in the `continuum { }` block. diff --git a/versioned_docs/version-0.0.20/contributing/feature-template.md b/versioned_docs/version-0.0.20/contributing/feature-template.md index 6e63fb4..6a8239b 100644 --- a/versioned_docs/version-0.0.20/contributing/feature-template.md +++ b/versioned_docs/version-0.0.20/contributing/feature-template.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧱 Scaffolding a Worker" sidebar_position: 1 slug: /contributing --- diff --git a/versioned_docs/version-0.0.20/deployment/_category_.json b/versioned_docs/version-0.0.20/deployment/_category_.json index 5c2d01a..5f3fe75 100644 --- a/versioned_docs/version-0.0.20/deployment/_category_.json +++ b/versioned_docs/version-0.0.20/deployment/_category_.json @@ -1,8 +1,10 @@ { - "label": "Deployment", + "label": "☸️ Deployment", "position": 5, "link": { "type": "generated-index", - "description": "Running Continuum on Kubernetes with Helm." + "description": "Running Continuum on Kubernetes with Helm.", + "title": "Deployment", + "slug": "/category/deployment" } } diff --git a/versioned_docs/version-0.0.20/deployment/helm-charts.md b/versioned_docs/version-0.0.20/deployment/helm-charts.md index 9842ee7..9484185 100644 --- a/versioned_docs/version-0.0.20/deployment/helm-charts.md +++ b/versioned_docs/version-0.0.20/deployment/helm-charts.md @@ -1,4 +1,5 @@ --- +sidebar_label: "⎈ Helm Charts" sidebar_position: 1 --- @@ -6,6 +7,12 @@ sidebar_position: 1 [`continuum-charts`](https://github.com/projectcontinuum-org/continuum-charts) publishes three Helm charts for deploying Continuum on Kubernetes, served as a standard Helm chart repository via GitHub Pages. + + Kubernetes + 3 charts + GitHub Pages Helm repo + + | Chart | Description | Required | |-------|-------------|----------| | `continuum-infra` | Core infrastructure — PostgreSQL, Temporal, Kafka, Schema Registry, Kafka UI, Mosquitto, MinIO | Yes | diff --git a/versioned_docs/version-0.0.20/ecosystem/_category_.json b/versioned_docs/version-0.0.20/ecosystem/_category_.json index 03d9431..649bbc2 100644 --- a/versioned_docs/version-0.0.20/ecosystem/_category_.json +++ b/versioned_docs/version-0.0.20/ecosystem/_category_.json @@ -1,8 +1,10 @@ { - "label": "Ecosystem", + "label": "🌐 Ecosystem", "position": 4, "link": { "type": "generated-index", - "description": "The repositories that make up Project Continuum." + "description": "The repositories that make up Project Continuum.", + "title": "Ecosystem", + "slug": "/category/ecosystem" } } diff --git a/versioned_docs/version-0.0.20/ecosystem/repositories.md b/versioned_docs/version-0.0.20/ecosystem/repositories.md index f87334a..ca1b5b0 100644 --- a/versioned_docs/version-0.0.20/ecosystem/repositories.md +++ b/versioned_docs/version-0.0.20/ecosystem/repositories.md @@ -1,4 +1,5 @@ --- +sidebar_label: "📚 Repositories" sidebar_position: 1 slug: /ecosystem --- @@ -7,6 +8,12 @@ slug: /ecosystem Project Continuum is split across several focused repositories under the [`projectcontinuum-org`](https://github.com/projectcontinuum-org) GitHub organization — not a monorepo. Each one can be built and released independently. + + Multi-repo + Independently released + Apache 2.0 + + | Repository | Description | |-----------|-------------| | [continuum-platform-core](https://github.com/projectcontinuum-org/continuum-platform-core) | Core backend — API server, Temporal orchestration, message bridge, credentials server, cluster manager, cloud gateway | diff --git a/versioned_docs/version-0.0.20/feature-nodes/_category_.json b/versioned_docs/version-0.0.20/feature-nodes/_category_.json index 0c6b477..a92e60a 100644 --- a/versioned_docs/version-0.0.20/feature-nodes/_category_.json +++ b/versioned_docs/version-0.0.20/feature-nodes/_category_.json @@ -1,8 +1,10 @@ { - "label": "Feature Nodes", + "label": "🧰 Feature Nodes", "position": 6, "link": { "type": "generated-index", - "description": "What you can build with today — nodes shipped by each feature worker." + "description": "What you can build with today — nodes shipped by each feature worker.", + "title": "Feature Nodes", + "slug": "/category/feature-nodes" } } diff --git a/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md b/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md index 62fbac8..25456b6 100644 --- a/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md +++ b/versioned_docs/version-0.0.20/feature-nodes/ai-ml.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🤖 AI / ML" sidebar_position: 2 --- @@ -6,6 +7,12 @@ sidebar_position: 2 [`continuum-feature-ai`](https://github.com/projectcontinuum-org/continuum-feature-ai) provides nodes for training and fine-tuning LLMs directly inside workflow graphs. Ships as a Spring Boot worker with an auto-managed Python virtual environment for ML execution. + + LLM fine-tuning + Unsloth + LoRA + Managed Python venv + + ## LLM Trainer (Unsloth) Fine-tune large language models using LoRA (Low-Rank Adaptation) with Unsloth acceleration. diff --git a/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md b/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md index 479f8cf..e3f1c68 100644 --- a/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md +++ b/versioned_docs/version-0.0.20/feature-nodes/base-analytics.md @@ -1,4 +1,5 @@ --- +sidebar_label: "📊 Base Analytics" sidebar_position: 1 --- @@ -6,6 +7,12 @@ sidebar_position: 1 [`continuum-feature-base`](https://github.com/projectcontinuum-org/continuum-feature-base) ships 16 production-ready nodes for data transformation, filtering, aggregation, REST integration, scripting, and anomaly detection. + + 16 nodes + Kotlin / Spring Boot + Data · Transform · Filter · REST · Scripting + + | Category | Node | Description | |----------|------|-------------| | Data | Create Table | Creates a structured table from FreeMarker template configuration | diff --git a/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md b/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md index 3892002..be66312 100644 --- a/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md +++ b/versioned_docs/version-0.0.20/feature-nodes/cheminformatics.md @@ -1,4 +1,5 @@ --- +sidebar_label: "🧪 Cheminformatics" sidebar_position: 3 --- @@ -6,6 +7,12 @@ sidebar_position: 3 [`continuum-feature-cheminformatics`](https://github.com/projectcontinuum-org/continuum-feature-cheminformatics) ships 38 production-grade cheminformatics nodes across 10 categories, powered by [RDKit](https://www.rdkit.org/). Built for computational chemistry, medicinal chemistry, and drug discovery teams who need scalable, reproducible molecular processing pipelines — parse, standardize, fingerprint, filter, react, and visualize molecules at scale. + + 38 nodes + 10 categories + Powered by RDKit + + ## Node categories | Category | Example nodes | diff --git a/versioned_docs/version-0.0.20/feature-nodes/knime.md b/versioned_docs/version-0.0.20/feature-nodes/knime.md index de1f7e3..de2780a 100644 --- a/versioned_docs/version-0.0.20/feature-nodes/knime.md +++ b/versioned_docs/version-0.0.20/feature-nodes/knime.md @@ -1,9 +1,18 @@ --- +sidebar_label: "🔶 KNIME" sidebar_position: 4 +description: "continuum-feature-knime runs KNIME workflows (.knwf) on Continuum." --- # KNIME Nodes + + 🚧 Node reference coming soon + .knwf workflows + + [`continuum-feature-knime`](https://github.com/projectcontinuum-org/continuum-feature-knime) provides Continuum workflow executors for KNIME workflows (`.knwf` files), bridging KNIME's compatibility layer (`continuum-knime-base` in `continuum-platform-core`) with Continuum's execution model. +:::note This worker doesn't yet have a published node reference — check the [repository](https://github.com/projectcontinuum-org/continuum-feature-knime) directly for current capabilities. +::: diff --git a/versioned_docs/version-0.0.20/getting-started/_category_.json b/versioned_docs/version-0.0.20/getting-started/_category_.json index 61031a5..5da8490 100644 --- a/versioned_docs/version-0.0.20/getting-started/_category_.json +++ b/versioned_docs/version-0.0.20/getting-started/_category_.json @@ -1,8 +1,10 @@ { - "label": "Getting Started", + "label": "🚀 Getting Started", "position": 2, "link": { "type": "generated-index", - "description": "Run the entire Continuum platform locally with one command." + "description": "Run the entire Continuum platform locally with one command.", + "title": "Getting Started", + "slug": "/category/getting-started" } } diff --git a/versioned_docs/version-0.0.20/getting-started/local-setup.md b/versioned_docs/version-0.0.20/getting-started/local-setup.md index 6e6043c..4f86992 100644 --- a/versioned_docs/version-0.0.20/getting-started/local-setup.md +++ b/versioned_docs/version-0.0.20/getting-started/local-setup.md @@ -1,39 +1,55 @@ --- +sidebar_label: "🐳 Local Setup" sidebar_position: 1 --- # Local Setup + + The [`continuum-local-setup`](https://github.com/projectcontinuum-org/continuum-local-setup) repo gives you a single `docker compose up` that launches the **complete** Project Continuum stack — infrastructure services, platform backend, browser IDE, and feature workers — all wired together and ready to go. + + + + 🐳 Docker only + No builds + + No builds. No cloning five repos. Just Docker. ## Prerequisites -| Requirement | Minimum | -|-------------|---------| -| Docker | 20.10+ | -| Docker Compose | v2.0+ | -| RAM | 8 GB available for containers | -| Disk | ~5 GB for images + volumes | + + 20.10+ + v2.0+ + 8 GB available for containers + ~5 GB for images + volumes + ## Quick start -```bash -git clone https://github.com/projectcontinuum-org/continuum-local-setup.git -cd continuum-local-setup/docker -docker compose up -d -``` + -Wait for all containers to become healthy, then open the [Continuum Workbench](http://127.0.0.1:3002/#/home/node/example-workflows). Example workflows are pre-loaded under `/home/node/example-workflows/`. +1. Clone the repo and start the stack: -Verify everything is running: + ```bash + git clone https://github.com/projectcontinuum-org/continuum-local-setup.git + cd continuum-local-setup/docker + docker compose up -d + ``` -```bash -docker compose ps -``` +2. Verify everything is running: + + ```bash + docker compose ps + ``` + + All services should show `running` (the `temporal-search-attributes-init` container exits after setup — that's expected). -All services should show `running` (the `temporal-search-attributes-init` container exits after setup — that's expected). +3. Open the [Continuum Workbench](http://127.0.0.1:3002/#/home/node/example-workflows). Example workflows are pre-loaded under `/home/node/example-workflows/`. + + Stop everything: @@ -46,6 +62,35 @@ docker compose down -v # also remove volumes The compose stack has three layers: infrastructure, platform services, and feature workers. +```mermaid +flowchart LR + subgraph Workers["🧩 Feature workers"] + FB["continuum-feature-base"] + FC["continuum-feature-cheminformatics"] + end + subgraph Platform["🌐 Platform services"] + WB["continuum-workbench"] + API["continuum-api-server"] + MB["continuum-message-bridge"] + end + subgraph Infra["🏗️ Infrastructure"] + PG[("PostgreSQL")] + T["Temporal"] + K["Kafka + Schema Registry"] + MQ["Mosquitto"] + S3[("MinIO")] + end + Workers --> Platform --> Infra + Workers --> Infra + + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef store fill:#10b98133,stroke:#10b981,stroke-width:2px + class FB,FC worker + class WB,API,MB core + class PG,T,K,MQ,S3 store +``` + ### Infrastructure services | Service | Port | Purpose | @@ -80,21 +125,37 @@ Want AI nodes? Add the `continuum-feature-ai` worker image to the compose file f The `docker/example-workflows/` directory is mounted into the workbench container: -| Workflow | What it demonstrates | -|----------|---------------------| -| `SensorDataPipeline.cwf` | IoT sensor data → anomaly detection → conditional routing → batch alerts via REST | -| `AnomalyDetector.cwf` | Z-score anomaly detection with conditional splitting | -| `RESTNode.cwf` | Making HTTP requests to external APIs from a workflow | -| `Unsloth.cwf` | LLM fine-tuning configuration (requires the AI worker) | + + + IoT sensor data → anomaly detection → conditional routing → batch alerts via REST + + + Z-score anomaly detection with conditional splitting + + + Making HTTP requests to external APIs from a workflow + + + LLM fine-tuning configuration (requires the AI worker) + + ## Troubleshooting -**Containers keep restarting?** Check logs: `docker compose logs --tail 100` +:::warning[Containers keep restarting?] +Check logs: `docker compose logs --tail 100` +::: -**Temporal not starting?** PostgreSQL needs to be healthy first — give it 30–60 seconds on first run. +:::info[Temporal not starting?] +PostgreSQL needs to be healthy first — give it 30–60 seconds on first run. +::: -**Workbench shows connection errors?** The API server may still be starting. Wait until `docker compose ps` shows all services as `running`. +:::info[Workbench shows connection errors?] +The API server may still be starting. Wait until `docker compose ps` shows all services as `running`. +::: -**Out of memory?** Kafka + Temporal + all services need ~6–8 GB. Increase Docker's memory limit in Docker Desktop settings. +:::danger[Out of memory?] +Kafka + Temporal + all services need ~6–8 GB. Increase Docker's memory limit in Docker Desktop settings. +::: See the full [continuum-local-setup README](https://github.com/projectcontinuum-org/continuum-local-setup) for more detail. diff --git a/versioned_docs/version-0.0.20/intro.mdx b/versioned_docs/version-0.0.20/intro.mdx index 9fb8cf0..bf039a8 100644 --- a/versioned_docs/version-0.0.20/intro.mdx +++ b/versioned_docs/version-0.0.20/intro.mdx @@ -1,29 +1,85 @@ --- sidebar_position: 1 slug: /intro +sidebar_label: 👋 Introduction --- # Introduction + + Project Continuum is an open-source, browser-native visual workflow platform — inspired by [KNIME](https://www.knime.com/), built for the cloud. You design workflows as a drag-and-drop graph of nodes, and the platform runs them durably: a crashed worker, a dead Kafka broker, or a dropped connection doesn't lose your progress. -Apache 2.0 licensed. No desktop install — the entire IDE runs in your browser. + + + + Apache 2.0 + Browser-native IDE + Powered by Temporal + Parquet data passing + + +No desktop install — the entire IDE runs in your browser. ## Why Continuum -- **Browser-native canvas** — a full IDE experience (Eclipse Theia + React Flow) with zero install. -- **Crash-proof execution** — powered by [Temporal](https://temporal.io), workflows survive process crashes, network failures, and restarts. Every step retries automatically. -- **Real-time streaming** — watch workflows execute step-by-step. Kafka streams events to your browser via MQTT over WebSockets. No polling, no refresh. -- **Columnar data passing** — nodes exchange Apache Parquet tables, not JSON blobs. Fast, compressed, query-ready. -- **Extensible by design** — add capabilities by deploying new worker services, not by modifying existing ones. Zero downtime, zero coupling. + + + A full IDE experience (Eclipse Theia + React Flow) with zero install. + + + Powered by [Temporal](https://temporal.io), workflows survive process crashes, network failures, and restarts. Every step retries automatically. + + + Watch workflows execute step-by-step. Kafka streams events to your browser via MQTT over WebSockets. No polling, no refresh. + + + Nodes exchange Apache Parquet tables, not JSON blobs. Fast, compressed, query-ready. + + + Add capabilities by deploying new worker services, not by modifying existing ones. Zero downtime, zero coupling. + + + Apache 2.0 licensed, from the workbench to the workers. + + ## How it fits together -A workflow is a directed graph of nodes. Each node runs as a Temporal activity dispatched to whichever feature worker registered it — base analytics, cheminformatics, AI/ML, or your own custom worker. See [Architecture Overview](./architecture/overview.md) for the full execution path. +A workflow is a directed graph of nodes. Each node runs as a Temporal activity dispatched to whichever feature worker registered it — base analytics, cheminformatics, AI/ML, or your own custom worker. + +```mermaid +flowchart LR + UI["🖥️ Workbench
(browser)"] -->|Execute| API["API Server"] + API --> T["⏱️ Temporal"] + T -->|dispatch node| W1["📊 Base Analytics"] + T -->|dispatch node| W2["🧪 Cheminformatics"] + T -->|dispatch node| W3["🤖 AI / ML"] + T -->|dispatch node| W4["🧩 Your worker"] + + classDef ui fill:#8b5cf633,stroke:#8b5cf6,stroke-width:2px + classDef core fill:#ec489933,stroke:#ec4899,stroke-width:2px + classDef worker fill:#06b6d433,stroke:#06b6d4,stroke-width:2px + class UI ui + class API,T core + class W1,W2,W3,W4 worker +``` + +See [Architecture Overview](./architecture/overview.md) for the full execution path. ## Where to go next -- [Getting Started](./getting-started/local-setup.md) — run the whole platform locally with one `docker compose up`. -- [Architecture](./architecture/overview.md) — how a workflow actually executes, end to end. -- [Feature Nodes](./feature-nodes/base-analytics.md) — what you can build with today. -- [Deployment](./deployment/helm-charts.md) — running Continuum on Kubernetes. + + + Run the whole platform locally with one `docker compose up`. + + + How a workflow actually executes, end to end. + + + What you can build with today. + + + Running Continuum on Kubernetes. + +