API Reference

ecbyts Documentation

Environmental Digital Twin Platform — complete user guide for creating 3D models of environmental monitoring sites with linked temporal data, scientific analytics, ML-powered recognition, and blockchain-backed integrity.

v0.3.0

Overview

ecbyts (Environmental & Occupational Core Byte Tools) is a platform for Environmental Digital Twins. It creates 3D models of environmental monitoring sites — contaminated areas, water bodies, remediation projects — with linked temporal observation data, scientific analytics, ML-powered recognition, and blockchain-backed data integrity.

ecbyts main interface with 3D environmental site, contamination plumes, monitoring wells, and satellite imagery

3D Digital Twins

Build and visualize 3D models of environmental sites with interactive camera controls.

Scientific Analytics

Mann-Kendall trends, predictions, cost analysis, and prescriptive optimization.

Blockchain Integrity

SHA-256, ECDSA signatures, Merkle trees, and hash chains for tamper-proof data.

AI-Powered

Multi-provider LLM assistant, ML image recognition, and neural network modules.

Compliance

CONAMA/CETESB validation, domain validators, ESH matrices, and regulatory support.

IoT Integration

Connect real-time sensors for continuous environmental monitoring.

Quick Start

  1. Open the application at https://ecbyts.com or localhost:4000 for local development.
  2. On first visit, the Welcome Screen lets you choose an init mode: Random Model, Map Picker, Last Location, or Blank.
  3. Use the toolbar at the top to access grouped actions: File, History, Insert, Libraries, View, Analyze, and More.
  4. Click Insert > Add Element to create your first environmental element (well, plume, lake, etc.).
  5. Add Campaigns to define sampling events, then add Observations (parameter + value + timestamp) to your elements.
  6. Use the 3D viewport to visualize your site. Rotate (left-click drag), pan (right-click drag), zoom (scroll).
  7. Go to Optimize tab for analytics, neural networks, and guided environmental workflows.
  8. Export your model using File > Export to save as an ECBT key.

Demo Mode

Click File > Random to instantly create a sample site with elements, campaigns, observations, ticker data, and analytics. Great for exploring features.

Interface Guide

Layout

The application uses a CSS Grid layout with five main areas:

ecbyts interface guide with top toolbar, side panels, central viewport, and bottom Constellation HUD

Panel Reference

These screenshots summarize the main panels and navigation surfaces used by most modules and submodules:

Top toolbar with grouped actions for file, insert, libraries, view, analysis, and utilities Left panel with family browser and element tree Right panel with inspector tabs for project, elements, campaigns, scenes, analytics, and governance Bottom Constellation HUD with graph, report, storyboard, and operational tabs

Dockable Panels

All panels support three states: docked (fixed to edge), minimized (collapsed to edge tab), and floating (draggable, resizable). Right-click a panel title bar for options.

Toolbar Groups

The toolbar uses a flat layout with permanent groups and dropdown menus for progressive disclosure:

GroupPurposeKey Actions
FileProject lifecycle and exchangeNew, Random, Clear Model, Open/Import, Export, Download Key, Share URL, Drawing Plate, Diff & Merge
HistoryEdit history and duplicationUndo, Redo, Copy, Paste
InsertAdd model content and source dataElement, Campaign, Scene, Data Entry Matrix, EDD Import, DXF/CAD, Georeference, Field Variables, Sensors Center, Families
LibrariesReusable content and packaged knowledgeInstalled Libraries Gallery, Marketplace, Library Manager, Import Library, Product Wizard
ViewCamera, layout, and display controls3D, Top, Front, Fit All, 2D/3D Toggle, Reset, Panels, Theme, Labels, Inspector, Symbology, Performance, Customize
AnalyzeAnalytics, modeling, automation, and AITemporal, Interpolation, Analytics/Governance/Cost/Issues panels, Hypothesis Test, MAC Curve, Geology, Voxels, EIS, SAO, Regulatory Standards, Aerial Recognition, ML, Workflows, Pipelines, AI Assistant
MoreAuxiliary workspace utilitiesFocus Mode, Snapshot, Account Usage, About, Documentation

Two additional toolbar surfaces appear contextually: Voxel Controls are shown only when voxel mode is active, and the Edit Ribbon replaces the main toolbar while shape editing is in progress.

View Modes

The application has a View Router that manages four distinct modes, switchable via the toolbar or keyboard:

ecbyts 2D view mode with terrain interpolation overlay
ModeDescription
HomeDashboard grid with project cards, recent activity, and quick actions. No 3D scene loaded.
ActionsFocused on data entry and tabular workflows — elements list, campaigns, observations.
2DTop-down orthographic view. Ideal for site plans, interpolation surfaces, and spatial analysis.
3DFull perspective 3D scene with orbit controls, labels, terrain, and voxel layers.

Lazy 3D Initialization

The Three.js scene only initializes when you first switch to 2D or 3D mode. This keeps the Home and Actions views fast and lightweight.

Element Families (PDPL-U / PDPLU)

Elements are the building blocks of your environmental model. Each element belongs to a family that determines its 3D representation, available properties, and behavior. The classification follows the PDPL-U / PDPLU model.

In ecbyts, PDPL-U and PDPLU refer to the same organizing model: Ponto, Data, Parametro, Leitura, Unidade. This structure underpins the platform's element families, tabular observation views, CSV exports, and the broader organization of environmental records and site entities.

