{"id":18468470,"url":"https://github.com/dipankardas011/wae","last_synced_at":"2025-04-08T10:32:27.478Z","repository":{"id":245972475,"uuid":"818937711","full_name":"dipankardas011/wae","owner":"dipankardas011","description":"wae (wasi-app-experiments)","archived":false,"fork":false,"pushed_at":"2024-07-10T12:27:57.000Z","size":32904,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T11:03:19.290Z","etag":null,"topics":["go","greensoftware","openai-api","python","rust","wasi","wasmtime"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dipankardas011.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T09:56:52.000Z","updated_at":"2024-07-26T17:54:18.000Z","dependencies_parsed_at":"2024-07-09T06:26:35.433Z","dependency_job_id":"3c3a6231-45f1-4092-bf36-5187a2a25c95","html_url":"https://github.com/dipankardas011/wae","commit_stats":null,"previous_names":["dipankardas011/automate-using-wasm","dipankardas011/wae"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipankardas011%2Fwae","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipankardas011%2Fwae/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipankardas011%2Fwae/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipankardas011%2Fwae/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipankardas011","download_url":"https://codeload.github.com/dipankardas011/wae/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824106,"owners_count":21002207,"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":["go","greensoftware","openai-api","python","rust","wasi","wasmtime"],"created_at":"2024-11-06T10:06:37.978Z","updated_at":"2025-04-08T10:32:25.130Z","avatar_url":"https://github.com/dipankardas011.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wae (wasi-app-experiments)\n\n![coverimg](./cover.png)\n\nA project which showcases latest development in wasi world. Currently its updated for `wasi@v0.2`. It Helps in accumulate learnings from ML, Green Software and Wasi into a single repo\n\nWhy create this?\nBecuase this is the main selling point of the wasi to be able to create logic indenendent of the language and highly decoplied ways and with low latency and low footprint (Env Sustabanle ;\u003e). aka benifies of multiple people working in different modules of the program but  at the end all are merged and created a single product\n\n## Skills to be achieved\n- use of wasm in real world uscase of FAAS\n- python openai,\n- rust cli\n- watttime api\n- python\n\n## How to use it \n```shell\nmake build\nmake run_**\n```\n\n## Dependency graph\n\n```mermaid\ngraph TD;\n    cli([\"`CLI Written **Rust**`\"])--\u003ecrypto([\"`Crypto Written **Python**`\"]);\n    cli--\u003ewebserver([\"`HTTP webserver Written **Rust** present inside the cli`\"]);\n    cli--\u003egithubapi([\"`Githubapi Written **Python**`\"]);\n    cli--\u003eopenai([\"`OpenAI LLM Written **Python**`\"]);\n    cli--\u003ewatt([\"`Watt_time client Written **Python**`\"]);\n    githubapi--\u003ehttpclient([\"`HTTPClient Written **Rust**`\"]);\n    watt--\u003ehttpclient;\n    openai--\u003ehttpclient;\n    httpclient--\u003ewasi:http;\n```\n\n\u003e `httpclient` uses `waki` crate for the http client\n\n`wasihttpclient` uses the `wasi:http` crate for the http client which is actually used by `waki`\n\n## Component descriptions\n### CLI \nis the main entry point for the application, it is written in rust and uses the `clap` crate for the command line parsing.\n\n### Crypto\nis the module for cryptographic computing, for now its random password generator\n\n### Githubapi\nis the module for interacting with the github api, for now its just a simple get request to the github api\n- latest release of a public repo\n- list contributors of a public repo\n- stars and top 10 of them of a public repo\n\n### OpenAI\nis the module for interacting with the OpenAI language model\n- simple chat bot\n- text to image generation as well\n\n### WattTime\nis the module for interacting with the WattTime api\n- register a free account\n- your location and also region code \n- get forcast for 1 hour\n- get current Co2 moer index\n\n### HTTPClient\nis the module for interacting with the http client, it is written in rust and uses the `waki` which is built on top of `wasi:http` crate for the http client\n\nused by `githubapi`, `watttime` and `openai`\n\n## References \u0026 acknowledgements\n- [dicej](https://github.com/dicej) for all the help on how python, rust and build process of the wasi\n- [L0RD-ZER0](https://github.com/L0RD-ZER0) for the help in implementing in wasi::http::outgoing_handler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipankardas011%2Fwae","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipankardas011%2Fwae","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipankardas011%2Fwae/lists"}