Skip to content

Repository files navigation


 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•”β•β•β•  
β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•     β•šβ•β•β•β•β•β•β•

Enterprise Engineering Intelligence Platform

Deep-scan any GitHub Β· GitLab Β· Bitbucket repository and receive a complete architectural intelligence report β€” technology stack fingerprinting, health scoring, risk analysis, CI/CD policy enforcement, and executive PDF briefs. All in seconds.


Build Next.js TypeScript React Upstash Tailwind License



⚑ What is ArchScope?

ArchScope is a full-stack engineering intelligence platform that performs deep static analysis on any public or private source code repository. It fingerprints the entire technology stack, scores engineering health and delivery risk, detects policy violations, and generates executive-grade architecture reports β€” all in a single API call or CLI command.

It is not a linter. It is not a SAST tool. It is a strategic architecture intelligence layer designed for engineering leaders, platform teams, and enterprise governance workflows.

  Repository URL
       β”‚
       β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚                      VCS ADAPTER LAYER                             β”‚
  β”‚     GitHub (public + private)  β”‚  GitLab  β”‚  Bitbucket             β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚  files Β· dependencies Β· source samples
                       β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚                  STACK DETECTION ENGINE  (80+ rules)               β”‚
  β”‚   Languages Β· Frameworks Β· Databases Β· Infra Β· DevTools Β· ML/AI    β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
                       β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚           INTELLIGENCE & SCORING  (Complexity Β· Health Β· Risk)     β”‚
  β”‚         Architecture Graph  β”‚  Findings  β”‚  Recommendations        β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β–Ό                              β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ ReportCard UI β”‚            β”‚ JSON Β· CSV Β· PDF API β”‚
  β”‚  Heatmap      β”‚            β”‚  CI Gate  β”‚  Webhook β”‚
  β”‚  Trendline    β”‚            β”‚  PR Bot   β”‚  CLI     β”‚
  β”‚  Arch Graph   β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Feature Highlights

πŸ”¬ Stack Detection Engine

80+ detection rules across 10 technology domains

Domain Examples
Frontend Next.js, React, Vue, Svelte, Angular, Astro, Remix, Qwik, Solid.js, Three.js
Backend (Node) Express, Fastify, NestJS, Hono, tRPC, GraphQL, Apollo
Backend (Python) FastAPI, Django, Flask, Celery, Starlette, Pydantic, SQLAlchemy
Backend (Java) Spring Boot, Quarkus, Micronaut
Backend (.NET) ASP.NET Core, Blazor, Entity Framework
Backend (Rust) Axum, Actix-Web, Diesel, SeaORM, Tokio
Backend (Go) Gin, Echo, Chi, Fiber, GORM
Database Prisma, Drizzle, TypeORM, Mongoose, PostgreSQL, MySQL, Redis, MongoDB, Supabase, Neon, PlanetScale, Turso, ClickHouse
Infrastructure Docker, Kubernetes, Helm, Terraform, Pulumi, Ansible, GitHub Actions, GitLab CI, CircleCI, Vercel, Netlify, AWS, GCP, Azure, Cloudflare Workers
AI / ML OpenAI, Langchain, TensorFlow.js, Hugging Face
DevTools TypeScript, ESLint, Vitest, Playwright, Storybook, Vite, Turborepo, Nx, Biome

πŸ“Š Intelligence & Scoring

Every scan produces a structured intelligence report with:

interface StackReport {
  healthScore: number;          // 0-100 composite engineering health
  complexityScore: number;      // 0-100 operational complexity load
  mlReadiness: number;          // 0-100 AI/data pipeline readiness
  deliveryRisk: 'low' | 'medium' | 'high';
  
  signals: {
    fileCount: number;
    dependencyCount: number;
    workflowCount: number;
    testSignals: number;
    dockerSignals: number;
    secretScanSignals: number;
  };
  
  findings: Finding[];           // Risk findings with severity levels
  recommendations: Recommendation[];  // Prioritised action items: now / next / later
  architectureGraph: {
    nodes: ArchNode[];           // Component topology map
    edges: ArchEdge[];           // Inferred dependency edges
  };
}

πŸ—ΊοΈ Visual Architecture Maps

Three interactive, real-time visualization components are embedded directly in every report:

Component Description
DependencyGraph.tsx SVG force-directed graph simulating physics layout across architecture layers (application, service, data, delivery, ML). Filter by layer kind.
TechDebtHeatmap.tsx 5Γ—5 grid matrix of findings severity Γ— domain category. Hover any cell for detailed violation list.
RiskTrendline.tsx Animated multi-line sparkline chart plotting health score and complexity score history across scans.

πŸ›‘οΈ Enterprise Workspaces & RBAC

