{"_id":"@alankyshum/md-share","_rev":"3-7267e025d5f3a2a48f0054961d2a9b85","name":"@alankyshum/md-share","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@alankyshum/md-share","version":"1.0.0","keywords":["cli","markdown","share","encryption"],"author":{"name":"Alan Shum"},"license":"MIT","_id":"@alankyshum/md-share@1.0.0","maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"homepage":"https://github.com/alankyshum/md-share#readme","bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"bin":{"md-share":"dist/cli.js"},"dist":{"shasum":"7a6e06ecc30ecc4fc3ccaa0558416b847da60cf0","tarball":"https://registry.npmjs.org/@alankyshum/md-share/-/md-share-1.0.0.tgz","fileCount":6,"integrity":"sha512-HxBVnPmdq3xx2Xsxum8M5YgOLwEFVKUzowNzprFUU36NjPxVzu1hI7tgFTJs8dpCL/wQAcZnl5Y1tonwGCBvNA==","signatures":[{"sig":"MEQCIHPpBoFFPtXfqIi3uShtmGK5GCWOwKRh1RrRY49vcEWsAiBS1ps7TOdn5wL+pJWKl/Ta0tVH5bFElZEfvDPKvZtOlg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":181877},"type":"module","engines":{"node":">=20"},"gitHead":"83a28361e6f00812e86959de1d44b3d8cabf555e","scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"alankyshum","email":"alan200994@gmail.com"},"repository":{"url":"git+https://github.com/alankyshum/md-share.git","type":"git","directory":"packages/md-share-cli"},"_npmVersion":"10.9.2","description":"TypeScript CLI to securely encrypt and share markdown files","directories":{},"_nodeVersion":"22.13.1","dependencies":{"zod":"^3.23.0","pako":"^2.1.0","js-yaml":"^4.1.0","commander":"^12.1.0","@alankyshum/share-crypto":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^3.0.5","@types/pako":"^2.0.3","@types/js-yaml":"^4.0.9"},"_npmOperationalInternal":{"tmp":"tmp/md-share_1.0.0_1779749506113_0.6121742548463902","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alankyshum/md-share","version":"1.0.1","keywords":["cli","markdown","share","encryption"],"author":{"name":"Alan Shum"},"license":"MIT","_id":"@alankyshum/md-share@1.0.1","maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"homepage":"https://github.com/alankyshum/md-share#readme","bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"bin":{"md-share":"dist/cli.js"},"dist":{"shasum":"c40c34281073da95843001800e52ab39a0ef60b2","tarball":"https://registry.npmjs.org/@alankyshum/md-share/-/md-share-1.0.1.tgz","fileCount":6,"integrity":"sha512-jOOIRjHpEwLcUq7p4Mf7cYqn1T2P0tQF1lUky3YU7fviKbofpR8o/nev/HnIUV/aoJStAF5bcBB4lJ7/Upyv4Q==","signatures":[{"sig":"MEUCIQCrzFvJ8aMrf3K/8D+e0ahCy0owU5oNDvsAOMRRMJZOwwIgLURgZgJQfcMeRICJmUmu4AcL4FW3MWm8CjsT8x7fjKU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":181872},"type":"module","engines":{"node":">=20"},"gitHead":"e5e46ae95d207623ac9fd78dc2ac31362c4068e8","scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"alankyshum","email":"alan200994@gmail.com"},"repository":{"url":"git+https://github.com/alankyshum/md-share.git","type":"git","directory":"packages/md-share-cli"},"_npmVersion":"10.9.2","description":"TypeScript CLI to securely encrypt and share markdown files","directories":{},"_nodeVersion":"22.13.1","dependencies":{"zod":"^3.23.0","pako":"^2.1.0","js-yaml":"^4.1.0","commander":"^12.1.0","@alankyshum/share-crypto":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^3.0.5","@types/pako":"^2.0.3","@types/js-yaml":"^4.0.9"},"_npmOperationalInternal":{"tmp":"tmp/md-share_1.0.1_1779751089673_0.9613572038993985","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alankyshum/md-share","version":"1.0.2","description":"TypeScript CLI to securely encrypt and share markdown files","license":"MIT","author":{"name":"Alan Shum"},"repository":{"type":"git","url":"git+https://github.com/alankyshum/md-share.git","directory":"packages/md-share-cli"},"homepage":"https://github.com/alankyshum/md-share#readme","bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"keywords":["cli","markdown","share","encryption"],"engines":{"node":">=20"},"type":"module","bin":{"md-share":"dist/cli.js"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup","test":"vitest run"},"dependencies":{"@alankyshum/share-crypto":"^1.0.0","commander":"^12.1.0","js-yaml":"^4.1.0","pako":"^2.1.0","zod":"^3.23.0"},"devDependencies":{"@types/js-yaml":"^4.0.9","@types/pako":"^2.0.3","tsup":"^8.0.2","vitest":"^3.0.5"},"_id":"@alankyshum/md-share@1.0.2","gitHead":"06587f21d2419b69e237250ea1f3f0df4c1c01ff","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-eaPrJR7sWyy4NI8mV2jzB9ebHjrHtZ/7J8T8PYpOJis3OJmKKwPHGuI5/mkZa+J/BWlUJ95WY23bG7XI8TDvAw==","shasum":"3c863e8a927d0cb0b2f80796cc185b4f14a6d490","tarball":"https://registry.npmjs.org/@alankyshum/md-share/-/md-share-1.0.2.tgz","fileCount":6,"unpackedSize":172959,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDX+RTXp3DTEATzFQroLRkRt2gZQuhWT8OYCnx2RLK/gwIhAJNjRVF94FhoTjxvXEVzIGKCKscBdYVotNahYNK+Gi5q"}]},"_npmUser":{"name":"alankyshum","email":"alan200994@gmail.com"},"directories":{},"maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/md-share_1.0.2_1779756451994_0.3045230384326598"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T22:51:45.857Z","modified":"2026-05-26T00:47:32.243Z","1.0.0":"2026-05-25T22:51:46.266Z","1.0.1":"2026-05-25T23:18:09.817Z","1.0.2":"2026-05-26T00:47:32.140Z"},"bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"author":{"name":"Alan Shum"},"license":"MIT","homepage":"https://github.com/alankyshum/md-share#readme","keywords":["cli","markdown","share","encryption"],"repository":{"type":"git","url":"git+https://github.com/alankyshum/md-share.git","directory":"packages/md-share-cli"},"description":"TypeScript CLI to securely encrypt and share markdown files","maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"readme":"# @alankyshum/md-share\n\nTypeScript CLI to securely encrypt and share markdown files with GitHub backing.\n\n## Installation\n\n```bash\nnpm install -g @alankyshum/md-share\n```\n\n## Quick Start\n\n```bash\n# Initialize configuration and storage repo\nmd-share init\n\n# Share a markdown file\nmd-share note.md\n\n# Share inline text\nmd-share --text \"# Hello\\nWorld\"\n```\n\n## Features\n\n- **Mandatory Encryption:** All shared contents are encrypted client-side using AES-256-GCM. The decryption key never leaves your machine except in the URL fragment.\n- **GitHub Backed:** Shared notes are committed as encrypted JSON files inside your personal, public GitHub repository.\n- **Offline Fallback:** Emits legacy `#v1...` fragment URLs when storage mode is offline or fallback is requested.\n- **Markdown Linting:** In-depth lint checks for Mermaid diagram syntax, Map config, Chart configurations, and more.\n- **Management Commands:** `list`, `search`, and `delete` commands to keep track of your shared files.\n\n## Self-hosting\n\n`md-share` supports a fully automated, CLI-driven self-hosting provisioning flow that forks the canonical repository and connects your own Cloudflare Pages project to your fork.\n\n### Prerequisites\n\n1. **GitHub** — already authenticated via `gh auth login` or via `md-share login`.\n2. **`cf` Cloudflare CLI** — `brew install cloudflare/cloudflare/cf` (or download from https://github.com/cloudflare/cli/releases).\n3. **`CLOUDFLARE_API_TOKEN`** in your environment with `Account > Cloudflare Pages: Edit` scope.\n\n### Setup\n\nExecute the initialization flow with the `--self-host` flag:\n\n```bash\nexport CLOUDFLARE_API_TOKEN=\"...\"\nmd-share init --self-host --project-name my-md-share\n```\n","readmeFilename":"README.md"}