When you see PDPLU in the bottom Constellation HUD, it is the same concept rendered as a flat observation table and export format.

Elements panel listing PDPL-U families and model items in the side inspector
FamilyIDDescription
Environmental Monitoring
Contamination Plumeplume3D volume representing contaminated groundwater or soil. Can be visualized with interpolation surfaces.
Monitoring WellwellVertical borehole used for sampling groundwater. Supports constructive and lithologic SVG profiles.
LakelakeSurface water body. Can hold water quality observations over time.
RiverriverFlowing water body modeled as a linear feature with cross-sections.
SpringspringNatural groundwater discharge point. Important for hydrogeological models.
Sample PointsampleSoil, surface water, or other sampling location.
Geological LayerstratumSubsurface stratum representing different soil/rock types.
MarkermarkerGeneric reference point for any location of interest.
SensorsensorRemote IoT monitoring device. Collects real-time environmental data via external protocols.
Infrastructure
BuildingbuildingInfrastructure element. Used as spatial reference for site layout.
Storage TanktankChemical or fuel storage container. Potential contamination source.
BoundaryboundaryProperty or study area limits. Defines the extent of the model.
Spatial BlueprintblueprintImported CAD/GIS footprint from DXF files. Provides base mapping.
ESG & H&S
Organizational AreaareaPlant sector or zone. Used for H&S metrics and resource allocation.
IndividualindividualPerson, animal, or tree. For H&S (workers) and biodiversity (fauna/flora).
IncidentincidentH&S occurrence: accidents, near-misses, first aid.
Emission Sourceemission_sourceChimney, vent, or fugitive emission point. For atmospheric emission inventories.
Waste Streamwaste_streamSolid waste flow. For waste management and recycling tracking.
Effluent Pointeffluent_pointLiquid effluent discharge point. For effluent quality monitoring.
HabitathabitatBiodiversity area: ecosystems, protected areas, restoration zones.
Special
Intangible AssetintangibleContracts, carbon credits, green energy certificates, environmental licenses.
Generic ElementgenericWildcard type for elements that do not fit any other family.
Geological FaultfaultGeological fault trace or zone. Used in structural geology and seismic hazard models.
Mining & Civil
DamdamWater or tailings containment structure. Used in mining, hydro, and sanitation projects.
Open-pit MinepitSurface benched excavation. Used in mining, quarries, and post-closure remediation.
Fleet & Operations
VehiclevehicleMobile fleet element (trucks, machinery, drones). Used for logistics and emission tracking.
EquipmentequipmentOperational equipment (pumps, generators, instruments). Used for CAPEX/OPEX and maintenance.
Linear Infrastructureinfra_linearLinear built elements: pipes, cables, fences, conveyor belts.
Treatment Systemtreatment_systemRemediation and treatment systems: pump & treat, SVE, bioreactors, oil-water separators, septic systems.
AtmosphereatmosphereAtmospheric zone or air mass. Used for air quality and GHG dispersion modeling.
Transport & Flow
Route & Flowroute_flowLinear directional elements: sampling routes, vehicle routes, pipes, connectors. Supports Manning hydraulics and graph connectivity.
Containers (Hierarchy)
Projectsite_projectTop-level project container grouping all areas and zones of a site.
Areasite_areaDefined area within a project (e.g., contamination source zone, investigation perimeter).
Zonesite_zoneSub-division of an area for granular spatial organization.

Adding Elements

Go to Insert > Add Element, select a family, and the element will appear in the 3D viewport. Drag to position it. Use the Property Inspector (right panel) to edit coordinates, name, and properties.

Campaigns

A Campaign represents a field sampling event — a specific date when a team collected data from multiple elements. Campaigns organize observations chronologically.

Campaigns tab showing campaign records and related environmental sampling data

Observations

An Observation is a single measurement at a specific point in time: a parameter (what was measured), a value (the result), and a timestamp (when). Observations are the core data of the environmental model.

Observation-focused view with temporal measurements linked to elements and campaigns

Scenes

Scenes are saved camera viewpoints and display configurations. They let you quickly switch between different views of your model.

Scenes tab with saved viewpoints and display presets for the environmental model

Stamps & Edges

Stamps are compliance or status tags attached to elements. Edges are directed relationships between elements, forming a knowledge graph of your environmental site.

Stamps and edges interface showing compliance tags and directed relationships between elements

Stamps

20+ predefined tags for element annotation:

Edges

15+ directed relationship types between elements:

Adding Stamps & Edges

Select an element, then use the Stamps tab in the right panel to toggle tags. For edges, use the Edge Editor to create directed relationships between two selected elements.

Unit Conversion Engine

90+ units across 12 dimensions with automatic conversion between compatible units. When observations use different units for the same parameter, the engine converts values transparently for analytics and compliance checks.

Unit conversion controls with engineering units applied to environmental parameters
DimensionUnits
Concentrationmg/L, μg/L, ppm, ppb, mg/kg, μg/kg, meq/L, mol/L
Lengthm, cm, mm, km, ft, in, yd, mi
TemperatureCelsius, Fahrenheit, Kelvin
Flowm³/s, L/s, m³/h, L/min, gal/min
Masskg, g, mg, μg, ton, lb
Aream², ha, km², acre
Volumem³, L, mL, gal
EmissionstCO2e, kgCO2e (GWP: CH4=28, N2O=265, SF6=23500)
Safety ratesper 200k hh (OSHA), per 1M hh (OIT)
Biodiversityspecies count
NoisedB(A)
DimensionlesspH, ratio, percentage

