{"id":28435204,"url":"https://github.com/skiptools/skip-script","last_synced_at":"2026-04-26T22:00:54.260Z","repository":{"id":189507819,"uuid":"680802484","full_name":"skiptools/skip-script","owner":"skiptools","description":"JavaScriptCore engine for iOS/Android Skip apps","archived":false,"fork":false,"pushed_at":"2026-04-04T14:45:35.000Z","size":287,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-14T01:07:28.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://skip.dev/docs/modules/skip-script/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skiptools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://skip.dev/sponsor"]}},"created_at":"2023-08-20T13:04:31.000Z","updated_at":"2026-04-04T14:45:40.000Z","dependencies_parsed_at":"2023-08-20T14:58:18.312Z","dependency_job_id":"7b130728-5db2-452b-bf58-9c0ebb693ab5","html_url":"https://github.com/skiptools/skip-script","commit_stats":null,"previous_names":["skiptools/skip-script"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/skiptools/skip-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skiptools%2Fskip-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skiptools%2Fskip-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skiptools%2Fskip-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skiptools%2Fskip-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skiptools","download_url":"https://codeload.github.com/skiptools/skip-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skiptools%2Fskip-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32314116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"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":"2025-06-05T20:07:00.410Z","updated_at":"2026-04-26T22:00:54.252Z","avatar_url":"https://github.com/skiptools.png","language":"C","funding_links":["https://skip.dev/sponsor"],"categories":[],"sub_categories":[],"readme":"SkipScript provides a unified interface to the JavaScriptCore script engine on\nboth iOS (using the platform-provided JavaScriptCore libraries) and\non Android (using the bundled libjsc.so library). SkipScript enables\na single scripting language (JavaScript) to be embedded in a dual-platform\nSkip app and provide the exact same behavior on both platforms.\n\n## Setup\n\nTo include this framework in your project, add the following\ndependency to your `Package.swift` file:\n\n```swift\nlet package = Package(\n    name: \"my-package\",\n    products: [\n        .library(name: \"MyProduct\", targets: [\"MyTarget\"]),\n    ],\n    dependencies: [\n        .package(url: \"https://source.skip.dev/skip-script.git\", from: \"1.0.0\"),\n    ],\n    targets: [\n        .target(name: \"MyTarget\", dependencies: [\n            .product(name: \"SkipScript\", package: \"skip-script\")\n        ])\n    ]\n)\n```\n\n# Usage\n\n\u003e [!NOTE]\n\u003e Note that SkipScript will automatically be imported when it is included\nas a dependency and a Swift source file imports the `JavaScriptCore` framework.\n\nIn this case, a subset of the the Objective-C JavaScriptAPI is mimicked on the\nKotlin side, passing the calls through to the underlying C interface to the \nJavaScriptCore API using JNA and [SkipFFI](https://source.skip.dev/skip-ffi/).\n\n\nAn example of evaluating some JavaScript:\n\n```swift\nimport SkipScript\n\nlet ctx = try JSContext()\nlet num = ctx.evaluateScript(\"1 + 2.3\")\nassert(num.toDouble() == 3.3)\n\n```\n\n**NOTE**: JIT compilation is blocked on iOS without a special entitlement, which can drastically impact the performance of JavaScriptCore on iOS compared to either macOS or Android (where JIT is not blocked).\n\n## Implementation\n\nOn iOS and other Darwin platforms, the built-in `JavaScriptCore` libraries will be used. \n\nAndroid, on the other hand, does not ship JSC as part of the operating system, and so the dependency on the Android side will utilize the `org.webkit:android-jsc` package to bundle a native build of JavaScriptCore with the app itself. This will increase the total Android bundle size by between 5-10Mb.\n\n\n## Building\n\nThis project is a Swift Package Manager module that uses the\n[Skip](https://skip.dev) plugin to build the package for both iOS and Android.\n\n## Testing\n\nThe module can be tested using the standard `swift test` command\nor by running the test target for the macOS destination in Xcode,\nwhich will run the Swift tests as well as the transpiled\nKotlin JUnit tests in the Robolectric Android simulation environment.\n\nParity testing can be performed with `skip test`,\nwhich will output a table of the test results for both platforms.\n\n## License\n\nThis software is licensed under the \n[Mozilla Public License 2.0](https://www.mozilla.org/MPL/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskiptools%2Fskip-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskiptools%2Fskip-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskiptools%2Fskip-script/lists"}