{"id":34034622,"url":"https://github.com/codegen-sh/pink","last_synced_at":"2026-04-02T03:50:43.647Z","repository":{"id":279315909,"uuid":"929159352","full_name":"codegen-sh/pink","owner":"codegen-sh","description":"Multi-language static analysis engine implemented using tree-sitter","archived":false,"fork":false,"pushed_at":"2026-03-31T05:34:02.000Z","size":1475,"stargazers_count":8,"open_issues_count":15,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-31T07:48:33.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codegen-sh.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":null,"dco":null,"cla":null}},"created_at":"2025-02-07T23:11:59.000Z","updated_at":"2026-03-24T15:54:04.000Z","dependencies_parsed_at":"2025-02-25T00:26:37.405Z","dependency_job_id":"f7c9e2af-68f6-49d7-b7ef-2e40b103db0f","html_url":"https://github.com/codegen-sh/pink","commit_stats":null,"previous_names":["codegen-sh/pink"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/codegen-sh/pink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fpink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fpink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fpink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fpink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codegen-sh","download_url":"https://codeload.github.com/codegen-sh/pink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegen-sh%2Fpink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":[],"created_at":"2025-12-13T19:55:20.896Z","updated_at":"2026-04-02T03:50:43.632Z","avatar_url":"https://github.com/codegen-sh.png","language":"Rust","readme":"# Pink\n\n[![CodSpeed Badge](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/codegen-sh/pink)\n\nThis is a rewrite of the core of the [Codegen SDK](https://github.com/codegen-sh/codegen) in Rust. The codegen-sdk is a multi-lingual type analysis and refactoring engine. It's designed to be used for providing tools and context to AI agents.\n\n## Features\n\n- Supports multiple languages\n- Much faster parsing (~10x) of repositories\n- Fast execution time using pre-parsed caches\n- More memory efficient (50% memory usage compared to the python SDK)\n- Incremental re-computation in response to changes made by the user or the tool\n\n## Structure\n\n- `codegen-sdk-common`: A crate that contains the common code for the SDK.\n- `codegen-sdk-cst`: Definitions and utilities for the CST.\n- `codegen-sdk-ast`: Definitions and utilities for the AST.\n- `codegen-sdk-resolution`: Definitions and utilities for the AST.\n- `codegen-sdk-cst-generator`: A crate that generates the CST for the SDK.\n- `codegen-sdk-ast-generator`: A crate that generates the AST and queries for the SDK. This requires the ts_query CST language to be generated first.\n- `codegen-sdk-bindings-generator`: A crate that generates python bindings to the rust library\n- `languages/*`: A crate for each language that contains the language-specific code for the SDK. It's largely boilerplate, most of the work is done by the `codegen-sdk-ast-generator` and `codegen-sdk-cst-generator` crates. These are split out to make compiling the SDK faster.\n- `codegen-sdk-analyzer`: A crate that contains the core logic for the Incremenetal computation and state management of the SDK.\n- `bindings/python`: Python bindings for the library\n- `src`: A base program that uses the SDK.\n\n## Development\n\n### Installing Rust\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\nrustup toolchain install nightly\n```\n\n### Installing tools\n\n```bash\ncargo install --no-confirm cargo-binstall\ncargo binstall --no-confirm cargo-nextest\ncargo binstall --no-confirm cargo-insta\n```\n\n### Building the project\n\n```bash\ncargo build --features stable\n```\n\n### Running tests\n\n```bash\ncargo insta run --workspace --review --features stable\n```\n\nSome of the tests use snapshots managed by [Insta](https://insta.rs/docs/cli/).\n\n### Running sample program\n\n```bash\nRUST_LOG=info cargo run --release /path/to/repo\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegen-sh%2Fpink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegen-sh%2Fpink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegen-sh%2Fpink/lists"}