
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
mdxld-workers
Advanced tools
Compile and deploy MDXLD files to Cloudflare Workers using Hono JSX and the Workers Platform API.
pnpm add @ai-primitives/mdxld-workers
# Compile an MDXLD file to a Cloudflare Worker
mdxld-workers compile input.mdx --config worker.config.json
# Deploy using Wrangler
mdxld-workers deploy --name my-worker
# Deploy using Platform API
mdxld-workers deploy-platform --namespace my-namespace --account-id xxx
worker.config.json:
{
"jsx": {
"importSource": "hono/jsx",
"runtime": "react-jsx"
},
"worker": {
"name": "my-worker",
"routes": ["/api/*"],
"compatibilityDate": "2023-12-20"
},
"platform": {
"namespace": "my-namespace",
"accountId": "xxx"
}
}
import { compile, deploy, deployPlatform } from '@ai-primitives/mdxld-workers'
// Compile MDXLD to Worker
const worker = await compile('input.mdx', {
jsx: {
importSource: 'hono/jsx',
runtime: 'react-jsx',
},
})
// Deploy using Wrangler
await deploy(worker, {
name: 'my-worker',
routes: ['/api/*'],
})
// Deploy using Platform API
await deployPlatform(worker, {
namespace: 'my-namespace',
accountId: 'xxx',
})
# Install dependencies
pnpm install
# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Build the package
pnpm build
# Lint the code
pnpm lint
# Format the code
pnpm format
Please read our Contributing Guide to learn about our development process and how to propose bugfixes and improvements.
MIT © AI Primitives
This package uses the following key dependencies:
FAQs
Compile and deploy MDXLD files to Cloudflare Workers
We found that mdxld-workers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.