repowisecyanfish/naps2

Architecture of cyanfish/naps2

cyanfish/naps2 is 1,078 source files holding 11,679 symbols across 30 modules, written mainly in C#, Python. The largest module is NAPS2.Lib, with 359 files, and 8 files are entry points into the dependency graph.

How naps2 fits together

The codebase is split into modules, and NAPS2.Lib is the largest, with 359 files. NAPS2.Sdk holds 245 files for the scanning library that the README describes for developers, supporting WIA, TWAIN, SANE, and ESCL scanners. NAPS2.Images contains 68 files of image code, and NAPS2.Lib.WinForms contains 30 files of Windows Forms code. Each platform app has its own entry point, such as NAPS2.App.WinForms/Program.cs, NAPS2.App.Gtk/Program.cs, NAPS2.App.Mac/Program.cs, and NAPS2.App.Console/Program.cs. The user interface code lives under NAPS2.Lib/EtoForms, where NAPS2.Lib/EtoForms/Ui/CropForm.cs is one of the listed hotspot files, and Eto.Forms is a key dependency.

Largest modules

  • NAPS2.Lib: 359 files and 24,292 lines of code
  • NAPS2.Sdk: 245 files and 14,062 lines of code
  • NAPS2.Sdk.Tests: 79 files and 8,048 lines of code
  • NAPS2.Tools: 78 files and 3,189 lines of code
  • NAPS2.Images: 68 files and 3,598 lines of code
  • NAPS2.Lib.WinForms: 30 files and 2,648 lines of code
  • NAPS2.Internals: 28 files and 1,656 lines of code
  • NAPS2.Lib.Tests: 27 files and 3,377 lines of code

Languages

By file count: C# 1,055 files, Python 1 file.

Documentation

Repowise documents naps2 in 1,678 pages generated from the source.

More on naps2: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos