LLL / EmDash 日本語 Contact

EmDash setup

EmDash Setup and Getting Started

Create a trial site and publish one test post, change settings in an existing admin, or find the right configuration file. Pick the task you need. The local tutorial needs no cloud account.

Create your first siteAdmin settingsConfiguration filesPlugin installation fails

The official documentation changes over time. Check the linked pages for the latest before you start.

On this page

Short answer: which path to pick

To try EmDash, the steps in this guide (Node.js, SQLite, local media) are enough. To publish, deploy the way the official docs describe: either Cloudflare Workers (D1 and R2) or a Node.js server (SQLite and local storage for a single server). Use “Choosing where to publish” below to match your own constraints.

Published by LLL (Live Laugh Love). First edition: 2026-11-14. The official documentation changes over time, so check the linked sources before you act.

If you have used WordPress

You can update posts and photos from the EmDash admin. If you have written and published in the WordPress admin, that routine carries over. What differs is how the site is installed and how its look is set up: those steps are separate from what you did before.

We suggest starting on your own computer: create the site, open the admin, publish one post, and check that it shows on the site. Preparing to go live can come after that.

Before you start

  • Node.js 22.23.4 or later and npm. Run node --version and confirm it reports v22.23.4 or later.
  • These steps use the Starter template with Node.js, SQLite and local media storage. If you already have an Astro site, use the official “Add to an existing Astro project” guide instead.

