{"id":27642127,"url":"https://github.com/isryven/mujs-ext","last_synced_at":"2025-04-23T23:52:43.436Z","repository":{"id":202013383,"uuid":"207634066","full_name":"isRyven/mujs-ext","owner":"isRyven","description":"ES5 compliant Javascript interpreter","archived":false,"fork":false,"pushed_at":"2020-07-16T16:12:39.000Z","size":1984,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T23:52:37.762Z","etag":null,"topics":["javascript","js","linux","mujs"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isRyven.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-09-10T18:29:51.000Z","updated_at":"2024-12-09T16:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"941b6581-8376-4f05-9e98-f27332ec924c","html_url":"https://github.com/isRyven/mujs-ext","commit_stats":null,"previous_names":["isryven/mujs-ext"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRyven%2Fmujs-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRyven%2Fmujs-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRyven%2Fmujs-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRyven%2Fmujs-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isRyven","download_url":"https://codeload.github.com/isRyven/mujs-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535072,"owners_count":21446506,"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":["javascript","js","linux","mujs"],"created_at":"2025-04-23T23:52:42.674Z","updated_at":"2025-04-23T23:52:43.424Z","avatar_url":"https://github.com/isRyven.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\n__MuJS__ is a ES5 compliant Javascript interpreter, written in plain C. Its lightweight implementation (the source contains around 15000 lines of C) designed for embedding in\nother software to extend them with scripting capabilities. Under 64-bit Linux, the compiled library takes 200kB if optimized for size, and 300kB if optimized for speed. It is a bytecode interpreter with a very fast mechanism to call-out to C. The default build is sandboxed with very restricted access to resources. The API (lua alike) is simple and well documented, and allows strong integration with code written in other languages.\n\n_Note: this repository contains custom MuJS edits, original repository can be found at https://github.com/ccxvii/mujs._\n\n# Changes\n\nHighlighted changes:\n* String performance improvements, most notably ASCII string operations are now fast.\n* String allocations are now more effective.\n* New string API methods to get proper length and size using `js_getstrlen`, `js_getstrsize`.\n* New public API methods to ease the binding implementations.\n* New local registry API to define opaque properties on objects (GC aware).\n* Made `js_malloc`, `js_realloc` and `js_free` available in public API as well.\n* Execute scripts with custom environmental object using `js_loadstringE` API method.\n* New `js_dumpscript` API method to dump compiled script into binary format.\n* Added defines to exclude JS parser and compiler from compiled library.\n* New `js_swap` API method to swap values on the stack.\n* New `js_copyrange` to copy range of values on the stack.\n* New `js_getprototypeof` to get prototype of the object. \n* Stack and instruction sizes are increased to cope with bigger scripts.\n* Stack trace is now printed on error.\n* Added script exit handler, to allow graceful script exit on request.\n\nAll extensions and changes can be found in [CHANGELOG](CHANGELOG.md). \n\n# Documentation\n\nAPI documentation is stored in the `docs` directory.\n\n# COMPILING\n\nCompile on linux:\n```bash\n$ mkdir build \u0026\u0026 cd build\n$ cmake .. -DCMAKE_BUILD_TYPE=Release\n$ make\n```\n\nUse in cmake project:\n```cmake\nadd_subdirectory(\"${CMAKE_CURRENT_SOURCE_DIR}/deps/mujs\")\ntarget_link_libraries(application mujs)\n// #include \u003cmujs/mujs.h\u003e\n```\n\n# LICENSE\n\n```\nMuJS is Copyright 2013-2017 Artifex Software, Inc.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nThe software is provided \"as is\" and the author disclaims all warranties with\nregard to this software including all implied warranties of merchantability\nand fitness. In no event shall the author be liable for any special, direct,\nindirect, or consequential damages or any damages whatsoever resulting from\nloss of use, data or profits, whether in an action of contract, negligence\nor other tortious action, arising out of or in connection with the use or\nperformance of this software.\n```\n\n```\nMIT License\n \nCopyright (c) 2019 isRyven\u003cryven.mt@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n## hashtable\n\n```\nCopyright (c) 2015 Mattias Gustavsson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of \nthis software and associated documentation files (the \"Software\"), to deal in \nthe Software without restriction, including without limitation the rights to \nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies \nof the Software, and to permit persons to whom the Software is furnished to do \nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all \ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE \nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisryven%2Fmujs-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisryven%2Fmujs-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisryven%2Fmujs-ext/lists"}