{"id":21994435,"url":"https://github.com/codelibs/sai","last_synced_at":"2026-04-19T04:32:17.056Z","repository":{"id":57739176,"uuid":"167692570","full_name":"codelibs/sai","owner":"codelibs","description":" JavaScript engine developed in the Java programming language","archived":false,"fork":false,"pushed_at":"2021-06-19T03:23:44.000Z","size":4754,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-28T10:36:18.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codelibs.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":"2019-01-26T13:36:11.000Z","updated_at":"2024-01-13T23:59:26.000Z","dependencies_parsed_at":"2022-08-24T18:20:41.893Z","dependency_job_id":null,"html_url":"https://github.com/codelibs/sai","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Fsai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/sai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052673,"owners_count":20553172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-29T21:08:54.408Z","updated_at":"2026-04-19T04:32:17.050Z","avatar_url":"https://github.com/codelibs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"CodeLibs Sai\n[![Java CI with Gradle](https://github.com/codelibs/sai/actions/workflows/gradle.yml/badge.svg)](https://github.com/codelibs/sai/actions/workflows/gradle.yml)\n=============\n\nSai is a runtime environment for programs written in ECMAScript 5.1 that runs on top of JVM.\nThis project forked from Nashorn.\n\n## Features\n\n- ECMAScript 5.1 implementation\n- Runs on JVM (Java 21+)\n- JSR-223 Script Engine API support\n- High performance bytecode generation using ASM library\n\n## Usage\n\n### Maven\n\nJAR file is available in Maven repository.\nAdd the following dependency to your pom.xml:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.codelibs\u003c/groupId\u003e\n    \u003cartifactId\u003esai\u003c/artifactId\u003e\n    \u003cversion\u003e0.3.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\nAdd the following dependency to your build.gradle:\n\n```gradle\ndependencies {\n    implementation 'org.codelibs:sai:0.3.0-SNAPSHOT'\n}\n```\n\nOr in build.gradle.kts:\n\n```kotlin\ndependencies {\n    implementation(\"org.codelibs:sai:0.3.0-SNAPSHOT\")\n}\n```\n\n## Build\n\n### Requirements\n\n- Java 21 or later\n- Gradle 8.x (included via wrapper)\n\n### Build Commands\n\n```bash\n# Full build (compile, test, javadoc, jar)\n./gradlew build\n\n# Clean build artifacts\n./gradlew clean\n\n# Create JAR only\n./gradlew jar\n\n# Run tests\n./gradlew test\n\n# Run tests in optimistic mode\n./gradlew testOptimistic\n\n# Run tests in pessimistic mode\n./gradlew testPessimistic\n\n# Generate Javadoc\n./gradlew javadoc\n\n# Generate API Javadoc only\n./gradlew javadocApi\n```\n\n### Running JavaScript\n\n```bash\n# Run a sample JavaScript file\n./gradlew run\n\n# Debug mode with code inspection\n./gradlew debug\n```\n\n### Testing\n\n```bash\n# Run all tests\n./gradlew test\n\n# Run test262 ECMAScript compliance tests\n./gradlew test262\n\n# Run test262 in parallel\n./gradlew test262Parallel\n\n# Download external test suites\n./gradlew downloadExternals\n```\n\n## Build Output\n\nAfter building, you'll find the following artifacts in `build/libs/`:\n\n- `sai-X.X.X.jar` - Main JAR file\n- `sai-X.X.X-sources.jar` - Source code JAR\n- `sai-X.X.X-javadoc.jar` - Javadoc JAR\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Fsai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Fsai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Fsai/lists"}