{"id":38782365,"url":"https://github.com/caoccao/qjs4j","last_synced_at":"2026-01-17T12:27:26.926Z","repository":{"id":331092547,"uuid":"1122276839","full_name":"caoccao/qjs4j","owner":"caoccao","description":"Native Java implementation of QuickJS","archived":false,"fork":false,"pushed_at":"2026-01-02T14:40:05.000Z","size":1111,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T01:43:53.405Z","etag":null,"topics":["java","javascript","quickjs","quickjs-runtime"],"latest_commit_sha":null,"homepage":"","language":"Java","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/caoccao.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-24T12:04:41.000Z","updated_at":"2026-01-02T14:40:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/caoccao/qjs4j","commit_stats":null,"previous_names":["caoccao/qjs4j"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/caoccao/qjs4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoccao%2Fqjs4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoccao%2Fqjs4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoccao%2Fqjs4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoccao%2Fqjs4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caoccao","download_url":"https://codeload.github.com/caoccao/qjs4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoccao%2Fqjs4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["java","javascript","quickjs","quickjs-runtime"],"created_at":"2026-01-17T12:27:26.271Z","updated_at":"2026-01-17T12:27:26.917Z","avatar_url":"https://github.com/caoccao.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qjs4j\n\n[![Build and Test](https://github.com/caoccao/qjs4j/workflows/Build/badge.svg)](https://github.com/caoccao/qjs4j/actions) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nqjs4j is a native Java implementation of QuickJS - a complete reimplementation of the QuickJS JavaScript engine in pure Java (JDK 17+, zero external dependencies).\n\n## Project Status\n\nqjs4j implements ES2024 features with full QuickJS specification compliance. See [detailed feature list](docs/migration/FEATURES.md) for comprehensive implementation status.\n\n### Features Beyond QuickJS\n\nqjs4j includes features not present in the original QuickJS:\n\n- **Float16Array**: IEEE 754 half-precision (16-bit) floating point typed array support\n- **ES2024 Features**: Promise.withResolvers, Object.groupBy, Map.groupBy\n- **Enhanced Module System**: Complete ES6 module implementation with dynamic import()\n- **Microtask Queue**: Full ES2020-compliant microtask infrastructure\n\n### Not Yet Implemented\n\nThe following QuickJS features are planned but not yet implemented:\n\n- **Internationalization (Intl)**: i18n support for dates, numbers, and strings\n- **Top-level await**: Module-level await expressions\n\nSee [ASYNC_AWAIT_ENHANCEMENTS.md](docs/migration/ASYNC_AWAIT_ENHANCEMENTS.md) for async/await implementation details.\n\n## Documentation\n\n- **[Features](docs/migration/FEATURES.md)**: Complete list of implemented JavaScript features\n- **[Migration Status](docs/migration/MIGRATION_STATUS.md)**: Migration progress from QuickJS C to Java\n- **[Async/Await](docs/migration/ASYNC_AWAIT_ENHANCEMENTS.md)**: Async/await and iteration implementation\n\n## Quick Start\n\n```java\nimport com.caoccao.qjs4j.core.*;\n\n// Create a JavaScript runtime and context\ntry (JSContext context = new JSContext(new JSRuntime())) {\n    // Evaluate JavaScript code\n    JSValue result = context.eval(\"2 + 2\");\n    System.out.println(result); // 4\n\n    // Work with objects\n    JSValue obj = context.eval(\"({ name: 'qjs4j', version: '1.0' })\");\n    if (obj instanceof JSObject jsObj) {\n        JSValue name = jsObj.get(\"name\");\n        System.out.println(name); // qjs4j\n    }\n\n    // Use modern JavaScript features\n    JSValue promise = context.eval(\"Promise.resolve(42)\");\n    // Process microtasks to settle promises\n    context.processMicrotasks();\n}\n```\n\n## Architecture\n\nqjs4j is organized into modular packages:\n\n- **core**: Runtime components (JSValue types, JSContext, JSRuntime)\n- **vm**: Virtual machine with bytecode execution and stack management\n- **builtins**: JavaScript built-in objects and prototype methods\n- **compiler**: Parser, lexer, bytecode compiler, and AST\n\nKey technical features:\n- Shape-based optimization with hidden classes\n- Proper SameValueZero equality for Map/Set\n- Complete iterator and async iterator protocols\n- Full prototype-based inheritance\n- Weak references using Java WeakHashMap\n\n## License\n\nApache License 2.0 - see [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoccao%2Fqjs4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaoccao%2Fqjs4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoccao%2Fqjs4j/lists"}