{"id":31076653,"url":"https://github.com/upsun/whatsun","last_synced_at":"2025-09-16T06:02:49.551Z","repository":{"id":314450239,"uuid":"947281477","full_name":"upsun/whatsun","owner":"upsun","description":"A code analysis tool and library","archived":false,"fork":false,"pushed_at":"2025-09-07T21:03:17.000Z","size":832,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-12T15:56:05.428Z","etag":null,"topics":["ai","code-analysis","common-expression-language","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upsun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-03-12T12:49:08.000Z","updated_at":"2025-09-09T15:19:41.000Z","dependencies_parsed_at":"2025-09-12T15:56:14.520Z","dependency_job_id":"56333a49-2dfb-41f7-8750-f0eb3f36412b","html_url":"https://github.com/upsun/whatsun","commit_stats":null,"previous_names":["upsun/whatsun"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/upsun/whatsun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upsun%2Fwhatsun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upsun%2Fwhatsun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upsun%2Fwhatsun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upsun%2Fwhatsun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upsun","download_url":"https://codeload.github.com/upsun/whatsun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upsun%2Fwhatsun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275370139,"owners_count":25452540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","code-analysis","common-expression-language","go"],"created_at":"2025-09-16T06:01:01.604Z","updated_at":"2025-09-16T06:02:49.439Z","avatar_url":"https://github.com/upsun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whatsun\n\nWhatsun is a command-line tool and Go library for code analysis.\n\nThe primary use case is to generate a repository **digest** (a concise, token-efficient summary), which can be used in\nan LLM prompt to provide context for code-related tasks.\n\n## Features\n\n### CLI Commands\n\n- **`whatsun digest`** - Generate a repository summary for LLM context, including detected technologies and the contents of key files\n- **`whatsun analyze`** - Perform detailed (rule-based) analysis and show detected frameworks, build tools, and package managers\n- **`whatsun deps`** - List all dependencies found across the repository with their sources and versions\n- **`whatsun tree`** - Display a concise repository file structure\n\n### Core Capabilities\n\n* Multi-language dependency detection (Go, JavaScript, Python, Java, PHP, Ruby, Rust, and more)\n* Configurable rules (using CEL expressions), which by default identify frameworks, build tools, and package managers\n* Handling of Git excludes (`.gitignore` and `.git/info/exclude` files) when analyzing the repository.\n* Fast processing including caching and parallel analysis.\n* A digest structure optimized for use in an LLM context, containing:\n  - A token-efficient file tree.\n  - The reports from rule-based analysis.\n  - The contents of automatically selected files (filtered using `.aiignore` and `.aiexclude` files, sanitized using\n    secret detection, and truncated).\n\n## Installation\n\n### CLI Tool\n\n```shell\ngo install github.com/upsun/whatsun/cmd/whatsun@latest\n```\n\n### Go Library\n\n```shell\ngo get github.com/upsun/whatsun\n```\n\n## Usage\n\n### Command Line\n\n```shell\n# Generate repository digest (using a local file path or a URL)\nwhatsun digest [repository]\n\n# Analyze project structure\nwhatsun analyze [repository]\n\n# List all dependencies\nwhatsun deps [repository]\n\n# Show file tree\nwhatsun tree [repository]\n```\n\nRun `whatsun --help` for detailed command options.\n\n### Configuration\n\nAnalysis rules are defined in YAML files in the [config](config) directory using CEL expressions for pattern matching. See [docs/rules.md](docs/rules.md) for rule configuration details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupsun%2Fwhatsun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupsun%2Fwhatsun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupsun%2Fwhatsun/lists"}