nsf/termbox
Library for writing text-based user interfaces
- Repository: https://github.com/nsf/termbox
- Commit:
a04f34c11494a1dbfb6286fc95470dea4086c520 - Generated: 2026-11-13T23:32:20+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 58 | weak | 90% | 100% |
| Security | 69 | weak | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
- Explicitly attributed share (lower bound): 0.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 0.0%
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2015-03 | 29 | 0% |
| 2015-04 | 40 | 0% |
| 2015-05 | 21 | 0% |
| 2015-06 | 14 | 0% |
| 2015-10 | 2 | 0% |
| 2016-05 | 48 | 0% |
| 2016-07 | 142 | 0% |
| 2016-08 | 19 | 0% |
| 2016-09 | 1 | 0% |
| 2017-01 | 3 | 0% |
| 2017-02 | 1 | 0% |
| 2017-04 | 1 | 0% |
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is weak: test-to-source ratio 0.06, no CI test run detected; 16% of function code in complex or long functions; 0% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 62 |
| Duplication | 100 |
| Code smells (Opengrep) | 89 |
| Tests and CI | 23 |
| Documentation | 65 |
| Type safety | 40 |
| Process (Scorecard review/maintenance) | 30 |
- Functions: 64; mean complexity 3.9, 90th percentile 9; 1 complex and 1 long functions
- Duplicated lines: 0.0% of 1,719 compared
- Tests: 129 test lines for 2,218 source lines (ratio 0.06); CI test commands: none detected; 1% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- send_attr in src/termbox.c: complexity 16, 42 lines
- draw_keyboard in src/demo/keyboard.c: complexity 7, 145 lines
Security
Security posture is weak: no high-impact findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 85 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | 25 |
- Posture checks passed: none; missing: security policy, dependency updates, signed commits, lockfiles
- OpenSSF Scorecard aggregate: 2.9/10 (published 2026-11-09)
Top findings
| Severity | Finding | Location |
|---|---|---|
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/termbox.c:96 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/termbox.c:479 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/termbox.c:490 |
| medium | opengrep/c.lang.security.insecure-use-memset: When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While memset() is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoi [confidence low] |
src/termbox.c:632 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 2,218; test lines: 129
| Language | Lines |
|---|---|
| C | 2,087 |
| Python | 260 |