Get started with Pagelove

Looking for a route through the documentation? Choose your path or build the complete shared-note example.

Pagelove stores HTML and lets applications read, change, and compose document fragments over HTTP. The platform supplies the document store and HTTP interface. Your application defines its data, permissions, and interactions.

Choose your starting point

Pagelove has no mandatory platform build step. You can publish plain HTML; frameworks and asset tools you choose may have their own build steps. Interactive browser behavior can use JavaScript and must send and check its save requests. Editing the browser DOM alone does not save shared content.

Prepare a demo host

Use a disposable test host with harmless data. This example deliberately allows anyone to read its demo file and append items to its list. It grants no other write methods or access to other paths. Remove the demo when you finish.

  1. Create an account or sign in. The current sign-in page offers passkeys and an email-code option; follow the prompts for your account.
  2. In the console, choose the intended host from Hosts and note its public serving URL.
  3. Under Host files, copy the WebDAV address. This is the authoring address, separate from the public serving URL. The console's WebDAV help describes mounting it in Finder or Windows Explorer.
  4. Use an existing authoring credential, or configure your supported WebDAV credential under Credentials → WebDAV. Connect through your client's protected credential controls. Keep authoring credentials out of the HTML file and the public HTTP commands below.
  5. Save the following file as getting-started-demo.html at the root of that WebDAV mount. Confirm the filename and destination before saving. Authoring changes live stored resources, so use a new test host rather than overwriting an existing application.

For the complete account and publishing instructions, see Onboarding and the publishing checklist.

Create the page

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Getting Started demo</title>
</head>
<body>
  <main>
    <h1>My Page</h1>
    <ul id="items">
      <li>First item</li>
    </ul>
  </main>
  <div hidden itemscope itemtype="https://pagelove.org/AuthorizationRule">
    <meta itemprop="actor" content="*">
    <meta itemprop="resource" content="/getting-started-demo.html">
    <meta itemprop="method" content="GET">
    <meta itemprop="action" content="allow">
  </div>
  <div hidden data-demo-post-rule itemscope itemtype="https://pagelove.org/AuthorizationRule">
    <meta itemprop="actor" content="*">
    <meta itemprop="resource" content="/getting-started-demo.html">
    <meta itemprop="method" content="POST">
    <meta itemprop="selector" content="#items">
    <meta itemprop="action" content="allow">
  </div>
</body>
</html>

The first authorization rule permits reads of this file. The second permits POST only to #items in this file. actor="*" makes these operations public; it is a deliberate demo choice, not a suitable default for private or unrestricted application data. Read Authorization rules before adapting it.

WebDAV uses authoring access. The public requests below use the application's serving path and its access rules. A successful authoring upload does not establish that an application write is permitted or passes its configured validation.

Append an item

Open a terminal and replace YOUR-HOST with the test host's actual hostname. These commands use curl; in Windows PowerShell use curl.exe instead of curl to select the native command.

curl --include --request POST --header "Range: selector=#items" --header "Content-Type: text/html" --data-binary "<li>Second item</li>" "https://YOUR-HOST.onpagelove.com/getting-started-demo.html"

This sends the following HTTP request:

POST /getting-started-demo.html
Range: selector=#items
Content-Type: text/html

<li>Second item</li>

For this selector-scoped append, expect 206 Partial Content, these response headers, and the appended item below. Inspect the actual response from your own host.

Content-Type: text/html
Content-Range: selector #items
<li>Second item</li>

A non-success response or lost reply requires investigation. Read back the list before retrying; the absence of a successful reply does not prove that nothing was saved.

Read back the list

curl --include --header "Range: selector=#items" --header "Cache-Control: no-cache" "https://YOUR-HOST.onpagelove.com/getting-started-demo.html"
GET /getting-started-demo.html
Range: selector=#items

Expect 206 Partial Content, Content-Type: text/html, Content-Range: selector #items, and a list containing both items:

<ul id="items">
  <li>First item</li>
  <li>Second item</li>
</ul>

Check the response status, headers, target, and body together. A cached page or a local DOM change alone does not establish that the intended stored content changed.

Repeating the POST appends another item; it does not replace the previous append. If the reply is lost, read the list before deciding whether to send the request again. For concurrent edits and uncertain saves, continue with save and failure recovery.

If the result differs

What you see What to check
404 Not Found The serving hostname, exact filename, and authoring destination. A file visible in an authoring client is not proof that this serving URL works.
401 or 403 The request's identity and matching resource, method, and selector rules. Keep this demo's public grant confined to the disposable file.
416 Range Not Satisfiable The requested selector and the actual document at that URL.
A network error, unexpected status, or unexpected body Keep the actual outcome unresolved and read back before retrying a write. Preserve the response details without exposing credentials.

What you have done

You published an HTML source document through authoring access, then used the serving HTTP interface to append and read a selected fragment. Supported operations and permissions determine which stored elements you can address. A composed page can combine several sources; use the application overview to understand how the displayed view maps to editable source content.

When you finish, remove only this disposable demo file through the authoring client and check that it is absent from the host's file listing. Keep real application definitions and user-managed content under their appropriate review and recovery procedures.

Where to go next

For AI agents

Start with agent setup and use the combined platform reference for the reference and language documentation. Select the relevant sections and verify the capabilities and rules on your actual target host.