Repo X-Ray · 05 December 2026, 05:38 · read in 8.9s · nothing was executed

outline

/srv/xela/workspace/.envxray-oss/outline

How to run itWhat the code isWhere the risk isWhat the tests cannot seeDead weightDependenciesSecretsMethod and limits
403,644
lines of code
2098
source files
437
test files
60%
modules a test can reach
50
commits read
1 days ago
last commit

How to run it

make targets

npm scripts

and 20 more.

docker compose

docker

CI steps

What the code is

LanguageFilesLines
TypeScript2,477400,435
JavaScript583,209
SQL12,512
Shell1278
HTML5242
Docker276

What to read first

The fewest files that are the only import route into 79% of the code — 1,657 of 2,098 files. This is not a ranking, it is a cover: nothing in those 1,657 files can be reached by an import without passing through one of the entrances below. Each row also names the files the rest of that region depends on most, which is the vocabulary you will be reading it in.

Read this, then what it leads toFiles it opensLines in that regionA test reaches it
1. server/index.ts
where the program starts
  server/models/index.ts ← 181 files, 82 lines
  server/types.ts ← 132 files, 706 lines
  plugins/azure/server/env.ts ← 107 files, 30 lines
1,126167,106no
2. app/index.tsx
where the program starts
  app/components/Scene.tsx ← 29 files, 68 lines
  app/scenes/Settings/components/StickyFilters.tsx ← 14 files, 29 lines
  app/components/FilterOptions.tsx ← 11 files, 402 lines
33444,156no
3. app/scenes/Document/index.tsx
where the program starts
  app/components/HoverPreview/Components.tsx ← 8 files, 152 lines
  app/editor/components/ToolbarButton.tsx ← 4 files, 59 lines
  app/editor/components/Tooltip.tsx ← 3 files, 27 lines
8613,563no
4. app/components/Sidebar/index.ts
where the program starts
  app/hooks/useActiveSidebarContext.ts ← 7 files, 33 lines
  app/components/EditableTitle.tsx ← 6 files, 199 lines
  app/components/Sidebar/components/SidebarNavigation.tsx ← 5 files, 161 lines
384,932no
5. server/queues/processors/NotificationsProcessor.ts
nothing imports it
  server/utils/permissions.ts ← 9 files, 175 lines
  server/models/helpers/NotificationHelper.ts ← 5 files, 328 lines
  server/queues/tasks/GroupMentionedInCommentNotificationsTask.ts ← 2 files, 84 lines
222,960yes
6. app/editor/extensions/SelectionToolbar.tsx
nothing imports it
  app/components/Icons/CircleIcon.tsx ← 4 files, 47 lines
  app/editor/components/CellBackgroundColorPicker.tsx ← 3 files, 28 lines
  app/editor/menus/code.tsx ← 2 files, 126 lines
192,606no
7. shared/types/index.ts
where the program starts
  shared/types/auth.ts ← 2 files, 44 lines
  shared/types/unfurl.ts ← 1 files, 173 lines
  shared/types/integrations.ts ← 1 files, 131 lines
16955no
8. server/queues/processors/EmailsProcessor.ts
nothing imports it
  server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx ← 1 files, 304 lines
  server/emails/templates/CommentCreatedEmail.tsx ← 1 files, 225 lines
  server/emails/templates/GroupCommentMentionedEmail.tsx ← 1 files, 201 lines
162,726no

The modules everything else leans on

Imported by the most files: the load-bearing walls, where a change reaches furthest.

ModuleImported byLinesA test reaches it
plugins/diagrams/shared/types.ts6329yes
server/models/index.ts48182yes
app/hooks/useStores.ts24715yes
server/types.ts230706yes
server/test/factories.ts2151,086no
shared/styles/index.ts203110yes
plugins/azure/server/env.ts17730yes
shared/utils/error.ts15634yes
server/logging/Logger.ts150202yes
app/components/Flex.tsx1493yes
app/components/Text.ts1413yes
plugins/azure/server/errors.ts12310yes

Where the risk is

Churn multiplied by size. A big file that never changes is usually fine; a big file that changes constantly is where the bugs and the arguments live.

FileCommitsLinesMostly written byTested
server/routes/api/documents/documents.ts22,314Author B 50%yes
server/models/Document.ts21,965Author B 50%yes
server/models/helpers/ProsemirrorHelper.tsx21,773Author A 100%yes
app/stores/base/Store.ts2696Author B 50%yes
app/scenes/Search/Search.tsx2599Author B 50%no
server/queues/tasks/JSONAPIImportTask.ts2563Author B 50%yes
app/actions/definitions/documents.tsx11,965Author A 100%yes
app/components/DocumentListItem.tsx2488Author B 50%no
app/components/Header.tsx2463Author B 50%yes
app/components/PaginatedList.tsx2379Author B 50%yes
app/components/Lightbox.tsx11,347Author A 100%yes
shared/schema.ts2246Author B 50%no

