BASE Logo Welcome to APIBASE

Enterprise Architecture

Department isolation with controlled cross-access — built on deterministic storage and coordinate addressing.

Department Isolation

Each department operates in its own independent BASE, ensuring strict physical separation.

Controlled Cross-Access

Cross-department execution is explicitly authorized and routed through ACL enforcement.

Versionable Data

BASE files remain deterministic text structures, enabling native Git diffs, review and rollback.

1. Department-Based Storage Model

In a traditional monolithic database, departments share a single schema and storage engine. APIBASE replaces this model with independent bases:

/data/users/finance/finance.php
/data/users/hr/hr.php
/data/users/inventory/inventory.php
/data/users/production/production.php
/data/users/maintenance/maintenance.php
Each base is physically independent — no shared schema, no shared locks, no cascading failures.

2. Hive Gateway & Cross-Base Routing

Each department runs its own BASE while the Hive controls cross-base communication and permissions.

Hive architecture diagram
Storage remains independent while communication happens through controlled Hive permissions.

3. Execution Pipeline

HTTP Request
      ↓
Bearer Token Validation
      ↓
Context Resolution
      ↓
ACL Evaluation
      ↓
Base Selection
      ↓
Deterministic Execution
      ↓
Structured JSON Response
Each stage must be validated before execution proceeds.

4. Context Model

  • User — personal base
  • Hive — authorized cross-base access
  • System — internal metadata control

The context determines which base the engine is allowed to access. No implicit fallback is assumed.

5. Access Control Layer

APIBASE separates authentication from authorization. Permissions are explicit and centrally managed.

Token → apitokens
         ↓
       hiveacls
         ↓
       hivebases
No implicit access exists. Every cross-base execution is validated before routing.

5.1 Service Users & Hive ACL

In APIBASE, a department base is implemented as a regular user account. For example, inventory is a real user that can log in, manage tables, and operate like any standard BASE owner.

A department is a user. HIVE is the shared gateway.
Department members do not log in as inventory. They access the department BASE through the HIVE gateway using a hive-scope token and explicit ACL authorization.

Token scopes

  • scope=full — personal API (read/write) on the token owner’s BASE via /api/*
  • scope=hive — gateway token (read-only today) to access shared department BASEs via /hive/get/<basekey>/*

Hive authorization chain

curl https://apibase.work/hive/get/inventaire/T2/L1?format=assoc \
  -H "Authorization: Bearer YOUR_HIVE_TOKEN"
curl https://apibase.work/hive/get/inventaire/T2/L1/C2?format=raw \
  -H "Authorization: Bearer YOUR_HIVE_TOKEN"
apitokens (scope=hive)  →  hiveacls  →  hivebases (basekey → username)

This model creates a clean separation:

  • Ownership: the service user (inventory) controls its BASE directly.
  • Collaboration: department members access the BASE through HIVE with scoped tokens and ACL.
Future ACL expansion: hive tokens can evolve from read-only to granular permissions (write / table-specific / operation-specific).

6. Data Address Protocol

Traditional databases retrieve data through query languages. APIBASE addresses data directly through coordinates.

BASE / TABLE / LINE / COLUMN

Example request:

GET /hive/get/inventory/T4/L2/C2

Deterministic lookup:

$data[4][2][2]
Data is addressed, not queried.

7. Operational Resilience

  • If one department fails, others remain operational
  • No shared schema corruption risk
  • No global locking side effects
  • No cascading transactional failure
A failure in Inventory does not impact Finance or HR.

8. Versionable BASE Files

APIBASE stores data as deterministic text files. This allows native integration with version control systems.

  • Cell-level Git diffs
  • Branching for data changes
  • Rollback without SQL dumps
- $data[4][12][2] = 'Alice'
+ $data[4][12][2] = 'Alicia'

9. Distributed BASE Network

Through HIVE, multiple BASEs can form a distributed data network. Each BASE remains independent while accessible through a unified coordinate protocol.

          Client
            │
        Hive Gateway
       ┌─────┴─────┐
       │           │
Inventory Base   Finance Base
 Server A         Server B
  • Independent data ownership
  • Controlled cross-access
  • Unified protocol
HIVE transforms independent BASE files into a distributed data architecture.

10. Comparison with Traditional Architecture

Traditional Monolith APIBASE 5.0
Single shared databaseBase per department
Schema couplingPhysical isolation
Global failure riskLocalized failure impact
Complex permission layersDeterministic ACL routing
Binary storage enginesVersionable BASE files

11. Strategic Value

  • Improved operational resilience
  • Simplified governance
  • Reduced blast radius
  • Predictable execution model
  • Git-compatible data infrastructure
  • Distributed BASE network capability
APIBASE 5.0 enables a structured, department-first enterprise data architecture.