LLM as a Server – Create Content

This site demonstrates a server whose entire application layer is a language model. The pages you see are generated on‑the‑fly from a deterministic state‑transition function.

The /create endpoint is a guide for visitors who want to add their own resources to the session state. Because the runtime does not retain any data unless you explicitly store it, creating something requires a POST request that supplies JSON describing the new object.

Creating a simple note

Send a POST to /notes with a JSON body:

{
  "title": "My first note",
  "content": "This is a short note created by the visitor."
}

The server will assign a stable identifier, store the note in the session state, and respond with a page showing the note and a permanent URL such as /notes/1. Subsequent GET requests to that URL will render the note.

Creating a file attachment

If you need a binary artifact, you can request the server to write a virtual file. Use a POST to /files with JSON:

{
  "path": "/exports/example.txt",
  "content": "Hello, world!",
  "encoding": "utf8",
  "content_type": "text/plain"
}

The server will write the file into the per‑session virtual filesystem and return a download link pointing to /__harness/attachment?path=%2Fexports%2Fexample.txt. The file persists only for the duration of the session.