{"id":15067707,"url":"https://github.com/zackproser/sizeof","last_synced_at":"2025-07-20T07:34:13.352Z","repository":{"id":168855131,"uuid":"625372728","full_name":"zackproser/sizeof","owner":"zackproser","description":"Experimental CLI, written alongside ChatGPT4 and GItHub Copilot","archived":false,"fork":false,"pushed_at":"2023-05-24T02:07:50.000Z","size":70,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T16:33:24.305Z","etag":null,"topics":["chatgpt","chatgpt4","golang","golang-examples"],"latest_commit_sha":null,"homepage":"","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/zackproser.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}},"created_at":"2023-04-08T22:56:21.000Z","updated_at":"2025-01-13T23:07:14.000Z","dependencies_parsed_at":"2024-02-06T03:16:04.159Z","dependency_job_id":null,"html_url":"https://github.com/zackproser/sizeof","commit_stats":null,"previous_names":["zackproser/sizeof"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zackproser/sizeof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fsizeof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fsizeof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fsizeof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fsizeof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackproser","download_url":"https://codeload.github.com/zackproser/sizeof/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fsizeof/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266085822,"owners_count":23874482,"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","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":["chatgpt","chatgpt4","golang","golang-examples"],"created_at":"2024-09-25T01:26:17.060Z","updated_at":"2025-07-20T07:34:13.332Z","avatar_url":"https://github.com/zackproser.png","language":"Go","readme":"# sizeof\n\nA command line tool that tells you the size of anything you pass to it in bytes initially, but also in human-legible terms by using simple comparisons to common snippets of text. \n\nsizeof is a command-line tool that helps you understand the size of various things such as arbitrary strings, URLs, and even the websites or HTML pages that may reside at those URLs. This project was born out of a personal itch to quickly gauge the size of different inputs and as an experiment to heavily leverage LLM technologies like ChatGPT-4 and GitHub's Copilot.\n\n```mermaid\ngraph LR;\nA[User] --\u003e B[CLI];\nB --\u003e C{sizeof};\nC --\u003e D[Arbitrary String];\nC --\u003e E[URL];\nC --\u003e F[File];\nD --\u003e G[Size in Bytes];\nE --\u003e G;\nF --\u003e G;\n```\n## Demo\n![demo gif of sizeof usage](./sizeof-demo.gif)\n\nSimply put, you give `sizeof` strings, URLs, and (eventually) filenames and you get back an easy-to-grok breakdown of the exact sizes of those things in bytes.\n \n## Motivation\n\nI like that old blog post about the relative speed and size of things (there's a bunch of them). This CLI is a step in that direction. By making it extremely cheap and fast to answer the question: \"How big is that thing?\", I hope to create my own habit of constantly checking and benchmarking the sizes and speeds of things when developing software.\n\n `sizeof` is also an experiment: I'm using it as an excuse to take some of the latest LLM models (such as ChatGPT 4, at the curent moment) for a walk in some \"real\" world software development contexts, and seeing if they \n are indeed able to increase the speed, scope, ambition or delight of the project. I may or may not follow up by documenting my experiences in a video or blog post. \n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n- [Credits](#credits)\n\n## Installation\n\nTo install sizeof, download the latest binary for your platform from the Releases page. Then, follow the instructions specific to your operating system:\n\n### macOS and Linux:\n\nMake the binary executable:\n\n```bash\nchmod +x sizeof\n```\n\nMove the binary to your $PATH:\n\n```bash\nsudo mv sizeof /usr/local/bin/\n```\n\n### Windows:\n\nMove the sizeof.exe binary to a directory included in your %PATH% environment variable.\n\n## Usage\n\n```bash\nsizeof \u003cinput\u003e\n```\n\nWhere \u003cinput\u003e can be a string, URL, or file path. sizeof will determine the size of the input in bytes and display the result.\n\nHere are some examples:\n\n```bash\n# Get the size of a string\nsizeof \"hello world\"\n\n# Get the size of a URL\nsizeof \"https://example.com\"\n\n# Get the size of a local HTML file\nsizeof \"/path/to/your/file.html\"\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Credits \nThis project was created by [Zachary Proser](https://github.com/zackproser) and was inspired by the desire to understand the size of various inputs and experiment with LLM technologies like ChatGPT-4 and GitHub's Copilot.\n","funding_links":[],"categories":["\u003ca name=\"utility\"\u003e\u003c/a\u003eUtilities"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackproser%2Fsizeof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackproser%2Fsizeof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackproser%2Fsizeof/lists"}