mdshare
AGENTS.md9 starsChanged 5 months agoMITView on GitHub
mdshare uses Astro 5 with the @astrojs/cloudflare adapter, deployed natively to Cloudflare Workers (no OpenNext, no Next.js). React components are used as Astro islands. If you're unsure about an Astro API, conventions, or config option, read the relevant guide in node_modules/astro/dist/docs/ (or check https://docs.astro.build) before writing code. Heed deprecation notices.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- public/llms.txtllms.txt
The file
Files
This app runs on Astro 5 + Cloudflare Workers
mdshare uses Astro 5 with the @astrojs/cloudflare adapter, deployed natively to Cloudflare Workers (no OpenNext, no Next.js). React components are used as Astro islands. If you're unsure about an Astro API, conventions, or config option, read the relevant guide in node_modules/astro/dist/docs/ (or check https://docs.astro.build) before writing code. Heed deprecation notices.
Things that may surprise you
- API routes use
cloudflare:workersenv import, notgetCloudflareContext(). Pattern:import { env } from "cloudflare:workers"; const db = env.DB; Astro.paramsis synchronous in Astro 5 (not a Promise like Next.js 15 routes)- Static pages are pre-rendered with
export const prerender = true— they ship 0KB worker code and serve from CDN - Dynamic pages need
export const prerender = false - React islands use
client:load/client:only="react", not"use client"directives - Custom worker entry:
src/worker.tsis the actual Cloudflare Worker entry. It exports acreateExports(manifest)function that wraps Astro'shandle()to add WebSocket bypass, security headers, and Durable Object exports public/.assetsignoreprevents wrangler from refusing to upload because_worker.jslives inside the assets directory- No middleware.ts — security headers are added in
src/worker.tsafter Astro's response - Tiptap BubbleMenu (
@tiptap/react/menus) renders a floating "Comment" button above the user's text selection. Lives incomponents/editor/tiptap-editor.tsx. UsesonMouseDown preventDefaultto prevent iOS from clearing the selection on tap. The bubble is the single path for anchoring a comment — the legacymouseup/touchendtracker was removed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

