# L-Zephyr/Drafter

在iOS项目中自动生成类图和方法调用图 - Generate call graph in iOS project

Repository: https://github.com/L-Zephyr/Drafter
Canonical: https://ross.abutalabs.com/products/drafter
Language: Swift
License: MIT
License Family: permissive
Last push: 2019-06-01T10:10:08+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3262, "days_push": 2650, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1028, forks 124 (observed 2026-08-28T04:03:17.398551+00:00)

## What it is
Drafter is a command-line tool that analyzes iOS Objective-C and Swift source code to automatically generate method call graphs and class inheritance (UML) diagrams. Results are exported as interactive HTML pages viewable in a browser or as PNG images via Graphviz.

## Use cases
- generate call graph for an iOS project
- visualize method call relationships in Objective-C code
- create UML class inheritance diagrams from Swift sources
- understand the flow of a large codebase before refactoring
- find key logic of a class by exploring its call graph interactively
- export code analysis diagrams as PNG images

## When to choose
- you need to quickly understand call flow or class hierarchy in an iOS Objective-C/Swift codebase
- you want interactive, browser-based visualization of code structure
- you prefer a lightweight CLI with no IDE dependency

## When to avoid
- your project is not iOS/Objective-C/Swift
- you need up-to-date tooling or active support (last release 2019)
- you need deep static analysis beyond call and inheritance graphs

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, developer-tools, data-visualization
- domain: developer-tools, mobile-development, documentation
- platform: cli
- tags: call-graph, class-diagram, objective-c, swift, code-analysis, uml, ios, static-analysis, macos

## Member repositories
- L-Zephyr/Drafter (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.398551+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:42.964854+00:00, confidence not recorded.
  - readme: https://github.com/L-Zephyr/Drafter (fetched 2026-08-28T04:03:17.398551+00:00, sha 2a722f4ff700)
- Data as of 2026-08-30T08:39:29.467469+00:00.
