Skip to content

About

Provenance-first self-hosted EU public-business OSINT research platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RegistryMesh EU

CI License Docker Python 3.12 Node 22 Contributions welcome

RegistryMesh EU

RegistryMesh EU is a self-hosted, provenance-first OSINT platform for researching lawful relationships among European companies, public-record officers, addresses, procurement notices, grants, trademarks, sanctions lists, and their source documents.

It preserves raw records, normalizes them without destroying original values, produces explainable entity-resolution candidates, and carries source citations through the graph, timeline, evidence library, and report exports.

RegistryMesh EU surfaces public-record connections and automated suggestions for human review. It does not determine wrongdoing.

All records shipped in the demo are synthetic. No paid API or external data credential is needed.

RegistryMesh EU dashboard

Why RegistryMesh EU

Public-business research is often split across spreadsheets, browser tabs, registry exports, and opaque matching tools. RegistryMesh EU provides one reproducible chain:

Public source
→ Connector
→ Raw record
→ Normalization
→ Entity-resolution candidate
→ Human review
→ Provenance-aware graph
→ Evidence-backed report

The platform treats raw records, normalized entities, automated suggestions, verified relationships, notes, and generated summaries as different kinds of information. A fuzzy name match never silently becomes an identity claim or sanctions designation.

Key capabilities

  • Import CSV, JSON, PDF, XML, HTML, and text through hardened local-source boundaries.
  • Run documented synthetic fixture connectors for company, procurement, grant, and sanctions matching demonstrations.
  • Preserve source hashes, access dates, adapters, licenses, transformation versions, and raw records.
  • Search names, aliases, jurisdictions, and identifiers with a visible match reason.
  • Review entity-resolution candidates side by side with positive signals, conflicts, weights, sources, and merge impact.
  • Confirm, reject, postpone, merge, and reverse a merge with an audit snapshot.
  • Explore bounded React Flow neighborhoods with filters, a minimap, automatic Dagre layout, edge evidence, and an accessible relationship table.
  • Export graph views as PNG, JSON, and GraphML.
  • Build investigation workspaces with questions, scope, evidence, notes, activity, and reports.
  • Render citation-aware reports as PDF, HTML, Markdown, and JSON with a hash manifest.
  • Use English or Romanian core navigation and locale-aware browser formatting.
  • Run locally with PostgreSQL, Redis, MinIO, Mailpit, FastAPI, Celery, and Next.js through Docker Compose.

Product gallery

Dashboard and investigations
Dashboard Investigation list
Dashboard Investigations

Investigation overview

Entity research and source provenance
Company profile Source provenance
Company profile Source provenance
Graph analysis
Graph explorer Edge evidence drawer
Graph explorer Graph edge evidence
Imports and entity resolution
Human review Field mapping Import results
Entity resolution Import mapping Import results
Timeline, evidence, reporting, and quality
Timeline Evidence library
Timeline Evidence library
Report builder Data quality Settings
Report builder Data quality Settings
Mobile interface
Dashboard Entity profile
Mobile dashboard Mobile entity profile

Architecture overview

RegistryMesh EU system architecture

flowchart LR
    Researcher[Researcher] --> Web[Next.js web app]
    Web --> API[FastAPI REST API]
    API --> Auth[Workspace RBAC]
    API --> DB[(PostgreSQL source of truth)]
    API --> Queue[(Redis queue)]
    API --> Storage[(MinIO / S3)]
    Queue --> Worker[Celery worker]
    Worker --> Connectors[Replaceable connectors]
    Connectors --> Public[Lawful public sources]
    Worker --> DB
    Worker --> Storage
    API --> Reports[HTML / MD / JSON / PDF]
    Reports --> Storage
Loading

PostgreSQL stores canonical relationships; a separate graph database is not required. Graph endpoints use depth, node-count, confidence, and workspace limits so the browser never receives the full graph. See the architecture document for container, sequence, entity-relationship, trust-boundary, and scaling diagrams.

Quick start with Docker Compose

Prerequisites: Docker Engine 25+ with Compose v2 and at least 4 GB of available memory.

git clone https://github.com/registrymesh-eu/registrymesh-eu.git
cd registrymesh-eu
cp .env.example .env
docker compose up --build

The API container applies the schema and idempotently seeds the synthetic demo workspace.

Service URL Purpose
Web http://localhost:3000 Research interface
API http://localhost:8000 Versioned REST API
OpenAPI http://localhost:8000/docs Interactive API reference
MinIO console http://localhost:9001 Development object storage
Mailpit http://localhost:8025 Development password-reset mail

Demo login:

Email:    demo@registrymesh.local
Password: DemoAccess!2026

These credentials exist only in the synthetic development seed. Change or disable them before exposing any deployment.

Local development

Prerequisites

  • Node.js 22 or later
  • pnpm 11
  • Python 3.12
  • Docker Compose for PostgreSQL, Redis, MinIO, and Mailpit

