Skip to content

Releases

v0.45.0

Choose a tag to compare

@henshaw henshaw released this 23 Nov 17:29
637ef31

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.45.0

Entities link to their glossary.io definitions. AI Enrichment's entities now link to glossary.io when it has a definition for them. If an entity's Wikidata ID has a glossary.io definition, its Schema.org node gets two changes:

  • The definition page is added last to sameAs, for example https://glossary.io/gemini/.

  • The glossary's short definition becomes its description.

  • Fewest lookups: the site fetches glossary.io's index of every term with a Wikidata ID in one request (about 80 KB compressed). It stores the index and refreshes it about once a day, and only on days when pages render. Page renders read the stored copy, not glossary.io.

  • Safe to fail: if glossary.io can't be reached, pages render with the copy the site already has, or without glossary links. They still go into the edge cache.

  • On by default: the new glossary.io definitions switch is under AI Enrichment, next to Entities for schema. Sites that already have Entities for schema turned on get the links once they update. You can turn the switch off on the AI Enrichment page or the Features page.

Ready for EmDash 1.6.0's admin. EmDash 1.6.0 no longer ships two layout classes the pack's admin pages used. The pack now provides them itself, so the Redirect Manager and Schema & Social pages look right on EmDash 1.5 and 1.6.

No changes are needed on your site. glossary.io is added to AI Enrichment's allowed hosts automatically.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.44.0

Choose a tag to compare

@henshaw henshaw released this 18 Nov 02:51
c761528

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.44.0

Sign-in emails: no more than 3 sign-in links per address every 15 minutes. EmDash limits requests for a sign-in link by IP address only, so someone sending from many addresses could fill an admin's inbox with sign-in emails. The pack now counts requests for each account's address. Past 3 in 15 minutes, it hands the request to EmDash as a request for an address that has no account. EmDash then answers exactly as it does for any unknown address and sends nothing, so the answer never tells the sender that the address belongs to an account.

  • This is a protection, not a feature, so it's on as soon as you update, with no switch. It uses EmDash's own rate-limit table and needs no new bindings.
  • Someone who knows a person's address can still delay that person's sign-in links for up to 15 minutes at a time. Passkey sign-in and other accounts are unaffected.
  • The middleware lets requests through untouched if anything goes wrong, such as a missing database binding.

No changes are needed on your site.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.43.3

Choose a tag to compare

@henshaw henshaw released this 17 Nov 23:15
6200bcd

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.43.3

Slug changes: EmDash's own redirect is now removed for long slugs too. When a published entry's slug changes, Slug changes adds a 301 from the entry's real old URL. It also deletes the redirect EmDash makes for the same change, which EmDash builds from the collection's URL pattern and often points between paths your site doesn't serve. To delete it, the pack first has to find it by searching for the new slug, and Cloudflare D1 refuses a search pattern over 50 bytes. So for a new slug longer than 48 characters, which is most headline slugs, the search failed. The pack logged "could not remove EmDash's own redirect for the same change", and EmDash's redirect stayed.

  • The pack now searches with as much of the slug's start as D1 accepts, and still checks the whole slug before it deletes a redirect.
  • This update doesn't remove the redirects EmDash made before it. To find them, open EmDash's Redirects page and look in the Auto: slug change group. Delete any whose paths your site doesn't serve.

No changes are needed on your site.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.43.2

Choose a tag to compare

@henshaw henshaw released this 16 Nov 06:41
4b82bad

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.43.2

Buttondown Drafts: a new rule works at once in the post editor. Right after you saved a rule, a post's Buttondown section could offer Create draft now and then answer "No rule covers this collection" when you selected it. Each of the site's Worker isolates keeps the rules for up to five minutes, and the buttons read that copy while the section read the saved rules.

  • Create draft now, Refresh draft from post and Retry now read the rules as saved, so they use a new or changed rule at once.
  • Publishing still uses each isolate's copy, so a post published in the first five minutes after you save a rule may get no draft from it. Select Create draft now for that post. Buttondown Drafts says so in its notes.

