Symbol Map

Code-to-Wiki Cross-Reference

Maps key source files and symbols to their wiki documentation. Use this to navigate from code to context.

Enrichment Pipeline

Source FileKey SymbolsWiki Note
src/enrichment/pipeline.tsenrichV7(), EnrichmentInput, EnrichmentResultEnrichV7
src/enrichment/sources/domain.tsfindCompanyDomain(), validateCompanyDomain()Domain Discovery
src/enrichment/sources/crawlee.tsscrapeWithCrawlee(), 6 extraction strategiesCrawlee Scraper
src/enrichment/sources/firecrawl.tsscrapeWebsiteFirecrawl()Firecrawl
src/enrichment/sources/maps.tsqueryGooglePlaces()Google Places
src/enrichment/processors/nameUtils.tsisValidPersonName(), inferRoleType()Name Validation
src/enrichment/processors/scoring.tscalculateLeadScore()Lead Scoring
src/extractors/websiteExtractor.tsextractWebsite() (Playwright)Crawlee Scraper

Compliance

Source FileKey SymbolsWiki Note
src/compliance.tshash_contact(), HASH_SALTOpt-Out Hashes
src/compliance/reklamsparre.tsisScbAdvertisingBlocked()Reklamspärr
src/lib/article14Notification.tsnotifyDataSubject(), sendNotificationEmail()Article 14
src/queues/workers.tsupdateWorker (RoPA logging)RoPA Log
src/api/export.tsexportCompaniesData(), exportLeadsData()Article 14

Data & Import

Source FileKey SymbolsWiki Note
src/import/index.tsimportBolagsverket(), importScb()Bolagsverket Import, SCB Import
src/fetchers/scb/index.tsfetchCompanies(), mapPxDataToCompanies()SCB Import
schema.sql/schema.sqlAll table definitionsDatabase Schema
migrations/*.sqlSchema evolutionSchema Migrations

API & Workers

Source FileKey SymbolsWiki Note
src/queues/workers.tsscrapeWorker, enrichWorker, updateWorkerPipeline
src/workers/enrichDispatcher.tsdispatchEnrichmentBatches()Pipeline
src/workers/updateWorker.tsupdateWorker (v2)Pipeline
src/workers/art14Worker.tsart14WorkerArticle 14
src/api/kundkort.tsdetail(), enrich(), search()System Overview
src/api/search.tssearchHandlersSystem Overview

Quality & Experiments

Source FileKey SymbolsWiki Note
autoresearch/experiment.tsrunExperiment()Autoresearch Loop
autoresearch/metrics.tscalculateMetrics(), composite score formulaExperiment Results
autoresearch/analyze.tsanalyzeResults()Autoresearch Loop
autoresearch/loop.tsAutonomous improvement loopAutoresearch Loop

Infrastructure

Source FileKey SymbolsWiki Note
docker-compose.ymlPostgreSQL, Redis, Keycloak servicesStack
src/db/index.tsPostgreSQL pool configurationLocal Development
src/lib/redisClients.tsRedis DB assignments (0-5)Stack
src/cache.tsgetCachedEnrichment(), setCachedEnrichment()Stack

Quick Navigation

Code question → Find file in Symbol Map → Read Wiki Note → Read source if needed

Example: “How does domain discovery work?”

  1. Symbol Map → src/enrichment/sources/domain.ts
  2. Wiki → Domain Discovery
  3. Source → Read findCompanyDomain() implementation