Get Started with P42 for GitHub


P42 is a JavaScript and TypeScript code scanner. It analyzes your GitHub repositories to provide code modernization and refactoring suggestions.

With P42, you can:

  1. Identify areas of your JavaScript and TypeScript codebase that can be refactored and modernized,
  2. Get automated code reviews for your pull requests that identify possible refactorings, and
  3. Apply refactorings to files and folders in bulk (using the P42 JS Assistant for VS Code).

💡  P42 is particularly useful for teams of developers who need to modernize a codebase or work with legacy JavaScript code.


It is easy to get started with P42. All you need is a GitHub account with JavaScript (.js) and/or TypeScript (.ts) source code in your repositories.

Limits and Boundaries

Repository size

The maximum GitHub repository size that can be supported is 500 MB. Any repository larger than 500 MB will not be analyzed, and this will be indicated in the Repositories Page.

Analysis Runtime

The maximum codebase analysis runtime for a repository is ten minutes. The analysis will automatically time out if the runtime exceeds ten minutes. If a timeout happens, you will see the "Analysis timed out" status in the Repository Page.

File Size

The maximum file size for source code files is 512 KB. Files that are larger than 512 KB will not be analyzed.

Diff Size Per File

The maximum raw diff data for a file is 256 KB. The source file will not be analyzed if the diff size exceeds 256 KB.

Supported Languages

Currently P42 supports the following languages and file types:

  1. JavaScript (.js, .jsx, .mjs, .cjs)
  2. TypeScript (.ts, .tsx, .mts, .cts)

📝  Source code files containing non-standard elements that cannot be parsed are excluded from analysis.

Everything other than the formats listed above will be skipped and excluded during analysis of a repository.


See How P42 Works for more information.


The P42 interface features a simple top navigation bar containing the following elements:

  • P42 home icon - Home button to get back to the P42 homepage.
  • P42 help - Help link. Takes you to the documentation for the current page.
  • P42 logout - Sign out button. Ends the current P42 session.
  • Repositories - Go to the Repositories Page for your P42 account.