{"id":40528629,"url":"https://github.com/jag-k/rollup-plugin-scriptable","last_synced_at":"2026-01-20T21:37:33.306Z","repository":{"id":57748907,"uuid":"523906009","full_name":"jag-k/rollup-plugin-scriptable","owner":"jag-k","description":"Create a Scriptable bundle from your project","archived":false,"fork":false,"pushed_at":"2022-08-14T00:40:06.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T04:07:06.078Z","etag":null,"topics":["rollup-plugin","scriptable","scriptable-app"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@jag-k/rollup-plugin-scriptable","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jag-k.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":"2022-08-12T00:20:58.000Z","updated_at":"2025-06-14T01:37:48.000Z","dependencies_parsed_at":"2022-08-27T00:02:01.747Z","dependency_job_id":null,"html_url":"https://github.com/jag-k/rollup-plugin-scriptable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jag-k/rollup-plugin-scriptable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jag-k%2Frollup-plugin-scriptable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jag-k%2Frollup-plugin-scriptable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jag-k%2Frollup-plugin-scriptable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jag-k%2Frollup-plugin-scriptable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jag-k","download_url":"https://codeload.github.com/jag-k/rollup-plugin-scriptable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jag-k%2Frollup-plugin-scriptable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28614749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"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":["rollup-plugin","scriptable","scriptable-app"],"created_at":"2026-01-20T21:37:33.241Z","updated_at":"2026-01-20T21:37:33.297Z","avatar_url":"https://github.com/jag-k.png","language":"TypeScript","readme":"[npm]: https://img.shields.io/npm/v/@jag-k/rollup-plugin-scriptable\n[npm-url]: https://www.npmjs.com/package/@jag-k/rollup-plugin-scriptable\n[main-version]: https://img.shields.io/github/package-json/v/jag-k/rollup-plugin-scriptable?label=main%20version\n[size]: https://packagephobia.com/badge?p=@jag-k/rollup-plugin-scriptable\n[size-url]: https://packagephobia.com/result?p=@jag-k/rollup-plugin-scriptable\n[license]: https://img.shields.io/github/license/jag-k/rollup-plugin-scriptable\n\n# Rollup Plugin Scriptable\n\n[![NPM][npm]][npm-url]\n[![Main version][main-version]](package.json)\n[![License][license]](LICENSE)\n[![Install size][size]][size-url]\n\nCreate a [Scriptable](https://scriptable.app) bundle from your project\n\n## Installation\n\n```shell\nnpm i -D @jag-k/rollup-plugin-scriptable\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport scriptableBundle from \"@jag-k/rollup-plugin-scriptable\";\nimport * as config from \"./config.json\";\n\nexport default {\n  input: 'src/index.js',\n  output: [\n    {\n      file: `dist/widget.js`,\n      format: 'es',\n      plugins: [scriptableBundle(config)]\n    }\n  ]\n};\n```\n\n```json5\n// config.json\n{\n  \"always_run_in_app\": false,\n  \"icon\": {\n    \"color\": \"blue\",\n    \"glyph\": \"users\"\n  },\n  \"name\": \"Widget\",\n  \"share_sheet_inputs\": []\n}\n```\n\nAfter build, you will get 2 files:\n\n```\ndist\n├── HASS Persons.js\n└── HASS Persons.scriptable\n```\n\nIn `.js` file added banner for Scriptable app.\n\n`.scriptable` file contains bundle for Scriptable app.\nThis is `config.json` file with `script` key which value is compiled code.\n\n## Quick Tips\n\nYou can use [`rollup-plugin-copy`](https://npmjs.com/package/rollup-plugin-copy) to copy files to iCloud for easy\ndevelopment and debugging Scriptable scripts.\n\n```js\n// rollup.config.js\nimport { homedir } from 'os';\nimport scriptableBundle from '@jag-k/rollup-plugin-scriptable';\nimport copy from 'rollup-plugin-copy';\nimport * as config from './config.json';\n\nexport default {\n  input: 'src/main.js',\n  output: [\n    {\n      file: `dist/${config.name}.js`,\n      format: 'es',\n      plugins: [scriptableBundle(config)]\n    },\n  ],\n  plugins: process.env.COPY_TO_ICLOUD === 'true' ? [\n    copy({\n      hook: 'writeBundle',\n      targets: [\n        {\n          src: `dist/*.js`,\n          dest: `${homedir()}/Library/Mobile Documents/iCloud~dk~simonbs~Scriptable/Documents/`\n        },\n      ]\n    })\n  ] : []\n};\n```\n\n## License\n\n[Apache 2.0](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjag-k%2Frollup-plugin-scriptable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjag-k%2Frollup-plugin-scriptable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjag-k%2Frollup-plugin-scriptable/lists"}