Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
This report summarizes scanner evidence for ghostfolio/ghostfolio, a TypeScript project with 9,626 GitHub stars. SynthScan examined 197,857 lines of code across 1452 source files, recording 81 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 62 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 51 finding(s).
Which changes need focused human review? 81 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 81 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …t/assistant-list-item/assistant-list-item.component.ts | 61 | internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink( | CODE |
| CRITICAL | apps/api/src/app/endpoints/sitemap/sitemap.service.ts | 160 | id: publicRoutes.resources.subRoutes.personalFinanceTools.path.match( | CODE |
| CRITICAL | apps/api/src/app/endpoints/sitemap/sitemap.service.ts | 167 | id: publicRoutes.resources.subRoutes.personalFinanceTools.subRoutes.product.path.match( | CODE |
| CRITICAL | …pp/components/admin-market-data/admin-market-data.html | 311 | internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink( | CODE |
| CRITICAL | …nents/admin-market-data/admin-market-data.component.ts | 322 | internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink( | CODE |
| CRITICAL | …ile-dialog-host/asset-profile-dialog-host.component.ts | 129 | internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink( | CODE |
| CRITICAL | …/transfer-balance/transfer-balance-dialog.component.ts | 76 | this.transferBalanceForm.controls.fromAccount.valueChanges.subscribe( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 1126 | function testPaymentGatewayContract( | CODE |
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3489 | function createMockExecutionContext(request: Partial<Request>): ExecutionContext { | CODE |
| LOW | …nestjs-best-practices/rules/test-use-testing-module.md | 142 | function createMockExecutionContext(request: Partial<Request>): ExecutionContext { | CODE |
| LOW | …/nestjs-best-practices/rules/di-liskov-substitution.md | 181 | function testPaymentGatewayContract( | CODE |
| LOW | libs/ui/src/lib/chart/chart.color-scheme.ts | 4 | export function onPrefersColorSchemeChange(callback: () => void) { | CODE |
| LOW | libs/ui/src/lib/chart/chart.registry.ts | 22 | export function registerChartConfiguration() { | CODE |
| LOW | …ib/portfolio-filter-form/portfolio-filter-form.util.ts | 24 | export function getFiltersFromPortfolioFilterFormValue( | CODE |
| LOW | …ib/portfolio-filter-form/portfolio-filter-form.util.ts | 73 | export function getPortfolioFilterFormValue( | CODE |
| LOW | libs/common/src/lib/helper.ts | 246 | export function canUseCustomAssetProfileSymbol({ | CODE |
| LOW | libs/common/src/lib/helper.ts | 268 | export function convertValuesToPercentagesOfTotal({ | CODE |
| LOW | libs/common/src/lib/helper.ts | 365 | export function getAssetProfileIdentifier({ | CODE |
| LOW | libs/common/src/lib/helper.ts | 388 | export function getCountryCodeFromCurrency(aCurrency = '') { | CODE |
| LOW | libs/common/src/lib/helper.ts | 464 | export function getDateWithTimeFormatString(aLocale?: string) { | CODE |
| LOW | libs/common/src/lib/helper.ts | 535 | export function getStartOfUtcDateOfTomorrow() { | CODE |
| LOW | libs/common/src/lib/helper.ts | 539 | export function getStartOfUtcDateOfYesterday() { | CODE |
| LOW | libs/common/src/lib/helper.ts | 687 | export function isFearAndGreedIndexSymbol(aSymbol: string) { | CODE |
| LOW | libs/common/src/lib/helper.ts | 732 | export function isUserSettingOfAuthenticatedUser(aKey: string) { | CODE |
| LOW | libs/common/src/lib/helper.ts | 738 | export function isValidAccountBalanceDate(aDate: string) { | CODE |
| LOW | libs/common/src/lib/helper.ts | 755 | export function isValidCustomAssetProfileSymbol(aSymbol: string) { | CODE |
| LOW | libs/common/src/lib/calculation-helper.ts | 18 | export function getAnnualizedPerformancePercent({ | CODE |
| LOW | libs/common/src/lib/chart-helper.ts | 162 | export function getTooltipPositionerMapTop( | CODE |
| LOW | libs/common/src/lib/chart-helper.ts | 270 | export function transformTickToAbbreviation(value: number) { | CODE |
| LOW | libs/common/src/lib/scopes.ts | 80 | export function canGrantRestrictedWriteAccess({ type }: { type: AccessType }) { | CODE |
| LOW | libs/common/src/lib/scopes.ts | 87 | export function canGrantUnrestrictedReadAccess({ type }: { type: AccessType }) { | CODE |
| LOW | libs/common/src/lib/scopes.ts | 156 | export function getScopesOfUnrestrictedImpersonation(): string[] { | CODE |
| LOW | apps/api/src/app/app.module.spec.ts | 223 | function getRoutesWithoutAuthentication(controller: Type) { | CODE |
| LOW | apps/api/src/app/endpoints/mcp/mcp.controller.spec.ts | 138 | async function getWithAssetPerformanceInBaseCurrency( | CODE |
| LOW | apps/api/src/app/endpoints/ai/ai.helper.ts | 30 | export function getMediaTypeOfActivityFile({ | CODE |
| LOW | apps/api/src/app/portfolio/portfolio.service.spec.ts | 1237 | function createPortfolioCalculator() { | CODE |
| LOW | …ortfolio/calculator/portfolio-calculator-test-utils.ts | 53 | export async function getPerformanceByDateRange({ | CODE |
| LOW | …ortfolio/calculator/portfolio-calculator-test-utils.ts | 84 | export function loadActivitiesFromExportFile(fileName: string): { | CODE |
| LOW | …ps/api/src/middlewares/mcp-authorization.middleware.ts | 31 | export function createMcpAuthorizationMiddleware({ | CODE |
| LOW | …ps/api/src/middlewares/language-redirect.middleware.ts | 7 | export function languageRedirectMiddleware( | CODE |
| LOW | apps/api/src/helper/redis.helper.ts | 3 | export function getRedisConnectionOptions( | CODE |
| LOW | apps/api/src/helper/bearer-token.helper.ts | 29 | export function getActiveImpersonationOfBearerToken( | CODE |
| LOW | apps/api/src/helper/bearer-token.helper.ts | 57 | export function hasLimitsOfBasicSubscriptionOfBearerToken(request: unknown) { | CODE |
| LOW | apps/api/src/helper/data-source.helper.spec.ts | 12 | function createConfigurationService({ | CODE |
| LOW | apps/api/src/helper/account.helper.ts | 28 | export function getWhereAccountBalanceNotInFuture(): Prisma.AccountBalanceWhereInput { | CODE |
| LOW | apps/api/src/helper/object.helper.ts | 5 | export function hasNotDefinedValuesInObject(aObject: Object): boolean { | CODE |
| LOW | apps/api/src/helper/portfolio.helper.ts | 5 | export function convertValuesToPercentages({ | CODE |
| LOW | apps/api/src/helper/redis.helper.spec.ts | 9 | function createConfigurationService(overrides: Partial<Environment> = {}) { | CODE |
| LOW | apps/api/src/helper/language.helper.ts | 8 | export function getLanguageCodeFromHeader( | CODE |
| LOW | apps/api/src/helper/data-source.helper.ts | 51 | function getUnmaskedGhostfolioDataSource({ | CODE |
| LOW | apps/api/src/helper/data-source.helper.ts | 87 | export function getMaskedGhostfolioDataSource({ | CODE |
| LOW | apps/api/src/helper/data-source.helper.ts | 111 | export function isDataSourceEncodedInResponse(dataSource: DataSource) { | CODE |
| LOW | apps/api/src/helper/data-source.helper.ts | 124 | export function transformDataSourceInRequest({ | CODE |
| LOW | apps/api/src/helper/data-source.helper.ts | 146 | export function transformDataSourceInResponse({ | CODE |
| LOW | …rvices/portfolio-table/portfolio-table.service.spec.ts | 204 | function createPortfolioTableService({ | CODE |
| LOW | apps/api/src/services/import/import.service.spec.ts | 569 | function getAssetProfileIdentifiers(activities: Activity[]) { | CODE |
| LOW | …c/services/data-provider/data-provider.service.spec.ts | 19 | function createDataProviderService(dataProviderMapping?: { | CODE |
| LOW | apps/api/src/guards/has-permission.guard.spec.ts | 20 | function createMockExecutionContext(permissions: string[]) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .agents/skills/nestjs-best-practices/AGENTS.md | 3739 | // Step 1: Add new column | COMMENT |
| LOW⚡ | .agents/skills/nestjs-best-practices/AGENTS.md | 3744 | // Step 2: Copy data | COMMENT |
| LOW⚡ | .agents/skills/nestjs-best-practices/AGENTS.md | 3749 | // Step 3: Add NOT NULL constraint | COMMENT |
| LOW⚡ | .agents/skills/nestjs-best-practices/AGENTS.md | 3754 | // Step 4: Drop old column (after verifying app works) | COMMENT |
| LOW⚡ | …kills/nestjs-best-practices/rules/db-use-migrations.md | 100 | // Step 1: Add new column | COMMENT |
| LOW⚡ | …kills/nestjs-best-practices/rules/db-use-migrations.md | 105 | // Step 2: Copy data | COMMENT |
| LOW⚡ | …kills/nestjs-best-practices/rules/db-use-migrations.md | 110 | // Step 3: Add NOT NULL constraint | COMMENT |
| LOW⚡ | …kills/nestjs-best-practices/rules/db-use-migrations.md | 115 | // Step 4: Drop old column (after verifying app works) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3118 | .send({ email: 'test@test.com', password: 'password' }); | CODE |
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3135 | expect(res.body.email).toBe('test@test.com'); | CODE |
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3202 | const user = await service.create({ email: 'test@test.com' }); | CODE |
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3434 | repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' }); | CODE |
| LOW | .agents/skills/nestjs-best-practices/AGENTS.md | 3437 | service.create({ name: 'Test', email: 'test@test.com' }), | CODE |
| LOW | …nestjs-best-practices/rules/test-use-testing-module.md | 87 | repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' }); | CODE |
| LOW | …nestjs-best-practices/rules/test-use-testing-module.md | 90 | service.create({ name: 'Test', email: 'test@test.com' }), | CODE |
| LOW | …js-best-practices/rules/test-mock-external-services.md | 32 | const user = await service.create({ email: 'test@test.com' }); | CODE |
| LOW | …ills/nestjs-best-practices/rules/test-e2e-supertest.md | 124 | .send({ email: 'test@test.com', password: 'password' }); | CODE |
| LOW | …ills/nestjs-best-practices/rules/test-e2e-supertest.md | 141 | expect(res.body.email).toBe('test@test.com'); | CODE |
| LOW | libs/ui/src/lib/assistant/assistant.html | 17 | [placeholder]="placeholder" | CODE |
| LOW | …pp/components/admin-market-data/admin-market-data.html | 7 | [placeholder]="placeholder" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .agents/skills/nestjs-best-practices/AGENTS.md | 28 | - 1.5 [Use Event-Driven Architecture for Decoupling](#15-use-event-driven-architecture-for-decoupling) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/client/src/styles/bootstrap.scss | 121 | @import 'bootstrap/scss/type'; | COMMENT |
| LOW | apps/client/src/styles/bootstrap.scss | 141 | // @import 'bootstrap/scss/close'; | COMMENT |