repowiserepowise
Sign in
supabase/realtime
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowisesupabase/realtime
RE
RE

supabase / realtime

elixirmain5357e3365.5K linessynced 3mo ago

Code health

8.4out of 10Good

This codebase scores 8.4 out of 10 for code health, which we rate good. It also scores maintainability 9.9 and static performance 10.0 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 50 of 585 files are git hotspots, and they average 6.5 — which is where the fixes pay off most.

Full health report →
Documentation43pages43 with model-written prose, 0 built from the indexScore validation20/202.4× baselineTop-ranked files that did go on to need a bug fix

Do next

Nothing stands out in the week to Jul 9, the last indexed commit.

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report
    Small effort
Lines of code
65.5K
Files
585
Symbols
19
Modules
9
Languages
5

Recent activity

All commits →

Commits

  • 5357e331chore(release): 2.112.10 [skip ci]3mo ago
  • bd1381b3fix: role leak on apply_rls (#2008)3mo ago
  • 387b6f0echore(release): 2.112.9 [skip ci]3mo ago
  • 35209872fix: bump cowlib (#2006)3mo ago
  • 2ca6c18cchore(release): 2.112.8 [skip ci]3mo ago
  • 749b432dfix: bump req/mint/plug (#2005)3mo ago

Decisions

  • 2. Bring up the full supabase stack. We use its realtime container only as the source of truth for…proposed
  • 3. Swap realtime: copy supabase's exact env (via env inside their container, so we avoid…proposed
  • Add OpenAPI v3 docsproposed
  • Add partitioning to realtime.messagesproposed
  • Add tenant flag to control presence defaultproposed
  • Add write permission checks for channels via transactional update/revertproposed
▸

Everything we found

641 open

Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.

  • worst item is critical severity. Code health206Untested hotspot · lib/realtime/api.ex4 findings · 6.2 deducted→
  • worst item is low severity. Refactoring4initRealtime+0.6 health, M effort · assets/js/app.js→
  • worst item is medium severity. Decisions89test/e2e/realtime-check.ts39 awaiting review · 50 hotspots ungoverned→
  • worst item is medium severity. Ownership323test/e2e/realtime-check.ts100% single-owner concentration, 24 commits in 90d→
  • worst item is low severity. Dead code19lib/realtime/release.exUnreachable symbol (0 lines)→

Composition

Open the graph →
elixir 98%
javascript 1%shell 0%dockerfile 0%typescript 0%

Explore this codebase

  • Docs43 pages across 9 modules→
  • ChatAsk this codebase a question and get an answer with its sources.→
  • Files585 files with per-file docs, health and history→
  • ArchitectureDependency graph, layers, and 8 entry points→
  • Code healthPer-file scores, 399 open findings, coverage and refactoring targets→
  • Knowledge graphEntities, communities, and the paths between them→
  • Change couplingFiles that keep changing together, mined from commit history→
  • CommitsChange-risk ranked history with agent provenance→
  • ContributorsBus factor, per-file maintainers, and the human/agent split→
  • StatsSize class, origin, lifetime churn, rhythm and records→
  • CostsWhat indexing this snapshot cost, by model and by run.→