{"id":17124948,"url":"https://github.com/shellyln/liyad-cli","last_synced_at":"2026-05-17T17:03:55.434Z","repository":{"id":74004121,"uuid":"157034374","full_name":"shellyln/liyad-cli","owner":"shellyln","description":"CLI and REPL for Liyad (Lisp yet another DSL interpreter)","archived":false,"fork":false,"pushed_at":"2020-02-16T14:26:41.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T20:34:03.016Z","etag":null,"topics":["cli","dsl-interpreter","javascript","lisp","liyad-cli","node","nodejs","repl"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/shellyln.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-11-11T00:34:23.000Z","updated_at":"2020-03-14T01:29:52.000Z","dependencies_parsed_at":"2023-07-22T02:50:31.028Z","dependency_job_id":null,"html_url":"https://github.com/shellyln/liyad-cli","commit_stats":{"total_commits":95,"total_committers":1,"mean_commits":95.0,"dds":0.0,"last_synced_commit":"d8f1a2256505de6d2ac661800cfc53a81df9d038"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/shellyln/liyad-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fliyad-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fliyad-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fliyad-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fliyad-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellyln","download_url":"https://codeload.github.com/shellyln/liyad-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fliyad-cli/sbom","scorecard":{"id":817586,"data":{"date":"2025-08-11","repo":{"name":"github.com/shellyln/liyad-cli","commit":"d8f1a2256505de6d2ac661800cfc53a81df9d038"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/shellyln/liyad-cli/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/shellyln/liyad-cli/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:22","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:23","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T14:35:10.892Z","repository_id":74004121,"created_at":"2025-08-23T14:35:10.892Z","updated_at":"2025-08-23T14:35:10.892Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231508,"owners_count":25245601,"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-08T02:00:09.813Z","response_time":121,"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":["cli","dsl-interpreter","javascript","lisp","liyad-cli","node","nodejs","repl"],"created_at":"2024-10-14T18:43:45.479Z","updated_at":"2026-05-17T17:03:50.376Z","avatar_url":"https://github.com/shellyln.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Liyad CLI\n### CLI and REPL for [Liyad](https://github.com/shellyln/liyad) (Lisp yet another DSL interpreter).\n\n[![Liyad](https://shellyln.github.io/assets/image/liyad-logo.svg)](https://shellyln.github.io/liyad/)\n\n[![npm](https://img.shields.io/npm/v/liyad-cli.svg)](https://www.npmjs.com/package/liyad-cli)\n[![GitHub release](https://img.shields.io/github/release/shellyln/liyad-cli.svg)](https://github.com/shellyln/liyad-cli/releases)\n[![Travis](https://img.shields.io/travis/shellyln/liyad-cli/master.svg)](https://travis-ci.org/shellyln/liyad-cli)\n[![GitHub forks](https://img.shields.io/github/forks/shellyln/liyad-cli.svg?style=social\u0026label=Fork)](https://github.com/shellyln/liyad-cli/fork)\n[![GitHub stars](https://img.shields.io/github/stars/shellyln/liyad-cli.svg?style=social\u0026label=Star)](https://github.com/shellyln/liyad-cli)\n\n----\n\n## Requirements\n\n* Node \u003e= 10\n\n## Install\n\n```bash\n$ npm install -g liyad-cli\n$ liyad --version\n```\n\n## CLI Usage\n\n```\nUsage: liyad [options] [ -- ] [ -e script | script.lisp | - ] [ -- ] [arguments]\n       liyad [options]\n\nOptions:\n  -                     script read from stdin (default; interactive mode if a tty)\n  --                    indicate the end of CLI options / script files\n  -p, --profile=...     select interpreter profile\n                          S                   S-expression parser\n                          L, lisp (default)   lisp interpreter (return single value)\n                          LM                  lisp interpreter (return multiple values)\n                          L_async, lisp_async lisp interpreter (return single value, enable async)\n                          LM_async            lisp interpreter (return multiple values, enable async)\n                          LSX                 lisp interpreter (return single value, enable LSX)\n                          LSX_async           lisp interpreter (return single value, enable LSX, enable async)\n  --lsx-boot lsxboot.js LSX bootstrap JavaScript file; required if profile LSX or LSX_async is selected.\n  --safe                run as safe mode (disable '$require' and '$node-require')\n  -e, --eval=...        evaluate script\n  -i, --interactive     always enter the REPL even if stdin does not appear to be a terminal\n  -h, --help            print command line options\n  -v, --version         print version informations\n  --cli-version         print cli version informations\n```\n\n## LSX bootstrap file example\n\nlsxboot.js\n```javascript\nconst React = require('react');\nconst ReactDOMServer = require('react-dom/server');\n\n\nclass Hello extends React.Component {\n    render() {\n        return (React.createElement(\"div\", {}, \"hello\"));\n    }\n}\n\n\nexports.dom = React.createElement;\nexports.flagment = React.Fragment;\nexports.render = ReactDOMServer.renderToStaticMarkup;\nexports.components = {\n    Hello,\n};\n```\n\n\n## Packaging to the single executable file.\nUse [pkg](https://www.npmjs.com/package/pkg).\n\n```bash\n$ npm install -g pkg\n$ git clone https://github.com/shellyln/liyad-cli.git\n$ cd liyad-cli\n$ npm ci\n$ pkg . --output liyad\n$ ./liyad --version\n```\n\n## Packaging and publish your codes as the NPM module.\nSee [liyad-lisp-pkg-example](https://github.com/shellyln/liyad-lisp-pkg-example) and [liyad-webapp-example](https://github.com/shellyln/liyad-webapp-example)\n\n### Usage of package:\n\n```bash\n$ npm install -g liyad-cli\n\n$ mkdir myapp\n$ cd myapp\n$ npm install liyad-lisp-pkg-example\n\n$ vi app.lisp\n```\n\napp.lisp\n```lisp\n($let ex ($require \"liyad-lisp-pkg-example\"))\n\n;; Benchmarks\n($console-log (::ex:tarai 12 6 0))\n($console-log (::ex:fib 10))\n($console-log (::ex:fac 10))\n\n;; Run the web server on port 3000.\n($let url ($node-require \"url\"))\n\n(::ex:#get \"/\" (-\u003e (req res)\n    ($let u (::url:parse ::req:url))\n    (::res@writeHead 200 (# (Content-Type \"text/html\")))\n    (::res@end ($concat \"hit / ,\" ::req:method \",\" ::u:path)) ) )\n\n(::ex:serve 3000) ($last \"start server\")\n```\n\n```bash\n$ liyad app.lisp\n\n12\n55\n3628800\nstart server\n```\n\n\n## Additional operators and constants\n\n### $exit\n* `($exit [ code ])`\n    * Exit the process.\n    * returns: never.\n    * `code`: exit code.\n\n### $shell\n* `($shell command)`\n    * Run command.\n    * returns: command output (stdout) string.\n    * `command`: command and arguments.\n        * example: `($shell \"ls -al\")`\n\n### $shell-async\n* `($shell-async command)`\n    * Run command asynchronously.\n    * returns: Promise object resolving command output (stdout) string.\n    * `command`: command and arguments.\n        * example: `($shell-async \"ls -al\")`\n\n### $require\n* `($require id [ profile ])`\n    * Load lisp code from other file.\n    * returns: Exported functions and variables.\n    * `id`: Load from relative path if `id` starts with `./` or `../`. Otherwise load from local or global `node_modules`.\n    * `profile`: (optional) interpreter profile (S/L/lisp/LM/L_async/lisp_async/LM_async).\n        * default value is selected by CLI option `-p` or `--profile`.\n\n### $node-require\n* `($node-require id)`\n    * Load JavaScript code from other file.\n    * returns: Exported functions and variables.\n    * `id`: Load from relative path if `id` starts with `./` or `../`. Otherwise load from local or global `node_modules`.\n\n### $render\n* `($render jsxElement callback)`\n    * Render jsxElement by `LSX-bootstrap.render()` and pass rendering result string or error to `callback`.\n    * returns: `undefined`\n    * `jsxElement`: object returned by `LSX-bootstrap.dom()`.\n    * `callback(error, html)`: callback function called on end of rendering `jsxElement`.\n        * `error`: not null if error is occured.\n        * `html`: rendering result html; null if error is occured.\n\n\n## Additional operator on REPL\n\n### $pause\n* `($pause [ cond ])`\n    * Pause execution and start debugger\n    * returns: `undefined`\n    * `cond`: if it present, pause if condition is `true`.\n\n\n## API\n\n### parseArgs\n* `parseArgs(args)`\n    * Parse CLI arguments.\n    * returns: config object.\n    * `args`: CLI arguments.\n* example: `parseArgs(['-p', 'LSX_async', '--lsx-boot', 'lsxboot.js', 'app.lisp'])`\n\n### cliCore\n* `cliCore(curDir, params)`\n    * Evaluate codes.\n    * returns: `undefined`\n    * `curDir`: current directory.\n    * `params`: config object.\n* example: `cliCore(fs.realpathSync(process.cwd()), parseArgs(process.argv.slice(2)))`\n\n### cli\n* `cli()`\n    * Run CLI.\n    * returns: `undefined`\n\n\n----\n\n## License\n[ISC](https://github.com/shellyln/liyad-cli/blob/master/LICENSE.md)  \nCopyright (c) 2018, Shellyl_N and Authors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyln%2Fliyad-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellyln%2Fliyad-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyln%2Fliyad-cli/lists"}