{"id":15967644,"url":"https://github.com/bouraqadi/pharojsmisc","last_synced_at":"2026-02-05T06:02:37.614Z","repository":{"id":169995752,"uuid":"450640310","full_name":"bouraqadi/PharoJsMisc","owner":"bouraqadi","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-05T10:18:09.000Z","size":535,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"pharo12","last_synced_at":"2025-10-05T12:14:18.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","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/bouraqadi.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,"zenodo":null}},"created_at":"2022-01-21T21:08:29.000Z","updated_at":"2025-10-05T10:18:12.000Z","dependencies_parsed_at":"2024-01-05T20:26:50.147Z","dependency_job_id":"90c33298-0912-4604-9fb0-d86169f241f7","html_url":"https://github.com/bouraqadi/PharoJsMisc","commit_stats":null,"previous_names":["bouraqadi/pharojsmisc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bouraqadi/PharoJsMisc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouraqadi%2FPharoJsMisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouraqadi%2FPharoJsMisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouraqadi%2FPharoJsMisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouraqadi%2FPharoJsMisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouraqadi","download_url":"https://codeload.github.com/bouraqadi/PharoJsMisc/tar.gz/refs/heads/pharo12","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouraqadi%2FPharoJsMisc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"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":[],"created_at":"2024-10-07T18:40:35.003Z","updated_at":"2026-02-05T06:02:37.609Z","avatar_url":"https://github.com/bouraqadi.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PharoJsMisc\n\nA collection of experiments and small libraries related to [PharoJS](https://github.com/PharoJS/PharoJS).\n\nTo install any of the projects below evaluate the following expression in a Playground, where `PROJECT_NAME` is replaced by the project you want to install.\n```Smalltalk\nMetacello new\n  baseline: 'PROJECT_NAME';\n  repository: 'github://bouraqadi/PharoJsMisc:pharoXX';\n  load\n ```\nWhere XX is the Pharo image version number.\n\n# Projects\n## H\n### HydrogenComponentsJS\nPort to PharoJS of the [Hydrogen Component framework](https://github.com/bouraqadi/Components).\n## S\n### SmalltalkJsScripts\nSupport to run system command lines via NodeJS.\n\n#### Example 1: echo, pwd, ls, and more\n1. In a playground perform: `SjDemo playground`, as a result, you get:\n  + A terminal will open run node with `SjDemo` class. You'll see between communication logs, the result of `echo`, `pwd`, and `ls` called from the `start` method of `SjDemo`\n  + A PharoJS playground opens where you can interact with the exported code runing on NodeJS\n2. In PharoJS playground type `script := bridge evalBlock: [SjScript default']` to initialize `script` variable with a proxy to JS object `SjScript default`.\n3. Now perform `script echo: 'Hello from Pharo']` with the `print It` menu. As a result, ou get the `'Hello from Pharo'` string displayed on the playground, and on the terminal\n3. You can use the same approach and experiment with `pwd` or `ls`, as well as its variants such as `ls: '-l ~''.\n4. You can run your custom command lines using `execSync:` such as `script execSync: 'ls -l ~ | wc'`\n\n#### Example 2: Start pharo image from NodeJS\n1. In a playground perform: `SjSmalltalkImageLaucher exportApp`\n2. Close image\n3. Navigate to the image folder\n4. Go to subfolder `/pharo-local/iceberg/bouraqadi/PharoJsMisc/HTML/SmalltalkJsScripts/SjSmalltalkImageLaucher`\n5. Run command line `node index.js`. Your original Pharo image should restart :-)\n\n## W\n### WebST: WebComponents with Smalltalk\nWebST is a framework for building Web Components using PharoJS.\nThis project moved to a [dedicated repository](https://github.com/bouraqadi/WebST/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouraqadi%2Fpharojsmisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouraqadi%2Fpharojsmisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouraqadi%2Fpharojsmisc/lists"}