FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine
charmainediagram
Public
Like
diagram
Home
Code
6
backend
1
frontend
3
shared
1
README.md
create.ts
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://charmaine--a0fd19e20bea11f0a4da569c3dd06744.web.val.run
README.md

Val Town Project Visualizer

A tool to visualize Val Town projects as both text trees and interactive diagrams.

Features

  • 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

Usage

  1. 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)
  2. Click "Visualize" to generate the project structure
  3. Use the expand/collapse buttons to navigate the tree
  4. Use zoom controls to adjust the view for larger projects

Project Structure

  • /backend - Server-side code for the API
  • /frontend - Client-side UI components and styles
  • /shared - Shared utilities used by both frontend and backend

How It Works

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.

Development

To modify this project:

  1. Edit the backend API in /backend/index.ts
  2. Modify the tree generation logic in /shared/projectTree.ts
  3. Update the UI components in the /frontend directory

License

MIT

HTTP
  • index.ts
    charmaine--a0…44.web.val.run
Code
backendfrontendsharedREADME.mdcreate.tsindex.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.