{"id":13576889,"url":"https://github.com/zdharma-continuum/zinit-module","last_synced_at":"2025-08-07T21:03:55.760Z","repository":{"id":43884731,"uuid":"429135565","full_name":"zdharma-continuum/zinit-module","owner":"zdharma-continuum","description":"zsh module for automatically compiling sourced files","archived":false,"fork":false,"pushed_at":"2023-04-14T22:18:39.000Z","size":811,"stargazers_count":23,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-10T00:36:46.963Z","etag":null,"topics":["zinit","zsh","zsh-module"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdharma-continuum.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}},"created_at":"2021-11-17T17:15:43.000Z","updated_at":"2025-02-02T00:49:51.000Z","dependencies_parsed_at":"2024-11-14T00:37:13.259Z","dependency_job_id":null,"html_url":"https://github.com/zdharma-continuum/zinit-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zdharma-continuum/zinit-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdharma-continuum","download_url":"https://codeload.github.com/zdharma-continuum/zinit-module/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269324204,"owners_count":24398033,"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-08-07T02:00:09.698Z","response_time":73,"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":["zinit","zsh","zsh-module"],"created_at":"2024-08-01T15:01:15.533Z","updated_at":"2025-08-07T21:03:55.705Z","avatar_url":"https://github.com/zdharma-continuum.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Zinit Module\n\n[![MIT License][mit-badge]][mit-link]\n[![Join the chat at https://gitter.im/zdharma-continuum/zinit][gitter-badge]][gitter-link]\n\n## Motivation\n\nThe module is a binary Zsh module (think about `zmodload` Zsh command, it's that topic) which transparently and\nautomatically **compiles sourced scripts**. Many plugin managers do not offer compilation of plugins, the module is a\nsolution to this. Even if a plugin manager does compile plugin's main script (like Zinit does), the script can source\nsmaller helper scripts or dependency libraries (for example, the prompt `geometry-zsh/geometry` does that) and there are\nvery few solutions to that, which are demanding (e.g. specifying all helper files in plugin load command and\ninvestigating updates to the plugin – in Zinit case: by using `compile` ice-mod).\n\n![image](https://raw.githubusercontent.com/zdharma-continuum/zinit-module/HEAD/images/mod-auto-compile.png)\n\n## Installation\n\n### Without Zinit\n\nTo install just the binary Zinit module **standalone** (Zinit is not needed, the module can be used with any other\nplugin manager), execute:\n\n```zsh\nsh -c \"$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit-module/HEAD/scripts/mod-install.sh)\"\n```\n\nThis script will display what to add to `~/.zshrc` (2 lines) and show usage instructions.\n\n### With Zinit\n\nZinit users can build the module by issuing following command instead of running above `mod-install.sh` script (the\nscript is for e.g. `zgen` users or users of any other plugin manager):\n\n```zsh\nzinit module build\n```\n\nThis command will compile the module and display instructions on what to add to `~/.zshrc`.\n\n## Measuring Time of `source`s\n\nBesides the compilation-feature, the module also measures **duration** of each script sourcing. Issue\n`zpmod source-study` after loading the module at top of `~/.zshrc` to see a list of all sourced files with the time the\nsourcing took in milliseconds on the left. This feature allows to profile the shell startup. Also, no script can\npass-through that check and you will obtain a complete list of all loaded scripts, like if Zshell itself was\ninvestigating this. The list can be surprising.\n\n## Debugging\n\nTo enable debug messages from the module set:\n\n```zsh\ntypeset -g ZINIT_MOD_DEBUG=1\n```\n\n\u003c!-- vim:set ft=markdown tw=80 fo+=1n: --\u003e\n\n[gitter-badge]: https://badges.gitter.im/zdharma-continuum/zinit.svg\n[gitter-link]: https://gitter.im/zdharma-continuum/community\n[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[mit-link]: ./LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzinit-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdharma-continuum%2Fzinit-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzinit-module/lists"}