The busiest test file is server/models/helpers/DocumentHelper.test.ts (2 commits) - kept out of the table above so the code that ships comes first.

Bus factor. 3 of the files above were written almost entirely by one person (80% or more of the commits that touched them). If that person is not available, these are the files that will hurt.

Active in the last 90 days: Author A (40), Author B (10)

History read: 50 commits, 4 days ago to 1 days ago. Top committer overall: Author A 80%.

What the tests cannot see

1,250 of 2,098 shipped modules are reachable from a test file by import (60%).

Reachable means a test imports it, directly or through another module. It is the floor, not coverage: a module can be reachable and still have none of its behaviour exercised. The modules below are the other case - nothing a test loads can even see them, so a green suite says nothing about them.

and 434 more in 187 other places.

Dead weight

Read this list with care. This repository loads code at runtime in 3 places where the target is a variable, so a reader like this one cannot know what they load. 67 files were rescued from the list below by resolving the literal globs and module paths that could be resolved.

Nothing imports these, and no entry point, script or resolved runtime load reaches them. Biggest first.

and 19 more in 19 other places.

83 TODO / FIXME / HACK markers

FileCount
server/test/fixtures/notion-page.json11
shared/i18n/locales/es_ES/translation.json9
shared/i18n/locales/pt_PT/translation.json5
shared/i18n/locales/pt_BR/translation.json4
.github/ISSUE_TEMPLATE/bug_report.yml3
server/commands/documentUpdater.test.ts3

Dependencies

Read from package.json.

Imported but not declared

These work on a machine where the package happens to be installed, and fail in a clean checkout or in CI.

PackageImported by
@dnd-kit/utilitiesapp/components/DocumentCard.tsx
expressplugins/oidc/server/auth/OIDCStrategy.ts
server/typings/outlinewiki__koa-passport.d.ts
koa-composeserver/routes/api/batch/batch.ts
@fortawesome/fontawesome-common-typesshared/editor/extensions/Mermaid.ts

Declared but never imported

Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.

@bull-board/koa @bull-board/ui @fortawesome/fontawesome-svg-core @hocuspocus/server @modelcontextprotocol/server @simplewebauthn/browser @types/mailparser @vitejs/plugin-react bull diff franc helmet koa passport patch-package pg refractor slugify socket.io-adapter vite-plugin-pwa @relative-ci/agent @swc/cli @types/cookie @types/escape-html

Missing, but only for tests, docs or examples

Nothing in the shipped code imports these, so an install will not break - but a fresh contributor running the tests or building the docs will hit them.

jszip

Secrets

36 possible secrets committed outside a test folder. Values are masked here. Check each one, and treat any real key as compromised: it is in the history even if you delete the line.
WhatWhereValue
private key block.env.test:21----...--- (31 chars)
password in codeplugins/azure/server/azure.ts:14toke...en" (67 chars)
password in codeplugins/discord/server/discord.ts:8toke...en" (45 chars)
password in codeplugins/gitea/server/api/gitea.test.ts:19toke...en" (18 chars)
password in codeplugins/google/server/google.ts:8toke...en" (51 chars)
password in codeplugins/slack/server/api/hooks.test.ts:406toke...en" (33 chars)
password in codeplugins/slack/server/api/hooks.test.ts:599toke...en" (33 chars)
password in codeserver/logging/sanitize.test.ts:28toke...d]" (19 chars)
password in codeserver/logging/sanitize.test.ts:29pass...d]" (22 chars)
password in codeserver/logging/sanitize.test.ts:38apiK...d]" (20 chars)
password in codeserver/logging/sanitize.test.ts:39secr...d]" (20 chars)
password in codeserver/logging/sanitize.test.ts:58API_...d]" (21 chars)
password in codeserver/logging/sanitize.test.ts:60PASS...d]" (22 chars)
password in codeserver/logging/sanitize.test.ts:79toke...d]" (19 chars)
password in codeserver/logging/sanitize.test.ts:84toke...d]" (19 chars)
password in codeserver/logging/sanitize.test.ts:88pass...d]" (22 chars)
password in codeserver/logging/sanitize.test.ts:145toke...d]" (19 chars)
password in codeserver/logging/sanitize.test.ts:158toke...d]" (19 chars)
password in codeserver/middlewares/rateLimiter.test.ts:329toke...en" (32 chars)
password in codeserver/middlewares/rateLimiter.test.ts:350toke...en" (20 chars)

No committed credentials matched the patterns checked.

Patterns covered: AWS keys, private key blocks, GitHub, Slack, Stripe, Google, OpenAI and Anthropic keys, JSON web tokens, and passwords assigned in code. A secret in a format not listed here would not be found, and this does not read the git history.

Method and limits

More measured notes on coding agents: alexenabled.github.io