Auto-Conversion

When autoConvert is enabled on an observation, the system converts values to the parameter's default unit automatically. Custom parameters can define their own unit dimensions.

3D Scene

The 3D viewport is powered by Three.js and renders your environmental model in real-time.

3D viewport with terrain surface, environmental elements, and monitoring wells

Camera Controls

ActionMouseTouch
Rotate / OrbitLeft-click + dragOne finger drag
PanRight-click + dragTwo finger drag
ZoomScroll wheelPinch
Select elementLeft-click on elementTap on element
Reset cameraDouble-click backgroundDouble-tap background

Visualization Options

3D Labels

In-scene element labeling using CSS2DRenderer billboards that always face the camera.

3D scene with dynamic labels for elements and environmental measurements

Symbology Profiles

Standardized visual mapping profiles that control how elements are rendered in the 3D viewport. Symbology profiles ensure consistent visual communication across environmental site investigations.

Activating Symbology

Go to View > Symbology in the toolbar to select or manage profiles. The active profile is persisted in the model and included in ECBT exports.

Analytics

The analytics module provides scientific analysis tools for environmental monitoring data, organized as a multi-viewport workspace.

Analytics workspace with Constellation HUD interpolation tab and 3D scene

Available Analyses

EventBus Integration

All analytics viewports communicate via a central pub/sub EventBus. Selecting a data point in one viewport highlights it across all others.

Parameter Filter & Radar (FEAT-FILTER-RADAR-001)

Aggregation engine that groups environmental parameters into 7 canonical classes and computes per-element radar charts for rapid multi-contaminant assessment.

Academic Reference

P95 interpolation method per EPA-240/B-06-003 §A.1.3. Group classification follows EPA QAPP §3.4.2 analyte category schema.

Scenario Simulation

Probabilistic environmental scenario modeling using Monte Carlo and Latin Hypercube Sampling (LHS). Evaluate remediation strategies under uncertainty before committing resources.

Monte Carlo Scenario Simulation modal with BTEX plume scenario and execution controls

Running a Simulation

Go to Analyze > Scenarios MC in the toolbar. Select a scenario, configure distributions, and click Execute. Results target <2 s for 300 runs.

Calculator

The Calculator is a reusable filter pipeline for computing environmental metrics, compound rules, and parameter ratios from live model data.

Calculator panel with environmental metrics, BTEX compliance, and parameter ratios

Calculator items are defined via the Data Entry Matrix in the Constellation HUD and persist in the model.

Import / Export (ECBT)

The ECBT format is the unified serialization format for ecbyts models. It supports both simple and blockchain-backed models.

Export modal with ECBT key format selection and generated key

Export

Import

ECBT Format Variants

Simple models use 6 segments. Blockchain-backed models use 10 segments (adding key ID, hash chain, Merkle root, and ECDSA signature). Both use the ECBT prefix — the format is differentiated by internal structure.

Simple (A):     ECBT.A0000001-{families}-{salt}-{checksum}-{payload}-10000000A.TBCE
Blockchain (B): ECBT.B0000001-{families}-{keyId}-{prevHash}-{merkle}-{signature}-{salt}-{checksum}-{payload}-10000000B.TBCE
Compressed (C): ECBT.C0000001-{families}-{salt}-{crc32}-{payload}-10000000C.TBCE

Family codes encode which element types are present (e.g., “PWM” = Plume, Well, Marker). The checksum is a 4-character hex for integrity verification. Legacy ECO1 keys (without the ECBT envelope) are still accepted on import.

Files Module

Cloud-based file management integrated with Supabase Storage. Attach documents, images, and reports to your environmental model with full versioning and access control.

Accessing Files

Open the Files panel from the right sidebar or use More > Files in the toolbar. Files are synced to Supabase Storage and available across devices when authenticated.

IFC / BIM Export

Export your environmental model to IFC4 format (ISO 16739-1:2018), the international BIM standard for integration with Autodesk Revit, ArchiCAD, and BIM 360.

Exporting to IFC

Go to File > Export > IFC (.ifc). The file can be opened in any IFC-compliant viewer (BIM Vision, IFC.js, xBIM).

Power BI Integration (BI v1)

Tabular BI API designed for analytics tools like Power BI. Endpoints expose a star-model friendly structure.

Interpolation

Spatial interpolation creates continuous surfaces from point observations, essential for mapping contamination plumes and terrain.

Interpolation panel with topographic surface configuration and layer controls

Performance

Heavy interpolation computations run in a Web Worker off the main thread. Results are persisted to IndexedDB to avoid recomputation on reload.

Potentiometric Maps & Plume Generation

Automated spatial analysis from monitoring campaign data, generating potentiometric surfaces and contamination plumes.

Potentiometric mapping workflow with generated groundwater surface and plume analysis

Generating a Potentiometric Map

Ensure your wells have water_level observations in at least one campaign. Go to the Interpolation panel in the Constellation HUD, select the campaign and Water Table layer type, then click Generate.

Voxel Modeling

3D subsurface modeling using volumetric voxels for contamination plume visualization and geochemical analysis.

Voxel-based subsurface visualization for contamination and geological analysis

Neural Networks

Custom neural network module for predictive modeling of environmental data.

ML Studio side panel with trained networks and training data preview

Fine-Tuning Pipeline

