Skip to content

Repository files navigation

DevAtlas

Autonomous Developer Intelligence Platform

Discover. Understand. Stay ahead.

DevAtlas is a production-grade, portfolio-defining autonomous developer intelligence platform that continuously discovers useful developer ecosystem information, normalizes and deduplicates it, validates schemas and data quality, enriches it with AI scoring and taxonomies, stores it in MongoDB Atlas, synthesizes daily reports, and publishes results automatically via a modern serverless edge CI/CD pipeline.

CI Daily Discovery Security & Compliance License: MIT Architecture: Serverless Edge


1. Executive Summary & Design Philosophy

“A real production system that happens to be an exceptional CI/CD, DevOps, and backend engineering showcase.”

DevAtlas was engineered as a high-performance, decoupled cloud-native platform. It separates compute-heavy workloads (ecosystem discovery ingestion, AI classification, cryptographic deduplication hashing, and markdown synthesis) into isolated GitHub Actions runners, while serving ultra-low-latency edge API responses via Cloudflare Workers and presenting a high-contrast developer interface with Next.js 15 on Cloudflare Pages.


2. High-Level Architecture Diagram

flowchart TD
    subgraph Sources["Public Sources (Rate-Limited Adapters)"]
        GH["GitHub Trending / Repos"]
        RSS["Tech News / RSS / CVEs"]
        HN["Hacker News API"]
        JOB["Verified Job Feeds / APIs"]
        AI_SRC["AI Models / Tools Feeds"]
    end

    subgraph GitHubEngine["GitHub Actions (Batch Compute & Orchestration)"]
        WF_DAILY["Daily Discovery Workflow\n(Cron 0 0 * * * & dispatch)"]
        
        subgraph PipelineEngine["pipeline/ (TypeScript Ingestion Engine)"]
            DISC["1. Source Discovery"]
            NORM["2. Normalization & Canonicalization"]
            DEDUP["3. URL & Content Hash Deduplication"]
            VAL["4. Schema & Data Quality Validation"]
            AI["5. AI & Rule-Based Taxonomy Engine"]
            SCORE["6. Multi-Factor Relevance Scorer (0-100)"]
            SYNC["7. MongoDB Atlas Ingestion & Sync"]
            REP_GEN["8. Deterministic Markdown & JSON Report Generator"]
            DIFF["9. Change Detection Gate"]
        end
        
        WF_CI["CI Workflow (Node Matrix, Typecheck, Test, Build)"]
        WF_SEC["Security Workflow (Gitleaks, Audit, SBOM)"]
        WF_DEPLOY["Deploy Workflow (Worker & Pages)"]
    end

    subgraph CloudflareStack["Cloudflare Edge & Serverless Layer"]
        CF_PAGES["Cloudflare Pages\nNext.js 15 App Router Frontend\n(/, /explore, /tools, /jobs, /repositories, /reports, /ops)"]
        CF_WORKER["Cloudflare Worker (Hono REST API)\n(/api/v1/health, /items, /tools, /jobs, /repositories, /reports, /stats)"]
        CF_KV[("Cloudflare KV\nEdge Response Cache")]
    end

    subgraph Database["Database Cluster"]
        MONGO[("MongoDB Atlas Cluster\n(Collections: items, discovery_runs, daily_reports)")]
    end

    subgraph GitRepo["Git Repository Artifacts"]
        REPORTS["reports/YYYY/MM/DD.md"]
        DATA_SNAP["data/daily/YYYY-MM-DD.json"]
    end

    Sources --> DISC
    WF_DAILY --> PipelineEngine
    DISC --> NORM --> DEDUP --> VAL --> AI --> SCORE --> SYNC
    SYNC --> MONGO
    SCORE --> REP_GEN
    REP_GEN --> DIFF
    DIFF -- "Meaningful changes detected" --> GitRepo
    DIFF -- "No changes" --> SKIP["Skip Git commit"]

    CF_PAGES -- "HTTPS REST" --> CF_WORKER
    CF_WORKER -- "Fast Read" --> CF_KV
    CF_WORKER -- "Query Indexed Docs" --> MONGO
    WF_DEPLOY --> CF_WORKER
    WF_DEPLOY --> CF_PAGES
Loading

3. CI/CD Pipeline Flow

