High performance UI layout library in C.
This report summarizes scanner evidence for nicbarker/clay, a C project with 18,240 GitHub stars. SynthScan examined 30,653 lines of code across 82 source files, recording 112 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 9.2 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 43 finding(s).
Are imports declared and package/API names verified? 21 finding(s).
Are wrappers, guards, and repeated structures necessary? 49 finding(s).
Which changes need focused human review? 112 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 112 distinct pattern matches across 4 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 |
|---|---|---|---|---|
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 6 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 8 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 12 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 14 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 22 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 24 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 34 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 36 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 47 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 49 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 55 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 57 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 65 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 67 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 75 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-SDL2-video-demo/CMakeLists.txt | 77 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 7 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 9 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 13 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 15 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 23 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 25 | # ------------------------------------------------- | COMMENT |
| MEDIUM | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 39 | # ------------------------------------------------- | COMMENT |
| MEDIUM | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 41 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 53 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 55 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 61 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 63 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 81 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 83 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 90 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/GLES3-GLFW-video-demo/CMakeLists.txt | 92 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 5 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 7 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 11 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 13 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 21 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 23 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 33 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 35 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 46 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 48 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 54 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 56 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 64 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 66 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 74 | # ------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt | 76 | # ------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | clay.h | 21 | #include <arm_neon.h> | COMMENT |
| LOW | clay.h | 41 | #endif | COMMENT |
| LOW | clay.h | 81 | #define CLAY_SID(label) Clay__HashString(label, 0) | COMMENT |
| LOW | clay.h | 161 | COMMENT | |
| LOW | clay.h | 181 | COMMENT | |
| LOW | clay.h | 481 | COMMENT | |
| LOW | clay.h | 501 | // CLAY_POINTER_CAPTURE_MODE_CAPTURE (default) - "Capture" the pointer event and don't allow events like hover and c | COMMENT |
| LOW | clay.h | 661 | COMMENT | |
| LOW | clay.h | 801 | // CLAY_RENDER_COMMAND_TYPE_BORDER - The renderer should draw a colored border inset into the bounding box. | COMMENT |
| LOW | clay.h | 821 | typedef CLAY_PACKED_ENUM { | COMMENT |
| LOW | clay.h | 901 | typedef struct Clay_ErrorData { | COMMENT |
| LOW | clay.h | 921 | typedef struct { | COMMENT |
| LOW | clay.h | 941 | CLAY_DLL_EXPORT void Clay_SetPointerState(Clay_Vector2 position, bool pointerDown); | COMMENT |
| LOW | clay.h | 961 | CLAY_DLL_EXPORT Clay_Vector2 Clay_GetScrollOffset(void); | COMMENT |
| LOW | clay.h | 981 | // The returned Clay_ElementData contains a `found` bool that will be true if an element with the provided ID was found. | COMMENT |
| LOW | clay.h | 1001 | // Binds a callback function that Clay will call to determine the dimensions of a given string slice. | COMMENT |
| LOW | clay.h | 1041 | CLAY_DLL_EXPORT void Clay__OpenTextElement(Clay_String text, Clay_TextElementConfig textConfig); | COMMENT |
| LOW | renderers/GLES3/clay_renderer_gles3.h | 1 | #ifndef CLAY_RENDERER_GLES3_H | COMMENT |
| LOW | renderers/GLES3/clay_renderer_gles3.h | 821 | #endif | COMMENT |
| LOW | renderers/cairo/clay_renderer_cairo.c | 1 | // Copyright (c) 2024 Justin Andreas Lacoste (@27justin) | COMMENT |
| LOW | renderers/cairo/clay_renderer_cairo.c | 21 | // | COMMENT |
| LOW | renderers/cairo/clay_renderer_cairo.c | 41 | void Clay_Cairo_Initialize(cairo_t *cairo); | COMMENT |
| LOW | renderers/raylib/raymath.h | 61 | // Function specifiers definition | COMMENT |
| LOW | renderers/raylib/raymath.h | 81 | COMMENT | |
| LOW | renderers/raylib/raymath.h | 101 | COMMENT | |
| LOW | renderers/raylib/raylib.h | 81 | * 3. This notice may not be removed or altered from any source distribution. | COMMENT |
| LOW | renderers/raylib/raylib.h | 101 | #endif | COMMENT |
| LOW | renderers/raylib/raylib.h | 121 | #define PI 3.14159265358979323846f | COMMENT |
| LOW | renderers/raylib/raylib.h | 141 | #ifndef RL_FREE | COMMENT |
| LOW | renderers/raylib/raylib.h | 161 | // NOTE: We set some defines with some data types declared by raylib | COMMENT |
| LOW | renderers/raylib/raylib.h | 181 | #define PINK CLITERAL(Color){ 255, 109, 194, 255 } // Pink | COMMENT |
| LOW | renderers/raylib/raylib.h | 201 | #define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo) | COMMENT |
| LOW | renderers/win32_gdi/clay_renderer_gdi.c | 1 | #include <Windows.h> | COMMENT |
| LOW | renderers/sokol/sokol_clay.h | 141 | #endif /* SOKOL_CLAY_INCLUDED */ | COMMENT |
| LOW | renderers/SDL2/clay_renderer_SDL2.c | 141 | indices[indexCount++] = vertexCount - 1; //LT | COMMENT |
| LOW | examples/sokol-corner-radius/main.c | 1 | #include "sokol_app.h" | COMMENT |
| LOW | …es/playdate-project-example/clay-video-demo-playdate.c | 1 | // This is the video demo with some adjustments so it works on the playdate | COMMENT |
| LOW | examples/cairo-pdf-rendering/main.c | 1 | // Copyright (c) 2024 Justin Andreas Lacoste (@27justin) | COMMENT |
| LOW | examples/win32_gdi/main.c | 1 | COMMENT | |
| LOW | examples/sokol-video-demo/main.c | 1 | #include "sokol_app.h" | COMMENT |
| LOW | examples/sokol-video-demo/sokol.c | 1 | #define SOKOL_IMPL | COMMENT |
| LOW | examples/sokol-video-demo/sokol.c | 21 | #define FONTSTASH_IMPLEMENTATION | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/shared-layouts/clay-video-demo.c | 81 | documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor | CODE |
| LOW | examples/shared-layouts/clay-video-demo.c | 81 | documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor | CODE |
| LOW | examples/raylib-sidebar-scrolling-container/main.c | 80 | CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | examples/raylib-sidebar-scrolling-container/main.c | 80 | CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i | CODE |
| LOW | examples/raylib-sidebar-scrolling-container/main.c | 104 | CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis e | CODE |
| LOW | examples/raylib-sidebar-scrolling-container/main.c | 104 | CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis e | CODE |
| LOW | examples/raylib-multi-context/main.c | 36 | { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adip | CODE |
| LOW | examples/raylib-multi-context/main.c | 36 | { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adip | CODE |
| LOW⚡ | …es/playdate-project-example/clay-video-demo-playdate.c | 133 | .title = CLAY_STRING("Lorem Ipsum"), | CODE |
| LOW⚡ | …es/playdate-project-example/clay-video-demo-playdate.c | 136 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " | CODE |
| LOW⚡ | …es/playdate-project-example/clay-video-demo-playdate.c | 136 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 335 | CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 335 | CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 339 | CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 339 | CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 342 | CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor in | CODE |
| LOW⚡ | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 342 | CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor in | CODE |
| LOW | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 376 | CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas | CODE |
| LOW | examples/GLES3-SDL2-sidebar-scrolling-container/main.c | 376 | CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas | CODE |
| LOW | examples/clay-official-website/main.c | 189 | Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp | CODE |
| LOW | examples/clay-official-website/main.c | 189 | Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/clay-official-website/index.html | 398 | function SetElementBackgroundColorAndRadius(element, cornerRadius, backgroundColor) { | CODE |