@alankyshum/md-share
v1.0.2
Published
TypeScript CLI to securely encrypt and share markdown files
Maintainers
Readme
@alankyshum/md-share
TypeScript CLI to securely encrypt and share markdown files with GitHub backing.
Installation
npm install -g @alankyshum/md-shareQuick Start
# Initialize configuration and storage repo
md-share init
# Share a markdown file
md-share note.md
# Share inline text
md-share --text "# Hello\nWorld"Features
- 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.
- GitHub Backed: Shared notes are committed as encrypted JSON files inside your personal, public GitHub repository.
- Offline Fallback: Emits legacy
#v1...fragment URLs when storage mode is offline or fallback is requested. - Markdown Linting: In-depth lint checks for Mermaid diagram syntax, Map config, Chart configurations, and more.
- Management Commands:
list,search, anddeletecommands to keep track of your shared files.
Self-hosting
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.
Prerequisites
- GitHub — already authenticated via
gh auth loginor viamd-share login. cfCloudflare CLI —brew install cloudflare/cloudflare/cf(or download from https://github.com/cloudflare/cli/releases).CLOUDFLARE_API_TOKENin your environment withAccount > Cloudflare Pages: Editscope.
Setup
Execute the initialization flow with the --self-host flag:
export CLOUDFLARE_API_TOKEN="..."
md-share init --self-host --project-name my-md-share