{"id":51318050,"url":"https://github.com/thisago/ezscr","last_synced_at":"2026-07-01T09:31:52.205Z","repository":{"id":59485621,"uuid":"534375709","full_name":"thisago/ezscr","owner":"thisago","description":"Portable and easy Nimscript runner. Nim compiler not needed (GUI planned)","archived":false,"fork":false,"pushed_at":"2023-11-19T20:31:56.000Z","size":89,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-02T04:17:53.051Z","etag":null,"topics":["nim","nimscript","portable","script","tool"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/thisago.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-08T20:05:24.000Z","updated_at":"2024-01-03T10:48:05.000Z","dependencies_parsed_at":"2023-01-18T17:30:49.096Z","dependency_job_id":null,"html_url":"https://github.com/thisago/ezscr","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/thisago/ezscr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fezscr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fezscr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fezscr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fezscr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisago","download_url":"https://codeload.github.com/thisago/ezscr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fezscr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35001648,"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-07-01T02:00:05.325Z","response_time":130,"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":["nim","nimscript","portable","script","tool"],"created_at":"2026-07-01T09:31:50.035Z","updated_at":"2026-07-01T09:31:52.194Z","avatar_url":"https://github.com/thisago.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EzScr\n\nPortable and easy Nimscript runner.\n\nWith this tool, you can bundle a lot of scripts and run it everywhere\n\nNo extra binary needed\n\n## Installation\n\nFirst install [Nim](https://nim-lang.org), then run:\n```bash\nnimble install ezscr\n```\nAnd the command `ezscr` will be available in your terminal. (Make sure that\nNimble bin dir is on your PATH)\n\n## Usage\n\nThe usage is very simple and there's just 4 commands that you need to learn!\n\nSee some [examples here](examples/)\n\n### `new`: Create new script (and setup structure)\n\nRun\n\n```bash\nezscr new \u003cSCRIPT NAMES...\u003e [-s]\n```\n\n-s makes the script secret, and needs to provide the secret (password) that can\nbe configured at `config.yaml` (that is created with command `new`)\n\nExample:\n\n```bash\nezscr new helloWorld\n```\n\nReturns:\n\n```\nCreating dir /full/path/to/config\nCreating file /full/path/to/config/config.yaml\nCreating dir /full/path/to/config/secret\nCreating script /full/path/to/config/helloWorld.nims\n```\n\n## Configs\n\nTo edit the secret and aliases, just open the `config.yaml` file.\n\n## `pack`: Pack the scripts\n\nAfter you finished the scripting, you need to pack all the scripts into a encrypted JSON (default name is `data.enc`)\n\nTo do that, just run\n\n```bash\nezscr pack\n```\n\nReturns:\n\n```\nPacking /full/path/to/config/helloWorld.nims\nEncoding data\n```\n\n## `run`: Run script\n\nTo run the script you will need:\n\n- exscr binary\n- `data.enc` with script(s) inside\n\nThe configs dir you cannot delete because there's no decrypt command.\n\nTo run a script just:\n\n```bash\nezscr run helloWorld\n```\n\n## `cleanLib`: Delete all the lib created (in temp)\n\n```bash\nezscr clean_lib\n```\n\n## Features\n\n### Full access to all std lib (supported by Nimscript)\n\nThanks to the [nimscripter](https://github.com/beef331/nimscripter) lib, the\nscripts has full support to Nim's std lib\n\nExample working with json\n\n```nim\nfrom std/json import parseJson, `{}`, getStr\n\nproc main*(params: seq[string]): bool =\n  ## This example fetches a json, parse it and get specific value\n  let\n    node = parseJson \"https://dummyjson.com/products/1\".httpGet.body\n    title = node{\"title\"}.getStr\n    description = node{\"description\"}.getStr\n\n  echo title\n  echo description\n\n  result = title.len \u003e 0 # Return success if there's a title\n```\n\n### Extended lib (undocumented yet)\n\nThere's more procs than just std, you can download files with just one command, encrypt and decrypt strings (using same algorithm that is encoded the `data.enc`) and more\n\nSoon I will finish the documentation\n\n### Static download\n\nWant to import some remote file? No problems!\n\nJust download it by using this syntax:\n\n```nim\n# Note the mandatory space after `\u003e`\n#\u003e staticDownload \"https://example.com/file.txt\"\n```\n\nand import it, see the full example:\n\n```nim\n#\u003e staticDownload \"https://git.ozzuu.com/thisago/util/raw/branch/master/src/util/forStr.nim\"\nimport forStr\n\nproc main*(params: seq[string]): bool =\n  echo \"Hello John Doe!\".between(\"llo \", \" Do\") # -\u003e John\n```\n\nLimitations:\n- You cannot specify the destination\n- The URL cannot contains double quotes (`\"`)\n- One download per line\n- Ignores any download error and proceeds\n\n## TODO\n\n- [ ] Add possibility to add multiple aliases to same script\n- [ ] Add a possibility to reuse same encryption key (instead compilation time),\n  maybe provide in nimble file\n- [ ] Add option to run again x times until the raised exception stop to be\n  raise in `run` command\n- [ ] Add option to process the `main` return (bool) `false` as a raised error\n  and run the script until returns true\n- [ ] Add optional custom destination fot `staticDownload` downloads\n- [ ] Add possibility to import pkg modules from nimble package list\n- [ ] Add listed and unlisted scripts (now all is unlisted)\n- [ ] Add `--help` in scripts, extract from `main` proc doc comment\n- [ ] Add static files in config to pack it and with a internal proc call,\n  access the file\n- [ ] Add a lib extension file like `config/lib.nim` to add more internal procs\n  to the Nimscript scope, adding procs that cannot be ran in Nimscript, like ddl\n  handling\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fezscr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisago%2Fezscr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fezscr/lists"}