{"id":19877116,"url":"https://github.com/yehorbk/rtl","last_synced_at":"2026-05-17T00:12:52.056Z","repository":{"id":47910612,"uuid":"236977255","full_name":"yehorbk/rtl","owner":"yehorbk","description":"A library that provides bootstrap functionality and process management tools for JavaScript applications","archived":false,"fork":false,"pushed_at":"2022-02-12T23:57:22.000Z","size":244,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T12:02:47.215Z","etag":null,"topics":["entrypoint","interface","javascript","javascript-library","library","main","process","rtl","runtime","startup-script","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"","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/yehorbk.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}},"created_at":"2020-01-29T12:29:27.000Z","updated_at":"2023-03-07T03:51:53.000Z","dependencies_parsed_at":"2022-08-27T10:42:08.418Z","dependency_job_id":null,"html_url":"https://github.com/yehorbk/rtl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yehorbk/rtl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Frtl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Frtl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Frtl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Frtl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yehorbk","download_url":"https://codeload.github.com/yehorbk/rtl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Frtl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33123128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"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":["entrypoint","interface","javascript","javascript-library","library","main","process","rtl","runtime","startup-script","typescript","typescript-library"],"created_at":"2024-11-12T16:36:38.484Z","updated_at":"2026-05-17T00:12:52.038Z","avatar_url":"https://github.com/yehorbk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Runtime Library\nA library that provides bootstrap functionality and process management tools for JavaScript applications.\nIt allows to extend and `Application` class and implement the `main` function in JavaScript.\n\n# NPM Installation\n```\n$ npm install --save @genericst/rtl\n```\n\n# GitHub Installation\n- Run `npm install` to install dependencies\n- Run `npm build` to build .ts files into .js\n- Run `npm link` to create a temporary link to library cli  \nIf you have a troubles with that commands try to run with `sudo`.\n\n# How to use\n## Syntax\n```\n$ rtl [options]\n```\n\n## Command Line Arguments\n- `-f`: select file\n- `-o`: push arguments to application\n\n## Run\n1. Run with **rtl** (default): `rtl -f demo.js`\n2. Run with **node** (custom): `node ./bin/cli.js -f demo.js`\n\n## Demo\n```\nconst { Application } = require('./rtl-components');\n\nclass Demo extends Application {\n    static main(args) {\n        const { argv } = process;\n        console.dir({ argv, args });\n    }\n}\n\nmodule.exports = Demo;\n```\n\n# Requirements\n- Entry class must be extended of `Application`\n- Entry class must be exported from the file\n- `Main` must be a **static function**\n- Only **`use strict`**, **imports/exports**, **global variables** and **classes** allowed in the file\n\n\n# Scripts\n- `npm start` - build and run application with rtl\n- `npm test` - run tests\n- `npm run-script rtl-run` - run application with rtl\n- `npm run-script build` - build .ts files into .js\n- `npm run-script eslint` - check for syntax mistakes\n\n# Author\n**Yehor Bublyk**: [GitHub](https://github.com/yehorbk) • [Twitter](https://twitter.com/yehorbk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Frtl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyehorbk%2Frtl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Frtl/lists"}