{"id":15759438,"url":"https://github.com/maksimetny/minecraft-launcher-lib","last_synced_at":"2025-03-13T18:31:58.507Z","repository":{"id":42837111,"uuid":"249390262","full_name":"maksimetny/minecraft-launcher-lib","owner":"maksimetny","description":"Minecraft Launcher Lib (MCLL) is a NodeJS solution for launching modified and vanilla Minecraft client","archived":false,"fork":false,"pushed_at":"2023-03-04T18:29:17.000Z","size":1183,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T12:07:54.328Z","etag":null,"topics":["electron","forge","launcher","minecarft-launcher-lib","minecraft","minecraft-launcher","minecraft-launcher-node","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maksimetny.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}},"created_at":"2020-03-23T09:42:33.000Z","updated_at":"2024-11-19T16:09:01.000Z","dependencies_parsed_at":"2024-09-24T15:01:31.871Z","dependency_job_id":null,"html_url":"https://github.com/maksimetny/minecraft-launcher-lib","commit_stats":{"total_commits":299,"total_committers":4,"mean_commits":74.75,"dds":0.04347826086956519,"last_synced_commit":"cfe70a0fdff8bfee66dc71b40964aca89888a4e0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimetny%2Fminecraft-launcher-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimetny%2Fminecraft-launcher-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimetny%2Fminecraft-launcher-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimetny%2Fminecraft-launcher-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maksimetny","download_url":"https://codeload.github.com/maksimetny/minecraft-launcher-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165509,"owners_count":20246723,"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":["electron","forge","launcher","minecarft-launcher-lib","minecraft","minecraft-launcher","minecraft-launcher-node","nodejs","typescript"],"created_at":"2024-10-04T10:05:27.343Z","updated_at":"2025-03-13T18:31:57.930Z","avatar_url":"https://github.com/maksimetny.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nMinecraft Launcher Lib (MCLL) is a NodeJS solution for launching modified and vanilla Minecraft client.\n\n![logo](https://raw.githubusercontent.com/maksimetny/minecraft-launcher-lib/master/logo.jpg)\n\n## Installing\n\n`npm i minecraft-launcher-lib`\n\nUse only latest version of [MCLL](https://www.npmjs.com/package/minecraft-launcher-lib) module.\n\n## Usage\n\n```typescript\nimport { Launcher, LauncherFolder, MVersion, readJson } from 'minecraft-launcher-lib';\nimport { join } from 'path';\n\nconst folder = LauncherFolder.from(LAUNCHER_ROOT);\nconst versionJsonPath = join(folder.getVersionPath(VERSION_ID), VERSION_ID + '.json');\n\nconst launcher = new Launcher({\n    auth: {\n        accessToken: AUTH_ACCESS_TOKEN,\n        user: {\n            uuid: AUTH_USER_UUID,\n            type: AUTH_USER_TYPE,\n            name: AUTH_USER_NAME,\n            properties: {},\n        },\n    },\n    minecraftVersion: MVersion.from(await readJson(versionJsonPath)),\n    folder,\n    // platform: { name: OS.WINDOWS, version: '10.0' },\n    features: {\n        has_fullscreen: true,\n\n        // has_autoconnect: { server_host: 'localhost', server_port: '25565' },\n        // has_autoconnect: true,\n\n        // has_custom_resolution: { resolution_width: '800', resolution_height: '600' },\n        // has_custom_resolution: true, // if use this, defaults value will be used\n\n        has_custom_memory: { memory_max: '1G', memory_min: '512M' },\n        // has_custom_memory: true,\n\n        ignore_patch_discrepancies: true,\n        ignore_invalid_minecraft_certificates: true,\n\n        is_demo_user: true,\n    },\n    // extraArgs: { game: [], jvm: [] },\n    overrides: {\n        'launcher_name': 'MCLL', // override launcher brand (defaults: minecraft-launcher-lib)\n        'launcher_version': '1.0.0', // defaults `release`\n        'version_type': 'demo', // defaults inherits minecraft version id\n    },\n});\n\nconst childProcess = launcher.launch();\nconst log = (data: string) =\u003e console.log(`[${childProcess.pid}] ${data}`);\n\nif (childProcess.stdout) {\n    childProcess.stdout.setEncoding('utf-8');\n    childProcess.stdout.on('data', (data) =\u003e log(data));\n}\n\nif (childProcess.stderr) {\n    childProcess.stderr.setEncoding('utf-8');\n    childProcess.stderr.on('data', (data) =\u003e log(data));\n}\n\nchildProcess.on('close', (code) =\u003e console.log('minecraft exited with code: ' + code));\n```\n\nA detailed description of the use is in `usage.md`.\n\n## License\n\nThe MIT license. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimetny%2Fminecraft-launcher-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksimetny%2Fminecraft-launcher-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimetny%2Fminecraft-launcher-lib/lists"}