Back to projects
personal

Nautical ERP (nautica_erp)

Autonomous Maritime Operations & Voyage Clearance Engine

Commercial shipping ERP automating SOLAS, STCW 2010, and MARPOL compliance checks through a Deterministic Maritime Clearance Engine paired with a Google Gemini AI Maritime Superintendent Agent.

Python 3FastAPIAsync SQLAlchemy 2.0PostgreSQLTypeScriptGoogle Gemini SDKpytestDocker

Problem

Before a commercial vessel can cast off (Port Clearance), Technical Superintendents must manually audit dozens of SOLAS hull/engine defect logs, STCW 2010 crew certificates, and MARPOL bunker fuel reserves.

Solution

Engineered an async FastAPI + PostgreSQL platform featuring a Deterministic Maritime Clearance Engine that mathematically verifies fuel buffers, crew manning tables, and critical defects before generating an AI Superintendent audit report.

Architecture & Engineering Highlights

  • Built a Deterministic Maritime Clearance Engine enforcing SOLAS, STCW 2010, and MARPOL regulations prior to vessel departure.
  • Implemented mathematical verifiers for steaming hours, mandatory 15% safe reserve bunker fuel buffer, VLSFO/MGO burn-rate anomalies, and crew certification expiry.
  • Integrated Google Gemini SDK for structured Multi-Factor Voyage Clearance Audit reports backed by 17 pytest suites.

System Architecture

[Web / API Client]
        |
        v  (HTTP / JSON)
[FastAPI Application (Async Python 3)]
  |-- Routers: Vessels, Crew, Voyages, Bunker, Maintenance, AI Agent
  |-- Deterministic Maritime Clearance Engine
  |     |-- Steaming Hours = Distance / Knots
  |     |-- Safe Fuel = Base Fuel * 1.15 (15% Reserve Buffer)
  |     |-- STCW 2010 Expiry & Minimum Manning Verification
  |     +-- SOLAS Critical PMS Defect Screening
  +-- AI Maritime Superintendent Agent (google-genai SDK)
        |
        v
[PostgreSQL (Async SQLAlchemy 2.0)]

Capabilities

Full Stack Engineering

TypeScript FrontendRESTful OpenAPI Schema

Backend & Data

FastAPIAsync SQLAlchemy 2.0PostgreSQL

AI Engineering

Deterministic Rule Engine + Gemini AgentMulti-Factor Compliance Audit

Delivery & Quality

17 Automated Test Filespytest Async SuiteDockerized Stack

Engineering Decisions

ChallengeDecisionRationale
Safety-critical maritime clearance cannot rely solely on probabilistic LLM outputs.Deterministic Clearance Engine Before LLM SynthesisHard mathematical and regulatory checks (15% fuel reserve, STCW expiry, SOLAS defects) are computed deterministically first; the AI agent only synthesizes verified facts.
Concurrent multi-table queries across vessels, crew, bunker logs, and maintenance tickets.Async SQLAlchemy 2.0 with PostgreSQLProvides non-blocking database I/O and strict transactional integrity during voyage clearance audits.

My Contribution

  • Designed the maritime domain schema covering Vessels, Crew STCW Certificates, Voyages, Bunker Logs, and PMS Defects.
  • Implemented the deterministic SOLAS/STCW/MARPOL clearance algorithms and pytest verification suite.

Quantified Engineering Metrics

119 Source Files17 Automated Test Files3 Docker ConfigsSOLAS / STCW / MARPOL Engine