scc logo
Files8,922 stars368 forksGoMITCommit: Dec 2026

scc

scc is a fast, multi-language code line counter that reports LOC, blank, comment, and complexity metrics

⚡ Compare scc with:bat→

Key Strengths (Pros)

  • very fast and scales with additional CPU cores
  • accurate line counting
  • cross‑platform support (Windows, Linux, macOS)
  • provides COCOMO and LOCOMO cost estimations
  • estimates cyclomatic complexity
  • generates unique lines of code / DRYness metrics

Choose scc If

  • →individual developers
  • →engineering teams
  • →CI/CD pipelines

Quick Summary

About scc

Core Capabilities

•counts lines of code, blank lines, comment lines, and physical lines
•COCOMO calculation
•LOCOMO estimation for LLM‑based development costs
•cyclomatic complexity estimation
•unique lines of code and DRYness metrics
•supports many programming languages

scc (Sloc Cloc and Code) is a command‑line tool for counting lines of code, blank lines, comment lines, and physical source lines across many programming languages. It also offers COCOMO and LOCOMO cost estimations, cyclomatic complexity analysis, and DRYness metrics. Designed for developers and engineering teams, it runs on Windows, Linux, and macOS, scales with CPU cores, and can be installed via Go, package managers, or Docker.

Self-Host with Docker

Starter Template

Run scc locally or on your private VPS with zero cloud lock-in.

services:
  scc:
    image: boyter/scc:latest
    container_name: scc
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - ./scc-data:/data

💡 Starter Docker template — verify the exact image tag and port in the repository README.

Check official repo docs ↗

Interactive Server Sizer

What VPS Do You Need for scc?

CPU Cores2 vCPU
Memory (RAM)2 GB RAM
NVMe Disk40 GB NVMe

Hetzner Cloud

Best value

~$4.35/mo

DigitalOcean

Simple DX

~$12/mo

AWS Lightsail / EC2

AWS VPC

~$16/mo

Startup Team (10–50 users): Enable Caddy/Traefik HTTP/2 + automated daily volume snapshots to Cloudflare R2 (~$1/mo) for zero-stress operations.

Production Topology

How scc Runs Self-Hosted

Single-Container Stack

scc — Go Container

Runs isolated inside Docker using image boyter/scc:latest. Stateless restarts let you upgrade versions cleanly without touching your persisted data.

boyter/scc:latest

At-a-Glance Health Audit

scc Open-Source Readiness Score

91/100

Production Ready
Community Adoption8.9k stars · Strong
Maintenance FreshnessActive (<30 days)
Self-Host ReadinessDocker Ready
License FreedomMIT · Permissive
boyter/scc
Open on GitHubPreview Card
scc GitHub repository preview (boyter/scc)

Ready to explore scc?

Visit their official site or check their code repository.

Visit sccView Code

For Project Maintainers

Embed Verified Badge in GitHub README

Signal to developers that scc is actively verified on The Cloud Rain. Boost credibility and showcase commercial SaaS replacement.

scc on The Cloud Rain - Verified Open Source
[![scc on The Cloud Rain - Verified Open Source](https://www.thecloudrain.org/api/badge/scc)](https://www.thecloudrain.org/tools/scc)

Knowledge Base

Frequently Asked Questions

Is scc free and open source?

Yes, scc is free, open-source software distributed under the MIT license. Anyone can inspect, audit, or contribute to its public codebase.

Can I self-host scc?

Yes, scc is designed for self-hosting on private clouds, VPS, or on-premise hardware. You can deploy it using Docker or containers to maintain complete control over your data.

What are the best open-source alternatives to scc?

Explore top alternatives in the Files category on The Cloud Rain, where projects are verified for active maintenance, license integrity, and developer usability.

How is scc verified on The Cloud Rain?

Our curation pipeline verifies scc for license authenticity, repository commit cadence, and deployment viability according to our transparent audit methodology.