{"id":47701791,"url":"https://github.com/laserfiche/lf-sample-javascript-script-rules","last_synced_at":"2026-04-02T17:23:48.669Z","repository":{"id":195108586,"uuid":"682319957","full_name":"Laserfiche/lf-sample-javascript-script-rules","owner":"Laserfiche","description":"Sample Laserfiche Nodejs Rule script project","archived":false,"fork":false,"pushed_at":"2025-09-26T17:37:23.000Z","size":349,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"1.x","last_synced_at":"2025-09-26T19:24:25.068Z","etag":null,"topics":["laserfiche","remote-agent","rules","script"],"latest_commit_sha":null,"homepage":"https://developer.laserfiche.com/","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/Laserfiche.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":"2023-08-23T23:26:41.000Z","updated_at":"2025-09-26T17:37:18.000Z","dependencies_parsed_at":"2023-12-19T10:05:59.347Z","dependency_job_id":"b81cdb4e-6fd8-4c9d-b65f-5a1ac26d185c","html_url":"https://github.com/Laserfiche/lf-sample-javascript-script-rules","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"4a944df65eff47a06ba02b669621f93e947f4b6b"},"previous_names":["laserfiche/lf-sample-javascript-script-rules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Laserfiche/lf-sample-javascript-script-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laserfiche%2Flf-sample-javascript-script-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laserfiche%2Flf-sample-javascript-script-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laserfiche%2Flf-sample-javascript-script-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laserfiche%2Flf-sample-javascript-script-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laserfiche","download_url":"https://codeload.github.com/Laserfiche/lf-sample-javascript-script-rules/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laserfiche%2Flf-sample-javascript-script-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["laserfiche","remote-agent","rules","script"],"created_at":"2026-04-02T17:23:47.945Z","updated_at":"2026-04-02T17:23:48.662Z","avatar_url":"https://github.com/Laserfiche.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Laserfiche Nodejs Rule script project\n\nSample javascript scripts that can be invoked from Laserfiche workflow or business process.\n\nScripts are invoked by **Laserfiche Remote Agent** which is a service installed on a Windows PC for this purpose.\n\n## Prerequisites\n\n- [nodejs 16 LTS or later](https://nodejs.org/en)\n- [Visual Studio Code v1.80 or later](https://code.visualstudio.com/download)\n- [A Laserfiche Cloud Account](https://www.laserfiche.com/signon/)\n- [Creating a Node.js Script Documentation](https://doc.laserfiche.com/laserfiche.documentation/en-us/Default.htm#../Subsystems/ProcessAutomation/Content/Resources/Rules/nodejsscript.htm?TocPath=Process%2520Automation%257CRules%257CGetting%2520Started%2520With%2520Scripts%257C_____3)\n\n## Build and Test script\n\nThis project is using [NPM workspaces](https://docs.npmjs.com/cli/v9/using-npm/workspaces?v=true) to setup a mono-repo with multiple packages. Please refer to the documentation for more details.\n\n- Clone this GIT repository\n- Install: `npm install -w source/ -w utility/`\n- Test: `npm test -w source/ -w utility/`\n- Build: `npm run build -w source/`\n\n## Configure a remote agent\n\n- [Remote Agents Documentation](https://doc.laserfiche.com/laserfiche.documentation/en-us/Default.htm#../Subsystems/ProcessAutomation/Content/Resources/Integrations/Remote-Agents/Remote-Agents.htm?TocPath=Process%2520Automation%257CIntegrations%257CRemote%2520Agents%257C_____0)\n  \n## Sample Projects\n\n- [Template Nodejs Script Rule](doc/template/readme.md)\n- [Distance between two zipcodes](doc/distance-between-zipcodes/readme.md)\n\n### Note for bundling\n\n- In all the sample packages, we are using ***rollup*** to bundle all the code (include internal and external dependencies) into a single file. This is not required, but it makes it easier to deploy the code to the remote agent.\n- You can also ***copy the folder*** of source code package into remote agent and manually install the dependencies using `npm install` command.\n- Remote agent only cares the target script file, and it expects the deployment step to ensure the target script is executable during invocation time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserfiche%2Flf-sample-javascript-script-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaserfiche%2Flf-sample-javascript-script-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserfiche%2Flf-sample-javascript-script-rules/lists"}