Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fallow.tools/llms.txt

Use this file to discover all available pages before exploring further.

Fallow analyzes more than .js and .ts files. It extracts imports and exports from non-JavaScript file types automatically based on their extension. No plugins or config needed.
Fallow discovers .html files and extracts edges from <script src> and <link> tags. This is especially useful for projects that use HTML entry points (such as Parcel or vanilla setups).What’s supported:
  • <script src="./main.js"> script references
  • <link rel="stylesheet" href="./styles.css"> stylesheet references
  • <link rel="modulepreload" href="./vendor.js"> module preload references
  • Root-relative paths (e.g., <script src="/src/main.tsx">) are resolved against the project root, matching the convention used by Vite, Parcel, and similar dev servers. Root-relative resolution also applies when the reference comes from a JSX/TSX/JS/TS source file (see the JSX templates tab).
index.html
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="./styles/main.css" />
    <link rel="modulepreload" href="./vendor/lodash.js" />
  </head>
  <body>
    <div id="app"></div>
    <script src="./src/main.ts"></script>
  </body>
</html>
Fallow sees this file as referencing ./styles/main.css, ./vendor/lodash.js, and ./src/main.ts.
The Parcel plugin automatically adds index.html as an entry pattern, so HTML entry files are picked up without any extra config.
Angular template complexity. Standalone .html files referenced via templateUrl and inline @Component({ template: \…` })literals both contribute synthetic<template>complexity findings tofallow health. The scanner recognises control-flow blocks (@if, @for, @switch, @case, @defer (when …), @let), legacy structural directives (*ngIf, *ngFor), bound attributes ([x], (x), bind-x, on-x), and interpolations. Inline-template findings anchor at the@Componentdecorator line and suppress with// fallow-ignore-next-line complexitydirectly above the decorator; external-template findings suppress with<!— fallow-ignore-file complexity —>at the top of the.html` file.

See also

Dead code analysis

How fallow builds the module graph and detects unused code.

Built-in plugins

94 framework plugins for automatic entry point detection.