Skip to content

AST extractor picks up native JS/TS builtins as internal nodes (toFixed, console.error, etc.) #631

Closed

Description

@Randyopo

My graph is full of native JavaScript functions like toFixed() being extracted as internal project nodes. These are zero-complexity builtins with no architectural meaning.

In my case, a fairly some codebase, toFixed() appeared as a god node with 27 edges, and error() had 88 edges (likely console.error calls). Neither belongs in a knowledge graph of project architecture.

I don't think this problem is limited to JS.

Expected behavior: Native JS/TS builtins (Number.prototype.toFixed, console.error, Math.floor, Array.map, etc.) should not be extracted as internal nodes.

Workaround: .graphifyignore works but requires manually identifying and listing each noisy builtin, which defeats the purpose of automatic extraction.

Activity

  1. safishamsi commented on Apr 30, 2026

    @safishamsi
    Member

    The cross-file case (console.error() → error resolved to a project function) is already fixed in v0.5.6 via the is_member_call flag. The intra-file case (e.g. this.get() calling get() in the same class) is intentional — those are real architectural edges. Upgrade to v0.5.6 and rebuild your graph: pip install --upgrade graphifyy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions