{"id":29523935,"url":"https://github.com/umangsys-dev/defin","last_synced_at":"2026-05-16T11:04:41.382Z","repository":{"id":304467274,"uuid":"1018674991","full_name":"umangsys-dev/defin","owner":"umangsys-dev","description":"System tool that detects and installs missing C++ dependencies","archived":false,"fork":false,"pushed_at":"2025-08-07T11:35:52.000Z","size":48,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T21:37:33.173Z","etag":null,"topics":["cli","cmake","dependency-resolution","dev-tool","linux","open-source","package-manager","system-tool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umangsys-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-12T19:26:38.000Z","updated_at":"2025-08-07T11:35:55.000Z","dependencies_parsed_at":"2025-07-13T10:24:49.987Z","dependency_job_id":"a6a38ff3-48c8-41eb-8498-4d94dc2593cb","html_url":"https://github.com/umangsys-dev/defin","commit_stats":null,"previous_names":["umangsys-dev/defin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/umangsys-dev/defin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umangsys-dev%2Fdefin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umangsys-dev%2Fdefin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umangsys-dev%2Fdefin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umangsys-dev%2Fdefin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umangsys-dev","download_url":"https://codeload.github.com/umangsys-dev/defin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umangsys-dev%2Fdefin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cmake","dependency-resolution","dev-tool","linux","open-source","package-manager","system-tool"],"created_at":"2025-07-16T18:09:06.249Z","updated_at":"2026-05-16T11:04:41.363Z","avatar_url":"https://github.com/umangsys-dev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# defin\n\n**defin** is a system tool that detects and installs missing dependencies for C++ projects by analyzing `#include` directives.\n\n\n## License\n\n- **Core code** is under a custom non-redistributable license. See [LICENSE.txt](./LICENSE.txt)\n- **JSON database** (`json-db/`) is licensed under the MIT License. See [json-db/LICENSE-json.txt](./json-db/LICENSE-json.txt)\n- Includes [TinyProcessLibrary](https://gitlab.com/eidheim/tiny-process-library), under the MIT License. See [tiny-process-library/LICENSE-tinyprocess.txt](./tiny-process-library/LICENSE-tinyprocess.txt)\n\n\n## Features\n\n- Parses source code for missing headers\n- Maps includes to system packages via JSON\n- Installs packages using apt, pacman, and more\n- CLI-first, scriptable\n\n\n## Compatibility\n\n- Supported OS: **Linux** only  \n- Tested on: Arch, Debian, Fedora (others may work)\n- Requires: CMake 3.10+, a C++17-compatible compiler, and a working package manager (e.g. apt, pacman, dnf)\n\n\n## Build and Install\n\n```bash\ngit clone https://github.com/umangsys-dev/defin\ncd defin\nmkdir build\ncmake -S . -B build/\ncmake --build build\nsudo cmake --install build\n```\n\n## Usage\n\n### Commands\n\n#### `sudo defin fix /path/to/project/`\n\n- Recursively scans all `.cpp`, `.hpp`, `.c`, and `.h` files in the given directory\n- Detects used `#include` headers\n- Maps them to logical libraries and installable packages\n- Installs missing packages automatically using your system's package manager\n\n\u003e This is the main command for resolving and fixing missing dependencies.\n\n---\n\n#### `sudo defin enlist -m /path/to/project/`\n\n- Lists **missing** packages (headers used in the source but packages not installed)\n- Does not perform any installation\n- Ideal for dry runs or CI integration\n\n---\n\n#### `sudo defin enlist -p /path/to/project/`\n\n- Lists **present** packages (headers used and already available on your system)\n- Useful for auditing project dependencies\n\n---\n\n### Make Sure\n\nThe directory you pass contains C++ source code:\n- Any combination of `.cpp`, `.hpp`, `.c`, or `.h` files\n- No need for a compiled binary\n\n  (depin directly parses your source code to extract `#include` directives.)\n\n- Use `sudo` since actual package installation requires root\n- Supported package managers: `apt`, `pacman`, and `dnf`\n\n---\n\n### Want to contribute header mappings?\n\n- Check out [json-db/Contributing.md](./json-db/Contributing.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumangsys-dev%2Fdefin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumangsys-dev%2Fdefin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumangsys-dev%2Fdefin/lists"}