Your JavaScript Assistant
Take your coding skill to the next level with automated code actions, refactoring suggestions, and more.


I really missed all those powerful refactoring commands PHP Storm had. @p42ai is slowly filling that gap. Give it a try, it's awesome!
Now I can be more productive without refactoring my code by hand. Such a time saver!
Edit code effectively
Manually editing your JavaScript code is often cumbersome and error-prone. With the JS Assistant, you can use automated code actions to modify your code accurately on a structural level and focus on what change you want to make, not what to type.

Improve your code
It is easy to miss potential improvements that could make your code more readable and maintainable.
The JS Assistant shows suggestions for improving and modernizing your code, so you can write clean code without paying close attention to every small detail.

Modernize your projects
JavaScript and its ecosystem are rapidly progressing, and keeping your code up-to-date is boring and time-consuming.
The JS Assistant lets you mass modernize files and folders, so you can enjoy working with modern code without the tiresome work of manually updating it.

Refactor safely
Refactorings, especially those performed manually, can easily break existing functionality or introduce bugs.
The JS Assistant automates refactoring steps and analyses the safety of potential refactorings, so you can refactor with confidence and know what to consider to avoid unnecessary breakages.

Monitor your GitHub repositories
Updates to GitHub repositories can come from many places, and it is easy for low-quality code to slip in. The JS Assistant can monitor your GitHub repositories and their pull requests and let you know when there are suggestions for improvement.

"
Legacy code is a growing problem in many JavaScript products. I've created the JS Assistant to help developers work effectively in complex real-world code bases.

Subscription Plans

P42 helps us keep the code of our various Vega repositories consistently up to date with modern JavaScript and TypeScript standards.
5/5 stars. The mass refactoring has been a HUGE time saver and really helped modernize old code bases. Highly recommended.
Frequently Asked Questions
How is the JS Assistant different from GitHub Copilot?
The JS Assistant and GitHub Copilot serve different purposes. GitHub Copilot provides completions that help you write new or additional code. The JS Assistant helps you understand and refactor existing code. It shows metrics and graphs, suggests refactorings, and automates code actions. Many of our users use both tools together.
How do AI credits work?
AI credits are used to run the Cloud AI feature in the JS Assistant for Visual Studio Code. Every time you execute a Cloud AI action, an AI credit is deducted from your account.
AI Credits are refreshed based on your billing cycle. If you have a monthly subscription, 100 AI credits are added to your account at the beginning of your billing cycle. If you have a yearly subscription, 1200 AI credits are added to your account at the beginning of your billing cycle. Trials have 20 AI credits available.
Does the JS Assistant for Visual Studio Code analyze my code in the cloud?
The JS Assistant only analyzes your code in the cloud when you use the Cloud AI feature or the GitHub application. All default actions in the JS Assistant for Visual Studio Code are performed locally.
The Cloud AI feature needs to be activated in the settings, and each Cloud AI action has an indicator so you know when parts of your code would be send to the P42 AI server. The GitHub application is a separate application that you can install from the GitHub Marketplace. It will analyze your repository in the P42 Cloud.