{"id":13409017,"url":"https://github.com/bitswired/rustgpt","last_synced_at":"2026-03-17T23:50:04.572Z","repository":{"id":206705446,"uuid":"716528463","full_name":"bitswired/rustgpt","owner":"bitswired","description":"RustGPT is a ChatGPT UI built with Rust + HTMX: the power of Rust coupled with the simplicity of HTMX 💚","archived":false,"fork":false,"pushed_at":"2023-11-23T12:08:11.000Z","size":18870,"stargazers_count":655,"open_issues_count":0,"forks_count":42,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-31T20:32:44.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rustgpt.bitswired.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitswired.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}},"created_at":"2023-11-09T10:23:45.000Z","updated_at":"2024-07-31T13:43:20.000Z","dependencies_parsed_at":"2023-11-23T13:28:47.749Z","dependency_job_id":"de1387ec-d857-4836-b6d4-5cc396ad61d4","html_url":"https://github.com/bitswired/rustgpt","commit_stats":null,"previous_names":["bitswired/rustgpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitswired%2Frustgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitswired%2Frustgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitswired%2Frustgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitswired%2Frustgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitswired","download_url":"https://codeload.github.com/bitswired/rustgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593262,"owners_count":20316157,"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-07-30T20:00:57.325Z","updated_at":"2026-03-17T23:50:04.488Z","avatar_url":"https://github.com/bitswired.png","language":"Rust","readme":"# RustGPT 🦀✨\n\nhttps://github.com/bitswired/rustgpt/assets/19983429/980a88b9-93df-48c7-a438-b232d2830e00\n\nWelcome to the RustGPT repository! Here, you'll find a web ChatGPT clone entirely crafted using Rust and HTMX, where technology meets simplicity and performance. 🚀\n\n- [Try the RustGPT hosted demo](https://rustgpt.bitswired.com)\n- [Read the blog article](https://www.bitswired.com/en/blog/post/rustgpt-journey-rust-htmx-web-dev)\n\n## Introduction\n\nRustGPT is my latest experiment in cloning the abilities of OpenAI's ChatGPT. It represents the fourth iteration in a series of clones, each built with different tech stacks to evaluate their functionality in creating a ChatGPT-like application.\n\nIn this repository, you will find a Rust-based server leveraging the Axum framework combined with HTMX, providing a Rusty web development experience. From database operations to streaming responses, this project covers a broad spectrum of backend functionalities and real-time web interactions.\n\nSo, for Rust enthusiasts and web developers alike, dive in to explore a world where web development is redefined with the power of Rust!\n\n## Features 🌟\n\n- **Rust with Axum Framework**: A fast and reliable server that's all about performance and simplicity.\n- **SQLite**: A lightweight yet powerful database for all your data persistence needs.\n- **Server Sent Events (SSE)**: Real-time streaming made easy to bring life to the ChatGPT interactions.\n- **HTMX**: No hefty JavaScript frameworks needed—HTMX keeps interactions snappy with simple HTML attributes.\n\n## Tech Stack 🛠️\n\n- [`sqlx`](https://github.com/launchbadge/sqlx): Direct and type-safe SQL queries and migrations.\n- [`tera`](https://github.com/Keats/tera): A templating engine inspired by Jinja2, for rendering the HTML views.\n- [`axum`](https://github.com/tokio-rs/axum): A web application framework that's easy to use and incredibly fast.\n\nFor those eyeing some client-side WASM magic, you might also want to check out [Yew](https://github.com/yewstack/yew) or [Leptos](https://github.com/LeptosProject/leptos) for more complex applications.\n\n## Quickstart 🏁\n\nJump right into it by following these steps:\n\n1. Clone the repository.\n2. Create a .env\n\n```\nMIGRATIONS_PATH=db/migrations\nTEMPLATES_PATH=templates\nDATABASE_URL=sqlite:db/db.db\nDATABASE_PATH=db/db.db\nOPENAI_API_KEY=\u003capi-key\u003e (only necessary for tests, users will add their own keys)\n```\n\n3. Install TailwindCSS Standalone in this repository: https://tailwindcss.com/blog/standalone-cli.\n4. `cargo install just`: install Just\n5. `just init`: install additional tools and migrate the db\n6. `just dev`: concurrently run tailwind and cargo run in watch mode\n7. Open your browser and enjoy chatting with your Rust-powered ChatGPT clone (port 3000 by default)\n\n## Contributing 🤝\n\nContributions are what make the open-source community an incredible place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make RustGPT better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thank you again!\n\n## Acknowledgments 🎓\n\nHats off to the wonderful crates and libraries that made RustGPT possible!\n\n---\n\nCreated with 💚 by a Rustacean who believes in the power of Rust for the web! Follow the journey on [Bitswired](https://www.bitswired.com).\n","funding_links":[],"categories":["Others","UIs","Rust","List","\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust"],"sub_categories":["Web applications","ChatGPT"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitswired%2Frustgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitswired%2Frustgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitswired%2Frustgpt/lists"}