Skip to content
AtMyAppDocs
Open dashboard
Introduction

Developer documentation

Build the website.
Your client edits the content.

Describe editable content in a TypeScript schema, read it from any JavaScript framework, and give your client a dashboard to edit, preview and publish. They never touch your code.

New project?npm create atmyapp@latest

atmyapp.schema.ts
export default defineSchema({
definitions: {
home: defineDocument({
fields: {
headline: s.string({ max: 80 }),
hero: s.image({ optional: true }),
},
}),
services: defineCollection({
fields: { title: s.string(), slug: s.slug({ source: "title" }) },
}),
},
});
src/pages/index.astro
---
import { getAtMyApp } from "@atmyapp/astro/server";
import schema from "../../atmyapp.schema";
const ama = getAtMyApp(Astro, { schema });
const home = await ama.storage.getValue("home");
const services = await ama.collections.list("services");
---
<h1>{home.headline}</h1>
{services.map((s) => <a href={`/services/${s.slug}/`}>{s.title}</a>)}

How it fits together

  1. 1

    Model

    Describe what your client may edit in atmyapp.schema.ts. One CLI command uploads it.

  2. 2

    Connect

    Add the project URL and a public key. Read typed content with one call.

  3. 3

    Edit and preview

    Your client edits drafts in the dashboard and previews them on your real site.

  4. 4

    Publish

    Publishing rebuilds a static site on AtMyApp hosting. Server-rendered sites update on the next request.

Read how AtMyApp works

Pick a starting point