{"_id":"emdash-plugin-sitegraph","_rev":"2-9b7d7633d28dd0d53df1a63559367fbb","name":"emdash-plugin-sitegraph","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0-stage":{"name":"emdash-plugin-sitegraph","version":"0.0.0-stage","_id":"emdash-plugin-sitegraph@0.0.0-stage","stub":true,"maintainers":[{"name":"ravalkrushna1","email":"ravalkrushna1@gmail.com"}],"dist":{"shasum":"44c3b89bce6bf13e73dbbe1ce0a33e34a6207bb4","tarball":"https://registry.npmjs.org/emdash-plugin-sitegraph/-/emdash-plugin-sitegraph-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-InNFinKu9qMzJI41VCiKN/yi3pm4g8ly6RtisKxw/eLtOhOzhxELczER7OmyleQbSZoJ5uvbfE0SnCKFLoFsng==","signatures":[{"sig":"MEYCIQCuZP4rTFO+7QwTbhEgUlbNt/L35T1ZgvZPbGSxqq8vXwIhAOK0o6sfYF54qhIoiy+3lwGfDxq4m7OjuV5v2ysMQkOU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":345},"_npmUser":{"name":"ravalkrushna1","email":"ravalkrushna1@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"_id":"emdash-plugin-sitegraph@0.1.0","bugs":{"url":"https://github.com/ravalkrushna1/sitegraph/issues"},"dist":{"shasum":"5a2aeb815413e82ae5ef302d7bdd3cb69d3febe8","tarball":"https://registry.npmjs.org/emdash-plugin-sitegraph/-/emdash-plugin-sitegraph-0.1.0.tgz","fileCount":20,"integrity":"sha512-VaPR3ML/Y13t1r5gvJSlFlW01b40uU9xYS0S5eMRPI33Tj3IGrNDxHql1YrmhM/XzHLj3phA7GRhwh7Xf7G/qQ==","signatures":[{"sig":"MEQCIDTImUEklorBS/0TfDiwKSh1iA/wzw7O0b2afooaOzhpAiBrZTYsGnVamBgYEuWFDOvmjxRxTeIaSnI6ZhmdCAQDkg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtIh5pYabDxCOCWkANrXoijwILXxjuXt1lYvrQfVtIZQIhAIlS0K1aqaUyL0yjxTmiX9BN9mCvKPsBS4krSOD8uDl3"}],"unpackedSize":143606},"main":"./dist/index.mjs","name":"emdash-plugin-sitegraph","type":"module","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./admin":"./src/admin/index.tsx"},"gitHead":"ac350d18af04ff3890077548d8b20bbf7c25b8cc","license":"MIT","scripts":{"dev":"tsdown src/index.ts --format esm --dts --watch","test":"vitest run","build":"tsdown src/index.ts --format esm --dts --clean","typecheck":"tsc --noEmit"},"version":"0.1.0","_npmUser":{"name":"ravalkrushna1","email":"ravalkrushna1@gmail.com"},"homepage":"https://github.com/ravalkrushna1/sitegraph#readme","keywords":["emdash","emdash-plugin"],"repository":{"url":"git+https://github.com/ravalkrushna1/sitegraph.git","type":"git"},"_npmVersion":"11.11.0","description":"A living dependency map for EmDash sites: content, URLs, internal links and documented dependencies, with change-impact preview.","directories":{},"maintainers":[{"name":"ravalkrushna1","email":"ravalkrushna1@gmail.com"}],"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.33.0","devDependencies":{"astro":"7.3.8","react":"19.2.4","emdash":"1.2.0","tsdown":"^0.20.0","vitest":"^4.1.0","typescript":"^5.9.0","@types/react":"^19.0.0","@cloudflare/kumo":"2.6.0"},"peerDependencies":{"astro":">=6.0.0","react":"^18.0.0 || ^19.0.0","emdash":">=1.2.0","@cloudflare/kumo":"*"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/emdash-plugin-sitegraph_0.1.0_1791538481439_0.4199890203963508"}}},"time":{"created":"2026-10-09T09:32:04.227Z","modified":"2026-10-09T09:34:41.700Z","0.0.0-stage":"2026-10-09T09:32:04.227Z","0.1.0":"2026-10-09T09:34:41.530Z"},"description":"A living dependency map for EmDash sites: content, URLs, internal links and documented dependencies, with change-impact preview.","maintainers":[{"name":"ravalkrushna1","email":"ravalkrushna1@gmail.com"}],"readme":"# SiteGraph for EmDash\n\nA map of how your EmDash site fits together. SiteGraph reads your published entries and the\ninternal links between them, lets you add what the CMS can't see (the form that feeds your CRM,\nthe workflow a page belongs to, who owns it), and answers one question before you change\nsomething: **what else depends on this?**\n\n- **Graph explorer.** Search any entry, URL, form or service and expand outward from it.\n  A table view shows the same connections for keyboard and screen-reader users.\n- **Broken internal links.** A link to an entry path where no published entry lives is\n  flagged, including links left behind when a page's slug changes.\n- **Change impact.** Up to 3 steps out, with the exact path for each result, split into\n  confirmed connections and ones that rely on a guess.\n- **Your own notes.** Purpose, criticality, maintenance notes, a runbook link and a\n  \"last checked\" date on anything in the graph. Rescans never overwrite them.\n- **Stays current.** After the first scan, saving, publishing, unpublishing or deleting an\n  entry updates just that entry's part of the map.\n- **JSON export** of the whole graph.\n\nEvery connection says where it came from: **found by scan** (solid line), **added by a person**\n(dashed). SiteGraph never presents a guess as a fact, and impact is \"potential impact\", not proof.\n\nRequires EmDash 1.2.0 or later.\n\n## Install\n\nSiteGraph is a **native** plugin, so it's installed from npm and registered in your Astro\nconfig. It isn't in the EmDash plugin registry.\n\n```bash\npnpm add emdash-plugin-sitegraph\n```\n\n```js\n// astro.config.mjs\nimport { siteGraph } from \"emdash-plugin-sitegraph\";\n\nexport default defineConfig({\n\tintegrations: [\n\t\temdash({\n\t\t\tplugins: [siteGraph()],\n\t\t}),\n\t],\n});\n```\n\nRebuild and deploy, then open **SiteGraph** in the admin sidebar and choose **Scan site**.\n\nSet your site URL in EmDash's settings. Without it, only relative links (like `/about`) are\nrecognised as internal.\n\n## Why native, and what it can do\n\nThe interactive graph is a custom React admin page, and only native plugins can ship one.\nNative plugins run inside your site's process, without the sandbox's isolation, so install\nthem only from publishers you trust. SiteGraph keeps its footprint small on purpose:\n\n| Capability | Used for |\n|---|---|\n| `content:read` | Reading published entries to find their links |\n| `schema:read` | Reading collection URL patterns, title fields and `url` fields |\n\nIt never writes to your content, makes no network requests (links are parsed, never\nfetched), and stores its graph in its own plugin storage. Viewing the graph needs the\n`plugins:read` permission (Editors and up). Scanning and editing it needs `plugins:manage`\n(Admins).\n\n## Limits worth knowing\n\n- Links are found in rich text and `url` fields. **Reference fields aren't mapped yet**,\n  because EmDash doesn't expose them to plugins.\n- Collections whose URL pattern uses date or locale tokens, and entries in a non-default\n  language, are mapped as entries but without a URL.\n- A link is \"broken\" only when it points where an entry could live (it fits a collection's\n  URL pattern) and none does. Links to your home page, listing pages or files are shown,\n  never flagged.\n- Search matches from the start of a name or path (\"pric\" finds \"Pricing\", \"ing\" doesn't).\n- The graph shows a neighbourhood at a time, not the whole site, so large sites stay usable.\n\n## Develop\n\n```bash\npnpm install\npnpm test        # Vitest: graph logic and scan behaviour\npnpm typecheck\npnpm build       # server entry → dist/; the admin ships as source\n```\n\nSee `SPEC.md` for the design decisions and why they were made.\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/ravalkrushna1/sitegraph#readme","keywords":["emdash","emdash-plugin"],"repository":{"url":"git+https://github.com/ravalkrushna1/sitegraph.git","type":"git"},"bugs":{"url":"https://github.com/ravalkrushna1/sitegraph/issues"},"license":"MIT"}