No changes are needed on your site.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.43.1

Choose a tag to compare

@henshaw henshaw released this 16 Nov 05:36
c6dbf04

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.43.1

Block renderers no longer go missing because of a theme's import order. If a theme imported @coywolf/emdash/astro before emdash/ui, every Coywolf Pack block could render as "PortableText [components.type] is missing" instead of its content:

  • Details (FAQs), Notes, Quotes, Disclosures and Podcasts;
  • videos;
  • tables of contents and reviews.

The cause was an import cycle between the pack's table renderer and EmDash's PortableText. The table renderer now loads EmDash's components when it renders, and a new test fails if any pack component imports emdash/ui at module level again. No changes are needed in themes.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.43.0

Choose a tag to compare

@henshaw henshaw released this 16 Nov 05:19
4cde190

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.43.0

Buttondown Drafts (new, off by default)

Write an article once, on your site. When a post in a chosen category is published, the Pack makes a Buttondown email draft from it. You review the draft in Buttondown and send it from there. The Pack never sends, schedules or publishes an email.

  • One draft per post. On coywolf.com, publishing a post in the Coywolf Newsletter category makes its draft within a few seconds. A scheduled post gets its draft when it goes live.
  • Only new posts. Posts published after the rule was saved get a draft on their own. For an older post, select Create draft now in the entry editor.
  • Your edits in Buttondown come first.
    • With Update drafts on, publishing the post again updates its draft while nobody has edited it in Buttondown.
    • A draft that was edited, scheduled or sent in Buttondown is left alone.
    • A draft deleted in Buttondown isn't made again.
    • Refresh draft from post overwrites an edited draft when you choose to.
  • Unpublish or trash deletes the draft only while it's untouched.
  • The email:
    • the subject is the post's title, and the description is its excerpt;
    • the featured image, resized for email;
    • the body, with images resized to 1200 px (WebP sent as JPEG, which every email app shows);
    • tables in Buttondown's table style, with borders, cell padding, merged cells and alignment;
    • the Pack's blocks in email form: a video becomes a watch link, a file card a download link, a note a block quote;
    • code that shows {{ }} or {% %}, printed as written instead of run by Buttondown's templating;
    • a "Read it on coywolf.com" link at the bottom.
  • A key that can only write drafts. Make a Buttondown key with only Emails → Read & write (Sending disabled), and save it as Buttondown API key, the fifth field on the plugin's Settings page. Check key confirms it can't read your newsletters or subscribers.
  • Failures are retried for 3 days without making a second draft. With Alerts & Digest on, the Buttondown draft failed alert emails you when a draft has been failing for over an hour.
  • In the admin:
    • the Buttondown Drafts page has the key check, the rules and the recent drafts;
    • the entry editor gets a Buttondown section with Open in Buttondown.

Setup and every case are in Buttondown Drafts.

Also in 0.43.0

  • Safer links in Markdown versions. A javascript:, vbscript: or data: link disguised with a tab, a line break or a control character is now left out, as the plain ones already were. Its text stays. Ordinary links are unchanged.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.42.0

Choose a tag to compare

@henshaw henshaw released this 15 Nov 19:50
a4fab9a

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.42.0

Child Pages (new, off by default)

