Files
dckc 94a059af25 diigo-week: draft a potluck issue from a week of diigo bookmarks
An EmDash plugin (native, content:write only) with one admin page:
a diigo username and an ISO week. It reads diigo-cache's public page
(?in=<week>&by=created) as microformats, follows rel=next, and
creates a draft in issues shaped like seed/issues.json.

Transport is a DIIGO_CACHE service binding rather than ctx.http.fetch:
EmDash's SSRF guard refuses localhost, and the binding names one
worker. Logic lives in src/week.ts with the fetcher passed in; tests
read fixtures in diigo-cache's markup. The checklist's goal 2 now
names potluck; DiigoBridge waits.

Generated-by: Claude Opus 5.5
2026-10-09 02:12:41 -05:00

35 lines
1.0 KiB
JSON

{
"name": "potluck",
"version": "0.0.3",
"private": true,
"type": "module",
"emdash": {
"label": "Blog",
"seed": "seed/seed.json"
},
"scripts": {
"dev": "astro dev",
"seed:issues": "emdash seed seed/issues.json -d \"$(find .wrangler/state/v3/d1 -name '*.sqlite' ! -name metadata.sqlite)\"",
"build": "astro build",
"preview": "astro preview",
"deploy": "astro build && wrangler deploy",
"typecheck": "astro check"
},
"dependencies": {
"@astrojs/cloudflare": "^14.3.1",
"@astrojs/react": "^6.0.5",
"@emdash-cms/cloudflare": "^1.0.1",
"astro": "^7.3.2",
"diigo-week": "link:../diigo-week",
"emdash": "^1.0.1",
"react": "19.2.4",
"react-dom": "19.2.4"
},
"devDependencies": {
"@astrojs/check": "^0.9.10",
"@cloudflare/workers-types": "^5.20260820.1",
"wrangler": "^4.125.0"
},
"packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b"
}