Embedded web server, with TCP/IP network stack, MQTT and Websocket
This report summarizes scanner evidence for cesanta/mongoose, a C project with 13,082 GitHub stars. SynthScan examined 670,467 lines of code across 1012 source files, recording 7836 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 7.7 (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? 7836 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 7836 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 7836 distinct pattern matches across 3 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 |
|---|---|---|---|---|
| LOW | mongoose.h | 1 | // Copyright (c) 2004-2013 Sergey Lyubka | COMMENT |
| LOW | mongoose.h | 21 | #define MONGOOSE_H | COMMENT |
| LOW | mongoose.h | 41 | #define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX) | COMMENT |
| LOW | mongoose.h | 61 | #if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM) | COMMENT |
| LOW | mongoose.h | 101 | #include <stdlib.h> | COMMENT |
| LOW | mongoose.h | 121 | #include <stdbool.h> | COMMENT |
| LOW | mongoose.h | 141 | #if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP | COMMENT |
| LOW | mongoose.h | 161 | #endif | COMMENT |
| LOW | mongoose.h | 181 | #endif | COMMENT |
| LOW | mongoose.h | 201 | // The total evaluation period is set by MG_OTA_ROLLBACK_TIMEOUT_SECONDS. | COMMENT |
| LOW | mongoose.h | 221 | COMMENT | |
| LOW | mongoose.h | 241 | #if defined(TAMP) | COMMENT |
| LOW | mongoose.h | 261 | #ifndef MG_IRAM | COMMENT |
| LOW | mongoose.h | 301 | #include <limits.h> | COMMENT |
| LOW | mongoose.h | 381 | COMMENT | |
| LOW | mongoose.h | 401 | #include <esp_system.h> | COMMENT |
| LOW | mongoose.h | 421 | #include <sys/stat.h> | COMMENT |
| LOW | mongoose.h | 481 | defined(_MIMXRT1064_H_)) | COMMENT |
| LOW | mongoose.h | 501 | COMMENT | |
| LOW | mongoose.h | 581 | // GPR5 survives RTWDOG global resets and is not reserved by the boot ROM. | COMMENT |
| LOW | mongoose.h | 641 | #include <stdarg.h> | COMMENT |
| LOW | mongoose.h | 661 | #if PICO_RP2040 | COMMENT |
| LOW | mongoose.h | 701 | #include <rtthread.h> | COMMENT |
| LOW | mongoose.h | 721 | COMMENT | |
| LOW | mongoose.h | 741 | #elif MG_ARCH == MG_ARCH_CMSIS_RTOS2 | COMMENT |
| LOW | mongoose.h | 761 | (!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP) | COMMENT |
| LOW | mongoose.h | 781 | COMMENT | |
| LOW | mongoose.h | 801 | // 1. Add nxd_bsd.h and nxd_bsd.c to the repo: | COMMENT |
| LOW | mongoose.h | 821 | #include <stdio.h> | COMMENT |
| LOW | mongoose.h | 841 | #if !defined(MG_ENABLE_EPOLL) && defined(__linux__) | COMMENT |
| LOW | mongoose.h | 861 | #include <stdbool.h> | COMMENT |
| LOW | mongoose.h | 881 | #include <unistd.h> | COMMENT |
| LOW | mongoose.h | 901 | // behaviour). See config.h for user options | COMMENT |
| LOW | mongoose.h | 921 | #endif | COMMENT |
| LOW | mongoose.h | 941 | #if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP | COMMENT |
| LOW | mongoose.h | 981 | // For mg_random() | COMMENT |
| LOW | mongoose.h | 1001 | // Protect from calls like std::snprintf in app code | COMMENT |
| LOW | mongoose.h | 1021 | #endif | COMMENT |
| LOW | mongoose.h | 1061 | #define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR) | COMMENT |
| LOW | mongoose.h | 1081 | #include <zephyr/kernel.h> | COMMENT |
| LOW | mongoose.h | 1101 | #ifndef strdup | COMMENT |
| LOW | mongoose.h | 1141 | COMMENT | |
| LOW | mongoose.h | 1181 | #define sockaddr freertos_sockaddr | COMMENT |
| LOW | mongoose.h | 1221 | #include <lwip/sockets.h> | COMMENT |
| LOW | mongoose.h | 1241 | #if defined(MG_ENABLE_RL) && MG_ENABLE_RL | COMMENT |
| LOW | mongoose.h | 1261 | COMMENT | |
| LOW | mongoose.h | 1281 | COMMENT | |
| LOW | mongoose.h | 1301 | COMMENT | |
| LOW | mongoose.h | 1321 | COMMENT | |
| LOW | mongoose.h | 1341 | COMMENT | |
| LOW | mongoose.h | 1361 | #define MG_IO_SIZE 512 // Granularity of the send/recv IO buffer growth | COMMENT |
| LOW | mongoose.h | 1381 | #ifdef PATH_MAX | COMMENT |
| LOW | mongoose.h | 1401 | #define MG_INVALID_SOCKET (-1) | COMMENT |
| LOW | mongoose.h | 1421 | if (wr) ev.events |= EPOLLOUT; \ | COMMENT |
| LOW | mongoose.h | 1441 | #ifndef MG_TCPIP_DHCPNAME_SIZE | COMMENT |
| LOW | mongoose.h | 1461 | #endif | COMMENT |
| LOW | mongoose.h | 1481 | #ifndef MG_SET_WIFI_CONFIG | COMMENT |
| LOW | mongoose.h | 1501 | // They are saved into a c->prof IO buffer, each event is a name and a 32-bit | COMMENT |
| LOW | mongoose.h | 1581 | COMMENT | |
| LOW | mongoose.h | 1601 | COMMENT | |
| 7745 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | test/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/nxp/teensy-4.1/arduino/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/core/memory/o1heap/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/core/timers/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded-12m/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/core/embedded-filesystem/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/core/multi-threaded/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | …torials/wch/ch32v307-make-baremetal-builtin/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/mongoose/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/micropython/esp32/mongoose/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/esp32/uart-bridge/main/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/esp32/device-dashboard/main/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | …torials/esp8266/http-client-server/src/main/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/teensy41-http/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/nano-w5500-mqtt/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/w5500-http/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/esp32-http/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/esp32-mqtt/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/sim800-mqtt/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/arduino/w5500-mqtt/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | …ials/microchip/same54-xpro/device-dashboard/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/microchip/same54-xpro/mqtt-client/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | …als/renesas/ek-ra6m4-make-baremetal-builtin/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/tcpip/tap-driver/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/tcpip/pcap-driver/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | …/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | tutorials/rp/pico-rndis-device/mongoose.h | 1747 | // Usage example: | COMMENT |
| LOW | src/fmt.h | 43 | // Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 237 | ├── ... # IDE-specific project scaffolding | CODE |
| MEDIUM | resources/I-CUBE-Mongoose/README.md | 172 | ## AI agentic development | COMMENT |