Domain-specific fine-tuning pipeline for training language models on environmental data. Uses Qwen2.5 as the base model with LoRA adapters for efficient specialization.

Pipeline Stages

StageDescription
Data CurationExtract training pairs from environmental reports, observations, and compliance data. Auto-generates instruction/response pairs from PDPLU records.
Format ConversionConvert curated data to ChatML/Alpaca format compatible with fine-tuning frameworks (Unsloth, Axolotl).
TrainingLoRA fine-tuning with rank 16, alpha 32. Targets: q_proj, v_proj, k_proj, o_proj. Runs on consumer GPUs (RTX 3090+).
EvaluationAutomated benchmarks: environmental term accuracy, regulatory citation, unit conversion, and CONAMA/CETESB compliance checks.
DeploymentExport GGUF quantized model for local inference via Ollama or LM Studio integration.

Training Data Sources

The pipeline ingests ecbyts model data (elements, observations, campaigns), environmental regulations (CONAMA, CETESB), and domain glossaries to produce a model specialized in Brazilian environmental consulting terminology and workflows.

ML Recognition

Machine learning modules for automated image analysis and environmental feature detection.

Aerial Recognition modal with image source selection for automated feature detection

Aerial Georeferencing

Workflow for georeferencing user-owned aerial or satellite images onto the 3D model.

Aerial georeferencing workflow with control points and map alignment

Current Limits

GeoTIFF embedded coordinates are not auto-read yet (manual GCP works). Images >5 MB increase ECBT payload size and trigger a warning.

Blockchain Integrity

Data integrity is enforced through cryptographic primitives, ensuring environmental data cannot be tampered with after collection.

Export workflow centered on ECBT key generation and cryptographic model portability

Audit Trail

The crypto module works transparently. When blockchain mode is enabled, every observation and campaign update is automatically hashed and chained. The ECBT export includes the full integrity proof.

EIS — EnviroTech Integrity Score

The EIS (EnviroTech Integrity Score) evaluates the quality and trustworthiness of an environmental model using the 3CTA+ framework — a non-compensatory geometric weighted mean across 6 axes.

EIS Dashboard with 3CTA+ donut chart, score axes, and integrity verdict

Score Axes

AxisWeightWhat It Measures
T — Transparency3Evidence of data origin and provenance. Enhanced by academic credentials (1.0x–2.0x).
A — Accuracy3Sensor health, data accuracy, and measurement precision.
Cp — Completeness2Coverage uptime — planned vs. executed readings across the monitoring network.
Ty — Timeliness2Delivery latency — how quickly data reaches the platform after collection.
Cs — Consistency1SI unit consistency and internal coherence across datasets.
Cm — Comparability1Taxonomy alignment — consistent naming and classification enabling cross-site comparison.

Score Interpretation

Veto Mode

In veto mode, if Technicality (T) or Accuracy (A) scores ≤ 2, the EIS is automatically set to 0.0 — a "kill switch" that flags fundamentally unreliable data regardless of other scores.

SAO Matrices

Environment, Safety & Health (ESH) risk assessment using Systematic Assessment of Operations matrices.

SAO risk matrix module for environment, safety, and health assessment

Compliance Validation

Multi-level compliance validation against environmental regulatory standards.

Regulatory Standards panel with CONAMA/CETESB threshold values for soil and groundwater

Built-in Regulations

Domain Validator Engine

A generic, extensible validation engine that loads domain-specific rules from JSON templates:

Validation Profiles

Pluggable compliance rule engine for domain-specific validation beyond the built-in CONAMA/CETESB rules.

Validation profile manager with rule sets for environmental compliance

Custom Profiles

Create a JSON file following the domain validator schema, add your thresholds keyed by CAS Number, and import via Analyze > Domain Validator. Profiles are persisted in the model.

Constants Manager

User-defined constants for scientific calculations: emission factors, uncertainty values, unit conversion factors, and site-specific parameters.

Constants manager for custom scientific and engineering values

Guided Workflows

Step-by-step guided workflows help users through standard environmental engineering processes.

Guided workflow picker with structured environmental engineering processes

Spatial Blueprint (DXF)

Import CAD site plans as Spatial Blueprint elements using the DXF ingestion pipeline.

DXF spatial blueprint import workflow for CAD-based site plans

Data Ingestion

Bulk import environmental data from spreadsheets and documents.

Data import wizard with format selection and supported file types

Spreadsheet Import (EDD)

Rich Document Ingestion (v0.2)

Data Entry Matrix

Bulk data entry interface for observations, designed for rapid field data input without navigating between modals.

Spreadsheet-like data entry matrix for bulk observation input

Storyboard & Sequencer

Create animated sequences and video presentations from your environmental model.

Storyboard and sequencer interface for animated environmental presentations

Pipelines (BPMN)

Automate multi-step workflows using a BPMN-inspired pipeline system.

Pipeline editor for multi-step automation and BPMN-inspired workflows

Treatment Systems

Model and track remediation and treatment infrastructure linked to operational pipelines. The treatment_system family connects physical treatment equipment to automated workflows and cost accounting.

Adding a Treatment System

Use Insert > Add Element and select the Treatment System family. Configure the system type, link to wells and plumes via edges, and optionally attach a BPMN pipeline for operational automation.

Well Geology

Advanced geological analysis modules for monitoring wells, based on Brazilian and international stratigraphic standards.

Accessing Well Geology

