{"id":24160309,"url":"https://github.com/Ookiiboy/ignoreBoy","last_synced_at":"2025-09-20T04:31:44.915Z","repository":{"id":264549498,"uuid":"893649015","full_name":"Ookiiboy/ignoreBoy","owner":"Ookiiboy","description":"A nix shell library for generating .gitignore files from github's own templates,  and/or toptal's api! With sane defaults!","archived":false,"fork":false,"pushed_at":"2025-06-26T14:44:31.000Z","size":53,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T15:35:25.898Z","etag":null,"topics":["best-practices","development","development-shells","development-tools","github-templates","gitignore","nix","nix-flake","nix-flakes","nixos","toptal","toptal-api"],"latest_commit_sha":null,"homepage":"","language":"Nix","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/Ookiiboy.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-11-25T00:30:08.000Z","updated_at":"2025-06-26T14:44:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0b61b89-9b03-4a4f-b728-938c480683b9","html_url":"https://github.com/Ookiiboy/ignoreBoy","commit_stats":null,"previous_names":["ookiiboy/ignoreboy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Ookiiboy/ignoreBoy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ookiiboy%2FignoreBoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ookiiboy%2FignoreBoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ookiiboy%2FignoreBoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ookiiboy%2FignoreBoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ookiiboy","download_url":"https://codeload.github.com/Ookiiboy/ignoreBoy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ookiiboy%2FignoreBoy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276046864,"owners_count":25575876,"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-09-20T02:00:10.207Z","response_time":63,"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":["best-practices","development","development-shells","development-tools","github-templates","gitignore","nix","nix-flake","nix-flakes","nixos","toptal","toptal-api"],"created_at":"2025-01-12T16:01:49.900Z","updated_at":"2025-09-20T04:31:44.890Z","avatar_url":"https://github.com/Ookiiboy.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# IgnoreBoy\n\n## What is this?\n\nThis is a nix-shell lib that helps you create best practice `.gitignore` files\nby using\n[Githubs Default .gitignore Templates](https://github.com/github/gitignore), \nand/or [Toptal's gitignore.io](https://gitignore.io). No longer will you be held \nback by the tyrany of copy and pasting files from around the internet! Let this \ncopy paste for you!\n\n## Why would I use this? Like, my guy, I almost never touch my `.gitignore`.\n\nThere are a few reasons that you might enjoy using this:\n\n- Codebases with diverse languages often tend to have a `.gitignore` that are\n  sparse, and don't use best practices.\n- If you're setting up a development environment for a new codebase, you might\n  not event know what a best practice code `.gitignore` looks like! Take the\n  [Julia](https://github.com/github/gitignore/blob/main/Julia.gitignore)\n  language for example. I didn't know it looked like that.\n- You could _just_ copy and paste these templates, but keeping track, and\n  checking for updates (if ever!) is annoying, and might be at the very bottom\n  of your todo list.\n- For the low-low price of using this, there are some\n  [sane defaults built-in](https://github.com/Ookiiboy/ignoreBoy/blob/main/flake.nix#L71C1-L76C24).\n  All the stuff you forget to add (or never add but should), now added by\n  default!\n- Did a goddamned Node.js project get added to your codebase by Alice. Don't\n  know what to add to the `.gitignore`? Add `\"Node\"` to the array and be done\n  with it.\n\n## Okay, I want to at least give it a whirl. How do you use this?\n\nIt should look something like the below. We've left out non-related code for\nbrevity. In short, add it to your inputs, and have it run in your shellhook of\nyour main devshell.\n\n```nix\n\n# 1. https://github.com/github/gitignore - use this repo, and add the filename\n#    and/ or path/filename to the array, drop the extension. Note the uppercase\n#    filenames.\n# 2. `curl -sL https://www.toptal.com/developers/gitignore/api/list`; this\n#    will give you a list of supported languages.\n# 3. GOTCHA: This will fail on first run, you will need to copy the hash into \n#    the attribute. **Everytime** you update the `gitignoreio.languages`, delete\n#    the hash, re-run the shell, and copy the updated hash back into the \n#    attribute after the next fail again. This will force the input to refresh,\n#    and make a new API request. Otherwise it will remain cached.\n# 4. Defaults to `true`, but you can set to false if you don't want OS related \n#    ignores. You don't usually need to specify. It's here for clarity.\n# 5. Anything custom you might want in your .gitignore you can place in this\n#    extraConfig.\n\n{\n  inputs = {\n    # ...\n    systems.url = \"github:nix-systems/default\";\n    ignoreBoy.url = \"github:Ookiiboy/ignoreBoy\";\n  };\n\n  outputs = {\n    # ...\n    ignoreBoy,\n    ...\n  } @ inputs: let\n    forAllSystems = nixpkgs.lib.genAttrs (import systems);\n  in {\n    devShells = forAllSystems (system: {\n      default = \n        pkgs.mkShell {\n          shellHook = ''\n            # ...\n            ${ignoreBoy.lib.${system}.gitignore {\n              github.languages = [\"Node\" \"community/JavaScript/Vue\"]; # 1\n              gitignoreio.languages = [\"node\"]; # 2\n              gitignoreio.hash = \"\"; # 3\n              useSaneDefaults = true; # 4\n              extraConfig = ''\n                .editorconfig\n                .pre-commit-config.yaml\n              ''; # 5\n            }}\n            # ...\n          '';\n          buildInputs = with pkgs; [\n            # ...\n          ];\n        };\n    });\n    };\n  }\n```\n\n## People who've helped\n- [arichtman](https://github.com/arichtman) - Started the work for the gitignore.io api.\n- [isabelroses](https://github.com/isabelroses) - Helped cleaned up the `flake.nix` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOokiiboy%2FignoreBoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOokiiboy%2FignoreBoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOokiiboy%2FignoreBoy/lists"}