{"id":18160718,"url":"https://github.com/blankeos/zig-practice","last_synced_at":"2025-06-19T07:04:40.469Z","repository":{"id":246945815,"uuid":"824289153","full_name":"Blankeos/zig-practice","owner":"Blankeos","description":"🦎 Learning Zig because it's cool","archived":false,"fork":false,"pushed_at":"2025-02-25T19:28:36.000Z","size":813,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T07:04:12.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/Blankeos.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":"2024-07-04T19:24:07.000Z","updated_at":"2025-02-25T19:28:40.000Z","dependencies_parsed_at":"2024-07-06T00:17:55.854Z","dependency_job_id":"019adc5d-4d46-4d6f-93cb-6745fc41b4a5","html_url":"https://github.com/Blankeos/zig-practice","commit_stats":null,"previous_names":["blankeos/zig-practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Blankeos/zig-practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blankeos%2Fzig-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blankeos%2Fzig-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blankeos%2Fzig-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blankeos%2Fzig-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blankeos","download_url":"https://codeload.github.com/Blankeos/zig-practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blankeos%2Fzig-practice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260705804,"owners_count":23049488,"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":[],"created_at":"2024-11-02T08:09:08.901Z","updated_at":"2025-06-19T07:04:35.438Z","avatar_url":"https://github.com/Blankeos.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig Practice\n\nLearning Zig because I wanna get into low-level programming and do some cool stuff with it.\n\nProjects on this repo:\n\n1. [x] Hello World - Zig basics.\n2. [x] Guessing Game - Random number guessing game.\n3. [ ] Salary - Console app that estimates salary based on hourly, daily, monthly, and yearly rates.\n4. [ ] Tried Passwords CLI - Recreation of my [Go implementation](https://github.com/Blankeos/tried-passwords-cli).\n5. [ ] HTTP Server - Simple HTTP server to understand networking and concurrency in Zig.\n6. [ ] TCP Socket Chat - A console-based chat application using sockets to understand network communication.\n7. [ ] Random Quotes - A simple CLI application that fetches a random quote from the [API Ninjas Quotes](https://api-ninjas.com/api/quotes).\n8. [ ] Tic Tac Toe - A simple Tic Tac Toe game with persistence.\n9. [ ] WebSocket Chat - A console-based chat application using WebSockets to understand network communication on browser.\n10. [ ] Static Site Generator - Converts markdown to HTML.\n11. [ ] WebView - Electron-like webview for Zig.\\*\\*\\*\\*\n12. [ ] Todo GUI Application - A simple GUI application to manage tasks.\n\n### Notes\n\n- Initializing new projects:\n\n```sh\nzig init # (I think this is like `cargo new`)\n# Creates\n#   src/main.zig\n#   src/root.zig\n#   build.zig\n#   build.zig.zon\n```\n\n- `zig run \u003cfile\u003e.zig` - Run any zig file without making an exec.\n- `zig build` - Build the project. Must have been created with `zig init`\n- `./zig-out/bin/\u003cproject-name\u003e` - Where you can find the binary to run after zig build in a \"Zig Project\".\n- `zig build-exe \u003cfile\u003e.zig` - Make an exec from any zig file.\n- `./\u003cfile\u003e` - After running build-exe you can run like this as usual.\n\n- I think I'm giving up after trying to implement Salary.\n  - 1: There's no library for getting the key presses.\n  - 2: Receiving user input from the terminal is EXTREMELY verbose. It's not straightforward to do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblankeos%2Fzig-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblankeos%2Fzig-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblankeos%2Fzig-practice/lists"}