jart/cosmopolitan

build-once run-anywhere c library

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 2nd, 2026
Created on June 15th, 2020
Open Issues & Pull Requests: 225 (+0)
GitHub issues: Enabled
Number of forks: 778
Total Stargazers: 21,278 (+0)
Total Subscribers: 179 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 16.1 hours
Mean response time: 52.4 days
90th percentile: 178.6 days
Tracked items: 83

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 97% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 3% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 62
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 502 days
Stale 30+ days: 55
Stale 90+ days: 53

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • medium severity (32)
  • low severity (18)
  • high severity (7)
  • critical severity (5)
  • accepted (4)
  • support (4)
  • duplicate (3)
  • contributions welcome (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Cosmopolitan Libc is a C standard library that enables building C and C++ programs once that run natively across Linux, macOS, Windows, FreeBSD, OpenBSD, NetBSD, and BIOS without requiring an interpreter or virtual machine.

The project solves the portability problem by reconfiguring GCC and Clang to generate polyglot executables in a POSIX-approved format. These binaries execute natively on each supported platform with performance and binary size comparable to platform-specific builds. The approach works by bundling platform-specific code paths and system call handling into a single executable that detects its runtime environment and behaves accordingly.

Cosmopolitan suits developers building command-line tools, system utilities, or other programs where true portability without runtime dependencies matters more than language ecosystem breadth. It works well for projects that can be expressed in C or C++ and benefit from minimal binary size and native performance. The project is particularly valuable for infrastructure tooling, embedded applications, and scenarios where shipping separate binaries per platform is operationally expensive. Unlike Java or similar approaches, it produces genuinely portable native code rather than bytecode requiring a runtime.

Development on the project shows consistent activity with regular commits addressing bug fixes, platform support improvements, and feature additions. The maintainers actively respond to issues and pull requests, indicating engaged stewardship. The codebase receives updates across multiple areas including the core libc implementation, build system refinements, and platform-specific compatibility layers. Documentation is maintained alongside code changes, suggesting attention to developer experience.