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.
A Val Town HTTP val that surveys nested folders and files in the project — built to explore listFiles / listFilesByPath against a large, randomly generated tree.
Val Town projects are capped at 1,000 files per val. When vt push hits that ceiling, new files are rejected:
Cannot create new files because project has already reached limit of 1000 files
test-folders-files/ holds a nested tree of markdown stubs used to stress-test file listing and the archive survey UI in main.tsx.
| Batch | What happened |
|---|---|
| First | ~500 items (folders + files), nested up to depth 6 |
| Second | +500 more items → ~1,000 total locally |
| Push | 498 created, 2 failed at the 1,000-file cap |
| Trim | 3 random .md files removed to make room for this README |
After the trim the tree is still ~897 markdown files plus project files (main.tsx, deno.json, etc.) — comfortably under the cap with headroom for small additions.
Open the val's HTTP endpoint (main.tsx) to see live counts: val-wide totals, depth strata, and top-level branch density.
vt push
one-th/ ├── main.tsx HTTP entry — archive survey dashboard ├── deno.json ├── test-folders-files/ nested random markdown stubs └── README.md this file