Select monitoring wells, then go to Insert > Well Profile. Tabs: constructive profile, lithologic log, cross-section, and NBR 15495-1 compliance report.

Issues 3D (BCF-like)

3D-anchored non-conformity markers for collaborative issue tracking, inspired by BIM Collaboration Format (BCF).

Issues 3D panel with spatially anchored review markers and issue tracking

Data Audit

Detect anomalies and potential fraud in environmental datasets.

Data audit module highlighting anomaly detection and integrity review workflows

Internationalization (i18n)

16 fully-translated locales with lazy loading, interpolation, pluralization, and RTL support.

Localized ecbyts interface demonstrating internationalization support
CodeLanguageCodeLanguage
pt-BRPortuguêsen-USEnglish
es-LAEspañolzh-CNChinese
fr-FRFrançaisde-DEDeutsch
ja-JPJapaneseit-ITItaliano
ko-KRKoreanru-RURussian
id-IDBahasa Indonesiahi-INHindi
tr-TRTürkçepl-PLPolski
sv-SESvenskaar-SAArabic (RTL)

Random Model Generator

One-click demo model generation with realistic environmental data for exploration, training, and presentations.

Random demo model loaded in the main ecbyts workspace

Generating a Random Model

Click File > Random in the toolbar. The model includes fully populated campaigns with observations, making it ideal for testing analytics, interpolation, and export features.

AI Assistant

The built-in AI assistant provides natural language interaction with the platform through a multi-provider LLM engine.

AI assistant chat panel with multi-provider LLM engine and environmental commands

Capabilities

Opening the AI Assistant

Click the AI Assistant floating widget button in the bottom-right corner of the screen.

LLM Dynamic Dispatch

The AI Assistant uses a registry-based dynamic dispatch system with 442+ registered actions organized in 18 semantic categories. Instead of hardcoded function calls, actions are discovered and executed dynamically based on user intent.

3-Tier Prompt Architecture

TierRoleContents
System PromptIdentity & rulesPlatform identity, capabilities summary, response format rules, safety guardrails.
Registry InjectionDynamic contextCurrent model state, available actions grouped by category, active element context.
User MessageIntentNatural language request with optional element/parameter references.

Semantic Categories

Model

Element CRUD, bulk operations, property edits

Analytics

Trends, predictions, statistical tests

Visualization

Camera, layers, labels, symbology

Import/Export

ECBT, JSON, XLSX, DXF, IFC, reports

Compliance

CONAMA, CETESB, domain validators

Infrastructure

Pipelines, workflows, remediation

Agentic Loop

For complex tasks, the AI decomposes the request into a multi-step plan, executes each action sequentially via tool_use calls, and reports results with a structured summary. The loop supports up to 10 chained actions per turn.

MCP Server

A Model Context Protocol (MCP) server that exposes ecbyts functionality to external AI agents and IDE integrations (Claude Desktop, Cursor, VS Code Copilot).

# Start the MCP server
node scripts/ecbyts-mcp-server.js --project ./my-model.json

# Configure in Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "ecbyts": {
      "command": "node",
      "args": ["scripts/ecbyts-mcp-server.js", "--allow-write"]
    }
  }
}

IDE Integration

Add the MCP server to your IDE's AI configuration to let AI assistants query and modify ecbyts models directly from your development environment.

Reports

Generate professional reports from your environmental model data.

Report editor with environmental investigation report and 3D site model

Governance

Project management tools for environmental remediation contracts.

Governance panel with contracts, WBS, and project control modules

Timekeeper

Cross-project time tracking panel embedded in the Constellation HUD. Log hours against projects, phases, and resources without leaving the modeling environment.

Timekeeper tab inside the bottom panel with timer and timesheet modules
SectionDescription
SummaryWeekly, monthly, and lifetime hour totals across all projects.
Live TimerClock-in / clock-out with project, phase, and resource selectors. Elapsed time shown in real time.
Quick EntryFast hour entry for retroactive time logging.
Cross-Project TableFull timesheet view with filters by project, resource, and date range.

Opening Timekeeper

Expand the Constellation HUD (bottom panel) and select the Timekeeper tab. Active timer state persists across page reloads.

IoT Sensors

Connect real-time environmental sensors to your digital twin for continuous monitoring.

Sensor center for linking IoT devices and live environmental feeds

Guided Tours

Interactive step-by-step tutorials that guide you through platform features.

Guided Tours picker with categorized tours for Element Management, Field Data, and more

Map Picker

Interactive georeferencing tool for setting your site's real-world location.

Map picker interface for selecting and georeferencing a site location

Multi-Model Tabs

Work with multiple environmental models simultaneously — each tab is an isolated namespace for elements, campaigns, scenes, and analytics.

Uncertainty (UNC-001 — GUM Tier 1)

First-order uncertainty propagation for environmental measurements following ISO GUM (Guide to the Expression of Uncertainty in Measurement).

Taxonomy / Data Dictionary

Regulatory taxonomy layer that adds auxiliary, standard-aligned fields to elements (EPA WQX, ABNT NBR, CETESB DD-256, CONAMA 420).

Historical Map Upload & Georeferencing

Upload raster maps (PNG/JPEG) and georeference them with 4+ control points using least-squares affine transform. Includes an OCR pipeline for elevation extraction from topographic maps.

PhotoLog

Field photo registry with EXIF GPS extraction, AI vision analysis, and 3D scene markers.

Technical Diagrams (ISA S5.1)

