Repository navigation
v0.40.0
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 (
….mdfor llms and AI agents) show images from the media host. - Image file names keep their case (
Photo.JPGstaysPhoto.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/emdash2. 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:
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
- Sign in to the admin (
https://coywolf.com/_emdash/admin). - 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.
- 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@latestThen 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.