{"id":21058566,"url":"https://github.com/schemar/webulator","last_synced_at":"2026-04-21T16:03:25.826Z","repository":{"id":41790849,"uuid":"190458388","full_name":"schemar/webulator","owner":"schemar","description":"A calculator web service","archived":false,"fork":false,"pushed_at":"2023-03-03T00:41:32.000Z","size":430,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T00:08:00.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schemar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-05T19:47:12.000Z","updated_at":"2022-04-03T08:51:23.000Z","dependencies_parsed_at":"2022-08-11T17:21:45.628Z","dependency_job_id":null,"html_url":"https://github.com/schemar/webulator","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/schemar%2Fwebulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fwebulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fwebulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schemar%2Fwebulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schemar","download_url":"https://codeload.github.com/schemar/webulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243503163,"owners_count":20301191,"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":[],"created_at":"2024-11-19T17:08:24.838Z","updated_at":"2025-12-30T16:33:31.160Z","avatar_url":"https://github.com/schemar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webulator\n\nWebulator can return responses to mathematical requests.\nFor example, webulator can return `-527.6060606060606` as the result of the\nrequest `2 * (23/(33))- 23 * (23)`.\n\n## Running webulator\n\nRequirements: node and npm.\nTo run webulator:\n\n```bash\ngit clone https://github.com/schemar/webulator.git\ncd webulator\nnpm ci\nnpm start\n```\n\nBy default, webulator tries to start on port `80`. You can specify a different\nport with the `--port` option. To listen, for example, on port `35000`:\n\n```bash\nnpm start -- --port 35000\n```\n\n## Accessing webulator\n\nAccess webulator under the route `/calculus` with a Base64 encoded query as a\n`query` query parameter. Example:\n\n```\n# base64(\"2 * (23/(33))- 23 * (23)\") =\u003e MiAqICgyMy8oMzMpKS0gMjMgKiAoMjMp\ncurl http://example.com/calculus?query=MiAqICgyMy8oMzMpKS0gMjMgKiAoMjMp\n\n# Response: {\"error\":false,\"result\":-527.6060606060606}\n```\n\nThe response status code is `200` on success, or `4xx`/`5xx` if there is an error.\nThe response body is:\n\n* in the success case: `{\"error\":false,\"result\":\u003cfloat\u003e}`\n* in the error case: `{\"error\":true,\"message\":\u003cstring\u003e}`\n\n## Testing\n\nRun `npm test` to run all tests: linting, unit tests, and integration tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschemar%2Fwebulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschemar%2Fwebulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschemar%2Fwebulator/lists"}