REV Spain

Technical Architecture

See the Diagrams page for the deployment diagram. See the Functional Overview for goals, context, and users.

1. Building Block View

REV Spain is a monolith. Main internal modules:

2. Deployment View

Stack

Topology

This is a single-server deployment: no horizontal scaling or failover across app instances currently exists.

3. Risks & Technical Debt

Diagrams

Workflow — Claim Generation Flow

Upload ITA/RNTor connectUnified.toExtraction /NormalizationProject Info +EmployeeAllocationEligibilityEvaluationReportGeneration(Fin. + Tech.)

Technical Architecture — Deployment

InternetVM 2 — Reverse Proxy(domain name, TLS)VM 1 — Docker Compose HostVue.js 3 SPA(frontend)Node/Express API(backend)MongoDB+ GridFS(documents)

Functional Overview

See the Diagrams page for the visual workflow.

1. Introduction & Goals

REV Spain lets companies self-manage the process of claiming Spanish R&D tax credits end to end: intake, eligibility check, extraction of employee/salary data from official documents, project information gathering, employee-to-project allocation, and generation of both financial and technical claim reports.

Quality Goals

Stakeholders

2. System Scope & Context

User Types

External Systems

Sensitive Data Boundary

REV Spain handles sensitive employee and salary data directly in both ingestion paths: either after extraction from uploaded ITA/RNT documents, or via the Unified.to integration. There is no path that avoids the core system processing PII — this should be treated as a compliance-relevant boundary (encryption at rest/in transit, access control, retention policy).

3. Claim Generation Flow (Functional)

  1. Claimant submits ITA/RNT documents, or connects via Unified.to
  2. Employee & salary data is normalized
  3. Claimant/reviewer provides project information
  4. Employees are mapped to projects
  5. Eligibility criteria are evaluated
  6. Financial and technical reports are generated
  7. Internal reviewer validates the claim before export/submission