Skip to main content

Pack your codebase into a single markdown file for LLM context, with comment stripping, secret masking, and dependency trees.

Project description

Yoink Logo

Yoink

Python CI License: AGPL v3

Yoink is a command-line tool and FastAPI backend designed to bundle, sanitize, and visualize codebases for Large Language Model (LLM) contexts. It converts raw project directories into structured Markdown documents, optimizing token consumption and preventing compliance and security leaks.


Features

  • Token Shredder: Safely strips comments, docstrings, and excess whitespace to reduce prompt size.
  • Secret Shield: Programmatically redacts credentials, private keys, emails, and IP addresses.
  • Compliance Stripper: Replaces corporate endpoints or proprietary trademarks with generic labels.
  • Dependency Trees: Automatically generates AST-based ASCII dependency trees and Mermaid flowcharts.

Installation

Install from PyPI:

pip install yoinky

Or install locally in editable mode:

git clone https://github.com/Asifdotexe/yoink.git
cd yoink
pip install -e .

Documentation

For detailed instructions and references, please refer to the dedicated guides:

  • CLI Usage Guide: Complete reference of CLI commands, flags (--raw, --max-size, --no-visualize, etc.), and usage examples.
  • REST API Guide: Detailed guide to API endpoints, schema structures, and Render blueprint web service deployment.
  • Token Reduction Learnings: Technical reference on how BPE tokenizers handle whitespace, license header stripping, and performance tuning.

Running Tests

Verify your local installation:

pytest

License

This project is licensed under the GNU AGPLv3 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoinky-1.2.0.tar.gz (739.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoinky-1.2.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file yoinky-1.2.0.tar.gz.

File metadata

  • Download URL: yoinky-1.2.0.tar.gz
  • Upload date:
  • Size: 739.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yoinky-1.2.0.tar.gz
Algorithm Hash digest
SHA256 09e384405110b1d9477ba18259ae89e4ceeb5b6b2ec517eb690360ef281fb8b1
MD5 43fca6e623f5f260fb51fa7fa354e2ac
BLAKE2b-256 27ef63aad3b8089f9e082207131e9da97541df0c30bca33eb659439269e1ba59

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoinky-1.2.0.tar.gz:

Publisher: release.yml on Asifdotexe/yoink

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yoinky-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: yoinky-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yoinky-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 950ed6fef1dae7ce20582ee45ea6b879273d03601258291d3499d0f14578e935
MD5 b51bf3326e2685246c904cf1a883450a
BLAKE2b-256 d4929e9ca1e5d9105f0ed993a8cbfad59c750895f97c742a1b0a91f966972aa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoinky-1.2.0-py3-none-any.whl:

Publisher: release.yml on Asifdotexe/yoink

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page