diagram
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://charmaine--a0fd19e20bea11f0a4da569c3dd06744.web.val.run
A tool to visualize Val Town projects as both text trees and interactive diagrams.
- Visualize any Val Town project structure
- Display as both text tree and interactive visual diagram
- Expand/collapse directories in the visual view
- Zoom controls for better navigation of large projects
- Color-coded file types for easier identification
- Enter a Val Town project in one of these formats:
- Username/project (e.g.,
moe/MiniAppStarter
) - Val Town web URL (e.g.,
https://val.town/x/moe/MiniAppStarter
) - Val Town module URL (e.g.,
https://esm.town/v/moe/MiniAppStarter
)
- Username/project (e.g.,
- Click "Visualize" to generate the project structure
- Use the expand/collapse buttons to navigate the tree
- Use zoom controls to adjust the view for larger projects
/backend
- Server-side code for the API/frontend
- Client-side UI components and styles/shared
- Shared utilities used by both frontend and backend
The visualizer fetches the project structure using Val Town's listFiles
utility, then creates both a text representation and an interactive diagram of the file structure.
To modify this project:
- Edit the backend API in
/backend/index.ts
- Modify the tree generation logic in
/shared/projectTree.ts
- Update the UI components in the
/frontend
directory
MIT