AI Slop Code Risk Monitor

spacebarchat/server

SlopCodeMonitor badge for spacebarchat/server Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for spacebarchat/server, a TypeScript project with 2,211 GitHub stars. SynthScan examined 132,560 lines of code across 1364 source files, recording 84 pattern matches distributed across 5 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.

0.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
2.2K
Stars
TypeScript
Language
132.6K
Lines of Code
1.4K
Files
84
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 2.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 71 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 10 finding(s).

Agent Over-Engineering Ratio 1.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 14 finding(s).

PR Review Velocity Impact 3.7/100 · LOW

Which changes need focused human review? 84 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 3MEDIUM 0LOW 81

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 84 distinct pattern matches across 5 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.

Over-Commented Block50 hits · 50 pts
SeverityFileLineSnippetContext
LOWtsconfig.json81 // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavCOMMENT
LOW…pi/Spacebar.UApi/Controllers/GuildStickerController.cs21 //COMMENT
LOW…acebar.UApi/Controllers/Messages/MessagesController.cs21 // {COMMENT
LOW…pi/DataMappings/Spacebar.DataMappings.AdminApi/User.cs1using Spacebar.Models.AdminApi;COMMENT
LOW…pi/DataMappings/Spacebar.DataMappings.AdminApi/User.cs21 // PrimaryGuild = user.PrimaryGuild,COMMENT
LOW…in-api/Spacebar.Cdn/Extensions/FileSourceExtensions.cs1// using ImageMagick;COMMENT
LOW…in-api/Spacebar.Cdn/Extensions/FileSourceExtensions.cs21// // }COMMENT
LOW…min-api/Spacebar.Cdn/Controllers/GetImageController.cs1// using ArcaneLibs.Extensions.Streams;COMMENT
LOW…min-api/Spacebar.Cdn/Controllers/GetImageController.cs21// var original = await fs.GetFile(Request.Path);COMMENT
LOW…min-api/Spacebar.Cdn/Controllers/GetImageController.cs41// });COMMENT
LOW…a/admin-api/Spacebar.Cdn/Controllers/UserController.cs41 // var originalKey = fs.BaseUrl + Request.Path;COMMENT
LOW…a/admin-api/Spacebar.Cdn/Controllers/UserController.cs61 // }COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs1// #if DEBUGCOMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs21// return pads.IsPixelArt(img);COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs41// Quality = Request.Query.ContainsKey("quality") && Enum.TryParse<DiscordImageResizeQuality>(Request.QuCOMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs61//COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs81// Passthrough = Request.Query.ContainsKey("passthrough") && bool.TryParse(Request.Query["passthrough"],COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs101// img = dirs.Apply(img, resizeParams);COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs121// ? qualityCOMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs141// if (resizeParams.Size.HasValue)COMMENT
LOW…pacebar.Cdn/Controllers/Internal/GetImageController.cs161// }COMMENT
LOW…a/admin-api/Tests/Spacebar.Tests/Tests/MessageTests.cs221 var res = await Assert.HttpSuccess(await Client.ApiHttpClient.PostAsync($"channels/{Channel.Id}/messages", reqCoCOMMENT
LOW…a/admin-api/Tests/Spacebar.Tests/Tests/MessageTests.cs241 // var res = await Assert.HttpSuccess(await Client.ApiHttpClient.PostAsync($"channels/{Channel.Id}/messaCOMMENT
LOWextra/admin-api/Tests/Spacebar.Tests/Tests/DMTests.cs21COMMENT
LOWextra/admin-api/Tests/Spacebar.Tests/Tests/DMTests.cs41 // [Fact]COMMENT
LOWextra/admin-api/Tests/Spacebar.Tests/Tests/DMTests.cs61 // });COMMENT
LOWextra/admin-api/Tests/Spacebar.Tests/Tests/DMTests.cs81 //COMMENT
LOW…pi/Utilities/Spacebar.Client/wwwroot/service-worker.js1// In development, always fetch from the network and do not enable offline support.COMMENT
LOW…in-api/Utilities/Spacebar.Cdn.Migration/FsckService.cs181 // ItemId = x.IdCOMMENT
LOW…i.PrepareTestData/TestDataTypes/MessageSpamTestData.cs61 // var success = false;COMMENT
LOW…repareTestData/TestDataTypes/AttachmentSpamTestData.cs61 // var success = false;COMMENT
LOWextra/admin-api/Spacebar.Cdn.Worker/Program.cs21// fs.Flush();COMMENT
LOWextra/admin-api/Spacebar.Cdn.Worker/Program.cs41// Console.WriteLine(" => " + sw2.Elapsed);COMMENT
LOWscripts/schema.js161 (x.endsWith("Schema") || x.endsWith("Response") || x.startsWith("API") || x.endsWith("Array")) &&COMMENT
LOWsrc/database/entities/Guild.ts41import { User } from "./User";COMMENT
LOWsrc/database/entities/ThreadMember.ts121 // // @ts-ignoreCOMMENT
LOWsrc/database/entities/ThreadMember.ts141 // } satisfies GuildMemberUpdateEvent)COMMENT
LOWsrc/database/entities/ThreadMember.ts161 // data: {COMMENT
LOWsrc/database/entities/ThreadMember.ts181 // await Promise.all([COMMENT
LOWsrc/database/entities/ReadState.ts81 // delete res.badge_count;COMMENT
LOWsrc/database/entities/Categories.ts21import { DiscoveryCategory } from "@spacebar/schemas";COMMENT
LOWsrc/util/util/json/JsonSerializer.test.ts121 // // write a massive json fileCOMMENT
LOWsrc/util/util/json/JsonSerializer.test.ts141 // }COMMENT
LOWsrc/schemas/Validator.ts21import fs from "node:fs";COMMENT
LOWsrc/schemas/responses/SettingsProtoUpdateResponse.ts41// settings: PreloadedUserSettings;COMMENT
LOWsrc/schemas/uncategorised/SettingsProtoUpdateSchema.ts41// required_data_version?: number;COMMENT
LOWsrc/schemas/gateway/IdentifySchema.ts21import { ActivitySchema } from "@spacebar/schemas";COMMENT
LOWsrc/schemas/gateway/IdentifySchema.ts41 // $$referrer: String,COMMENT
LOWsrc/api/util/handlers/Instance.ts21import { TimeSpan } from "@spacebar/extensions";COMMENT
LOWsrc/gateway/util/Utils.ts61// Temporary cleanup function until shutdown cleanup function is fixed.COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…n-api/Spacebar.AdminApi/Controllers/GuildController.cs0delete from messages where id in ( select id from messages where author_id = {authorid} and channel_id = {channelid} andSTRING
HIGH…in-api/Spacebar.AdminApi/Controllers/UserController.cs0delete from messages where id in ( select id from messages where author_id = {authorid} and channel_id = {channelid} andSTRING
HIGH…api/Spacebar.AdminApi/Controllers/ChannelController.cs0delete from messages where id in ( select id from messages where author_id = {authorid} and channel_id = {channelid} andSTRING
TODO Padding10 hits · 14 pts
SeverityFileLineSnippetContext
LOW…i/Controllers/Applications/ApplicationRpcController.cs16 // TODO: implement disclosuresCOMMENT
LOWextra/admin-api/Models/Spacebar.Models.Generic/Guild.cs42 public List<object> GuildScheduledEvents { get; set; } // TODO: implementCODE
LOWsrc/util/util/FieldError.ts51// TODO: implement Image data type: Data URI scheme that supports JPG, GIF, and PNG formats. An example Data URI format COMMENT
LOWsrc/util/util/json/JsonSerializer.ts108 //TODO: implementCOMMENT
LOWsrc/util/util/json/JsonSerializer.ts113 // TODO: implementCOMMENT
LOWsrc/api/routes/reporting/index.ts61 // TODO: implementCOMMENT
LOWsrc/api/routes/reporting/index.ts82 // TODO: implementCOMMENT
LOWsrc/api/routes/guilds/#guild_id/integrations.ts23//TODO: implement integrations listCOMMENT
LOWsrc/api/routes/guilds/#guild_id/audit-logs.ts26//TODO: implement audit logsCOMMENT
LOWsrc/gateway/opcodes/RequestChannelStatuses.ts30 // TODO: implementCOMMENT
Hyper-Verbose Identifiers11 hits · 11 pts
SeverityFileLineSnippetContext
LOWscripts/schema.js333function deleteOneOfKindUndefinedRecursive(obj, path) {CODE
LOWscripts/schema.js401async function removeAllMatchingRecursive(o, selector, maxDepth = 32, path = "$") {CODE
LOWscripts/util/getRouteDescriptions.js100function getPrefixedRouteDescriptions(routePrefix, root) {CODE
LOWsrc/cdn/routes/avatar-decoration-presets.ts43async function tryReturnFromCollectiblesShop(req: Request, res: Response, avatar_decoration_data_asset: string) {CODE
LOWsrc/api/util/handlers/Message.ts603export async function processMessageOptionAttachments(source: MessageOptions, destination: Message) {CODE
LOWsrc/api/util/handlers/Message.ts648export async function convertCloudAttachmentToAttachment(cloudAttachmentReference: MessageCreateCloudAttachment, destinaCODE
LOWsrc/api/util/handlers/Message.ts690async function handleMessageMentionsAsync(message: Message) {CODE
LOWsrc/api/util/utility/polls.ts25export async function generatePollResultsMessage(options: MessageOptions): Promise<MessageOptions> {CODE
LOWsrc/api/util/utility/EmbedHandlers.ts562export async function dropDuplicateCacheEntries(entries: EmbedCache[]): Promise<EmbedCache[]> {CODE
LOWsrc/api/util/utility/EmbedHandlers.ts608export async function getOrUpdateEmbedCache(urls: string[], cb?: (url: string, embeds: Embed[]) => Promise<void>): PromiCODE
LOWsrc/gateway/util/Utils.ts100export async function handleOffloadedGatewayRequest(socket: WebSocket, url: string, body: unknown): Promise<boolean> {CODE
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOWassets/schemas.json13664 "placeholder": {CODE
LOWassets/schemas.json14053 "placeholder": {CODE
LOWassets/schemas.json14335 "placeholder": {CODE
LOWassets/schemas.json14407 "placeholder": {CODE
LOWassets/schemas.json14532 "placeholder": {CODE
LOWassets/schemas.json14892 "placeholder": {CODE
LOW…migration/postgres/1787497429170-AttachmentMetadata.ts11 await queryRunner.query(`ALTER TABLE "attachments" ADD "placeholder" character varying`);CODE
LOW…migration/postgres/1787497429170-AttachmentMetadata.ts23 await queryRunner.query(`ALTER TABLE "attachments" DROP COLUMN "placeholder"`);CODE
LOWsrc/api/routes/users/@me/billing/payment-sources.ts36 name: "John Doe",CODE
LOWsrc/api/routes/users/@me/billing/payment-sources.ts37 line_1: "123 Main Street",CODE