repowisesparckles/robyn

Architecture of sparckles/robyn

sparckles/robyn is 361 source files holding 2,207 symbols across 8 modules, written mainly in Python, JavaScript, Rust. The largest module is docs_src, with 197 files, and 24 files are entry points into the dependency graph.

How robyn fits together

The user-facing API lives in the Python package robyn, where the Robyn app object and its route decorators such as app.get are defined. robyn/__init__.py is the central file that exposes this API, and robyn/router.py handles matching incoming URLs to registered routes. The core runtime is written in Rust under src, and src/types/response.rs defines the response types produced on the Rust side. robyn/robyn.pyi provides type stubs that describe the compiled Rust module to Python tools. Requests enter through the server started by app.start, and the values that handlers return are sent back as responses. Cargo.toml and pyproject.toml define how the Rust and Python parts are built and packaged.

Largest modules

  • docs_src: 197 files and 18,919 lines of code
  • integration_tests: 48 files and 4,296 lines of code
  • robyn: 45 files and 5,750 lines of code
  • src: 26 files and 4,436 lines of code
  • unit_tests: 16 files and 1,195 lines of code
  • .github: 13 files and 745 lines of code
  • root: 11 files and 1,230 lines of code
  • examples: 3 files and 263 lines of code

Languages

By file count: Python 102 files, JavaScript 86 files, Rust 27 files, Dockerfile 7 files, Shell 4 files.

Documentation

Repowise documents robyn in 394 pages generated from the source.

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

Related guide: Best dependency graph tools for monorepos