Organization Namespace
└── archscope:org:{org}:*
    β”œβ”€β”€ members/           β†’ userId Β· role (owner/admin/member/viewer)
    β”œβ”€β”€ scans/             β†’ scan records keyed by repo + timestamp
    β”œβ”€β”€ policy             β†’ CI/CD budgets (maxDependencies, maxComplexity, requireCi)
    β”œβ”€β”€ baseline           β†’ Saved snapshot for drift comparison
    └── webhooks/          β†’ Received event log
  • HMAC Session Tokens: Stateless cookie-based sessions signed with AUTH_SECRET.
  • Role-Based Access: 4 role levels β€” owner, admin, member, viewer.
  • Sliding-Window Rate Limiting: Per-org request budgets (10 scans/minute by default).
  • Memory Fallback Store: Full local dev operation without a Redis connection.

βš™οΈ CI/CD Integration

GitHub PR Bot

Automatically triggered via webhook on pull_request.opened / synchronized events:

## βœ… ArchScope Architecture Analysis

**Repository:** `acme/backend` | **Delivery Risk:** 🟒 LOW

| Metric | Score |
|--------|-------|
| πŸ₯ Health Score   | **91/100** |
| πŸ”§ Complexity     | **34/100** |
| 🚨 Critical Issues| **0**      |

### Policy Evaluation
- βœ… CI workflow detected
- βœ… Test coverage baseline confirmed
- βœ… Dependency count within budget