Canvas-based technical diagram editor with process-industry symbology (ISA S5.1 / P&ID / FSM / DFD).

Impact Estimator

Environmental impact estimator with financial formulas (passivo / ativo) traced to CONAMA, CNJ, and INSS benchmarks. Integrates with UNC-001 Monte Carlo for probabilistic risk quantification.

Environmental Valuation (ENV-VAL-001)

Project valuation engine for environmental investments using VPL (NPV), CRF (capital recovery factor), VPLA (equivalent annual value), and MAC curve.

Cost Analysis (CAPEX + OPEX)

Cost roll-up across the PDPL-U hierarchy (site → area → zone → element) with dashboard visualization.

Purpose Module

Track the real-world EIS impact of every modeled action and collect micro-feedback from stakeholders.

Automation Bot Manager

Event-driven automation engine that reacts to file uploads, AI photo tags, map interpolation completion, and other triggers.

Model Radar (Broadcasting)

Broadcast your model's state to stakeholders via time-limited share_code URLs — no account required for viewers.

Sample Files (Public Catalog)

Read-only catalog of reference files hosted on Supabase Storage — aerial images, templates, demos — available to every user without authentication.

DataStudio (SQL over your model)

Run client-side SQL queries against your environmental model — elements, campaigns, observations, edges, layers — without round-tripping to a server.

UI Customization

Personalize the interface: fonts, color palettes, density, home-screen card layout, and default panels.

Error Reporting & Bug Reports

Capture runtime errors and user-submitted bug reports with automatic screenshot, stack trace deduplication, and Supabase ingest.

Libraries Marketplace (v2)

Install and monetize curated libraries of environmental data, ML models, pipelines, and AI services — all under AGPL-3.0-compatible licenses.

License Compatibility

Every marketplace library is evaluated for AGPL-3.0 compatibility before listing. MIT / BSD / Apache / GPL-2.0 / MPL-2.0 are accepted; SSPL / PolyForm / proprietary are blocked.

Inspector

Review the selected element, its observations, relationships, campaigns, hierarchy, costs, and operational metadata in one side panel.

Simulation Lab

Run local environmental simulation routines with explicit parameters, consent, and browser-side execution boundaries.

AI Agents

Use specialized assistants for general questions, regulatory analysis, campaigns, and occupational/environmental workflows.

Document Assessment

Assess uploaded environmental documents for structure, evidence, decisions, coordinates, labels, and extractable observations.

Chemistry Registry

Search, normalize, and validate chemical parameter metadata such as names, aliases, and CAS references.

Field Metadata

Attach provenance, confidence, source, and validation notes to fields that affect model quality and auditability.

Model Merge and Diff

Compare two model states, inspect changes, and merge accepted differences with explicit review.

Notifications

Review operational alerts, system messages, marketplace updates, and priority events generated by the workspace.

Notification Rules

Configure thresholds and rule-driven alerts for data quality, compliance, sensors, marketplace events, and operational changes.

Wallet and Credits

Manage credits, payments, premium access, marketplace transactions, and blockchain-linked account actions.

History, Undo and Recovery

Inspect recent changes, undo safe operations, and recover workspace state after editing, import, or autosave events.

Imagery Layers

Add, inspect, and manage raster imagery used as aerial context, georeference support, or visual evidence in the model.

Organization Management

Manage organization-level workspace context, members, scopes, and model ownership boundaries.

Ownership and Access

Review who owns a model, who can edit it, and which actions require role checks or explicit transfer.

Presets

Apply saved configurations for model views, workflows, validation profiles, visuals, and operational defaults.

Health Export

Export occupational health, exposure, or monitoring data in a structured package suitable for review and integration.

Accessibility

Use accessibility helpers for labels, keyboard flow, modal behavior, and form readability across the interface.

Background Analysis

Compare observations against background conditions to support environmental interpretation and anomaly review.

Decision Rules

Define deterministic rules that classify data quality, compliance, recommendations, or next actions from model evidence.

DAMA Data Quality

Evaluate data quality dimensions using DAMA-inspired criteria and link issues back to source fields and records.

ECBT Validator

Validate model packages, exported data, and imported structures against ECBT expectations before use or sharing.

Ledger Summary

Summarize integrity records, hashes, signatures, and audit-relevant events linked to the active model.

Parameter Groups

Organize parameters into operational groups for filters, reports, analytics, and regulatory interpretation.

SAO Heatmap

Visualize source-activity-object relationships as heatmaps to identify concentration, exposure, or management priorities.

SDG Alignment

Map environmental and occupational evidence to Sustainable Development Goal indicators and confidence levels.

Spatial Clustering

Cluster spatial observations or document-extracted locations to identify groups, duplicates, and likely site patterns.

Optimization

Explore candidate decisions, resource allocation, or scenario improvements when a workflow exposes optimization controls.

How to Contribute

ecbyts is an open-source project distributed under AGPL-3.0-only. For the authoritative legal terms, refer to the repository LICENSE file. Contributions are welcome from diverse backgrounds — you do not need to be a software developer to help. Below are five contributor profiles with guidance tailored to each.

▶ Developer

Software Engineers & Programmers

Fork or clone the repository from GitHub and submit Pull Requests. The codebase uses vanilla JS (ES modules) with no build step and no frameworks.

▶ Dev Prompt Toolkit

23 Ready-to-Use Prompts for the Full Dev Lifecycle