Steps: create, open, configure

  1. Create the site
    Run npm create emdash@latest. Enter a project name, choose Node.js as the deploy target and Starter as the template, and answer yes to installing dependencies.
  2. Start the dev server
    Move into the project folder and run npm run dev. Keep the local address it prints (normally http://localhost:4321/) open.
  3. Run the setup wizard
    Open /_emdash/admin/. A new site goes to the setup wizard. Enter a site title (tagline optional) and your email, register a passkey and open the dashboard. If you keep “Include sample content” selected, you start with a Welcome post and an About page.
  4. Check a post goes live
    Open Welcome under Posts, change the title, save it and select “Publish changes”. Open the home page in another tab; if the change shows, the admin and the public page are connected.

Verify the admin and a test post before launch

After local setup, sign in to the admin, publish a test post, and check its public URL. Repeat all three checks on your live domain after deployment.

  1. Open the admin
    Keep the dev server running and open the address the terminal printed with /_emdash/admin/ added (normally http://localhost:4321/_emdash/admin/). A new site goes to the setup wizard automatically. If your port is not 4321, use the number in the address it printed.
  2. Publish a test post
    Open Welcome under Posts, change the title to something like “Hello from EmDash”, select Save, then select Publish changes. Save alone only stores the draft; what visitors see does not change.
  3. Check the public URL
    Open the home page (http://localhost:4321/) in another tab. If the new title is listed, the admin and the site are connected. Once it works locally, repeat the same order (admin, test post, public URL) at your publishing destination.

If you get stuck, these are rules of thumb.

  • The admin address does not open: check that the terminal where you ran npm run dev is still open, and that you opened the same address, port included. If you closed it, run npm run dev again in the project folder.
  • node --version reports below v22.23.4: install or switch Node.js. If you use a Node.js version manager, open a new terminal and check again in that same terminal (the tutorial requires Node.js 22.23.4 or later).
  • Installing dependencies failed at the end of npm create emdash@latest: per the official tutorial, the project files remain. Run the retry command the scaffolder printed before you continue.
  • The passkey prompt does not appear or registration fails: wait for the browser to open its credential prompt. If your browser or OS settings cannot use passkeys, open the admin in another browser or on another device (the tutorial assumes passkey registration).
  • You saved Welcome but the home page did not change: check that you selected Publish changes and reloaded in another tab. If it still does not change, confirm the address you have open belongs to the dev server that is running now.

Set your site name, timezone and SEO defaults

  • In the admin, go to Settings → General to change the site name, logo, date format and timezone. Use Change domain to change the public URL.
  • In Settings → SEO, set the default social image and search engine verification values. Save, then reload a public page that uses the setting to check the result.

Configuration files or admin settings?

Use Settings in the admin for day-to-day options such as the site name and SEO. The EmDash integration in astro.config.mjs configures the database, media storage and plugin registration. src/live.config.ts registers the content loader; deployment-specific values may also use environment variables.

Try configuration changes on a test site, check that startup and the build succeed, then deploy. You do not need to edit these files just to update an article. Use the official reference for option types and supported values.

Set it up with an AI assistant

A chat-style AI can read this guide with you and tell you what to do next. An AI that can run commands and create files on your computer can, if you give it an empty folder, help you set up following the official Getting Started.

It can use the two steps already in this guide as they are: npm create emdash@latest to create the site and npm run dev to run and check it.

Here is a sample request to give the AI. You can copy it as it is.

I want to create an EmDash trial site in this empty folder, following the official steps. Check the Node.js version, and explain each action before you run it. Do not publish anything; go as far as letting me check the admin and the sample post on my own machine. I will register the passkey myself.
  • Tell it that anything involving sign-ups, payments or publishing must wait for your confirmation.
  • Do not write passwords or keys in the chat.
  • Do not let it change the settings of a site that is already live. This request is for creating a new trial site.

If you want the AI to look things up in the official documentation as it works, EmDash offers a public search service for its documentation (Docs MCP). It only searches the published documentation and is optional; you can follow the steps above without it. It is separate from the tools that work on the posts of your own site. The official docs also publish instructions for AI assistants (Agent Skills), and a project created with npm create emdash already includes some of them.

Protect the encryption key

The generated .env holds EMDASH_ENCRYPTION_KEY. Do not commit .env, and back the key up before you publish the site. According to the official documentation, EmDash cannot decrypt stored plugin secrets without it.

Before installing plugins: the sandbox

Plugins installed from the registry always run in a sandbox runner. What you need depends on where the site runs.

  • Cloudflare Workers: the Workers Paid plan, a LOADER binding under worker_loaders in wrangler.jsonc, PluginBridge exported from the Worker entry point, and sandboxRunner: sandbox().
  • Node.js: run npm install @emdash-cms/sandbox-workerd workerd and set sandboxRunner: "@emdash-cms/sandbox-workerd/sandbox".

Without sandboxRunner, installing or updating a registry plugin fails with SANDBOX_NOT_AVAILABLE (you can still browse the registry). The official *-cloudflare templates ship with the binding commented out, so new projects can deploy on the Workers free plan.

Choosing where to publish: Cloudflare or Node.js

Both have official deployment guides. The differences are where the database and media live, and who runs scheduled work.

  • Cloudflare Workers: the database is D1 and media is R2. The official templates include the Worker entry point and the D1 and R2 bindings, and the first deploy lets Wrangler create the named D1 database and R2 bucket. You need a Cloudflare account and a logged-in Wrangler before publishing. A Cron Trigger runs scheduled publishing, plugin tasks, backups and maintenance.
  • Node.js: SQLite and local storage are enough for a single server. Use PostgreSQL or libSQL when several instances share one database, and S3-compatible storage when media must live apart from the server disk. You need Node.js hosting or a VPS, and scheduled work runs only while a Node.js process is running (it pauses if every process stops).
  • If a Node.js site uses search, first check with the official command that your Node.js build supports SQLite FTS5. Without it, search returns 503 SEARCH_UNAVAILABLE.
  • Behind a reverse proxy, set the public address in EMDASH_SITE_URL (or SITE_URL), both where you build and where the server runs.

Cost and storage capacity depend on the service you choose and how you use it. This page lists no prices; check each provider’s current pricing before you commit.

Before you publish: domain, admin and backup

  1. Domain and public URL
    Set the public URL with Change domain under Settings → General. Behind a proxy, also set EMDASH_SITE_URL. Open the home page and a post at the public URL and check that links and image URLs use the public address.
  2. Log in to the admin
    Open /_emdash/admin/ at the public URL and log in with your passkey. Try a second browser or device too; it shows whether you registered the passkey on only one device.
  3. Take a backup and test a restore
    Keep the database and media storage (for Node.js, the SQLite file and uploads folder you configured) and EMDASH_ENCRYPTION_KEY somewhere apart from the site. Do not stop at taking the copy; restore it once somewhere else to confirm it works.
  4. Push a post through
    With a representative post such as Welcome, confirm save, publish and the public page. If you use scheduled publishing, also confirm the environment runs scheduled work.

Troubleshooting: narrowing it down

  • The admin opens but the public page does not change: check, in order, that you selected Publish changes, reloaded in another tab, and are not looking at a cached copy.
  • Images are served as unoptimized originals (Node.js): per the official docs, without EMDASH_SITE_URL at build time images are served as unoptimized originals. Set it where you build as well.
  • Values in .env have no effect at runtime (Node.js): the standalone Node.js entry does not load .env by itself. Set them in the host’s environment, or start with node --env-file=.env ./dist/server/entry.mjs.
  • Installing a plugin fails with SANDBOX_NOT_AVAILABLE: sandboxRunner is not set. Recheck “Before installing plugins: the sandbox” above.
  • Scheduled publishing or plugin tasks do not run: on Node.js check that the process is still running; on Cloudflare check the Cron Trigger setting.

Talk to us from here

Building the environment, checking and adjusting existing settings (roles, collections, storage, sandbox and more), and preparing to publish are things LLL helps with, by quote.

Questions about this guide

Do I need a cloud account?

No. These steps use SQLite and local media storage, so you can complete them without a cloud account. When you publish, you deploy to Cloudflare Workers or Node.js, as the official documentation describes.

Which Node.js version do I need?

The tutorial requires Node.js 22.23.4 or later. Before you begin, run node --version and confirm it reports v22.23.4 or later.

What happens if I lose EMDASH_ENCRYPTION_KEY?

EmDash can no longer decrypt stored plugin secrets. Do not commit .env, and back the key up before you publish the site.

The admin address (/_emdash/admin/) does not open. What should I check?

Check that the terminal running the dev server is still open and that you opened the address it printed, including the port, with /_emdash/admin/ added. Also confirm node --version reports v22.23.4 or later.

I published a test post but the public page did not change. Why?

Save only stores a draft. Select Publish changes, then reload the home page in another tab. In the official tutorial, the home page reads the published version at runtime.

Sources (official documentation)

Related guides

Sign up to try the free FAQ sample

Try LLL’s Japanese public FAQ after confirming your email. Three attempts in total; no card needed. This does not connect your own site or make a purchase.

Sign up for free See services and pricing

Get EmDash updates by email

We will let you know about new plugins, updates, and new setup and migration guides. When there is news, we send it together, about once a month.

Email sign-up is not available

This form needs JavaScript and cannot be used in this browser.