{"id":19040181,"url":"https://github.com/meteordevelopment/starscript","last_synced_at":"2025-08-21T07:32:10.818Z","repository":{"id":64128139,"uuid":"370057374","full_name":"MeteorDevelopment/starscript","owner":"MeteorDevelopment","description":"Fast text formatting language for Java.","archived":false,"fork":false,"pushed_at":"2025-06-21T17:57:48.000Z","size":119,"stargazers_count":49,"open_issues_count":12,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T18:38:05.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/MeteorDevelopment.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}},"created_at":"2021-05-23T13:15:11.000Z","updated_at":"2025-06-21T17:57:51.000Z","dependencies_parsed_at":"2024-11-08T22:21:35.090Z","dependency_job_id":"2e1a5a9b-8474-4ce8-95a2-8f52c9afa3f8","html_url":"https://github.com/MeteorDevelopment/starscript","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/MeteorDevelopment/starscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeteorDevelopment%2Fstarscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeteorDevelopment%2Fstarscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeteorDevelopment%2Fstarscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeteorDevelopment%2Fstarscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeteorDevelopment","download_url":"https://codeload.github.com/MeteorDevelopment/starscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeteorDevelopment%2Fstarscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271444181,"owners_count":24760739,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":"2024-11-08T22:21:00.324Z","updated_at":"2025-08-21T07:32:10.813Z","avatar_url":"https://github.com/MeteorDevelopment.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starscript\nFast text formatting language for Java.\n\n- Lightweight with no dependencies\n- Faster than `String.format` (See [Benchmark](https://github.com/MeteorDevelopment/starscript/blob/master/src/test/java/org/meteordev/starscript/Benchmark.java))\n- Standard operators + - * / % ^\n- Ability to call functions defined in java\n- Variables can be different each time they are used\n- Conditional output (ternary operator)\n- Variables can be maps\n\n## Examples\n- `Hello {name}!`\n- `Number: {someNumber * 100}`\n- `FPS: {round(fps)}`\n- `Today is a {good ? 'good' : 'bad'} day`\n- `Name: {player.name}`\n\n## Usage\nGradle:\n```groovy\nrepositories {\n    maven {\n        name = \"meteor-maven\"\n        url = \"https://maven.meteordev.org/releases\"\n    }\n}\n\ndependencies {\n    implementation \"org.meteordev:starscript:0.2.3\"\n}\n```\n\nJava:\n```java\n// Parse\nParser.Result result = Parser.parse(\"Hello {name}!\");\n\n// Check for errors\nif (result.hasErrors()) {\n    for (Error error : result.errors) System.out.println(error);\n    return;\n}\n\n// Compile\nScript script = Compiler.compile(result);\n\n// Create starscript instance\nStarscript ss = new Starscript();\nStandardLib.init(ss); // Adds a few default functions, not required\n\nss.set(\"name\", \"MineGame159\");\n// ss.set(\"name\", () -\u003e Value.string(\"MineGame159\"));\n\n// Run\nSystem.out.println(ss.run(script)); // Hello MineGame159!\n```\n\n## Documentation\nFull syntax and features can be found on [wiki](https://github.com/MeteorDevelopment/starscript/wiki).  \nJavadocs can be found [here](https://javadoc.jitpack.io/com/github/MeteorDevelopment/starscript).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteordevelopment%2Fstarscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeteordevelopment%2Fstarscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteordevelopment%2Fstarscript/lists"}