Choose a page's parent in the page editor, and its URL nests under the parent: "Coywolf Pack" under "Coywolf apps" is https://coywolf.com/apps/coywolf-pack/. EmDash has no page hierarchy of its own yet, so until now parents could only be set in code (the pageParents option).

  • A Parent page field with EmDash's own picker. The new Child Pages page (in Content Tools) adds it to Pages in one click. A parent change is part of the draft and goes live when you publish.

  • Loops are refused. Publishing a page under itself, or under one of its own children, is refused with a message showing the chain.

  • 301s when pages move. These all redirect:

    • a page's top-level URL to its nested one, keeping the query string, so EmDash's View and preview links work;
    • every page below a parent whose slug changes, or that moves;
    • children of a parent that's trashed, deleted or unpublished, which go to the top level and come back when it's republished.

    A move that would loop with a redirect rule you made yourself is skipped and listed with the rule to delete. Up to 200 redirects are written per change; the rest follow on the next change or with Re-check redirects.

  • Breadcrumbs and the Schema graph use the parents' real titles: Home › Coywolf apps › Coywolf Pack.

  • Everywhere a page's URL appears uses the nested one:

    • the pack's search, sitemaps, schema, feeds and llms.txt;
    • the theme, through loadPageTree(), resolvePagePath() and nestMenuUrls() from @coywolf/emdash/astro. Drafts resolve only for their own preview link (previewedEntry()).
  • Moving from the pageParents option: Import parents from configuration sets each page's field, with a dry run first. It skips drafts, scheduled pages and pages with unpublished changes, and leaves parents that are categories in the option.

  • In the admin:

    • the Child Pages page shows the page tree and any redirects that need a look;
    • the page editor gets a Child pages panel;
    • the pages list gets a Parent column;
    • the Features page warns while Redirect Manager or Slug changes is off.

Child Pages needs Redirect Manager and Slug changes on. Setup, the theme's route code and the move from pageParents are in Child Pages.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.41.0

Choose a tag to compare

@henshaw henshaw released this 15 Nov 18:31
b112813

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.41.0

Pagination (new, off by default)

Numbered page links for your theme's archives (home page, categories, tags, authors and search), following the W3C design system's pagination pattern: Previous, the first page, the pages around the current one, the last page, and Next.

  • One line at every width. On a phone it shows ‹ 1 … 12 … 23 ›; wider screens add the neighboring pages, and Previous and Next become words. It never wraps to a second line, and on a 320px phone every link is still a 44×44 target. It works without JavaScript, and browsers without container queries get the phone layout.
  • Accessible. The navigation is labeled and the current page is marked for screen readers. Links read "Page 3", "Previous page" and "Next page". Gaps aren't announced, and the current page is bold with a border, which also works in Windows high-contrast mode.
  • A real last page. The pack counts the posts in an archive, following EmDash's own rules for what's published. Search and author archives show no last-page link.
  • Themes style it with --cw-pagination-* custom properties.

Add it to a theme with <Pagination>, archivePage() and countEntries() from @coywolf/emdash/astro. The steps and route code are in Pagination.

Short page URLs (new, off by default, separate from Pagination)

Page 3 of the home page becomes /3/ and page 2 of a category /news/web-development/2/, instead of /page/3/. Old /page/N/ addresses redirect in one hop, with the query string kept. Each page's canonical link points to itself.

  • Its own switch. Hiding the numbered links doesn't change your page addresses, and turning Short page URLs off sends /N/ back to /page/N/, so no page 404s.
  • Safe to switch. Redirects tell browsers not to cache them, so a later switch change can't trap a visitor in a redirect loop.
  • Before turning it on, delete any redirect rules that send /page/N/ addresses elsewhere (WordPress imports often have them). Stored redirects run first.
  • Archives with a prefix, like /tag/ and /author/, can be listed in pagination: { bases: { "/tag/": 1, "/author/": 1 } }, so a tag named "page" still pages correctly.

robots.txt updates sooner

  • Saving SEO settings clears the cached /robots.txt even when Robots.txt Rules is off. Before, EmDash's file could stay cached for up to a day.
  • Saving robots.txt rules shows the new file right away. The pack no longer keeps a short-lived copy of the rules in each server instance, which could put the old file back in the cache.
  • Changing the Site URL clears /robots.txt, since both robots.txt files name the sitemap at the Site URL.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.40.0

Choose a tag to compare

