Skip to content

alxclark/recoil-analyzer

Repository files navigation

Recoil analyzer

This repository contains a script to analyze a directory and search for all files named atoms.ts. For each file found, the script uses the Typescript parser to find all Recoil selectors and atoms and will report dependencies between atoms and selectors.

This can prove to be useful for refactoring purposes if you need to identify clusters of atoms/selectors you are trying to migrate away from Recoil, or if you're just in need of tracking state dependencies in your application.

Gettings started

pnpm install
pnpm run setup

The script will log tuples on the screen in the following format:

<selector-name> <dependency-name>

Visualizing

You can open a visualizer by running:

pnpm dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published