{"id":31595261,"url":"https://github.com/escherize/go-silo","last_synced_at":"2025-10-06T03:58:59.646Z","repository":{"id":310933779,"uuid":"1041806135","full_name":"escherize/go-silo","owner":"escherize","description":"A tool to reap and sow directory trees and files","archived":false,"fork":false,"pushed_at":"2025-08-21T03:42:56.000Z","size":7641,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-21T05:47:47.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/escherize.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-08-21T03:29:46.000Z","updated_at":"2025-08-21T03:42:59.000Z","dependencies_parsed_at":"2025-08-21T05:47:53.086Z","dependency_job_id":"2c5585af-3904-4ccf-bd13-18fb3dd464b4","html_url":"https://github.com/escherize/go-silo","commit_stats":null,"previous_names":["escherize/go-silo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/escherize/go-silo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Fgo-silo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Fgo-silo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Fgo-silo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Fgo-silo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escherize","download_url":"https://codeload.github.com/escherize/go-silo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escherize%2Fgo-silo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556182,"owners_count":26006081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-06T03:58:50.261Z","updated_at":"2025-10-06T03:58:59.637Z","avatar_url":"https://github.com/escherize.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# silo 🌾\n\nPack and unpack directory trees and files into a single text format. Store your code harvest in a silo for later planting! Perfect for sharing project structures and understanding how file paths relate to each other.\n\n\u003cimg src=\"assets/silo.png\" alt=\"silo\" width=\"300\"\u003e\n\n## Example\n\nLet's say you have a Python project with these files:\n\n**main.py**\n```python\nfrom src.helpers.utils import add\n\nprint(add(2, 3))\n```\n\n**src/helpers/utils.py**\n```python\ndef add(a, b):\n    return a + b\n```\n\nPack these files into your silo:\n```bash\nsilo pack -o project.silo main.py src/helpers/utils.py\n```\n\nThis creates a **project.silo** file:\n```\n\u003e main.py\nfrom src.helpers.utils import add\n\nprint(add(2, 3))\n\n\u003e src/helpers/utils.py\ndef add(a, b):\n    return a + b\n```\n\nUnpack anywhere:\n```bash\nsilo unpack project.silo\n```\n\nThe delimiter (`\u003e` in this example) is automatically chosen to avoid conflicts with your file content. Or you can choose one with `-d` using any Unicode character including emojis like `🌾` (see [Silo File Format Spec](https://github.com/escherize/silo_spec)).\n\n# Install\n\n```bash\ngo install github.com/escherize/go-silo/cmd/silo@latest\n```\n\n# Pack (Harvest files into silo)\n\n```bash\nsilo pack -o harvest.silo src/\n```\n\nMultiple patterns:\n```bash\nsilo pack \"*.go\" \"*.md\" \"docs/*.txt\"\n```\n\nEnhanced recursive harvest:\n```bash\nsilo pack -enhanced -o deep_harvest.silo \"src/**/*.go\"\n```\n\nTo stdout:\n``` bash\nsilo pack file1.go file2.go\n```\n\n## Custom delimiter (including emojis!)\n\n```bash\nsilo pack -d \"🌾\" -o wheat_harvest.silo src/\n```\n\n# Unpack (Plant files from silo)\n\nTo current directory:\n```bash\nsilo unpack project.silo\n```\n\nTo the `field` directory:\n```bash\nsilo unpack project.silo -o field/\n```\n\n## Format\n\nA silo file contains multiple files separated by delimiters:\n```\n🌾 path/to/file1.txt\nfile1 content here\n\n🌾 path/to/file2.txt\nfile2 content here\n```\n\nWhen packing, the delimiter (`🌾` in this example) is auto-detected to avoid conflicts with file content. When unpacking, the first delimiter found should be used for every file path.\n\n## Security Features 🔒\n\nSilo protects against path traversal attacks:\n- ❌ `../` parent directory references \n- ❌ `/etc/passwd` absolute paths\n- ❌ `C:\\Windows\\System32` drive letters\n- ❌ URL-encoded attacks like `%2e%2e%2f`\n\nOnly relative paths within your project are allowed!\n\n## Spec\n\nFull specification: https://github.com/escherize/silo-spec\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescherize%2Fgo-silo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescherize%2Fgo-silo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescherize%2Fgo-silo/lists"}