Skip to content

.mjs and .ejs files not recognized by AST extractor #365

Closed

Description

@florvilelionand-cmd

My entire codebase uses .mjs (ES modules with import/export) and .ejs (Express templates). Graphify skips all of them silently during graph building, reporting only 3 code files detected out of 75+ .mjs files.
.mjs is standard modern JavaScript — same language as .js, just with explicit ES module syntax. It should be treated identically to .js by the tree-sitter AST extractor.
.ejs is a widely used Node.js templating engine and should at minimum be processed as a doc via semantic extraction.
The result for my stack is that Graphify builds a graph of images and README files only, with zero architectural insight from the actual business logic layer.
Request: Add .mjs to the tree-sitter JS/TS extension list, and add .ejs to the semantic extraction doc pipeline.

Activity

  1. added a commit that references this issue on Apr 15, 2026
    033a138
  2. safishamsi commented on Apr 15, 2026

    @safishamsi
    Member

    Fixed in v0.4.15. .mjs and .ejs are now recognised by the AST extractor as JavaScript.

    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