@henshaw henshaw released this 12 Nov 21:24
58e7b90

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.40.0

images.cdn is gone (deprecated in 0.38.0). The media host comes from EmDash's own setting, storage: r2({ binding: "MEDIA", publicUrl: "https://media.coywolf.com" }) in astro.config.mjs, or from a host saved on the Clean Image URLs page. A site that still sets images.cdn gets a warning in its logs and no media host from it, so move it to publicUrl before updating.

Images that load for everyone

  • Author photos in schema. A byline's photo in the page's JSON-LD pointed at an EmDash address that only signed-in users can open. It now uses the public address on your media host.
  • Images picked on the Schema page (logo, default images) are saved with their public address too.
  • Markdown versions of pages (….md for llms and AI agents) show images from the media host.
  • Image file names keep their case (Photo.JPG stays Photo.JPG), so those images load from the media host.

WordPress Migration

  • Media host addresses in content (step 5): a new dry run and Rewrite to media host that point the site's own /_emdash/api/media/file/… addresses inside imported HTML, How-To steps and Details blocks at your media host. Image blocks, links, code blocks and theme code are left alone.

AI Enrichment

  • Image text now reads the article. When an image is used in a published post, the AI gets the post's title, the heading above the image and the text around it, so alt text and captions fit how the image is used, as Coywolf SEO for WordPress did.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.

v0.38.0

Choose a tag to compare

@henshaw henshaw released this 12 Nov 20:03
04cbb23

Coywolf Pack is an EmDash plugin that enhances existing features and adds features not available in EmDash. It helps you manage your site like a pro and ensure it's absurdly fast for humans and bots.

  • Absurdly fast for humans and bots: cached pages answer in 60–90 ms, cache warming keeps pages cached for visitors and crawlers alike, and images come straight from Cloudflare's edge.
  • Enhances what EmDash already does: redirects, search, robots.txt, schema, images and RSS feeds go well beyond EmDash's built-in versions and starter templates.
  • Adds what EmDash doesn't have: backups and restore, link checking, videos, reviews, AI enrichment and more.
  • Manage your site like a pro: turn each feature on or off, see your Cloudflare usage and estimated bill, and finish a move from WordPress. Everything starts off, so installing or updating changes nothing until you're ready.
  • Free and open source (MIT).

What's new in 0.38.0

Needs EmDash 1.5.0 or later. Update EmDash first (emdash and @emdash-cms/cloudflare together), then Coywolf Pack.

Uses what EmDash 1.5 does natively

  • Media host from EmDash's own setting. EmDash 1.5 uses its storage publicUrl for its own images, the site logo, the favicon and the default social image. Set the media host there, storage: r2({ binding: "MEDIA", publicUrl: "https://media.coywolf.com" }) in astro.config.mjs, and one setting covers EmDash and the pack. The pack's images.cdn option is deprecated and goes in 0.40.0; the Clean Image URLs page shows the exact change to make.
  • Redirects with accented and non-Latin characters. An exact redirect source matches however the path is spelled (/café, /caf%C3%A9, lowercase escapes), as EmDash 1.5's own redirects now do. Destinations with such characters are sent percent-encoded, with international domain names in punycode. Older rules in another spelling are tidied the first time the Redirect Manager page opens. Sources with . or .. segments are refused, since browsers never send them.
  • Plugin name and description come from EmDash's own plugin list.

Ready for what's new in EmDash 1.5

  • Schema & Social: a collection whose date column is one of EmDash 1.5's system dates (Published, Created, Updated) isn't treated as dated articles.
  • Co-editing groundwork: if someone saves an entry while Link Manager or WordPress Migration publishes its own change, that change stays a draft instead of failing. (Co-editing itself is off by default in EmDash; see the internals docs before turning it on.)
  • Docs: WordPress imports bring menus and password-protected posts (as drafts) in EmDash 1.5; Alerts work with EmDash's built-in SMTP provider.

