{"id":51124576,"url":"https://github.com/quackster/jsmus","last_synced_at":"2026-06-25T06:01:30.435Z","repository":{"id":355236062,"uuid":"1227314911","full_name":"Quackster/jSMUS","owner":"Quackster","description":"JDK 21 Shockwave Multiuser Server protocol library and server for Java","archived":false,"fork":false,"pushed_at":"2026-05-02T14:21:13.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-02T16:24:40.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Quackster.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":"2026-05-02T14:09:52.000Z","updated_at":"2026-05-02T14:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Quackster/jSMUS","commit_stats":null,"previous_names":["quackster/jsmus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Quackster/jSMUS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FjSMUS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FjSMUS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FjSMUS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FjSMUS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quackster","download_url":"https://codeload.github.com/Quackster/jSMUS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FjSMUS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34761847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-25T06:01:28.550Z","updated_at":"2026-06-25T06:01:30.427Z","avatar_url":"https://github.com/Quackster.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jSMUS\n\njSMUS is a JDK 21 Java port of Bitpart's Shockwave Multiuser Server protocol support. It is designed to be used as a normal Java library and also includes a runnable server entry point.\n\nIt includes:\n\n- Lingo binary value encoding and decoding\n- SMUS packet framing\n- Adobe-compatible Blowfish transform for encrypted login packets\n- A Netty-based embedded SMUS server\n- A small CLI server launcher\n\n## Requirements\n\n- JDK 21 or newer\n- Gradle, unless your consuming project pulls the artifact through JitPack\n\n## Build\n\nFrom this folder:\n\n```powershell\ngradle test\ngradle build\n```\n\nRun the server:\n\n```powershell\ngradle run --args=\"1626 IPAddress resolution\"\n```\n\nThe first argument is the port. The second argument is the SMUS encryption key used for login packets.\n\n## Use As A Library\n\n```java\nimport io.github.bitpart.smus.server.SmusServer;\nimport io.github.bitpart.smus.server.SmusServerConfig;\n\npublic final class Main {\n    public static void main(String[] args) throws Exception {\n        var config = SmusServerConfig.anyAddress(1626, \"IPAddress resolution\");\n\n        try (var server = new SmusServer(config)) {\n            server.start();\n            Thread.currentThread().join();\n        }\n    }\n}\n```\n\nListen for server events:\n\n```java\nimport io.github.bitpart.smus.protocol.SmusMessage;\nimport io.github.bitpart.smus.server.SmusServerListener;\nimport io.github.bitpart.smus.server.User;\n\nvar server = new SmusServer(config, new SmusServerListener() {\n    @Override\n    public void onLogon(User user) {\n        System.out.println(user.name() + \" joined \" + user.movie());\n    }\n\n    @Override\n    public void onMessage(User sender, SmusMessage message) {\n        System.out.println(sender.name() + \": \" + message.subject());\n    }\n});\n```\n\nEncode Lingo values and SMUS messages:\n\n```java\nimport io.github.bitpart.smus.protocol.LValue;\nimport io.github.bitpart.smus.protocol.LingoCodec;\nimport io.github.bitpart.smus.protocol.SmusCodec;\nimport io.github.bitpart.smus.protocol.SmusMessage;\n\nbyte[] content = LingoCodec.encode(new LValue.StringValue(\"hello\"));\nSmusMessage message = SmusMessage.of(\"System\", List.of(\"SomeUser\"), \"Greeting\", content);\nbyte[] frame = SmusCodec.pack(message);\n```\n\n## JitPack\n\nThis repository is configured for JitPack with the root `jitpack.yml`, which builds the `jSMUS` subfolder using JDK 21. The Gradle publication uses JitPack's `GROUP`, `ARTIFACT`, and `VERSION` environment variables when they are present, so the dependency coordinate follows the standard JitPack repository format.\n\nAdd JitPack to your Gradle repositories:\n\n```groovy\nrepositories {\n    mavenCentral()\n    maven { url \"https://jitpack.io\" }\n}\n```\n\nUse Quackster's GitHub repository coordinates:\n\n```groovy\ndependencies {\n    implementation \"com.github.Quackster:jSMUS:TAG\"\n}\n```\n\nReplace `TAG` with a release tag, branch, or commit hash. For example:\n\n```groovy\ndependencies {\n    implementation \"com.github.Quackster:jSMUS:main-SNAPSHOT\"\n}\n```\n\nIf the GitHub repository name changes, replace `jSMUS` in the dependency coordinate with the actual repository name.\n\n## Published API\n\nThe Java module is `io.github.bitpart.smus`. The public API is split across `io.github.bitpart.smus.server`, `io.github.bitpart.smus.protocol`, and `io.github.bitpart.smus.crypto`.\n\nPrimary classes:\n\n- `server.SmusServer`\n- `server.SmusServerConfig`\n- `server.SmusServerListener`\n- `server.User`\n- `protocol.SmusMessage`\n- `protocol.SmusCodec`\n- `protocol.LValue`\n- `protocol.LingoCodec`\n- `crypto.SmusBlowfish`\n\n## License\n\njSMUS uses the same license as Bitpart. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackster%2Fjsmus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquackster%2Fjsmus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackster%2Fjsmus/lists"}