# swaywm/sway SLOC report

> As of 2026-09-03 (commit 5bc72dee4771), swaywm/sway contains 57,581 total lines: 46,167 code, 3,915 comments, 7,499 blank, across 355 files in 9 languages (top: C 89.0%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving swaywm/sway to commit 5bc72dee4771, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 80.2% of all lines, comments represent 6.8%, and the repository averages 130 code lines per file. C accounts for 89.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 242 | 48,388 | 41,070 | 1,606 | 5,712 |
| C Header | 61 | 5,264 | 3,445 | 733 | 1,086 |
| Meson | 11 | 717 | 655 | 2 | 60 |
| XML | 2 | 535 | 485 | 3 | 47 |
| SVG | 5 | 340 | 335 | 5 | 0 |
| Autoconf | 1 | 241 | 96 | 118 | 27 |
| Fish | 3 | 66 | 57 | 4 | 5 |
| Shell | 1 | 32 | 24 | 1 | 7 |
| Markdown | 29 | 1,998 | 0 | 1,443 | 555 |

Top language (C 89.0%). Generated at 2026-09-03T15:52:57.089251101+00:00. Canonical report: https://octocounts.com/github/swaywm/sway

## Report FAQ

### How many lines of code does swaywm/sway have?

swaywm/sway has 57,581 total lines, including 46,167 code lines, 3,915 comment lines, and 7,499 blank lines.

### How was the swaywm/sway line count measured?

OctoCounts resolved the public GitHub repository to commit 5bc72dee4771, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for swaywm/sway?

This OctoCounts report was generated from master at commit 5bc72dee4771 on 2026-09-03T15:52:57.089251101+00:00.

## Similar repository reports

- [mirror/wget](https://octocounts.com/github/mirror/wget) — C, 44,810 code lines
- [allinurl/goaccess](https://octocounts.com/github/allinurl/goaccess) — C, 44,268 code lines
- [arkq/bluez-alsa](https://octocounts.com/github/arkq/bluez-alsa) — C, 43,054 code lines
- [robertdavidgraham/masscan](https://octocounts.com/github/robertdavidgraham/masscan) — C, 42,331 code lines
- [memcached/memcached](https://octocounts.com/github/memcached/memcached) — C, 41,471 code lines
- [akimd/bison](https://octocounts.com/github/akimd/bison) — C, 41,182 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
