Repository Analysis

gofiber/fiber

⚡️ Express inspired web framework written in Go

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gofiber/fiber, a Go project with 39,952 GitHub stars. SynthScan v2.0 examined 159,691 lines of code across 414 source files, recording 286 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
40.0K
Stars
Go
Language
159.7K
Lines of Code
414
Files
286
Pattern Hits
2026-07-14
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 25HIGH 0MEDIUM 1LOW 260

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 286 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators25 hits · 290 pts
SeverityFileLineSnippetContext
CRITICALres.go155 r.c.fasthttp.Response.Header.Del(field)CODE
CRITICALres.go390 r.c.fasthttp.Response.Header.SetCookie(fcookie)CODE
CRITICALres.go440 accepts := r.c.fasthttp.Request.Header.PeekAll(HeaderAccept)CODE
CRITICALres.go448 r.c.fasthttp.Response.Header.SetContentType(h.MediaType)CODE
CRITICALres.go479 r.c.fasthttp.Response.Header.SetContentType(h.MediaType)CODE
CRITICALres.go539 return defaultString(r.c.app.toString(r.c.fasthttp.Response.Header.Peek(key)), defaultValue)CODE
CRITICALres.go643 r.c.fasthttp.Response.Header.SetContentType(MIMETextJavaScriptCharsetUTF8)CODE
CRITICALres.go832 r.c.fasthttp.Response.Header.Add("Link", h)CODE
CRITICALres.go839 if !r.c.fasthttp.Request.Header.IsHTTP11() {CODE
CRITICALres.go1076 r.c.fasthttp.Response.Header.Set(key, val)CODE
CRITICALres.go1080 r.c.fasthttp.Response.Header.SetCanonical(utils.UnsafeBytes(key), utils.UnsafeBytes(val))CODE
CRITICALres.go1109 r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=" + charset[0])CODE
CRITICALres.go1113 r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=utf-8")CODE
CRITICALres.go1115 r.c.fasthttp.Response.Header.SetContentType(mimeType)CODE
CRITICALres.go1160 r.c.fasthttp.Response.Header.Del(HeaderVary)CODE
CRITICALres.go1171 r.c.fasthttp.Response.Header.Del(HeaderVary)CODE
CRITICALreq.go54 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAccept))CODE
CRITICALreq.go60 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptCharset))CODE
CRITICALreq.go66 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptEncoding))CODE
CRITICALreq.go73 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage))CODE
CRITICALreq.go80 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage))CODE
CRITICALreq.go389 return defaultString(r.c.app.toString(r.c.fasthttp.Request.Header.Cookie(key)), defaultValue)CODE
CRITICALreq.go848 ct := r.c.app.toString(r.c.fasthttp.Request.Header.ContentType())CODE
CRITICALreq.go957 return r.c.app.toString(r.c.fasthttp.Request.Header.RequestURI())CODE
CRITICALreq.go1055 return r.c.app.toString(r.c.fasthttp.Request.Header.Protocol())CODE
Over-Commented Block217 hits · 212 pts
SeverityFileLineSnippetContext
LOWreq_interface_gen.go21 AcceptsLanguages(offers ...string) stringCOMMENT
LOWreq_interface_gen.go41 // RequestCtx returns *fasthttp.RequestCtx that carries a deadlineCOMMENT
LOWreq_interface_gen.go61 // If a default value is given, it will return that value if the form value does not exist.COMMENT
LOWreq_interface_gen.go81 Get(key string, defaultValue ...string) stringCOMMENT
LOWreq_interface_gen.go101 Port() stringCOMMENT
LOWreq_interface_gen.go121 // IPs returns a string slice of IP addresses specified in the X-Forwarded-For request header.COMMENT
LOWreq_interface_gen.go141 // OriginalURL contains the original request URL.COMMENT
LOWreq_interface_gen.go161 Query(key string, defaultValue ...string) stringCOMMENT
LOWreq_interface_gen.go181 // Queries()["filters[customer][name]"] == "Alice"COMMENT
LOWregister.go41// return c.Next()COMMENT
LOWdomain.go221// DomainParam returns the value of a domain parameter from the context.COMMENT
LOWdomain.go241COMMENT
LOWcolor.go1// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️COMMENT
LOWcolor.go21 // Optional. Default: "\u001b[92m"COMMENT
LOWrouter_skip.go1// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️COMMENT
LOWres.go21 "github.com/valyala/bytebufferpool"COMMENT
LOWres.go41 // When set to true, enables byte range requests.COMMENT
LOWres.go821// This is a HTTP/2+ feature but all browsers will either understand it or safely ignore it.COMMENT
LOWctx_interface_gen.go21 // BaseURL returns (protocol + host + base path).COMMENT
LOWctx_interface_gen.go41 // The close of the Done channel may happen asynchronously,COMMENT
LOWctx_interface_gen.go61 Response() *fasthttp.ResponseCOMMENT
LOWctx_interface_gen.go81 // Returned value is only valid within the handler. Do not store any references.COMMENT
LOWctx_interface_gen.go101 RequestID() stringCOMMENT
LOWctx_interface_gen.go121 // Never inlined: inlining it would push Route over the inlining budget.COMMENT
LOWctx_interface_gen.go141 SaveFileToStorage(fileheader *multipart.FileHeader, path string, storage Storage) errorCOMMENT
LOWctx_interface_gen.go161 // Reset is a method to reset context fields by given request when to use server handlers.COMMENT
LOWctx_interface_gen.go181 // ErrorHandler) have completely finished using this context. Calling it whileCOMMENT
LOWctx_interface_gen.go201 // signalReleased records that the request handler is done touching an abandoned,COMMENT
LOWctx_interface_gen.go241 // Repeated field lines are combined into one comma-joined listCOMMENT
LOWctx_interface_gen.go261 AcceptsJSON() boolCOMMENT
LOWctx_interface_gen.go281 // Returned value is only valid within the handler. Do not store any references.COMMENT
LOWctx_interface_gen.go301 FormFile(key string) (*multipart.FileHeader, error)COMMENT
LOWctx_interface_gen.go321 // Host contains the host derived from the X-Forwarded-Host or Host HTTP header.COMMENT
LOWctx_interface_gen.go341 // spoofing if your app is behind a proxy.COMMENT
LOWctx_interface_gen.go361 Is(extension string) boolCOMMENT
LOWctx_interface_gen.go381 Params(key string, defaultValue ...string) stringCOMMENT
LOWctx_interface_gen.go401 // Queries()["field1"] == "value2"COMMENT
LOWctx_interface_gen.go421 // Stale returns the inverse of Fresh, indicating if the client's cached response is considered stale.COMMENT
LOWctx_interface_gen.go441 ClearCookie(key ...string)COMMENT
LOWctx_interface_gen.go461 // If the header is not specified or there is no proper format, text/plain is used.COMMENT
LOWctx_interface_gen.go481 // JSONP sends a JSON response with JSONP support.COMMENT
LOWctx_interface_gen.go501 // From this point onward the body argument must not be changed.COMMENT
LOWctx_interface_gen.go521 SendStatus(status int) errorCOMMENT
LOWctx_interface_gen.go541 // Writef appends f & a into response body writer.COMMENT
LOWgroup.go41 if err := grp.app.hooks.executeOnGroupNameHooks(*grp); err != nil {COMMENT
LOWgroup.go201 newGrp := &Group{Prefix: prefix, app: grp.app, parentGroup: grp}COMMENT
LOWapp.go41type Handler = func(Ctx) errorCOMMENT
LOWapp.go181 // Default: ""COMMENT
LOWapp.go201 //COMMENT
LOWapp.go221 // cases in order to access the handler values (e.g. request bodies) in anCOMMENT
LOWapp.go241COMMENT
LOWapp.go261 ViewsLayout string `json:"views_layout"`COMMENT
LOWapp.go281 ReadTimeout time.Duration `json:"read_timeout"`COMMENT
LOWapp.go301 ReadBufferSize int `json:"read_buffer_size"`COMMENT
LOWapp.go321COMMENT
LOWapp.go341 // When set to true, causes the default date header to be excluded from the response.COMMENT
LOWapp.go361COMMENT
LOWapp.go381COMMENT
LOWapp.go401COMMENT
LOWapp.go421 MsgPackEncoder utils.MsgPackMarshal `json:"-"`COMMENT
157 more matches not shown…
Fake / Example Data26 hits · 26 pts
SeverityFileLineSnippetContext
LOWbind_test.go699 c.Request().Header.Add("Name", "John Doe")CODE
LOWbind_test.go728 c.Request().Header.Add("Name", "Jane Doe")CODE
LOWbind_test.go741 require.Equal(t, "Jane Doe", h2.Name) // check value get overwrittenCODE
LOWbind_test.go770 c.Request().Header.Add("Name", "John Doe")CODE
LOWbind_test.go957 c.Response().Header.Add("Name", "John Doe")CODE
LOWbind_test.go986 c.Response().Header.Add("Name", "Jane Doe")CODE
LOWbind_test.go999 require.Equal(t, "Jane Doe", h2.Name) // check value get overwrittenCODE
LOWbind_test.go1028 c.Response().Header.Add("Name", "John Doe")CODE
LOWbind_test.go1189 c.Request().Header.Add("Name", "John Doe")CODE
LOWbind_test.go1210 c.Request().Header.Add("Name", "John Doe")CODE
LOWbind_test.go1237 c.Response().Header.Add("Name", "John Doe")CODE
LOWbind_test.go1258 c.Response().Header.Add("Name", "John Doe")CODE
LOWbind_test.go1910 c.Request().Header.SetCookie("Name", "John Doe")CODE
LOWbind_test.go1939 c.Request().Header.SetCookie("Name", "Jane Doe")CODE
LOWbind_test.go1952 require.Equal(t, "Jane Doe", h2.Name) // check value get overwrittenCODE
LOWbind_test.go1983 c.Request().Header.SetCookie("Name", "John Doe")CODE
LOWbind_test.go2170 c.Request().Header.SetCookie("Name", "John Doe")CODE
LOWbind_test.go2193 c.Request().Header.SetCookie("Name", "John Doe")CODE
LOWinternal/schemehost/schemehost_test.go58 "user@example.com", "user:pass@example.com", "example.com/path",CODE
LOWdocs/middleware/session.md161 if email == "admin@example.com" && password == "secret" {CODE
LOWdocs/middleware/session.md774 if email != "user@example.com" || password != "password" {CODE
LOWdocs/middleware/session.md807 return email == "user@example.com" && password == "password"CODE
LOWdocs/api/ctx.md2073 user := User{"John Doe"}CODE
LOWdocs/api/ctx.md2077 // => {"Name":"John Doe"}COMMENT
LOWdocs/client/request.md470 Name: "John Doe",CODE
LOWdocs/client/request.md493 "Name": "John Doe"CODE
Structural Annotation Overuse10 hits · 15 pts
SeverityFileLineSnippetContext
LOWredirect_test.go704 // Step 1: Make the initial request to the source routeCOMMENT
LOWredirect_test.go722 // Step 2: Make the second request to the target route with the cookieCOMMENT
LOWredirect_test.go770 // Step 1: Make the initial requestCOMMENT
LOWredirect_test.go787 // Step 2: Make the second request with the cookieCOMMENT
LOWhelpers.go348 // Step 2: first subtag must match (or be '*')COMMENT
LOWdocs/guide/validation.md13### Step 1: Install a validatorCOMMENT
LOWdocs/guide/validation.md19### Step 2: Wire it into the app configCOMMENT
LOWdocs/guide/validation.md45### Step 3: Bind and validate in one callCOMMENT
LOWdocs/guide/validation.md69### Step 4: Shape the error responseCOMMENT
LOWdocs/guide/validation.md106### Step 5: Add your own rulesCOMMENT
Verbosity Indicators5 hits · 8 pts
SeverityFileLineSnippetContext
LOWredirect_test.go704 // Step 1: Make the initial request to the source routeCOMMENT
LOWredirect_test.go722 // Step 2: Make the second request to the target route with the cookieCOMMENT
LOWredirect_test.go770 // Step 1: Make the initial requestCOMMENT
LOWredirect_test.go787 // Step 2: Make the second request with the cookieCOMMENT
LOWhelpers.go348 // Step 2: first subtag must match (or be '*')COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.golangci.yml269 # finding at report time instead so it is robust to cache state.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWreq.go1114// Example usage:COMMENT
LOWextractors/extractors.go9// Example usage:COMMENT