flowchart LR
    PR["Pull Request"]
      --> CI["CI (Node Matrix 20/22)"]

    CI --> Lint["Typecheck & Lint"]
    Lint --> Tests["Vitest Unit & Integration"]
    Tests --> Build["Production Bundle Build"]
    Build --> Preview["Cloudflare Preview"]

    Main["Push to main"]
      --> Deploy["Deploy Workflow"]

    Deploy --> Worker["Deploy Worker API"]
    Worker --> Pages["Deploy Next.js Pages"]
    Pages --> Smoke["Smoke Verification (/api/v1/health)"]
    Smoke --> Prod["Production Live"]
Loading

4. Key Platform Features

  • Autonomous Discovery: Reliable source adapters for GitHub Trending, Hacker News official API, verified developer job boards, and technology security feeds.
  • Resilient Error Isolation: Fault-tolerant design where external source timeouts or network blips are captured and logged without crashing the pipeline run.
  • Deterministic Deduplication: URL canonicalization (stripping tracking query parameters, normalising paths) and SHA-256 URL/content hashing.
  • Resilient AI Engine: Multi-tiered AI provider abstraction supporting both cloud LLMs and a built-in deterministic taxonomy engine that guarantees uninterrupted pipeline execution.
  • No Meaningless Commits: The commit gate runs git diff on generated reports and commits strictly when genuine ecosystem data modifications occur.
  • Full-Stack Observability: Dedicated /ops dashboard displaying live edge API latency, database connection health, pipeline execution duration, and data quality scores.

5. Cloud-Native Infrastructure & Technology Stack

Layer Technology Role & Operational Highlights
Edge REST API Cloudflare Workers & Hono Sub-millisecond global routing across 275+ edge cities with V8 isolates
Frontend Application Next.js 15 & React 19 Server Components, responsive layout, monochrome high-contrast design system
Database Cluster MongoDB Atlas Managed replica set with compound indexes and full-text search
Edge Cache Cloudflare Workers KV Distributed low-latency caching for aggregated metrics and reports
Batch Compute GitHub Actions Compute-isolated environment for scraping, AI scoring, and report generation
Security & Compliance Gitleaks & CycloneDX Automated secret scanning, strict .env isolation, and SBOM generation

6. Monorepo Structure

DevAtlas/
├── .github/
│   ├── workflows/
│   │   ├── ci.yml                 # PR & Push CI (Node 20/22, Typecheck, Test, Build)
│   │   ├── daily-discovery.yml    # Scheduled discovery, AI scoring, report generator & commit
│   │   ├── deploy.yml             # Cloudflare Worker & Pages deployment with smoke tests
│   │   ├── security.yml           # Gitleaks secret scanning, npm audit, CycloneDX SBOM
│   │   ├── weekly-maintenance.yml # Retention cleanup (>90d job purge) & index check
│   │   └── release.yml            # Semantic release workflow with attached SBOM
│   ├── dependabot.yml             # Dependency updates configuration
│   └── pull_request_template.md   # Production PR template
├── frontend/                      # Next.js 15 App Router Frontend (Tailwind CSS, monochrome)
├── worker/                        # Cloudflare Worker REST API (Hono, MongoDB, Request IDs)
├── pipeline/                      # Ingestion Engine (Discovery, Deduplication, AI scoring)
├── reports/                       # Generated daily intelligence markdown reports
├── data/daily/                    # Deterministic JSON snapshots
├── docs/                          # In-depth architectural and operational guides
│   ├── architecture.md
│   ├── ci-cd.md
│   ├── data-pipeline.md
│   ├── deployment.md
│   ├── security.md
│   └── troubleshooting.md
├── scripts/
│   ├── detect-meaningful-changes.sh
│   ├── seed-dev-data.ts
│   ├── setup-db-indexes.ts
│   ├── smoke-test.ts
│   └── weekly-maintenance.ts
├── Makefile                       # Developer shortcuts (make dev, test, lint, seed, etc.)
├── package.json                   # Root workspace manifest
└── .env.example                   # Documented configuration template

7. Quickstart & Local Development

1. Clone and Install

git clone https://github.com/somyacodes07/DevAtlas.git
cd DevAtlas
cp .env.example .env
npm install

2. Configure Database

Set your MONGODB_URI in .env (or use local Docker MongoDB via make mongo-up), then initialize collections and indexes:

make indexes
make seed

3. Run Development Servers

npm run dev
  • Frontend: http://localhost:3000
  • Worker API: http://localhost:8787 (Health: http://localhost:8787/api/v1/health)
  • Operations Dashboard: http://localhost:3000/ops

4. Execute the Autonomous Ingestion Pipeline

npm run dev --workspace=@devatlas/pipeline

5. Run Verification & Tests

npm test
npm run typecheck
npm run build

8. License

MIT © DevAtlas Team

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages