Projects & files
A project is a folder of web files that Yoyo serves at its own URL. Each project is self-contained — there’s no shared build step and no bundler.
What’s in a project
Section titled “What’s in a project”Every project has an entry point, usually index.html, plus any other files you
add.
Yoyo serves files exactly as you upload them, at the path you give them:
index.html → /styles.css → /styles.cssapp.js → /app.jsimg/logo.png → /img/logo.pngReference them with normal relative paths from your HTML — <link>, <script>,
<img>, fetch(), and so on all work the way they do on any static host.
Index pages
Section titled “Index pages”A request for a folder serves its index page. At the project root Yoyo tries
index.html, then index.md, then README.md. In any other folder it tries
index.html, then index.md:
index.md → / (when there's no index.html)docs/index.md → /docs/Markdown pages
Section titled “Markdown pages”Open a .md or .markdown file in a browser and Yoyo shows it as a styled
page, in light or dark to match the reader’s system. Add ?raw to the URL to
get the source; the page links to it as View source. fetch() and other
non-browser requests always get the source, so a demo that loads its own
Markdown keeps working. Files over 1 MB are served as source.
When the root page is index.md or README.md, the project takes its title
from the first # heading.
Supported files
Section titled “Supported files”Any file type the web can render is supported: HTML, CSS, JavaScript, images, video, audio, fonts, JSON, and more. See Supported file types for the full picture.
Size limits
Section titled “Size limits”Projects are subject to a per-file size limit and a total storage limit that depend on your plan. See Plans & limits for the current numbers.
No build step
Section titled “No build step”Yoyo serves static files — it does not run npm install or a bundler on your
behalf. To use a framework like React or Preact without a build step, load it
from a CDN with an import map — see Using frameworks.
If your project needs a real build, build it locally and deploy the output
folder with the CLI.