{"id":13647510,"url":"https://github.com/nodyn/nodyn","last_synced_at":"2025-04-22T02:31:59.150Z","repository":{"id":3225768,"uuid":"4261187","full_name":"nodyn/nodyn","owner":"nodyn","description":"A node.js compatible framework running on the JVM.","archived":false,"fork":false,"pushed_at":"2016-10-13T14:29:51.000Z","size":23094,"stargazers_count":699,"open_issues_count":20,"forks_count":79,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-11-09T21:36:53.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nodyn.io","language":"JavaScript","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/nodyn.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":"2012-05-08T13:51:06.000Z","updated_at":"2024-10-25T10:10:35.000Z","dependencies_parsed_at":"2022-08-26T21:41:48.996Z","dependency_job_id":null,"html_url":"https://github.com/nodyn/nodyn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodyn%2Fnodyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodyn%2Fnodyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodyn%2Fnodyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodyn%2Fnodyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodyn","download_url":"https://codeload.github.com/nodyn/nodyn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250163704,"owners_count":21385293,"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-08-02T01:03:36.885Z","updated_at":"2025-04-22T02:31:58.773Z","avatar_url":"https://github.com/nodyn.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/nodyn/nodyn.png)](http://travis-ci.org/nodyn/nodyn)\n# NOTICE\n\nThis project is no longer being actively maintained. If you have interest in taking over the project, please file an issue.\n\n## What is Nodyn\n\nNodyn is a [node.js](http://nodejs.org) compatible framework on the JVM.\n\nRun node.js applications on the JVM and access to all that the Java world has to\nprovide - directly from Javascript. You've got the entire Java ecosystem at\nyour disposal. Nodyn supports NPM module loading and a large portion of the\ncurrent node.js API.\n\n## Usage\n\nNodyn doesn't yet have an initial release. Until then, to use it, you will need\nto build from source or download a CI SNAPSHOT from\n[Sonatype](https://oss.sonatype.org/content/repositories/snapshots/io/nodyn/nodyn/0.1.1-SNAPSHOT/).\nDownload the latest zip file from Sonatype. It will contain a `./bin/node`\nbinary.  You can use the binary to start an application from a Javascript file,\nor use the REPL to experiment with small snippets of code on the command line.\nThe `./bin/node` binary behaves nearly identically to the native `node` binary.\n\n## Embedding\n\nNodyn can be embedded into existing Java programs and execute scripts like so:\n\n    public class EmbedExample {\n\n        private static final String SCRIPT = \"\" +\n                \"var main = require('./project/main.js');\" +\n                \"main.run();\";\n\n\n        public void runMain(String... args) throws InterruptedException {\n            // Use DynJS runtime\n            RuntimeFactory factory = RuntimeFactory.init(\n                EmbedExample.class.getClassLoader(), \n                RuntimeFactory.RuntimeType.DYNJS);\n\n            // Set config to run main.js\n            NodynConfig config = new NodynConfig( new String[] { \"-e\", SCRIPT } );\n\n            // Create a new Nodyn and run it\n            Nodyn nodyn = factory.newRuntime(config);\n            nodyn.setExitHandler( new NoOpExitHandler() );\n            try {\n                int exitCode = nodyn.run();\n                if (exitCode != 0) {\n                    throw new TestFailureException();\n                }\n            } catch (Throwable t) {\n                throw new TestFailureException( t );\n            }\n        }\n    }\n\n\n## Building Nodyn\n\nTo build nodyn from source, first check out the repo. Since nodyn uses\nnode.js sources for the javascript layer, you will also need to run \n`git submodule init` and `git submodule update` the first time you build.\n\n    $ git clone https://github.com/nodyn/nodyn.git\n    $ cd nodyn\n    $ git submodule init\n    $ git submodule update\n    $ mvn install -s support/settings.xml\n\n## Website\n\nhttp://nodyn.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodyn%2Fnodyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodyn%2Fnodyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodyn%2Fnodyn/lists"}