ββββββ βββββββ ββββββββββ βββββββββββ βββββββ βββββββ βββββββ ββββββββ
βββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββ βββββββββββββββββββ βββ βββββββββββββββββ
βββββββββββββββββββ βββββββββββββββββββ βββ ββββββββββ ββββββ
βββ ββββββ ββββββββββββββ βββββββββββββββββββββββββββββββ ββββββββ
βββ ββββββ βββ ββββββββββ βββββββββββ βββββββ βββββββ βββ ββββββββ
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.
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 β βββββββββββββββββββββββ
βββββββββββββββββ
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 |
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
};
}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. |
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.
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)# 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_xxxxxname: 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"- 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.
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)
git clone https://github.com/your-org/archscope.git
cd archscope
npm installcp .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_xxxnpm run devOpen http://localhost:3000.
npm run build # Verified: exit code 0 β
npm run startnpm run lint # ESLint
npm run typecheck # tsc --noEmit
npm test # Vitest (detector Β· intelligence Β· complexity Β· VCS adapters)| 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 |
| 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 |
| 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 |
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.