{"id":46432317,"url":"https://github.com/crodjer/biip","last_synced_at":"2026-04-25T15:01:24.308Z","repository":{"id":307988978,"uuid":"1015304562","full_name":"crodjer/biip","owner":"crodjer","description":"Strip out PII before Sending Data","archived":false,"fork":false,"pushed_at":"2025-11-29T05:05:16.000Z","size":106,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T19:45:00.980Z","etag":null,"topics":["cli","pii","privacy","prompt-engineering","prompt-toolkit","rust","security"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/biip","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crodjer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["crodjer"]}},"created_at":"2025-07-07T09:55:35.000Z","updated_at":"2026-01-26T15:59:55.000Z","dependencies_parsed_at":"2025-08-03T14:22:10.910Z","dependency_job_id":null,"html_url":"https://github.com/crodjer/biip","commit_stats":null,"previous_names":["crodjer/biip"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/crodjer/biip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crodjer%2Fbiip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crodjer%2Fbiip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crodjer%2Fbiip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crodjer%2Fbiip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crodjer","download_url":"https://codeload.github.com/crodjer/biip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crodjer%2Fbiip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32265977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","pii","privacy","prompt-engineering","prompt-toolkit","rust","security"],"created_at":"2026-03-05T18:38:50.311Z","updated_at":"2026-04-25T15:01:24.297Z","avatar_url":"https://github.com/crodjer.png","language":"Rust","funding_links":["https://github.com/sponsors/crodjer"],"categories":[],"sub_categories":[],"readme":"# biip\n[![Crates.io](https://img.shields.io/crates/v/biip.svg)](https://crates.io/crates/biip)\n[![Build](https://github.com/crodjer/biip/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/crodjer/biip/actions/workflows/ci.yml)\n\n`biip` (Beep + PII) is a tool (and a library) to scrub PII from text.\n\n## Install\nFor Linux and MacOS, you can install `biip` using the pre-built binaries:\n```\ncurl -sfSL https://raw.githubusercontent.com/crodjer/biip/main/download.sh | bash\n```\n\nIf you have Rust installed, you can install `biip` using Cargo:\n```\ncargo install biip\n```\n\n## How does it work?\nPipe any text to `biip` to have it scrub away sensitive information.\n\nFor example, if you have a file with content:\n\n```\nHi, I am \"awesome-user\"\nCurrent Directory: /Users/awesome-user/foo/bar/baz\nMy Secret Key: mAM3zwogXpV6Czj6J\nMy Email: foo@bar.com\nMy IPs:\n- 2001:db8:85a3::8a2e:370:7334\n- 8.8.8.8\nConnect via ftp://user:pass@example.com\nAuth token is eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0In0.sZtZQ...\nMy MAC address is 00-1A-2B-3C-4D-5E.\n```\n\n`biip` can redact some sensitive information from it:\n\n```\n$ biip /tmp/info.txt\n─── /tmp/info.txt ───\nHi, I am \"user\"\nCurrent Directory: ~/foo/bar/baz\nMy Secret Key: ••••⚿•\nMy Email: •••@•••\nMy IPs:\n- ••:••:••:••:••:••:••:••\n- ••.••.••.••\nConnect via ftp://••••:••••@example.com\nAuth token is ••••🌐•\nMy MAC address is ••:••:••:••:••:••.\n```\n\nOther ways to run:\n\n- From stdin: `cat /tmp/info.txt | biip`\n- Interactive: run `biip`, type in or paste your text in the editor. For\n  example: `biip | pbcopy` can be used to paste or type in arbitrary text and\n  copy it to the clipboard.\n\n## What does it scrub?\nBiip can scrub:\n\n 1. **Unix (Linux/Mac) username**: It removes any mention of a user's Unix username.\n 2. **Home directory**: It replaces paths referring to the home directory with `~`.\n 3. **URL Credentials**: Scrubs usernames and passwords from URLs (e.g., `https://user:pass@...`).\n 4. **Email Addresses**: Replaces emails with `•••@•••`.\n 5. **IP Addresses**: Redacts public IPv4 and IPv6 addresses (skips local/private addresses).\n 6. **MAC Addresses**: Replaces MAC addresses.\n 7. **JSON Web Tokens (JWTs)**: Finds and redacts JWTs.\n 8. **API Keys**: Redacts common API key formats from providers like AWS, OpenAI, etc.\n 9. **UUIDs**: Replaces UUIDs with a redacted pattern.\n 10. **Keys / Passwords from environment**: It replaces the values for any potentially sensitive environment variables with: `••••⚿•`.\n 11. **Custom patterns (BIIP_*)**: Any environment variable whose name starts with `BIIP` (e.g., `BIIP_PERSONAL_PATTERNS`, `BIIP_SENSITIVE`) has its value redacted with `••••⚙•`.\n\n## How is it useful?\n\n### LLM Context\nWhen sharing code with LLMs for AI assistance, running it through `biip` would\nbe beneficial to strip out any sensitive info. Like this:\n\n```bash\nfd -t f | xargs biip | pbcopy\n```\n\nThis will copy your entire codebase to clipboard, excluding large files and\nredact sensitive information. On Linux, use `xclip` (for X11) and `wl-copy` (for\nwayland) instead of `pbcopy`.\n\nTo exclude files (like LICENSE, Cargo.lock, .svg, etc.) which could unnecessarily\nbloat context, use `.fdignore`.\n\n\u003e Note: When reading files via arguments (including `xargs biip`), `biip`\n\u003e automatically skips binary files. You usually don't need to exclude image\n\u003e formats explicitly.\n\n### Copying .env\n`biip` considers `.env`, so it'll remember to not share any sensitive keys even\nif .env's content was in the stdin.\nSo, `biip` would redact (keys, secrets etc) from the output:\n\n```sh\n$ cat .env | biip\nS3_KEY=\"••••⚿•\"\nS3_SECRET=\"••••⚿•\"\nOPENAI_API_KEY=\"••••☁️•\"\nBIIP_PERSONAL_PATTERNS=\"••••⚙•\"\nBIIP_SENSITIVE=\"••••⚙•\"\n```\n\n### Arbitrary Text.\nType in / paste arbitrary test and copy it to clipboard.\n```sh\n$ biip | pbcopy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrodjer%2Fbiip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrodjer%2Fbiip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrodjer%2Fbiip/lists"}