Cleaned up

  • The IndexNow and Bing clean-up code that ran in 0.35.18 to 0.37.x is gone. Every site that updated through those releases is already clean.

Install

Coywolf Pack is a native (trusted) EmDash plugin: you add it to your site's code and deploy, rather than installing it from EmDash's plugin directory. These steps use coywolf.com as the example; change the names to your site's. The full guide, with troubleshooting, is Getting started in the README.

What you need: an EmDash site (1.5 or later) on Cloudflare Workers, using EmDash's Cloudflare adapter with a D1 database bound as DB and an R2 media bucket bound as MEDIA, and its code in a folder you can edit and deploy.

1. Install the package

From the site's folder:

npm install @coywolf/emdash

2. Add the plugin to astro.config.mjs

// astro.config.mjs
import { coywolfPlugin } from "@coywolf/emdash";

export default defineConfig({
  // ...
  integrations: [
    emdash({
      // ...your existing database and storage settings
      plugins: [
        coywolfPlugin({
          // Backups is the one module that's added only when you give it a name (it names the backup files).
          backups: { name: "coywolf" },
        }),
      ],
    }),
  ],
});

coywolfPlugin() with no options works too: every module except Backups is included with its defaults. Set a module to false (for example videos: false) to leave it out.

3. Add the middleware

Redirects, /robots.txt rules, the RSS feed, llms.txt, file downloads, video and news sitemaps, image sizes and cache warming answer their own URLs, so they need the pack's middleware, first in src/middleware.ts:

// src/middleware.ts
import { sequence } from "astro:middleware";
import { coywolfPack } from "@coywolf/emdash/middleware";

export const onRequest = sequence(coywolfPack() /* , your own middleware */);

4. Check wrangler.jsonc

DB and MEDIA are all the pack needs to start. Add the others when you turn on the features that use them:

// wrangler.jsonc (coywolf.com)
{
  "name": "coywolf",
  "d1_databases": [{ "binding": "DB", "database_name": "coywolf", "database_id": "<D1 database id>" }],
  "r2_buckets": [
    { "binding": "MEDIA", "bucket_name": "coywolf-media" },
    // Backups: a second bucket for backup files.
    { "binding": "BACKUPS", "bucket_name": "coywolf-backups" }
  ],
  // Page cache: Workers Cache in front of the Worker, and the deployed version so old pages are cleared after a deploy.
  "cache": { "enabled": true },
  "version_metadata": { "binding": "CF_VERSION_METADATA" },
  // Cache warming and checking internal links: the Worker calling itself.
  "services": [{ "binding": "SELF", "service": "coywolf" }]
}

API keys and tokens (Keys) are stored encrypted, so the site also needs EmDash's EMDASH_ENCRYPTION_KEY secret (npx wrangler secret put EMDASH_ENCRYPTION_KEY if setup didn't create it). Keep it in a password manager.

5. Deploy

Deploy as you usually do. Nothing changes for visitors yet: every feature starts off.

6. Turn features on

  1. Sign in to the admin (https://coywolf.com/_emdash/admin).
  2. Open Plugins → Coywolf Pack → Features and turn on the modules you want. Turn on Update check, the first switch, to get a card on the dashboard when a new version is out.
  3. Open each module's page in the Coywolf Pack section of the sidebar for its settings and step-by-step guides.

Updating from an earlier version

npm install @coywolf/emdash@latest

Then deploy. If your package.json points at a GitHub tarball URL from an earlier release, this command replaces it with the npm version. Updates never turn features on by themselves.

Update notices: turn on Update check, the first switch under Plugins → Coywolf Pack → Features. Once a day it asks npm for the newest version of Coywolf Pack. When there's an update, a Coywolf Pack update card on the EmDash dashboard and a notice at the top of the pack's pages show the command above, with a Copy command button. Dismiss hides both for everyone on the site until the next version. The check sends nothing about your site and never updates anything by itself.