A markup-based typesetting system that is powerful and easy to learn.
This report summarizes scanner evidence for typst/typst, a Rust project with 56,538 GitHub stars. SynthScan examined 176,624 lines of code across 610 source files, recording 1354 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 7.7 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1343 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 1354 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1354 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/typst-render/src/format.rs | 21 | /// In contrast to Typst's other export formats, PNGs are bound to a specific | COMMENT |
| LOW | crates/typst-render/src/format.rs | 41 | /// PNGs can have transparent backgrounds. By default, Typst will output a PNG | COMMENT |
| LOW | crates/typst-render/src/format.rs | 61 | /// - Which resolution to render at by specifying `--ppi` followed by a number | COMMENT |
| LOW | crates/typst-library/translations/gu.txt | 1 | # figure = | COMMENT |
| LOW | crates/typst-library/translations/ta.txt | 1 | figure = படம் | COMMENT |
| LOW | crates/typst-library/translations/ml.txt | 1 | figure = ചിത്രം | COMMENT |
| LOW | crates/typst-library/translations/alt.txt | 1 | figure = Јурук | COMMENT |
| LOW | crates/typst-library/src/format.rs | 1 | //! Specify configurable export formats. | COMMENT |
| LOW | crates/typst-library/src/format.rs | 21 | //! use typst_library::format::{Complete, Fields, Format, FormatElement, Populate}; | COMMENT |
| LOW | crates/typst-library/src/format.rs | 41 | //! } | COMMENT |
| LOW | crates/typst-library/src/format.rs | 61 | //! // Export an EPUB here... | COMMENT |
| LOW | crates/typst-library/src/lib.rs | 1 | //! Typst's standard library. | COMMENT |
| LOW | crates/typst-library/src/lib.rs | 41 | }; | COMMENT |
| LOW | crates/typst-library/src/lib.rs | 61 | /// performance. | COMMENT |
| LOW | crates/typst-library/src/lib.rs | 81 | /// should also succeed. The [`Bytes`] can be cheaply created as a view into | COMMENT |
| LOW | crates/typst-library/src/lib.rs | 161 | /// Definition of Typst's standard library. | COMMENT |
| LOW | crates/typst-library/src/routines.rs | 101 | /// Returns the body of a MathML `HtmlElem`, if the content is one. | COMMENT |
| LOW | crates/typst-library/src/routines.rs | 121 | /// - where diagnostics for the evaluated text show up, | COMMENT |
| LOW | crates/typst-library/src/routines.rs | 141 | /// identified by `id`. In the `RangeMapper` terminology, `id` defines | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 21 | DiagSpan, Lines, RealizeError, Span, Spanned, SyntaxDiagnostic, VirtualRoot, | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 41 | /// ```ignore | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 81 | /// | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 141 | (hint[$hint_span:expr]: $err:ident, $hint:literal $(, $hint_arg:expr)*) => { | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 201 | // be scoped locally to this module and imported like normal items, including by | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 421 | /// An error or warning in a source or text file. The recommended way to create | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 661 | { | COMMENT |
| LOW | crates/typst-library/src/diag.rs | 921 | pub type LoadResult<T> = Result<T, LoadError>; | COMMENT |
| LOW | crates/typst-library/src/engine.rs | 21 | /// Definition of Typst's standard library. | COMMENT |
| LOW | crates/typst-library/src/engine.rs | 141 | /// `None` otherwise. | COMMENT |
| LOW | crates/typst-library/src/engine.rs | 261 | /// The route the engine took during compilation. This is used to detect | COMMENT |
| LOW | crates/typst-library/src/loading/xml.rs | 1 | use roxmltree::ParsingOptions; | COMMENT |
| LOW | crates/typst-library/src/loading/xml.rs | 21 | /// `content` tag contains one or more paragraphs, which are represented as `p` | COMMENT |
| LOW | crates/typst-library/src/loading/xml.rs | 41 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/json.rs | 1 | use ecow::eco_format; | COMMENT |
| LOW | crates/typst-library/src/loading/json.rs | 21 | /// = Example <example> | COMMENT |
| LOW | crates/typst-library/src/loading/json.rs | 41 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/json.rs | 61 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/json.rs | 81 | /// [@content], | COMMENT |
| LOW | crates/typst-library/src/loading/read.rs | 1 | use typst_syntax::Spanned; | COMMENT |
| LOW | crates/typst-library/src/loading/toml.rs | 1 | use ecow::eco_format; | COMMENT |
| LOW | crates/typst-library/src/loading/toml.rs | 21 | /// ```example | COMMENT |
| LOW | crates/typst-library/src/loading/toml.rs | 41 | /// [@int], | COMMENT |
| LOW | crates/typst-library/src/loading/toml.rs | 61 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/toml.rs | 81 | /// == Notes <notes> | COMMENT |
| LOW | crates/typst-library/src/loading/cbor.rs | 1 | use ciborium::de::Error; | COMMENT |
| LOW | crates/typst-library/src/loading/cbor.rs | 21 | /// table.header[CBOR value][Converted into Typst], | COMMENT |
| LOW | crates/typst-library/src/loading/cbor.rs | 41 | /// [array], | COMMENT |
| LOW | crates/typst-library/src/loading/cbor.rs | 61 | /// [text via @repr], | COMMENT |
| LOW | crates/typst-library/src/loading/csv.rs | 1 | use az::SaturatingAs; | COMMENT |
| LOW | crates/typst-library/src/loading/csv.rs | 21 | /// columns: 2, | COMMENT |
| LOW | crates/typst-library/src/loading/yaml.rs | 1 | use ecow::eco_format; | COMMENT |
| LOW | crates/typst-library/src/loading/yaml.rs | 21 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/yaml.rs | 41 | /// | COMMENT |
| LOW | crates/typst-library/src/loading/yaml.rs | 61 | /// #docs-table( | COMMENT |
| LOW | crates/typst-library/src/loading/yaml.rs | 81 | /// - In most cases, YAML numbers will be converted to floats or integers | COMMENT |
| LOW | crates/typst-library/src/layout/page.rs | 21 | /// Layouts its child onto one or multiple pages. | COMMENT |
| LOW | crates/typst-library/src/layout/page.rs | 41 | /// = Accessibility <accessibility> | COMMENT |
| LOW | crates/typst-library/src/layout/page.rs | 61 | pub paper: Paper, | COMMENT |
| LOW | crates/typst-library/src/layout/page.rs | 81 | #[parse( | COMMENT |
| LOW | crates/typst-library/src/layout/page.rs | 101 | #[default(Smart::Custom(Paper::A4.height().into()))] | COMMENT |
| 1272 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | crates/typst-library/src/visualize/tiling.rs | 261 | if !offset.v.x.abs.em.is_zero() || !offset.v.y.abs.em.is_zero() { | CODE |
| CRITICAL | crates/typst-pdf/src/lib.rs | 156 | self.format.standard.v.config.version() | CODE |
| CRITICAL | crates/typst-pdf/src/lib.rs | 169 | self.format.standard.v.config.validators() | CODE |
| CRITICAL | crates/typst-pdf/src/outline.rs | 25 | let visible = gc.options.format.pages.v.as_ref().is_none_or(|ranges| { | CODE |
| CRITICAL | crates/typst-pdf/src/tags/tree/build.rs | 658 | tree.options.format.standard.v.config.validators().to_comma_list(); | CODE |
| CRITICAL | crates/typst-pdf/src/tags/resolve/mod.rs | 64 | let root = gc.tags.tree.groups.list.get(GroupId::ROOT); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/typst-library/src/introspection/locator.rs | 74 | /// - To make things more robust, we can incorporate some stable knowledge about | COMMENT |
| MEDIUM | crates/typst-library/src/text/mod.rs | 594 | /// default of `{100%}`, prevents them. More nuanced cost specification for | COMMENT |
| MEDIUM | crates/typst-layout/src/inline/line.rs | 186 | // Use the trimmed range for robust boundary checks. | COMMENT |
| MEDIUM | crates/typst-layout/src/grid/lines.rs | 523 | // FIXME: Make this check more robust when footers at arbitrary | COMMENT |
| MEDIUM | crates/typst-pdf/src/format.rs | 207 | /// 2.0 export, Typst will leverage some of these features. PDF 2.0 and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/typst-library/src/model/par.rs | 778 | /// Lorem ipsum \ | COMMENT |
| LOW | crates/typst-library/src/model/par.rs | 779 | /// dolor sit amet | COMMENT |
| LOW | crates/typst-library/src/text/lorem.rs | 10 | /// This function yields a Latin-like _Lorem Ipsum_ blind text with the given | COMMENT |
| LOW | crates/typst-library/src/text/lorem.rs | 31 | /// Generates `n` words of Lorem Ipsum text, treating `--` as a non-word | COMMENT |
| LOW | crates/typst-html/src/attr.rs | 150 | pub const placeholder: HtmlAttr = HtmlAttr::constant("placeholder"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/typst-layout/src/math/table.rs | 64 | // This variable stores the maximum ascent and descent for each row. | COMMENT |
| LOW | crates/typst-layout/src/grid/lines.rs | 282 | // When the vline isn't at the border, we need to check if a colspan would | COMMENT |
| LOW | crates/typst-layout/src/grid/lines.rs | 407 | // When the hline isn't at the border, we need to check if a rowspan | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/src/report/report.js | 534 | function changeGlobalSourceVisibility(visible) { | CODE |
| LOW | tests/src/report/report.js | 547 | function onViewportIntersectionChanged(element, callback) { | CODE |
| LOW | docs/assets/docs.js | 1040 | function buildSymbolScoringFunction(query) { | CODE |