Nucleus

Ship microservices in days, not quarters.

Production-ready Java/Spring foundation that handles auth, messaging, monitoring, audit, AI, and real-time delivery — so your team only writes business logic.

Designed & architected by Damian Balliro — Senior Java/Spring Microservices Architect LinkedIn
Read the Architecture → Talk to the Architect

17 modules · 866+ tests · Powers 3 multi-tenant SaaS products in production · Java 17 · Spring Boot 3.5

What is Nucleus

Nucleus bundles every problem a serious Spring Boot codebase eventually has to solve into a single production-tested framework. Adopt one module or all 17.

📈

For platform engineers

Drop-in OAuth2, Kafka across 13 brokers, audit, monitoring, and SSE. Stop building infrastructure that's already been built three times across the company.

🏢

For tech leads & architects

One reference architecture across every service. Onboarding shrinks from 2 weeks to 2 days. Compliance becomes declarative, not bespoke.

🚀

For startups shipping fast

Day-one production readiness. Multi-tenancy, encryption, PII-safe logging — out of the box. Focus engineering hours on the product, not the plumbing.

Features

Click any card for a 60-second narrated explanation (browser speech synthesis included).

NEW
🗃

Reference-Data Framework

Bucketed Pattern A primitive for managed code lists — address types, classification labels, status enums. One library + one table + one generic UI admin replaces a per-entity service per code list. Add a bucket name, you're done.

NEW
🌏

Address Service (Consolidated)

Two modules became one. nucleus-address-common merged into nucleus-address. AddressType moved to a reference-data bucket; admins manage 27 values via the generic UI without code changes.

NEW
📩

Mail Pipeline (Consolidated)

Three services collapsed into one. nucleus-mail-renderer + nucleus-mail-sender are gone — folded into nucleus-mail. Internal Kafka stages remain for retry isolation; one deployable, one ops surface.

NEW
🔒

Authentication & Security

OAuth2/OIDC server with JWT rotating keys, role-based access control, login audit trail, and a hardening pack: account lockout, password expiration, history check, forced change on admin reset, and self-service forgot-password flow with one-time email links. All policy knobs are PROPERTIES-driven per tenant.

📋

Declarative Audit Trail

One annotation on any method logs who did what, when. SpEL expressions for dynamic descriptions. Kafka-published for real-time dashboards.

📡

Messaging Abstraction

One @NucleusListener + @NucleusPublish across 13 backends — Kafka, RabbitMQ, SQS, SNS, Kinesis, Google Pub/Sub, Azure Service Bus, ActiveMQ, Artemis, Solace, IBM MQ. Zero-boilerplate consume and publish.

🧠

AI Framework

Provider-agnostic LLM client. OpenAI and Anthropic out of the box, multimodal support, retry and error classification built in. Add a new provider in three beans.

🔄

Workflow + Step Executors

Model async multi-step flows with @WorkflowStep on Kafka. Each step scales independently. Three clear outcomes per step: handled, delegate, abort.

📈

Service Monitoring

Kafka-push health snapshots, remote log/GC/thread streaming, scheduled logging windows, per-instance control (restart, shutdown), MinIO archival, fleet-scale tree UI with Log Explorer. Per-service configurable via PROPERTIES.

🕑

Scheduled Remote Logging

Time-based logging windows with timezone-aware scheduling. One-time, daily, weekday, or weekend recurrence. Level filtering, persistent mode, overnight windows, and auto-deactivation — all server-side, no admin online required.

Real-Time Push (SSE)

Server-Sent Events with role-based delivery. Live dashboards, job progress, notifications — all through one SSE channel with high-priority control lane and message expiration.

🔐

Field-Level Data Obfuscation

AES/GCM per-client encryption for sensitive fields. Users lock/unlock data from the UI. Encrypted at rest, decrypted only in-memory. Hash-based batch matching, obfuscation rule audit trail, cross-service key management.

🛡

PII-Safe Logging

Automatic sanitization of sensitive data in logs. Four masking strategies (partial, full, hash, none), YAML-configured per service, field-level @Pii annotations, zero-config @CustomLog integration.

🔎

Session Tracking & Diagnostics

Every request carries a browser-generated session ID through all services via MDC. Users share it from the Support dialog — support traces the entire session across microservices in seconds.