A curated set of AI-assisted development prompts organized into 6 lifecycle phases. Copy any prompt, paste into your AI assistant, and adapt to your task.

PhasePromptsPurpose
Plan3Architecture review, spec creation, dependency audit
Build4Module scaffolding, UI implementation, API integration, migration
Validate3Test generation, E2E journeys, accessibility audit
Maintain3Bug triage, performance profiling, i18n coverage
Meta3Documentation generation, changelog drafting, release checklist
Security3CSP audit, API key rotation, LGPD compliance scan

All prompts follow the project conventions: vanilla JS (ES modules), no build step, bilingual comments (EN headers / PT explanations), and max ~30 lines per function. See docs/DEV_PROMPT_TOOLKIT.md for the full catalog.

▶ Vibe Coder

AI-Assisted Contributors

No traditional programming background? No problem. Use AI tools (GitHub Copilot, Claude, ChatGPT) to contribute effectively.

▶ Regulatory Body

CONAMA, CETESB, IBAMA & Other Agencies

Environmental regulatory agencies can contribute normative data that improves compliance validation for all users.

▶ End User

Environmental Engineers & Consultants

Your domain expertise is more valuable than code. Help us build the right tool for real-world environmental work.

▶ Financial Sponsor

Support Independent Development

ecbyts is distributed under AGPL-3.0-only and developed independently. Financial sponsorship accelerates development and helps sustain long-term maintenance. As with the rest of the documentation, the repository LICENSE file is the authoritative source for legal terms.

Admin Module

Comprehensive administration panel for platform operators covering 14 management areas. Access is restricted to users with the admin role in Supabase.

Management Areas

Users

User management, roles, quotas, and activity logs

Subscriptions

Plan management, billing, Stripe & MercadoPago integration

Projects

Global project registry, storage metrics, ownership transfers

Libraries

Marketplace content, reviews, publishing approvals

AI & LLM

Provider config, token usage, fine-tuning jobs, prompt templates

Infrastructure

Edge Functions, storage buckets, database health, CDN cache

Admin Access

The Admin Module is only available to users with the service_role or admin flag in Supabase. Regular users see no admin UI elements. All admin routes are protected by Row Level Security (RLS) policies.

Data Sovereignty & Transparency

ecbyts is built on the principle that environmental data is a public asset. The platform provides a framework for radical transparency and friction-less data sharing between regulators, stakeholders, and AI systems.

ESG Economic Framework

ecbyts integrates a reporting-based incentive layer grounded in ESG conceptual models. This structure enables the tokenization of environmental performance and alignment with international H&S protocols.

Why ESG Matters Here

Environmental monitoring data has economic value. By structuring data for interoperability and cryptographic integrity from the start, ecbyts enables market-based incentives that reward transparency and compliance — not just measure it.

Security & Data Integrity

Multi-layered security architecture protecting environmental data integrity and user privacy. 4-phase hardening roadmap from CAPTCHA to fraud detection.

Authentication & SSO

Supabase-powered authentication with multiple sign-in methods.

Authentication modal with sign-in and SSO options

First Login

Click the auth button in the titlebar to open the SSO modal. Choose a provider or register with email. Authentication is optional — the platform works fully offline without an account.

Keyboard Shortcuts

ShortcutAction
Ctrl + ZUndo
Ctrl + YRedo
Ctrl + SExport Key (save)
Ctrl + EExport JSON
Ctrl + IImport Key
DeleteRemove selected element
EscapeDeselect / Close modal
F11Toggle fullscreen
GToggle grid
18Switch toolbar group focus

Environmental Glossary

TermDefinition
CONAMAConselho Nacional do Meio Ambiente — Brazilian National Environment Council. Sets environmental standards and resolutions (e.g., CONAMA 420/2009 for soil quality).
CETESBCompanhia Ambiental do Estado de São Paulo — São Paulo state environmental agency. Publishes reference cleanup values for contaminated sites.
IBAMAInstituto Brasileiro do Meio Ambiente — Federal environmental enforcement agency.
VRValor de Referência — Natural background concentration (CETESB DD-256/2016).
VPValor de Prevenção — Prevention threshold; monitoring required (CONAMA 420 Anexo II).
VIValor de Intervenção — Intervention threshold; remediation required (CONAMA 420 Anexo II).
CMAConcentração Máxima Aceitável — Site-specific risk-based threshold from assessment campaigns.
PlumeA 3D volume of contaminated groundwater or soil, typically spreading from a source area following groundwater flow direction.
Monitoring WellA vertical borehole drilled to collect groundwater samples and measure water table levels.
ObservationA single measurement: parameter (what) + value (how much) + timestamp (when) at a specific location.
CampaignA field sampling event — a specific date when a team collected data from multiple monitoring points.
GACGerenciamento de Áreas Contaminadas — Contaminated Areas Management. Brazilian regulatory framework for contaminated site investigation and remediation (CONAMA, CETESB).
EDDElectronic Data Deliverable — Standard format for laboratory analytical results.
PDPL-U / PDPLUThe core ecbyts organizing model for elements, observations, and exports: Ponto, Data, Parametro, Leitura, Unidade.
ESHEnvironment, Safety & Health — Domain for the SAO (Systematic Assessment of Operations) matrices.
IDWInverse Distance Weighting — Spatial interpolation method where nearby points have more influence.
KrigingGeostatistical interpolation method providing best linear unbiased estimates with uncertainty quantification.
ECBTThe unified export/import format for ecbyts models. Encodes elements, campaigns, observations, and optionally blockchain integrity proofs. Replaces the legacy ECO1 prefix.
Merkle TreeA binary hash tree structure where any modification to a leaf node changes the root hash, enabling efficient data integrity verification.
EISEnviroTech Integrity Score — A composite metric (0–5) evaluating the technical quality and trustworthiness of an environmental model.
Digital TwinA virtual replica of a physical environmental site that evolves with real data over time.
BCFBIM Collaboration Format — Standard for 3D-anchored issue tracking, adapted for environmental site issues.
BPMNBusiness Process Model and Notation — Standard for workflow automation, adapted for environmental pipelines.
MCPModel Context Protocol — Open standard for AI agent–tool communication. ecbyts exposes an MCP server for external AI integration.
Dynamic DispatchRegistry-based action resolution where 442+ platform actions are discovered and executed by the AI assistant based on semantic intent matching.
Fine-TuningProcess of specializing a pre-trained language model (Qwen2.5) on domain-specific environmental data for improved accuracy.
Symbology ProfileA visual mapping standard that controls element colors, icons, and 3D shapes for consistent site representation.
Veo 2Google’s AI video generation model used to create photorealistic environmental site fly-through videos from scene descriptions.
LGPDLei Geral de Proteção de Dados — Brazilian General Data Protection Law (equivalent to GDPR).
hCaptchaPrivacy-focused CAPTCHA service used for bot protection on authentication forms.
LoRALow-Rank Adaptation — Efficient fine-tuning technique that trains small adapter weights instead of modifying the full model.
TOTPTime-based One-Time Password — Standard for multi-factor authentication (RFC 6238).

