{"id":15169986,"url":"https://github.com/figurestudios/easy-yagna-js","last_synced_at":"2026-01-24T02:34:58.511Z","repository":{"id":122074039,"uuid":"485465291","full_name":"figurestudios/easy-yagna-js","owner":"figurestudios","description":"Running things on Golem is really hard, which is a thing that is agreed upon by most members. This is a solution for uploading dependencies without the \u003cpersonal\u003e use of Docker. Abstracting \u0026 making things high-level is essential for adoption, so hopefully this can be useful for someone. We will upload our node_modules directory to the provider directly, and have the provider extract the contents so that it can use the modules. This is also faster than re-building everytime you need a new module, so even if you understand how it works you may have some interest in implementing this into your workflow. ","archived":false,"fork":false,"pushed_at":"2022-04-25T17:19:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T17:39:29.654Z","etag":null,"topics":["golem"],"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/figurestudios.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}},"created_at":"2022-04-25T17:18:11.000Z","updated_at":"2023-09-08T18:33:56.000Z","dependencies_parsed_at":"2024-01-03T05:15:56.222Z","dependency_job_id":"bec1ac2a-0894-499f-9633-0b5cdf9a0eb3","html_url":"https://github.com/figurestudios/easy-yagna-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/figurestudios/easy-yagna-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figurestudios%2Feasy-yagna-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figurestudios%2Feasy-yagna-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figurestudios%2Feasy-yagna-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figurestudios%2Feasy-yagna-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/figurestudios","download_url":"https://codeload.github.com/figurestudios/easy-yagna-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figurestudios%2Feasy-yagna-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28707900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T23:51:44.727Z","status":"online","status_checked_at":"2026-01-24T02:00:06.909Z","response_time":89,"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":["golem"],"created_at":"2024-09-27T07:43:21.303Z","updated_at":"2026-01-24T02:34:58.487Z","avatar_url":"https://github.com/figurestudios.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy-yagna-js\r\nRunning things on Golem is really hard, which is a thing that is agreed upon by most members. This is a solution for uploading dependencies without the \u003cpersonal\u003e use of Docker. Abstracting \u0026 making things high-level is essential for adoption, so hopefully this can be useful for someone. We will upload our node_modules directory to the provider directly, and have the provider extract the contents so that it can use the modules. This is also faster than re-building everytime you need a new module, so even if you understand how it works you may have some interest in implementing this into your workflow. \r\n\r\n## **Walk-through**\r\nFirst, make sure that you have a `node_modules` directory in your local directory. Otherwise do this on Windows: Right click \u003e New \u003e Folder\r\n  \r\nThen install your dependencies. In this example, we will run `npm install node-emoji`. Make sure that it gets installed in the `node_modules` directory.\r\n  \r\nWe need to install archiver for ourselves to zip the file with our `zip.js` script. Run `npm install archiver`\r\n  \r\nRun `node zip.js` to zip your `node_modules` directory.\r\n  \r\nThe provider will run `npm install extract-zip -g` to install a tool to extract the contents. This is not possible to run on default on Windows, but you don't have to - only the provider has to. It will also extract with this command, but again, you don't have to run this: `extract-zip node_modules.zip`\r\n  \r\nStart your yagna daemon: `yagna service run`\r\n  \r\nEnable the daemon as a requestor: `yagna payment init --sender`\r\n  \r\nSet your YAGNA_APPKEY: `set YAGNA_APPKEY=your-32-char-app-key` (found with `yagna app-key list`)\r\n  \r\nInstall yajsapi: `npm install yajsapi`\r\n  \r\nRun `node requestor.js`\r\n\r\n**Building (optional)**\r\n```\r\n$ docker build -t easyyagnajs:latest .\r\n$ gvmkit-build easyyagnajs:latest\r\n$ gvmkit-build easyyagnajs:latest --push\r\n```\r\nCopy the hash \u0026 swap it out on [this line](https://github.com/figurestudios/easy-yagna-js/blob/main/requestor.js#L5).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigurestudios%2Feasy-yagna-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffigurestudios%2Feasy-yagna-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigurestudios%2Feasy-yagna-js/lists"}