# swaywm/sway SLOC report

> As of 2026-10-22 (commit 1652c54b73f6), swaywm/sway contains 57,602 total lines: 46,189 code, 3,914 comments, 7,499 blank, across 355 files in 9 languages (top: C 89.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

swaywm/sway has 46,189 source lines of code out of 57,602 total lines across 355 files, counted from the 1652c54b73f67df17b7b4ab0b0f7048204aa8104 ref at commit 1652c54b73f6 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving swaywm/sway to commit 1652c54b73f6, 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,406 | 41,091 | 1,605 | 5,710 |
| C Header | 61 | 5,267 | 3,446 | 733 | 1,088 |
| 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-10-22T00:19:00.934791957+00:00. Canonical report: https://octocounts.com/github/swaywm/sway

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/swaywm/sway/commit/1652c54b73f67df17b7b4ab0b0f7048204aa8104?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=46705a7bedf20b08d59a0a0d4b47b2a937f6d13859de4891054d388f40e1744e).

## Report FAQ

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

swaywm/sway has 57,602 total lines, including 46,189 code lines, 3,914 comment lines, and 7,499 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 1652c54b73f6, 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 1652c54b73f67df17b7b4ab0b0f7048204aa8104 at commit 1652c54b73f6 on 2026-10-22T00:19:00.934791957+00:00.

## Similar repository reports

- [libuv/libuv](https://octocounts.com/github/libuv/libuv) — C, 46,463 code lines
- [labwc/labwc](https://octocounts.com/github/labwc/labwc) — C, 45,797 code lines
- [RealFoxerity/UnstableOS](https://octocounts.com/github/RealFoxerity/UnstableOS) — C, 48,049 code lines
- [c0c0octopus/libssh-esp32](https://octocounts.com/github/c0c0octopus/libssh-esp32) — C, 48,388 code lines
- [cmus/cmus](https://octocounts.com/github/cmus/cmus) — C, 43,060 code lines
- [AravisProject/aravis](https://octocounts.com/github/AravisProject/aravis) — C, 49,828 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)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