Common Parameters

Environmental parameters available for observations. Custom parameters can also be added.

CategoryParameters
Organic CompoundsBenzene, Toluene, Ethylbenzene, Xylenes (BTEX), TPH, PAHs, VOCs, SVOCs
Inorganics / MetalsLead, Arsenic, Chromium, Mercury, Cadmium, Zinc, Copper, Nickel
Physical-ChemicalpH, Temperature, Dissolved Oxygen, Conductivity, ORP, Turbidity
NutrientsNitrate, Nitrite, Ammonia, Phosphate, Total Nitrogen, Total Phosphorus
HydrogeologicalWater Table Level, Hydraulic Conductivity, Porosity, Gradient
MicrobiologyTotal Coliforms, E. coli, Fecal Coliforms, Heterotrophic Plate Count
Safety & GHGIncident rates, near-miss frequency, GHG emissions (CO2e), noise levels

Custom Parameters

Need a parameter not in the default list? Add custom parameters via the configuration. Custom parameters support user-defined names, units, regulatory limits, and custom fields (sample depth, detection limit, fraction).

Technology Stack

LayerTechnologyPurpose
3D RenderingThree.js 0.160.0WebGL scene, meshes, orthographic camera
ChartsChart.js 4.4.1Scatter plots, histograms, time series
LanguageVanilla JavaScriptES modules, no framework, no build step
Auth & DatabaseSupabaseSSO (Google, GitHub, Microsoft), PostgreSQL, 17 Edge Functions
AI / LLMMulti-provider442 registered actions, 18 categories, 3-tier prompt, MCP server
MLSimpleNN + Qwen2.56 solvers, fine-tuning pipeline, Transformers.js
PaymentsStripe + MercadoPago4-tier freemium, marketplace checkout
CryptographyWeb Crypto APISHA-256, ECDSA P-256, AES-GCM, hCaptcha
VideoGoogle Veo 2AI-generated environmental site videos
StorageIndexedDB + Supabase StorageModel persistence, cloud files, key management
TypographyInter, JetBrains MonoGoogle Fonts
Serverserve (npx)Zero-config static file server

Platform Metrics

560+ source files222+ tests442 LLM actions17 Edge Functions6 ML solvers16 locales50 guided tours

No Build Step

ecbyts has no bundler, no transpiler, and no build process. ES modules are loaded directly by the browser, making the codebase easy to audit, fork, and contribute to.

Data Model (ECBT Schema)

Models are represented as validated JSON objects with the following top-level structure:

{
    "ecbyts": "0.2.0",
    "timestamp": "2026-02-07T12:00:00Z",
    "project": {
        "name": "Site Investigation",
        "author": "Environmental Engineer",
        "coordinateSystem": { "system": "UTM", "zone": 23, "hemisphere": "S" },
        "areas": [{ "area": "Area A", "subarea": "Subarea 1" }]
    },
    "elements": [{ "family": "well", "id": "el_1", "name": "PM-01", ... }],
    "campaigns": [{ "id": "camp_1", "name": "Q1 2026", "startDate": "2026-01-01" }],
    "scenes": [{ "id": "scene_1", "name": "Overview", "viewStart": {}, "viewEnd": {} }],
    "families": {},
    "edges": [{ "id": "edge_1", "sourceId": "el_1", "targetId": "el_2", "type": "monitors" }],
    "areasTree": []
}

ECBT Blockchain Extensions

Blockchain-verified models add chain (hash provenance), merkle (content integrity root), author (key ID), and verification (ECDSA signature) fields. The schema version jumps to 3.0.0 for blockchain models.

ecbyts v0.3.0 — Environmental Digital Twin Platform

Distributed under AGPL-3.0-only — see repository LICENSE for authoritative terms — API Reference