{"id":13582819,"url":"https://github.com/cloudcmd/gritty","last_synced_at":"2026-02-12T13:41:25.213Z","repository":{"id":44454406,"uuid":"83694314","full_name":"cloudcmd/gritty","owner":"cloudcmd","description":"web terminal emulator","archived":false,"fork":false,"pushed_at":"2026-02-10T21:04:55.000Z","size":437,"stargazers_count":113,"open_issues_count":5,"forks_count":27,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-10T23:46:32.714Z","etag":null,"topics":["cloudcmd","console","emulator","nodejs","terminal","tty","vt100","web","xterm"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cloudcmd.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-02T15:38:49.000Z","updated_at":"2026-02-10T21:04:57.000Z","dependencies_parsed_at":"2024-06-12T03:30:46.849Z","dependency_job_id":"7860b349-dd90-46f3-af51-7200124c0e3f","html_url":"https://github.com/cloudcmd/gritty","commit_stats":{"total_commits":487,"total_committers":3,"mean_commits":"162.33333333333334","dds":0.004106776180698102,"last_synced_commit":"68490fbc20c8ecfae22fd0a373bd931c4e56c3c7"},"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"purl":"pkg:github/cloudcmd/gritty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fgritty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fgritty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fgritty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fgritty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcmd","download_url":"https://codeload.github.com/cloudcmd/gritty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fgritty/sbom","scorecard":{"id":292408,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloudcmd/gritty","commit":"720e064fd7b748ac916b0f8b18366bbbcbb8ebc0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/cloudcmd/gritty/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cloudcmd/gritty/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/cloudcmd/gritty/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/cloudcmd/gritty/nodejs.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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-17T18:36:51.794Z","repository_id":44454406,"created_at":"2025-08-17T18:36:51.794Z","updated_at":"2025-08-17T18:36:51.794Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29367527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloudcmd","console","emulator","nodejs","terminal","tty","vt100","web","xterm"],"created_at":"2024-08-01T15:03:03.122Z","updated_at":"2026-02-12T13:41:25.208Z","avatar_url":"https://github.com/cloudcmd.png","language":"JavaScript","readme":"# Gritty [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/gritty.svg?style=flat\u0026longCache=true\n[BuildStatusURL]: https://github.com/cloudcmd/gritty/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/cloudcmd/gritty/workflows/Node%20CI/badge.svg\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\u0026longCache=true\n[NPM_INFO_IMG]: https://nodei.co/npm/cloudcmd.png\n[NPMURL]: https://npmjs.org/package/cloudcmd \"npm\"\n[BuildStatusURL]: https://travis-ci.org/cloudcmd/gritty \"Build Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/cloudcmd/gritty?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/cloudcmd/gritty/badge.svg?branch=master\u0026service=github\n\nWeb terminal emulator. Based on [node-pty](https://github.com/Tyriar/node-pty) and [xterm.js](https://github.com/sourcelair/xterm.js).\n\n![Gritty](https://raw.githubusercontent.com/cloudcmd/gritty/master/img/linux.png \"Gritty on Linux\")\n\n## Install\n\n`npm i gritty -g`\n\n## Usage\n\n```\nUsage: gritty [options]\nOptions:\n  -h, --help              display this help and exit\n  -v, --version           output version information and exit\n  --path                  output path of a gritty and exit\n  --port                  set port number\n  --command               command to run in terminal (shell by default)\n  --auto-restart          restart command when on exit\n  --no-auto-restart       do not restart command on exit\n```\n\n### Windows\n\nOn `Windows` there is no build tools by default. When can't install `gritty` try to install `windows-build-tools` first.\n\n```sh\nnpm i windows-build-tools -g\nnpm i gritty -g\n```\n\n![Gritty](https://raw.githubusercontent.com/cloudcmd/gritty/master/img/windows.png \"Gritty on Windows\")\n\n## Use as standalone\n\nStart `gritty`, and go to url `http://localhost:1337`\n\n## API\n\n### Client API\n\n#### gritty(element [, options])\n\n```js\nconst prefix = '/gritty';\nconst env = {}; // default\nconst fontFamily = 'Courier';\n\ngritty('body', {\n    prefix,\n    env,\n    fontFamily,\n});\n```\n\n### Server API\n\n#### gritty.listen(socket, [, options])\n\n`Gritty` could be used as middleware:\n\n```js\nconst prefix = '/gritty';\n\nconst auth = (accept, reject) =\u003e (username, password) =\u003e {\n    accept();\n};\n\ngritty.listen(socket, {\n    prefix,\n    auth, // optional\n});\n```\n\n#### gritty(options)\n\nMiddleware function:\n\n```js\nconst prefix = '/gritty';\n\ngritty({\n    prefix,\n});\n```\n\n## Usage as middleware\n\nTo use `gritty` in your programs you should make local install:\n\n`npm i gritty socket.io express --save`\n\nAnd use it this way:\n\n```js\n// server.js\nimport http from 'node:http';\nimport {gritty} from 'gritty';\n\nimport express from 'express';\nimport {Server} from 'socket.io';\n\nconst app = express();\nconst server = http.createServer(app);\nconst socket = new Server(server);\n\nconst port = 1337;\nconst ip = '0.0.0.0';\n\napp.use(gritty());\napp.use(express.static(__dirname));\n\ngritty.listen(socket, {\n    command: 'mc', // optional\n    autoRestart: true, // default\n});\n\nserver.listen(port, ip);\n```\n\n```html\n\u003c!-- index.html --\u003e\n\n\u003cdiv class=\"gritty\"\u003e\u003c/div\u003e\n\u003cscript src=\"/gritty/gritty.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const options = {\n        prefix: 'console',\n        command: 'bash', // optional\n        autoRestart: true, // optional\n        cwd: '/', // optional\n        env: {\n            TERMINAL: 'gritty',\n            CURRENT: getCurrentFile,\n        }\n    };\n    \n    gritty('.terminal', options);\n    \n    function getCurrentFile() {\n        return 'filename.txt';\n    }\n\u003c/script\u003e\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript","emulator","web"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fgritty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcmd%2Fgritty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fgritty/lists"}