{"id":20279727,"url":"https://github.com/genieframework/stipplemathjs.jl","last_synced_at":"2026-02-25T21:04:24.128Z","repository":{"id":207236570,"uuid":"718759572","full_name":"GenieFramework/StippleMathjs.jl","owner":"GenieFramework","description":"Support of mathjs and complex numbers in Stipple","archived":false,"fork":false,"pushed_at":"2024-12-20T23:38:30.000Z","size":245,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T21:00:44.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/GenieFramework.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":"2023-11-14T18:38:25.000Z","updated_at":"2024-12-31T11:12:41.000Z","dependencies_parsed_at":"2024-02-26T22:48:15.235Z","dependency_job_id":"bcf4471a-81bd-49df-ad7a-033adc4e9c03","html_url":"https://github.com/GenieFramework/StippleMathjs.jl","commit_stats":null,"previous_names":["genieframework/stipplemathjs"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/GenieFramework/StippleMathjs.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieFramework%2FStippleMathjs.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieFramework%2FStippleMathjs.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieFramework%2FStippleMathjs.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieFramework%2FStippleMathjs.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenieFramework","download_url":"https://codeload.github.com/GenieFramework/StippleMathjs.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenieFramework%2FStippleMathjs.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29839964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T20:42:33.054Z","status":"ssl_error","status_checked_at":"2026-02-25T20:42:21.322Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-14T13:32:43.087Z","updated_at":"2026-02-25T21:04:24.094Z","avatar_url":"https://github.com/GenieFramework.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StippleMathjs\n\nStippleMathjs adds [mathjs](https://mathjs.org/) to your [Stipple](https://github.com/GenieFramework/Stipple.jl) or [GenieFramwork](https://github.com/GenieFramework/GenieFramework.jl) project.\n\nFurthermore, it adds automatic conversion of all types of `Complex` numbers between server and client.\n\n# Example App\n\n```julia\nusing Stipple, Stipple.ReactiveTools\nusing StippleUI\nusing StippleMathjs\n\n\nx0 = 1.0\ny0 = 2.0\n\n@app begin\n    @in x = x0\n    @in y = y0\n    @in z = x0 + y0 * im\n    @in z2::ComplexF64 = x0 + y0 * im\n\n    @onchange x, y begin\n        # update z without triggering `@onchange z`\n        z[!] = x + y * im\n\n        # update x and y of the client(s)\n        @push z\n    end\n\n    @onchange z begin\n        # update x and y without triggering `@onchange x, y`\n        x[!] = z.re\n        y[!] = z.im\n\n        # update x and y of the client(s)\n        @push x\n        @push y\n    end\nend\n\n@deps StippleMathjs\n\nfunction ui()\n    [\n        card(class = \"q-pa-md\", [\n            numberfield(class = \"q-ma-md\", \"x\", :x)\n            numberfield(class = \"q-ma-md\", \"y\", :y)\n        ])\n\n        card(class = \"q-pa-md q-my-md\", [\n            row([cell(col = 2, \"z\"),        cell(\"{{ z }}\")])\n            row([cell(col = 2, \"z.mul(z)\"), cell(\"{{ z.mul(z) }}\")])\n            row([cell(col = 2, \"z.abs()\"),  cell(\"{{ z.abs() }}\")])\n\n            btn(class = \"q-my-md\", \"square(z)\", color = \"primary\", @click(\"z = z.mul(z)\"))\n        ])\n    ]\nend\n\n@page(\"/\", ui, debounce = 10)\nup()\n```\n\n![Demo App](./docs/demo.png)\n\nThe example app with a correct Manifest.toml is available on [StippleDemos.jl](https://github.com/GenieFramework/StippleDemos/tree/master/AdvancedExamples/StippleMathjsDemo)\n### Note\n\n- Due to a current bug in Stipple you need to define `x0` and `y0` outside the loop in order to guarantee that z is of the correct type.\nAlternatively, you could declare `z` explicitly, e.g. as `z::ComplexF64`\n\n- This package can serve as a good example how to embed other javascript sources into your own project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenieframework%2Fstipplemathjs.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenieframework%2Fstipplemathjs.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenieframework%2Fstipplemathjs.jl/lists"}