{"id":21662446,"url":"https://github.com/kimmyxpow/jolly-lang","last_synced_at":"2025-07-17T02:41:36.118Z","repository":{"id":264381641,"uuid":"893201876","full_name":"kimmyxpow/jolly-lang","owner":"kimmyxpow","description":"Jolly - A Fun, Fresh Language Compiler for JavaScript!","archived":false,"fork":false,"pushed_at":"2024-11-25T02:41:13.000Z","size":3144,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:33:59.454Z","etag":null,"topics":["javascript","javascript-compiler","jolly","jolly-lang","typescript"],"latest_commit_sha":null,"homepage":"https://jolly.pow.kim","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/kimmyxpow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.MD","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":"2024-11-23T19:55:09.000Z","updated_at":"2025-03-17T04:03:06.000Z","dependencies_parsed_at":"2024-11-23T21:24:39.559Z","dependency_job_id":"3e77f7fc-de8d-48e2-902d-c1799ac27a9b","html_url":"https://github.com/kimmyxpow/jolly-lang","commit_stats":null,"previous_names":["kimmyxpow/jolly-lang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimmyxpow/jolly-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmyxpow%2Fjolly-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmyxpow%2Fjolly-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmyxpow%2Fjolly-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmyxpow%2Fjolly-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimmyxpow","download_url":"https://codeload.github.com/kimmyxpow/jolly-lang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmyxpow%2Fjolly-lang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265560955,"owners_count":23788284,"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","javascript-compiler","jolly","jolly-lang","typescript"],"created_at":"2024-11-25T10:16:15.912Z","updated_at":"2025-07-17T02:41:36.057Z","avatar_url":"https://github.com/kimmyxpow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎉 Jolly - A Fun, Fresh Language Compiler for JavaScript! 🥳\n\nWelcome to **Jolly**, the happiest way to write and compile JavaScript! 🚀  \nWith Jolly, you can write your code in a **fun, playful syntax** and compile it into plain old JavaScript. Let's make coding a joyful experience again! 🌈✨\n\n## ⚠️ Disclaimer: This is NOT a Serious Project! 🐒\n\n**Jolly** was created purely for fun, learning, and exploration.\n\nIf you're looking for a professional-grade language or compiler, this might not be the right choice. 🤷‍♂️\n\nHowever, if you want to add some joy to your coding life, experiment with playful syntax, or just have a good laugh, Jolly is here for you! 😄\n\n## 🌟 Features\n\n-   🪄 **Custom Syntax**: Use playful keywords like `fun` (function), `lock` (const), `loopy` (for), and more!\n-   ⚡ **Fast Compilation**: Blazing fast transpilation to JavaScript.\n-   🔧 **CLI \u0026 Programmatic Support**: Use Jolly via the command line or in your Node.js project.\n-   🎨 **Minify \u0026 Prettify**: Automatically beautify or shrink your compiled code.\n-   🔍 **Clear Error Reporting**: See exactly where your mistakes are with line numbers and helpful hints.\n\n## 🔧 Installation\n\n### Install Globally (for CLI)\n\nTo use Jolly as a command-line tool:\n\n```bash\nnpm install -g @jolly-lang/compiler\n```\n\n### Install Locally (for Programmatic Use)\n\nTo use Jolly in your Node.js projects:\n\n```bash\nnpm install @jolly-lang/compiler\n```\n\n## 🚀 Usage\n\n### CLI Commands\n\n#### Compile Jolly Files\n\nCompile a `.jolly` file into JavaScript:\n\n```bash\njolly compile path/to/your/file.jolly --output path/to/output.js\n```\n\n#### Run Jolly Files\n\nRun a `.jolly` file directly:\n\n```bash\njolly run path/to/your/file.jolly\n```\n\n#### Additional CLI Options:\n\n-   `--minify`: Minify the compiled JavaScript.\n-   `--prettify`: Prettify the compiled JavaScript.\n\n### Programmatic Usage\n\nUse **JollyCompiler** in your Node.js projects to compile Jolly code programmatically:\n\n#### Example:\n\n```javascript\nimport { JollyCompiler } from '@jolly-lang/compiler';\n\nconst compiler = new JollyCompiler();\nconst jollyCode = `\nlock greeting = \"Hello, Jolly!\";\nconsole.log(greeting);\n`;\n\n// Compile Jolly code to JavaScript\nconst compiledCode = compiler.compile(jollyCode, 'example.jolly');\n\n// Output the compiled JavaScript\nconsole.log(compiledCode);\n```\n\n#### Output:\n\n```javascript\nconst greeting = 'Hello, Jolly!';\nconsole.log(greeting);\n```\n\n## 🖋️ Jolly Syntax Overview\n\nHere’s a quick peek at the **Jolly syntax** and its JavaScript equivalents:\n\n| Jolly Keyword | JavaScript Equivalent | Description                         |\n| ------------- | --------------------- | ----------------------------------- |\n| `fun`         | `function`            | Define a function.                  |\n| `lock`        | `const`               | Declare a constant variable.        |\n| `free`        | `let`                 | Declare a mutable variable.         |\n| `fam`         | `class`               | Create a class.                     |\n| `loopy`       | `for`                 | Create a for loop.                  |\n| `aslong`      | `while`               | Create a while loop.                |\n| `when`        | `if`                  | Conditional statement (if).         |\n| `maybe`       | `else if`             | Additional condition.               |\n| `meh`         | `else`                | Fallback case.                      |\n| `yay`         | `return`              | Return a value.                     |\n| `pls`         | `await`               | Await an async task.                |\n| `call`        | `new`                 | Instantiate a class.                |\n| `pick`        | `switch`              | Switch statement for branching.     |\n| `option`      | `case`                | Case in a switch statement.         |\n| `fallback`    | `default`             | Default case in a switch statement. |\n\n## ✨ Example Code\n\nHere’s how a Jolly file looks compared to JavaScript:\n\n### Jolly:\n\n```jolly\nlock score = 85;\n\nwhen (score \u003e= 90) {\n  console.log(\"You got an A! 🎉\");\n} maybe (score \u003e= 80) {\n  console.log(\"You got a B! 😄\");\n} meh {\n  console.log(\"You need to work harder! 😢\");\n}\n```\n\n### Compiled JavaScript:\n\n```javascript\nconst score = 85;\n\nif (score \u003e= 90) {\n    console.log('You got an A! 🎉');\n} else if (score \u003e= 80) {\n    console.log('You got a B! 😄');\n} else {\n    console.log('You need to work harder! 😢');\n}\n```\n\n## 🌍 Community \u0026 Contribution\n\nWe believe coding should be fun, fresh, and inclusive. Join us on this journey to make coding a little brighter and more enjoyable!\n\n-   Found a bug or have an idea? Open an issue or submit a pull request. 🚀\n-   Share your love for Jolly by starring the repository! 🌟\n-   Want to contribute? Check out the [CONTRIBUTING.md](./CONTRIBUTING.md) guide.\n\n## 📜 License\n\n**Jolly** is licensed under the [MIT License](./LICENSE). Feel free to use it, modify it, and share it with the world! 🌍\n\n---\n\n\u003e **Let’s bring some joy back into coding with Jolly! 🎉💻 But remember, don’t take this too seriously—it’s just for fun! 😉**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmyxpow%2Fjolly-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimmyxpow%2Fjolly-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmyxpow%2Fjolly-lang/lists"}