Setup

cp .env.example .env
pnpm install
python -m venv .venv
source .venv/bin/activate        # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install -r apps/api/requirements-dev.txt
make seed

For the complete container environment, run make dev. For application hot reload in separate terminals:

PYTHONPATH=apps/api:packages/entity-resolution uvicorn app.main:app --reload --port 8000
pnpm --filter @registrymesh/web dev

Common commands:

Command Result
make setup Install Node and Python dependencies
make dev Start the Compose environment
make seed Idempotently seed the synthetic workspace
make test Run backend and frontend tests
make test-e2e Run ten Playwright product flows
make lint Run Ruff and ESLint
make screenshots Build, start, authenticate, and capture the product gallery
make docs Validate Markdown links and screenshot paths
make reset Recreate the local demo database

Demo data

The deterministic seed contains 153 entities, 212 source-backed relationships, and 80 synthetic source documents:

  • 42 company records, including deliberate duplicates;
  • 27 fictional public-record officers;
  • 32 fictional addresses;
  • 20 procurement notices;
  • 10 grants and 10 trademarks;
  • 6 clearly labeled sanctions-name candidates;
  • 6 fictional public authorities;
  • conflicting identifiers, shared addresses, shared officers, name variations, and parent relationships.

Three investigations demonstrate Shared Address Network, Procurement Relationships, and Entity Resolution Review. See demo-data documentation.

Repository structure

apps/web                 Next.js interface, Vitest, and Playwright
apps/api                 FastAPI API, SQLAlchemy models, migrations, worker entrypoint
apps/worker              Worker deployment notes
packages/ui              Shared accessible UI primitives
packages/shared          Browser-safe TypeScript contracts
packages/entity-resolution  Configurable Python scoring engine
packages/connectors      Connector boundary documentation
packages/reporting       Reporting package boundary documentation
infrastructure           Reverse-proxy and operations examples
sample-data              Synthetic import fixtures
docs                     Architecture, security, ethics, privacy, and ADRs
screenshots              Images captured from the running production build

Code stays close to its runtime while package directories make public extension boundaries explicit.

Data model and provenance

Every entity and relationship belongs to a workspace. An entity keeps canonical values, original aliases, identifiers, attributes, confidence, review state, and one or more source IDs. A relationship keeps both endpoints plus type, validity dates, confidence, verification state, creation method, explanation, reviewer, and supporting source IDs.

Raw records are immutable inputs. Normalization creates separate fields. Merge history captures source/target snapshots and moved relationship endpoints so a reviewer can reverse the operation.

