Skip to main content

yapit

CLI for yapit.md — fetch clean markdown from URLs, files, and documents.

Install

uv tool install yapit

Usage

# Create document from URL, print markdown
yapit https://example.com/article
yapit https://arxiv.org/abs/2301.00001

# Local files
yapit paper.pdf
yapit notes.md

# With AI transformation (TTS annotations, spoken readings for math, figure extraction, noise filtering)
yapit paper.pdf --ai

# Fetch existing document
yapit https://yapit.md/listen/<doc-id>
yapit <doc-id> --annotated

# Save to directory with images
yapit <doc-id> -o .

# Stdin
echo "hello world" | yapit -

Auth

Creating documents or accessing private docs requires a yapit.md account and an API token. Create one in your account settings, then:

export YAPIT_TOKEN=yapit_...

The CLI sends it as Authorization: Bearer. Fetching shared documents works without auth.

Self-hosting

Point the CLI at your own instance with YAPIT_BASE_URL:

export YAPIT_BASE_URL=http://localhost
yapit fetch paper.pdf

YAPIT_BASE_URL is the address you open yapit at in the browser; the CLI calls the API under its /api path.

If your server runs with AUTH_ENABLED=false (the make self-host default), no token is needed. If auth is enabled on your instance, set YAPIT_TOKEN as above. The self-hosting guide in yapit's docs/auth.md shows how to create a token on the server.

Save to directory (-o)

-o <dir> saves markdown, TTS annotations, and images:

<dir>/<slug>/
  <slug>.md       # clean markdown, image paths rewritten to relative
  TTS.md          # annotated version (yap-speak, yap-show tags)
  <slug>-<N>.png  # images renamed sequentially

Errors if the output directory already exists.

Metadata

Release files for yapit 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yapit 0.4.0
File Size Uploaded Provenance Actions
yapit-0.4.0.tar.gz 9.7 kB Without provenance Details for yapit-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yapit 0.4.0
File Interpreter ABI Platform Actions
yapit-0.4.0-py3-none-any.whl Python 3 none any Details for yapit-0.4.0-py3-none-any.whl

Total release size: 19.9 kB

Release files / yapit-0.4.0.tar.gz

Download URL yapit-0.4.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8c6330f7a69d9c78a970cd7acb94f25eebb0edd0a62887a8ffeab9f5d41007
BLAKE2b-256 checksum
How to use checksums
9f6d736ad2a751f0e2c35f0749414ec7de8aea8370a93e5fd75e16cf31c59f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / yapit-0.4.0-py3-none-any.whl

Download URL yapit-0.4.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5efcc648cc51d4c277ecb9deae300a1bb7f880673866c5cded867f3e7e73c95b
BLAKE2b-256 checksum
How to use checksums
88e765d2599a5645d0c3ca2946a1936757a716b4edc3f221e7470a0f7aab34e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for yapit 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page