{"id":29647250,"url":"https://github.com/0xadafang/smart_hub","last_synced_at":"2026-04-12T05:31:35.905Z","repository":{"id":301381981,"uuid":"982382527","full_name":"0xAdafang/Smart_Hub","owner":"0xAdafang","description":"All-in-one HR desktop app built with Rust, React \u0026 Tauri. Features an interactive dashboard, leave requests, HR indicators, sales tracking, training modules and a local AI assistant. Offline-first.","archived":false,"fork":false,"pushed_at":"2025-07-05T22:19:02.000Z","size":1339,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T13:51:25.138Z","etag":null,"topics":["ai","crud","desktop","from-scratch","offline-capable","postgresql","react","rust","tailwindcss","tauri","tauri-app","tauri-apps","tauri-rust","typescript","ui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/0xAdafang.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,"zenodo":null}},"created_at":"2025-05-12T19:52:37.000Z","updated_at":"2026-01-13T00:54:22.000Z","dependencies_parsed_at":"2025-06-26T15:48:27.436Z","dependency_job_id":"a87a8569-0f5e-4d51-b7b1-02f5aec3e74c","html_url":"https://github.com/0xAdafang/Smart_Hub","commit_stats":null,"previous_names":["0xadafang/hn_smart_hub","0xadafang/smart_hub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xAdafang/Smart_Hub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FSmart_Hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FSmart_Hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FSmart_Hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FSmart_Hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xAdafang","download_url":"https://codeload.github.com/0xAdafang/Smart_Hub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FSmart_Hub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31705574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T05:11:36.334Z","status":"ssl_error","status_checked_at":"2026-04-12T05:11:27.332Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","crud","desktop","from-scratch","offline-capable","postgresql","react","rust","tailwindcss","tauri","tauri-app","tauri-apps","tauri-rust","typescript","ui"],"created_at":"2025-07-22T03:07:08.228Z","updated_at":"2026-04-12T05:31:35.874Z","avatar_url":"https://github.com/0xAdafang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 Smart Hub\n\n**Smart Hub** is a modern, high-performance, and functional desktop application developed with **Tauri**, **TypeScript**, **Rust**, and **React**. It's designed to centralize HR management, sales, training, and customer support in an ergonomic and responsive environment.\n\n\u003e ⚠️ *Please note: The application is in French to reflect its localized context.*\n\n\u003e ⚠️ *This project contains only dummy data for demonstration purposes.\nNo real company information is included.*\n\n---\n\n## 🎨 Visual Overview\n\n### 🌞 Light Theme\n![Dashboard Light](./images/1.jpg)\n\n### 🌙 Dark Theme\n![Dashboard Dark](./images/2.jpg)\n\n---\n\n## 🚀 Key Features\n\n### 🔐 Secure Authentication\n- Login system with role management (admin / user).\n- Automatic redirection to the appropriate dashboard after login.\n\n### 🧭 Interactive Dashboard\n- Personalized overview based on user role.\n- Dynamic widgets: alerts, remaining vacation days, reminders, HR indicators to process.\n\n### 📊 HR Indicators\n- Employee visualization and evaluation (1–10 rating scales).\n- Role-based access restrictions.\n- Dynamic filters for quick navigation.\n\n### 🌴 Vacation Management\n- Request and approval system.\n- Remaining days counter.\n- Synchronized interactive calendar.\n\n### 🥦 Food Directory\n- Quick access to a food product database.\n- Detailed descriptions useful for customer calls.\n\n### 📞 Telesales\n- Quick entry form with progress gauge.\n- Detailed sales view per user.\n- Statistics \u0026 unlockable achievements.\n- Admin view: comparison, filters, PDF export.\n\n### 🎓 Training\n- Interactive training modules (Acomba, orders, routes, calls, etc.).\n- Integrated validation quizzes.\n- Progress tracking visible to admins.\n\n### 👤 Account Management\n- User creation/modification (admin only).\n- Dynamically assigned roles.\n\n### 👥 Role-Based Interface\n- Personalized user interface.\n- Admins have access to HR management, training, sales, account creation, etc.\n\n### 📆 Events\n- Add reminders to the integrated calendar.\n- Clear visualization of scheduled events.\n\n### ✅ Todo List\n- Simple daily task management.\n- Integrated into the dashboard.\n\n### 🚨 Alert Widget\n- Dynamic notifications based on context (sales to make, customers to call back, etc.).\n\n### 🤖 Local AI Assistant (offline)\n- Embedded local chatbot (Rust - Concept: Regex, Intent, StaticWords, HashMap).\n- Capable of answering business questions (remaining vacation days, product info, etc.).\n- Intent intelligence with semantic recognition.\n\n---\n\n## 🔌 Offline Mode\n\nThe application includes an **offline-first** system:\n- Actions (e.g., vacation requests) are stored locally if the connection fails.\n- Automatic synchronization as soon as the connection is restored.\n\n---\n\n## 🛠️ Tech Stack\n\n| Frontend          | Backend / Software  |\n|-------------------|---------------------|\n| TypeScript        | Rust (Tauri)        |\n| React             | SQLx + PostgreSQL   |\n| Tailwind CSS      |                     |\n| Framer Motion     |                     |\n\n---\n\n## 🧠 Learning Objectives\n\nThis project allowed me to:\n\n- Deepen my knowledge of Rust in a concrete application context.\n- Create a modern design with React + Tailwind.\n- Experiment with offline-first architectures.\n- Integrate a local AI with intent logic.\n- Manage a complete frontend + backend project.\n\n---\n\n## 📸 Credits \u0026 Acknowledgments\n\n- 💡 Interface inspired by the [`tauri-ui`](https://github.com/agmmnn) project by [@agmmnn](https://github.com/agmmnn)\n- 🎨 Color palette: **Marble** (`#F2F8DC`) \u0026 **Dark Blue** (`#0F172A`)\n- 🖼 Icons: [Lucide](https://lucide.dev/)\n- 📊 Charts: [Recharts](https://recharts.org/)\n\n---\n\n## 💼 Author\n\n👨‍💻 **0xAdafang - Térence**  \n📫 [adafang@proton.me]  \n🇨🇦 Project completed in Montreal/Quebec as part of an end-of-studies internship. The application will be deployed and used by the company that hired me for this internship.\n\n---\n\n## 📦 Installation (dev mode)\n\n```bash\ngit clone https://github.com/your-username/smart-hub\ncd hn-smart-hub\n\npsql -U postgres -c \"CREATE DATABASE hn_smart_bdd_demo;\"\npsql -U postgres -d hn_smart_bdd_demo -f sql/hn_smart_bdd_demo.sql\n\n⚠️ This project contains only dummy data for demonstration purposes.\nNo real company information is included.\n\ncreate or modify .env file\n\nDATABASE_URL=postgres://postgres:motdepasse@localhost:5432/hn_smart_bdd_demo (example)\n\nnpm install\nnpm run tauri dev\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xadafang%2Fsmart_hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xadafang%2Fsmart_hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xadafang%2Fsmart_hub/lists"}