{"id":13772017,"url":"https://github.com/abhimanyu003/qubit","last_synced_at":"2026-03-11T12:15:56.484Z","repository":{"id":45317117,"uuid":"424674956","full_name":"abhimanyu003/qubit","owner":"abhimanyu003","description":"A handy calculator, based on Rust and WebAssembly. ","archived":false,"fork":false,"pushed_at":"2022-01-17T12:19:26.000Z","size":2835,"stargazers_count":88,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T11:05:40.377Z","etag":null,"topics":["calculations","calculator","calculator-application","conversion","math","maths","rust","rust-lang","unit-conversion","webassembly","wsam","yew"],"latest_commit_sha":null,"homepage":"https://abhimanyu003.github.io/qubit/","language":"Rust","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/abhimanyu003.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}},"created_at":"2021-11-04T17:04:09.000Z","updated_at":"2025-04-13T13:20:32.000Z","dependencies_parsed_at":"2022-07-19T03:02:13.369Z","dependency_job_id":null,"html_url":"https://github.com/abhimanyu003/qubit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhimanyu003%2Fqubit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhimanyu003%2Fqubit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhimanyu003%2Fqubit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhimanyu003%2Fqubit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhimanyu003","download_url":"https://codeload.github.com/abhimanyu003/qubit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252657320,"owners_count":21783799,"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":["calculations","calculator","calculator-application","conversion","math","maths","rust","rust-lang","unit-conversion","webassembly","wsam","yew"],"created_at":"2024-08-03T17:00:58.896Z","updated_at":"2026-03-11T12:15:51.091Z","avatar_url":"https://github.com/abhimanyu003.png","language":"Rust","funding_links":[],"categories":["Projects"],"sub_categories":[],"readme":"[![qubit](media/banner.png)](https://abhimanyu003.github.io/qubit/)\n\n# qubit\n\n\u003cdiv align=\"center\"\u003e\n\n **[💥 Visit Website To Use Calculator](https://abhimanyu003.github.io/qubit/)**\n\n [![qubit](media/demo.gif)](https://abhimanyu003.github.io/qubit/)\n\n\u003c/div\u003e\n\n\n## Example\n\n\u003cdiv align=\"center\"\u003e\n\n **[💥 Visit Website To Use Calculator](https://abhimanyu003.github.io/qubit/)**\n\n\u003c/div\u003e\n\n```\n2 + 2\n\nsin( 90 ) + cos ( 120 )\nsqrt(144) + 12\nceil ( 12.12 ) + 22\nfloor( 12.12) + 22\n\n25 % of 100\n25 % on 100\n\n// Conversions\n1024 kb to mb\n22 kg to g\n```\n\n## Operations\n\n### Basic Math\n```\nadd         sub         multiply\ndivide      power       modulus\nrightShift  leftShift\npercentOf   percentOn\n```\n\n_Examples:_\n\n```\n2 + 2\n2 plus 2\n2 ^ 2\n\n10 %of 100\n10 %on 100\n\n100 \u003e\u003e 2\n100 \u003c\u003c 2\n```\n\n### Constants\n\n```\npi\ne\ntau\n```\n\n### Functions\n\nAll trigonometric functions expect input in degrees.\n\n```\nsin     cos     tan\nasin    acos    atan\nsinh    cosh    tanh\n\nlog     sqrt    cbrt\nround   ceil    floor\n```\n\n_Examples:_\n\n```\nround ( 2.4 )\nceil ( 2.3 )\n\nsin ( 90 )\ncos ( 90 )\n\nceil ( 2.2 )\nfloor(3.3)\n```\n\n## Supported Conversions\n\n* Angle\n* Area\n* Digital Information\n* Length\n* Mass\n* Speed\n* Time\n* Temperature\n\n# Development\n\n### Stack qubit is using\n\n* [Rust](https://www.rust-lang.org/) as programing language\n* [Pest](https://pest.rs/) for parser + grammar\n* [Yew](https://yew.rs/) for webassembly\n* [Tailwind](https://tailwindcss.com/) for CSS styles\n\n### Local Development + Enhancement\n\n* Clone the repo\n* Pest Grammar is defined in `src/grammar.pest` file.\n* Conversion chart is `src/convert_chart.rs`\n\nTo start the project locally on `:8080` *run*\n\n```\ntrunk serve\n```\n\nBefore creating pull request you can run sanity checks.\n\n```\ncargo fmt\ncargo check\ncargo test\n```\n\nFinal build ( Optional )\n\n```\ntrunk build --release --public-url=qubit\n```\n\n\n# Contribution\n\nThis project welcomes your PR and issues.\nFor example, refactoring, adding features, correcting English, etc.\nIf you need any help, you can contact me on [Twitter](https://twitter.com/abhimanyu003).\n\nThanks to all the people who already contributed!\n\n\u003ca href=\"https://github.com/abhimanyu003/sttr/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=abhimanyu003/qubit\" /\u003e\n\u003c/a\u003e\n\n# License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhimanyu003%2Fqubit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhimanyu003%2Fqubit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhimanyu003%2Fqubit/lists"}