πŸ“Š [View Full Architecture Report](https://archscope.dev/report/acme/backend)

CLI Tool

# Install globally
npm install -g archscope-cli

# Run a policy scan (exits 1 on violation)
archscope scan github.com/vercel/next.js

# Output full JSON analysis report
archscope report github.com/facebook/react

# Configure workspace
export ARCHSCOPE_ORG=acme-corp
export ARCHSCOPE_TOKEN=at_xxxxx

GitHub Actions

name: Architecture Policy Check
on:
  pull_request:
    branches: [ main ]
jobs:
  archscope:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: ArchScope Policy Gate
        run: npx archscope-cli scan ${{ github.repository }}
        env:
          ARCHSCOPE_TOKEN: ${{ secrets.ARCHSCOPE_TOKEN }}
          ARCHSCOPE_ORG: "acme-corp"

πŸ“„ Executive Reporting

  • PDF Executive Brief: Generated client-side with jsPDF β€” includes repo metadata, KPI dial summary, risk findings, and a prioritized action roadmap.
  • CSV Export: Full data table covering languages, frameworks, dependencies, findings, and recommendations.
  • JSON Export: Full raw report blob for downstream pipeline consumption.
  • Portfolio Dashboard (/executive): Aggregate health index, compliance rate, remediation tracking, and governance matrix across all scanned repositories.

πŸ—οΈ Project Architecture

archscope/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”‚   β”œβ”€β”€ scan/          β†’ Core VCS fetch + detection + cache
β”‚   β”‚   β”‚   β”œβ”€β”€ ci/            β†’ Policy gate endpoint for CI systems
β”‚   β”‚   β”‚   β”œβ”€β”€ auth/          β†’ HMAC session login/logout
β”‚   β”‚   β”‚   β”œβ”€β”€ orgs/          β†’ Organization CRUD and member management
β”‚   β”‚   β”‚   β”œβ”€β”€ policy/        β†’ Policy budget read/write per org
β”‚   β”‚   β”‚   β”œβ”€β”€ queue/         β†’ Async scan job queue + background worker
β”‚   β”‚   β”‚   β”œβ”€β”€ reports/       β†’ Scan history and trend data
β”‚   β”‚   β”‚   β”œβ”€β”€ export/        β†’ CSV/JSON server-side export
β”‚   β”‚   β”‚   β”œβ”€β”€ sbom/          β†’ Software Bill of Materials generation
β”‚   β”‚   β”‚   └── webhooks/
β”‚   β”‚   β”‚       β”œβ”€β”€ github/    β†’ PR bot webhook handler (HMAC verified)
β”‚   β”‚   β”‚       └── drift/     β†’ Arch drift detector + Linear integration
β”‚   β”‚   β”œβ”€β”€ executive/         β†’ Portfolio Risk Dashboard
β”‚   β”‚   β”œβ”€β”€ governance/        β†’ Policy budget editor UI
β”‚   β”‚   β”œβ”€β”€ portfolio/         β†’ Repository portfolio view
β”‚   β”‚   β”œβ”€β”€ docs/cli/          β†’ CLI & GitHub Actions documentation
β”‚   β”‚   └── report/[owner]/[repo]/  β†’ Dynamic report page
β”‚   β”‚
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ReportCard.tsx     β†’ Full enterprise report visualizer
β”‚   β”‚   β”œβ”€β”€ ScanForm.tsx       β†’ Multi-VCS scan input with real-time status
β”‚   β”‚   β”œβ”€β”€ DependencyGraph.tsx β†’ SVG force-directed topology graph
β”‚   β”‚   β”œβ”€β”€ TechDebtHeatmap.tsx β†’ Severity Γ— domain debt heatmap
β”‚   β”‚   β”œβ”€β”€ RiskTrendline.tsx  β†’ Animated historical drift sparkline
β”‚   β”‚   β”œβ”€β”€ Navbar.tsx         β†’ Global navigation with scroll effects
β”‚   β”‚   β”œβ”€β”€ Logo.tsx           β†’ SVG brand mark
β”‚   β”‚   └── AnimatedBackground.tsx β†’ Dynamic ambient particle system
β”‚   β”‚
β”‚   └── lib/
β”‚       β”œβ”€β”€ vcs.ts             β†’ Unified GitHub/GitLab/Bitbucket adapter
β”‚       β”œβ”€β”€ detector.ts        β†’ 80+ rule stack detection engine
β”‚       β”œβ”€β”€ intelligence.ts    β†’ Health scoring & findings generator
β”‚       β”œβ”€β”€ complexity.ts      β†’ Complexity calculation model
β”‚       β”œβ”€β”€ auth.ts            β†’ HMAC session management
β”‚       β”œβ”€β”€ redis.ts           β†’ Upstash Redis store + memory fallback
β”‚       β”œβ”€β”€ observability.ts   β†’ Structured JSON logging + metrics
β”‚       β”œβ”€β”€ export.ts          β†’ PDF (jsPDF) + CSV export generators
β”‚       └── types.ts           β†’ Core TypeScript type definitions
β”‚
└── cli/
    β”œβ”€β”€ index.mjs              β†’ archscope CLI binary
    └── package.json           β†’ npm package manifest (bin: archscope)

πŸš€ Getting Started

1. Clone & Install

git clone https://github.com/your-org/archscope.git
cd archscope
npm install

2. Environment Setup

cp .env.example .env.local
# Required for production caching β€” leave blank for in-memory fallback during dev
UPSTASH_REDIS_REST_URL=https://your-instance.upstash.io
UPSTASH_REDIS_REST_TOKEN=AXxx...

# Required for private repo scanning and PR bot webhooks
GITHUB_TOKEN=ghp_xxx
GITHUB_WEBHOOK_SECRET=your_webhook_secret

# Required for production auth integrity
AUTH_SECRET=your_super_secret_key

# Optional: GitLab & Bitbucket private repository access
GITLAB_TOKEN=glpat-xxx
BITBUCKET_TOKEN=xxx

# Optional: Linear issue creation on architecture drift
LINEAR_API_KEY=lin_api_xxx

3. Run Development Server

npm run dev

Open http://localhost:3000.

4. Production Build

npm run build   # Verified: exit code 0  βœ“
npm run start

5. Quality Gates

npm run lint       # ESLint
npm run typecheck  # tsc --noEmit
npm test           # Vitest (detector Β· intelligence Β· complexity Β· VCS adapters)

πŸ”Œ API Reference

Method Endpoint Description
POST /api/scan Run full analysis on a repository URL
POST /api/ci Policy gate evaluation (used by CLI & GitHub Actions)
GET /api/reports/history Fetch scan history for a repo
POST /api/auth Create HMAC session (login)
GET /api/auth Validate current session
GET /api/orgs List organizations
POST /api/orgs Create a new organization workspace
GET/PUT /api/policy Read/update org policy budgets
POST /api/queue Enqueue an async background scan job
GET /api/queue Poll job status by jobId
GET /api/export Download CSV/JSON report by scan ID
GET /api/sbom Generate Software Bill of Materials
POST /api/webhooks/github GitHub webhook receiver (PR bot)
POST /api/webhooks/drift Architecture drift evaluation + alerting

πŸ§ͺ Supported Repository Types

Type Support
GitHub Public βœ… Full
GitHub Private βœ… Token Auth
GitLab.com βœ… Full
GitLab Private βœ… PRIVATE-TOKEN Auth
Bitbucket Cloud βœ… Full
Monorepos βœ… Sub-manifest scanning (packages/, apps/, services/)
Docker/Kubernetes βœ… Detected via Dockerfile, Chart.yaml, k8s/
Terraform/Pulumi βœ… Detected via .tf, Pulumi.yaml
Python (requirements.txt, pyproject.toml, Pipfile) βœ… Full
Go (go.mod) βœ… Full
Rust (Cargo.toml) βœ… Full
Java/Kotlin (pom.xml, build.gradle) βœ… Full

πŸ› οΈ Tech Stack

Layer Technology
Framework Next.js 16 (App Router Β· Turbopack)
Runtime React 19 Β· Node.js 20
Language TypeScript 5 (strict)
Styling TailwindCSS 4 Β· Lightning CSS
Animations Framer Motion 12
Icons Lucide React
Persistence Upstash Redis (with in-memory fallback)
PDF Generation jsPDF 4
Observability OpenTelemetry Β· Sentry
CI/CD GitHub Actions Β· Custom CLI

πŸ“œ License

Distributed under the MIT License. See LICENSE for details.


Built with precision for engineering leaders, platform teams, and architecture governance.

Live Demo Β· Docs Β· Executive Dashboard


ArchScope β€” Know your stack. Govern your architecture.

About

Know your stack. Govern your architecture. Scan any repository and get AI-powered tech fingerprinting, risk scoring, policy enforcement, and executive-grade architecture briefs in seconds.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages