{"id":24329697,"url":"https://github.com/airstrike/iced_openai","last_synced_at":"2026-02-02T22:37:57.404Z","repository":{"id":270716588,"uuid":"911248538","full_name":"airstrike/iced_openai","owner":"airstrike","description":"A minimal OpenAI desktop chat app built with iced","archived":false,"fork":false,"pushed_at":"2025-01-02T15:30:12.000Z","size":1530,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T22:23:24.426Z","etag":null,"topics":["ai","chatbot","example","iced","openai","openai-api"],"latest_commit_sha":null,"homepage":"","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/airstrike.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":"2025-01-02T15:22:23.000Z","updated_at":"2025-01-12T17:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"76b10717-933d-4be3-b91e-5e8b83fccd3f","html_url":"https://github.com/airstrike/iced_openai","commit_stats":null,"previous_names":["airstrike/iced_openai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airstrike%2Ficed_openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airstrike%2Ficed_openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airstrike%2Ficed_openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airstrike%2Ficed_openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airstrike","download_url":"https://codeload.github.com/airstrike/iced_openai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852107,"owners_count":21171839,"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":["ai","chatbot","example","iced","openai","openai-api"],"created_at":"2025-01-18T00:17:20.168Z","updated_at":"2026-02-02T22:37:52.367Z","avatar_url":"https://github.com/airstrike.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# iced_openai\n\nA simple chat application built with [iced](https://github.com/iced-rs/iced) and\n[async_openai](https://github.com/64bit/async-openai) demonstrating how to\ncreate multi-screen desktop applications with asynchronous operations. In this\nparticular case, the application allows you to chat with an OpenAI assistant\nusing your provided API key.\n\n[![Made with iced](https://iced.rs/badge.svg)](https://github.com/iced-rs/iced)\n\n\u003cimg src=\"./demo.gif\" alt=\"Pathfinder Demo\" width=\"600\"/\u003e\n\n\u003c/div\u003e\n\n## Overview\n\nThis example showcases a few useful concepts for building desktop applications with `iced`:\n\n- Multiple screen management (chat list and individual chats)\n- Asynchronous requests to a remote API (OpenAI)\n- Message history tracking and display\n- Markdown rendering\n\nIt could easily be adapted to other use cases, such as a chat client for actual\nmessaging between users, a note-taking application with markdown support, a\ntask manager, etc.\n\n## Prerequisites\n\nYou'll need to create a `.env` file in the project root with your OpenAI API key:\n\n```\nOPENAI_KEY=your-api-key-here\n```\n\n## Project Structure\n\n```\nsrc/\n├── main.rs        # App entry point and top-level state\n├── assistant.rs   # OpenAI API integration\n├── chat.rs        # Chat screen UI and logic\n├── list.rs        # Chat list screen UI and logic\n└── error.rs       # Error handling utilities\n```\n\n## Running the Application is as easy as:\n\n```bash\ncargo run\n```\n\n## Future Improvements\n\nSome basic features that come to mind for future iterations of this project:\n- [ ] Chat deletion\n- [ ] Custom chat titles\n- [ ] Copy and paste messages\n- [ ] Copy and paste codeblocks\n- [ ] Edit previous messages (threads)\n- [ ] Persistent storage of chat history\n- [ ] Automatic .env file creation\n- [ ] Response streaming\n- [ ] Extended OpenAI API usage (model selection, temperature, etc.)\n- [ ] OpenAI assistants API\n- [ ] Custom endpoint for alternative chatbots with OpenAI-compatible APIs\n- [ ] File attachments\n- [ ] Chat export\n\n## Acknowledgements\n\n- [iced](https://github.com/iced-rs/iced)\n- [async-openai](https://github.com/64bit/async-openai) \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nThis is an example project meant for learning purposes, but if you have suggestions for improvements or bug fixes, feel free to open an issue or submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairstrike%2Ficed_openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairstrike%2Ficed_openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairstrike%2Ficed_openai/lists"}