erDiagram
    WORKSPACE ||--o{ MEMBERSHIP : contains
    USER ||--o{ MEMBERSHIP : joins
    WORKSPACE ||--o{ ENTITY : owns
    WORKSPACE ||--o{ SOURCE_DOCUMENT : owns
    ENTITY ||--o{ RELATIONSHIP : source
    ENTITY ||--o{ RELATIONSHIP : target
    SOURCE_DOCUMENT }o--o{ RELATIONSHIP : supports
    INVESTIGATION ||--o{ EVIDENCE_ITEM : collects
    SOURCE_DOCUMENT ||--o{ EVIDENCE_ITEM : cited_by
    INVESTIGATION ||--o{ REPORT : exports
Loading

Entity resolution

Candidate generation can use exact registration/VAT identifiers, normalized and fuzzy names, jurisdiction, addresses, website domains, officers, dates, legal form, and source-specific identifiers. Scoring is deterministic and configurable in packages/entity-resolution/registrymesh_er/scoring.py.

Example:

Exact registration number   +100
Exact VAT                    +95
Fuzzy name ≥ threshold       +25
Same jurisdiction            +15
Conflicting registration    -100
Conflicting incorporation    -20

The score breakdown and conflicts are visible before review. Legal-suffix removal is never sufficient proof. Sanctions name matching creates an unverified candidate; it never merges or designates an entity automatically. See entity-resolution documentation.

Connector development

Connectors implement validation, fetch, normalization, and health checks. The bundled public-domain-style connector data is synthetic and does not claim live TED, registry, grant, or sanctions integration.

class RegistryConnector(Protocol):
    connector_id: str
    jurisdiction: str
    source_type: str

    async def validate_config(self, config: dict) -> ValidationResult: ...
    async def fetch(self, request: ImportRequest) -> AsyncIterator[RawRecord]: ...
    async def normalize(self, record: RawRecord) -> list[NormalizedRecord]: ...
    async def healthcheck(self) -> ConnectorHealth: ...

Read connector development before adding a live source.

API

FastAPI publishes OpenAPI at /docs. Responses are workspace-scoped and UUID-based. Mutating browser requests require the X-RegistryMesh-Request: 1 anti-CSRF header.

curl http://localhost:8000/api/v1/health
curl --cookie registrymesh_session=... \
  'http://localhost:8000/api/v1/search?q=Northstar'

Session cookies are HTTP-only, signed, expiring, Secure in production, and role-checked at the API boundary.

Configuration

Variable Purpose Production guidance
DATABASE_URL SQLAlchemy PostgreSQL connection Use a dedicated least-privilege role
SESSION_SECRET HMAC session signing Generate at least 32 random bytes
ALLOWED_ORIGINS Exact CORS allowlist List only deployed web origins
REDIS_URL Celery broker and result backend Require authentication/TLS off-host
STORAGE_BACKEND local or s3 object adapter Compose uses s3; local tests use local
STORAGE_PATH Local object root Keep outside the web root and back it up
S3_ENDPOINT MinIO or S3-compatible endpoint Use TLS and private network access
S3_BUCKET Evidence/report object bucket Enable versioning and lifecycle rules
UPLOAD_MAX_BYTES Upload boundary Keep proportional to deployment capacity
GRAPH_MAX_NODES Per-query graph safeguard Default 250
GRAPH_MAX_DEPTH Traversal safeguard Default 3

See .env.example and deployment guidance.

Security

The application implements scrypt password hashing, signed HTTP-only sessions, backend RBAC, strict CORS, request IDs, security headers, parameterized SQLAlchemy queries, upload extension/MIME/signature/size checks, sanitized stored filenames, SHA-256 hashing, bounded graph traversal, audit events, and a public-URL policy that blocks loopback, private, link-local, reserved, multicast, and unsupported schemes.

Read SECURITY.md and the threat model. Do not expose the demo credentials or development object-storage secrets.

Privacy and ethics

RegistryMesh EU is limited to lawful, proportionate public-business research. It does not provide private contact enrichment, breached data, stalking tools, real-time tracking, face recognition, covert surveillance, or automated accusations. Deployers remain responsible for legal basis, retention, access control, source terms, corrections, and fair interpretation.

See ETHICS.md, PRIVACY.md, and DATA_SOURCES.md.

Testing

  • pytest: authentication, RBAC, isolation, normalization, scoring, provenance, merge/undo, hashing, graph bounds, report PDF, uploads, SSRF, and quality rules.
  • Vitest + React Testing Library: forms, accessible states, verification labels, role policy, graph table, and edge warnings.
  • Playwright: the ten required product scenarios against real API and production web processes.
  • CI: lint, type check, unit/integration, E2E, build, container build, audit, secret scan, and CodeQL.

The repository does not claim a check passed unless its command completed successfully in the implementation report.

Screenshot generation

make screenshots starts a reset synthetic demo API, builds the production Next.js bundle, signs in, checks critical elements, listens for browser errors, and captures all 17 deterministic files at 1440×1000 plus selected 390×844 mobile views.

Deployment checklist

  1. Replace every development secret and demo account.
  2. Place the web/API behind a TLS reverse proxy.
  3. Restrict PostgreSQL, Redis, MinIO, and Mailpit from public networks.
  4. Configure database and object-storage backups, then test restoration.
  5. Set exact origins, upload limits, graph limits, and retention periods.
  6. Enable dependency, image, secret, and application monitoring.
  7. Review the threat model and jurisdiction-specific privacy obligations.

Limitations

  • Registry coverage, timeliness, licenses, and field meaning differ by jurisdiction.
  • A missing or stale public record is not proof of absence.
  • Name and address similarity can produce false positives.
  • Sanctions-name ambiguity is especially high and always requires official-source verification.
  • Beneficial-ownership access is incomplete and legally variable.
  • Automated parsing can be wrong; preserved source content remains authoritative.
  • Bundled registry, procurement, grant, and sanctions adapters are fixtures, not live integrations.
  • SQLite is supported for local demonstrations/tests only; PostgreSQL is the production source of truth.

Roadmap

Planned, not implemented: vetted national-registry adapters, an OpenCorporates-compatible adapter, a live TED adapter, OpenSearch integration, geospatial analysis, richer collaborative review, signed report bundles, a connector marketplace, and additional EU languages. See ROADMAP.md.

Contributing

Bug reports, documentation improvements, accessibility fixes, connector proposals, and focused pull requests are welcome. Read CONTRIBUTING.md, the governance model, and the Code of Conduct. Security reports must follow SECURITY.md, not a public issue.

License and citation

RegistryMesh EU is licensed under Apache License 2.0. Cite releases using CITATION.cff, and review third-party notices before redistribution.

Acknowledgments

RegistryMesh EU builds on PostgreSQL, FastAPI, SQLAlchemy, Next.js, React Flow, TanStack, Celery, Redis, MinIO, ReportLab, Playwright, and open web standards. Mention does not imply endorsement by any public institution or data publisher.

About

Provenance-first self-hosted EU public-business OSINT research platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages