repowiseckan/ckan

Architecture of ckan/ckan

ckan/ckan is 907 source files holding 7,631 symbols across 9 modules, written mainly in Python, JavaScript, Shell. The largest module is ckan, with 479 files, and 6 files are entry points into the dependency graph.

How ckan fits together

Requests and data enter through the web application in the ckan directory, which holds 479 files of core code, and the server is started through the command-line entry point ckan/cli/server.py. The ckan/lib/search/index.py entry point handles the search index used to find datasets in the catalog. The front-end is built from JavaScript entry points such as ckan/public/base/javascript/main.js, and the ckanext directory, with 349 files, contains the extension code that adds behavior to the core. The .devcontainer directory, with files such as Dockerfile and docker-compose.yml, defines a containerized development environment for running CKAN locally.

Largest modules

  • ckan: 479 files
  • ckanext: 349 files
  • contrib: 27 files
  • .github: 17 files
  • root: 11 files
  • test-infrastructure: 8 files
  • .devcontainer: 7 files
  • bin: 6 files

Languages

By file count: Python 723 files, JavaScript 106 files, Shell 12 files, Dockerfile 1 file.

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

Related guide: Best dependency graph tools for monorepos