{"id":51018628,"url":"https://github.com/tracyspacy/fli","last_synced_at":"2026-06-21T14:01:24.767Z","repository":{"id":362726369,"uuid":"1260208180","full_name":"tracyspacy/fli","owner":"tracyspacy","description":"cli tool to list directory content","archived":false,"fork":false,"pushed_at":"2026-06-17T12:01:28.000Z","size":83,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T12:05:47.072Z","etag":null,"topics":["command-line","files","libc","ls","rust","rust-no-std","terminal","tools"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tracyspacy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2026-06-05T08:57:57.000Z","updated_at":"2026-06-12T16:10:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tracyspacy/fli","commit_stats":null,"previous_names":["tracyspacy/fli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tracyspacy/fli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyspacy%2Ffli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyspacy%2Ffli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyspacy%2Ffli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyspacy%2Ffli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tracyspacy","download_url":"https://codeload.github.com/tracyspacy/fli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyspacy%2Ffli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34610832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"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":["command-line","files","libc","ls","rust","rust-no-std","terminal","tools"],"created_at":"2026-06-21T14:01:23.958Z","updated_at":"2026-06-21T14:01:24.748Z","avatar_url":"https://github.com/tracyspacy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fli\n**fli** is a cli tool to list directory content\n\n\u003cimg width=\"160\" height=\"160\" alt=\"mascot\" src=\"https://github.com/user-attachments/assets/a0742301-5891-49a3-a746-29fa4b87eabc\" /\u003e\n\n# Why\nI have access to my raspberry pi zero via ssh only. As for me it is hard to differentiate types of files etc based on colors, I needed something more readable and clear like picture/icon or emoji as I ended up with etc. And I decided to build fli and since `ls` is obviosly preinstalled on almost any machine, the second requirement for `fli` as a complimentary tool, is to be tiny. \n\n**Thus fli is a tiny (18KB), easy to read file listing tool.**\n\nWhile working on fli, another aspect of my interest and motivation is to check if with Rust one can build coreutils-like tools, but faster and smaller. \n\n**Readability**: Nice readability thanks to use of emojis (📄 and 🗂️) instead of text coloring.\n\n**Speed**: By default directory entries are streamed directly from `readdir()` to stdout without heap allocation.\n\n**Size:** Since rust `std` contributes heavily to binary size, this project is `no_std` + `libc` (**it contains unsafe code blocks**).\n\n**Binary size:**\n- M series mac: **51 KB**,\n- rpi zero w : **18 KB**.\n\n#### Current display options:\n- `fli` : short (name and type) not sorted output  - direct stream, no heap allocation\n- `fli -s`: short (name and type) sorted by name output - uses heap allocation\n- `fli -l` : long (name, type, metadata ) not sorted output and fixed-sized alignment (20 chars for size and n_link) - direct stream, no heap allocation\n- `fli -l -s`: long (name, type, metadata ) sorted by **name** output and dynamic alignment - uses heap allocation.\n- `fli -l -S`: long (name, type, metadata ) sorted by **size** output and dynamic alignment - uses heap allocation.\n\nNew display options may be added soon.\n\n### Build\n**Build:** ```cargo build --release```\n\n**Build with cross for raspberry pi zero w:** ```cross build --release --target arm-unknown-linux-gnueabihf```\n\n**Copy to rpi** : ```scp /target/arm-unknown-linux-gnueabihf/release/fli \u003cusername\u003e@\u003cpi\u003e.local: \u003ctarget dir\u003e ```\n\n\n## View\n\n\u003cimg width=\"495\" height=\"222\" alt=\"macos\" src=\"https://github.com/user-attachments/assets/7296dff8-2715-4cf2-aa62-05d5936dc59c\" /\u003e\n\n\u003cimg width=\"197\" height=\"416\" alt=\"rpi zero w\" src=\"https://github.com/user-attachments/assets/d6979f22-55ec-4491-accd-08bc0b587b50\" /\u003e\n\n\n**Sorted by name Long output:**\n\n\u003cimg width=\"547\" height=\"218\" alt=\"Screenshot 2026-06-09 at 16 38 58\" src=\"https://github.com/user-attachments/assets/f68b924c-d78a-4d4e-86d2-ea38533094de\" /\u003e\n\n\n**Sorted by size Long output:**\n\n\u003cimg width=\"548\" height=\"201\" alt=\"Screenshot 2026-06-19 at 21 30 28\" src=\"https://github.com/user-attachments/assets/3a409708-ee86-434b-a376-8fd6c26f4f2c\" /\u003e\n\n\n**Symlink with path**\n\n\u003cimg width=\"838\" height=\"101\" alt=\"Screenshot 2026-06-19 at 21 27 07\" src=\"https://github.com/user-attachments/assets/4943cdde-80d8-486c-9bf1-feebd8a0e75a\" /\u003e\n\n\n### Benchmarks\n\n\u003cimg width=\"707\" height=\"339\" alt=\"Screenshot 2026-06-19 at 21 35 22\" src=\"https://github.com/user-attachments/assets/3e575759-6b4b-4fb5-845b-3fb6f558ad26\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftracyspacy%2Ffli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftracyspacy%2Ffli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftracyspacy%2Ffli/lists"}