{"id":25449751,"url":"https://github.com/wdudokvanheel/pstatool","last_synced_at":"2026-04-27T20:31:22.578Z","repository":{"id":278017558,"uuid":"934231479","full_name":"wdudokvanheel/pstatool","owner":"wdudokvanheel","description":"A Rust tool for analyzing GitHub repositories with CLOC and generating SVG visualizations of code statistics.","archived":false,"fork":false,"pushed_at":"2025-05-14T07:32:27.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T09:07:14.941Z","etag":null,"topics":["cloc","github","lines-of-code","rust","statistics","svg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wdudokvanheel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-17T13:45:29.000Z","updated_at":"2025-05-14T07:32:31.000Z","dependencies_parsed_at":"2025-05-16T09:07:16.998Z","dependency_job_id":"1c5c6011-c4e1-4602-92fd-f64c953cc2db","html_url":"https://github.com/wdudokvanheel/pstatool","commit_stats":null,"previous_names":["wdudokvanheel/pstatool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wdudokvanheel/pstatool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdudokvanheel%2Fpstatool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdudokvanheel%2Fpstatool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdudokvanheel%2Fpstatool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdudokvanheel%2Fpstatool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdudokvanheel","download_url":"https://codeload.github.com/wdudokvanheel/pstatool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdudokvanheel%2Fpstatool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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":["cloc","github","lines-of-code","rust","statistics","svg"],"created_at":"2025-02-17T21:18:04.538Z","updated_at":"2026-04-27T20:31:22.568Z","avatar_url":"https://github.com/wdudokvanheel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pstatool\n\nProject Stats Tool (_pstatool_) automates the retrieval, analysis, and visualization of GitHub repositories. It clones \nrepositories, runs CLOC to gather code statistics, and generates SVG visualizations. Designed \nfor automation, it includes a Docker container that periodically updates projects, generates \nvisualizations, and serves them via a built-in web server.\n\n## Features\n- Shallow clones Git repositories for efficient analysis\n- Generates SVG visualizations of code metrics\n- Stores project statistics in a PostgreSQL database for further processing\n- Docker container includes a web server for hosting of SVG files\n\n## How to run\nThe binary can be run to retrieve all projects from the database and generate SVG files for each.\n\n    pstatool --db-url \u003cDB_URL\u003e --svg-folder \u003cSVG_FOLDER\u003e --temp-folder \u003cTEMP_FOLDER\u003e\n\n### Docker compose\n```\nversion: '3.0'\nservices:\n    postgres:\n        image: postgres:17.3\n        container_name: pstatool-db\n        restart: unless-stopped\n        environment:\n            POSTGRES_USER: \"pstatool\"\n            POSTGRES_PASSWORD: \"pstatool\"\n            POSTGRES_DB: \"pstatool\"\n        volumes:\n            - pstatool:/var/lib/postgresql/data\n    pstatool:\n        image: pstatool:latest\n        container_name: pstatool\n        restart: unless-stopped\n        depends_on:\n            - postgres\n        ports:\n        - \"80:80\"\n        environment:\n            DB_URL: \"postgresql://pstatool:pstatool@pstatool-db:5432/pstatool\"\n            \nvolumes:\n    pstatool: \n```\n\n### Webserver\n\nThe generated SVG files are hosted by the Docker container (with nginx) at the path `githubuser/project-name.svg`\nFor example, this repository have its stats SVG at `http://localhost/wdudokvanheel/pstatool.svg` \n\n\n## Example\n\nThese are the generated stats for this repository\n\n![stats](https://pstatool.wdudokvanheel.nl/wdudokvanheel/pstatool.svg)\n\nTo Do\n- [ ] Sum SVG for all projects\n- [ ] Allow binary generate svg of target folder (no database option)\n- [ ] Allow binary generate svg of target git repo (no database option)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdudokvanheel%2Fpstatool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdudokvanheel%2Fpstatool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdudokvanheel%2Fpstatool/lists"}