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
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" }) }, }), },});---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
Model
Describe what your client may edit in atmyapp.schema.ts. One CLI command uploads it.
- 2
Connect
Add the project URL and a public key. Read typed content with one call.
- 3
Edit and preview
Your client edits drafts in the dashboard and previews them on your real site.
- 4
Publish
Publishing rebuilds a static site on AtMyApp hosting. Server-rendered sites update on the next request.
Pick a starting point
Astro tutorialRecommendedFrom an empty folder to a deployed site with content, pages, SEO and a contact form.Start the tutorial Any JavaScript websiteNext.js, SvelteKit, Nuxt, Remix, Vite or a Node server. Read content with @atmyapp/core.Connect your site Just a formCollect submissions from any HTML page. No backend and no API key needed.Add a form
Explore the guides
How AtMyApp worksProjects, keys, drafts and publishingDesign your schemaDocuments, collections, referencesQuery collectionsFilters, pages, sorting, referencesDrafts and previewsShow unpublished edits safelyChange a live schemaPlans, renames and backfillsSpam protectionCaptcha, allowed sites, rate limitsDeployAtMyApp hosting or your own hostTroubleshootingSymptoms, causes and fixes