Java 17 Spring Boot 3.5 · Spring Cloud Config Kafka · JMS · AMQP · Cloud OpenAI · Anthropic JPA (Any DB) MinIO Angular 19 · SSE Thymeleaf OAuth2/OIDC OpenAPI 3.0 Spock · Groovy

How it works

Each module is independent. Adopt one or all 17. No monolithic decision required.

Pick a module

Browse the 17-module reference. Pick what you need: auth, audit, messaging, AI, monitoring, etc.

Add the dependency

One Maven entry. Spring auto-config wires the components into your existing service.

Annotate & configure

@AuditAction, @NucleusListener, @WorkflowStep — declarative annotations replace boilerplate. Set properties via Spring Cloud Config.

Boot & ship

Service self-registers, joins the audit pipeline, starts streaming health metrics. You write business logic.

Use cases

Where Nucleus is being used in production today, and where it fits next.

🏢

Multi-tenant SaaS platforms

BookWise, GoldFish, TaskSense — three live ecosystems running on Nucleus today, sharing infrastructure but isolating data per tenant.

📑

Compliance-heavy products

Finance and healthcare teams that need built-in audit trail and field-level PII protection without per-service custom code.

🧠

AI-integrated backends

Provider-agnostic LLM routing means switching from OpenAI to Anthropic to a private model is a config change, not a refactor.

Multi-cloud event-driven systems

Run on Kafka in one region, RabbitMQ in another, SQS in a third — same application code, different adapter library.

👨‍💻

Engineering teams scaling up

One reference architecture across every service reduces onboarding from weeks to days, drops ops surface dramatically.

Demo

Walkthrough video coming soon. In the meantime, the live module documentation is the deepest available reference.

🎥

Architecture walkthrough video coming soon.
Until then: explore the full module reference →

Why Nucleus vs in-house

The honest tradeoff between building it yourself and adopting a battle-tested foundation.

Build it yourself Adopt Nucleus
Time to first business-logic line3–6 months of plumbingUnder a week
Cross-cutting concerns (audit, PII, auth)One per service, drift over timeOne implementation, applied uniformly
Vendor lock-in (messaging, AI, DB)Permanent without major refactorConfig switch
Compliance (audit trail, PII handling)DIY + audit riskBuilt-in, declarative
Onboarding new engineersRead 5 services, learn 5 patternsRead Nucleus docs once
CostSenior platform team for 12+ monthsDrop-in framework

17 Production Modules

nucleus-coreBase components, JWT, AI framework, workflow engine
nucleus-authenticationOAuth2/OIDC with rotating keys
nucleus-audit-core@AuditAction declarative audit
nucleus-connectors@NucleusListener + @NucleusPublish — Kafka, JMS, AMQP, cloud
nucleus-connectors-adminRuntime connector provisioning (REST + UI)
nucleus-monitoringHealth pipeline, log/GC/thread persistence, MinIO archival, fleet registry
nucleus-monitoring-clientSelf-registration, remote logging, thread dumps, GC events, async appender
nucleus-ui-message-brokerSSE with role-based delivery
nucleus-mail NEWKafka email pipeline (renderer + sender consolidated)
nucleus-storageMinIO/S3 file storage
nucleus-execution-eventsAsync job framework
nucleus-configSpring Cloud Config Server
nucleus-userUser management & roles
nucleus-address NEWGoogle Maps address validation, Address @Embeddable
nucleus-contact-infoPer-owner contact-info @Embeddable (phones, emails)
nucleus-reference-data NEWReferenceDataItem entity, repository, service — shared lib
nucleus-reference-data-service NEWREST/DB owner for all generic reference-data buckets (Pattern A)

Where Nucleus is going

The roadmap. None of these are vapor — each builds on a piece that's already shipped.

PLANNED

Nucleus Cloud

Managed hosted control plane for the broker, audit, and monitoring services. Bring your own services; we run the back-office.

DESIGN

Nucleus Studio

Visual workflow designer that emits @WorkflowStep code. Bridge between business analysts and engineers.

VISION

Polyglot SDKs

First-class TypeScript/Node and Python service participants in the same audit / monitoring / SSE topology as the JVM services.

Building the next thing? Start with a foundation that's already shipped.

Nucleus powers three production multi-tenant SaaS products today. Read the architecture, then connect with the architect.

Read the Architecture → Connect on LinkedIn