@nandithebull/docmount
v0.1.2
Published
Mount an ATProto collection as a local FUSE filesystem and translate OXA records to MyST markdown on the fly.
Readme
docmount
Mount an ATProto collection as a local FUSE filesystem and translate OXA records to MyST markdown on the fly.
What it does
- logs into an ATProto PDS
- lists records from a collection, defaulting to
pub.oxa.document - exposes each record as a
*.myst.mdfile - reads and writes through
@nandithebull/myst-oxa - saves changes back to the repo when files are closed
Install
npm install @nandithebull/docmountRequirements
- Linux with FUSE support
- a PDS / ATProto service
- an account identifier and app password
On NixOS, run inside a shell that provides fuse / libfuse.so.2.
CLI usage
docmount /path/to/mount \
--service https://bsky.social \
--identifier handle.example.com \
--password "$BLUESKY_APP_PASSWORD"You can also use environment variables:
DOCMOUNT_MOUNTATPROTO_SERVICEorPDS_URLATPROTO_IDENTIFIERorATPROTO_HANDLEBLUESKY_APP_PASSWORDorATPROTO_PASSWORDATPROTO_COLLECTIONDOCMOUNT_EXTENSIONDOCMOUNT_TTL_MS
Defaults
- collection:
pub.oxa.document - file extension:
.myst.md - cache TTL:
5000ms
Library API
import { AtprotoOxaClient, DocMountFS, parseConfig } from "@nandithebull/docmount";Exports:
AtprotoOxaClientDocMountFSparseConfighelpText
Build
bun run buildLicense
MIT
