{"id":28073502,"url":"https://github.com/one-alive/readwise","last_synced_at":"2026-05-05T04:36:33.972Z","repository":{"id":292876398,"uuid":"982235345","full_name":"one-Alive/readwise","owner":"one-Alive","description":"A social book review and discovery platform with real-time, personalized recommendations using FAISS and LDA. Built with Next.js, Tailwind CSS, and TypeScript.","archived":false,"fork":false,"pushed_at":"2025-05-12T15:37:51.000Z","size":5509,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T22:59:22.525Z","etag":null,"topics":["book-discovery","book-recommendation","clerk-auth","clerk-authentication","faiss","lda","nextjs","react","real-time-recommendations","recommender-system","social-platform","tailwindcss","typescript","webapp"],"latest_commit_sha":null,"homepage":"","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/one-Alive.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-12T15:14:43.000Z","updated_at":"2025-05-12T15:43:02.000Z","dependencies_parsed_at":"2025-05-12T16:36:01.603Z","dependency_job_id":"e08c6621-3e57-485f-a815-ee30c237aa82","html_url":"https://github.com/one-Alive/readwise","commit_stats":null,"previous_names":["one-alive/readwise"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-Alive%2Freadwise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-Alive%2Freadwise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-Alive%2Freadwise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-Alive%2Freadwise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-Alive","download_url":"https://codeload.github.com/one-Alive/readwise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253837406,"owners_count":21971982,"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":["book-discovery","book-recommendation","clerk-auth","clerk-authentication","faiss","lda","nextjs","react","real-time-recommendations","recommender-system","social-platform","tailwindcss","typescript","webapp"],"created_at":"2025-05-12T22:59:25.890Z","updated_at":"2026-05-05T04:36:33.912Z","avatar_url":"https://github.com/one-Alive.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 📚 Readwise: Social Book Review Platform\n\nReadwise is a **Next.js (React)** web application developed as part of the research project:\n\n\u003e _\"Accelerating Book Recommendations: Real-Time Personalization on Social Review Platforms with FAISS and LDA\"_\n\nIt enables users to discover, review, and discuss books through real-time, personalized recommendations powered by **FAISS** and **LDA**.\n\n---\n\n## 🚀 Features\n\n- ⚡ **Real-Time Recommendations**: Sub-50ms latency using FAISS and topic modeling (LDA).\n- 🧭 **User Onboarding**: Multi-step flow to initialize reading preferences.\n- 💬 **Social Interactions**: Thread creation, comments, and ratings on books.\n- 🔍 **Book Discovery**: Search, trending books, metadata, and reviews.\n- 👤 **User Profiles**: View personal threads and recommendation history.\n- 💳 **Purchase / Rental System**: Rent or buy books directly within the app.\n- 🌙 **Responsive UI**: Built with Tailwind CSS, dark/light theme switcher, and Geist fonts.\n\n---\n\n## 🛠️ Prerequisites\n\n- **Node.js**: v18.x or higher\n- **npm**: For dependency management\n- **Backend API**: e.g., `https://x.ai/api`\n- **Fonts**: `GeistMonoVF.woff` and `GeistVF.woff` should be placed in `app/fonts/`\n\n---\n\n## ⚙️ Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/one-Alive/readwise.git\ncd readwise\n````\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 3. Configure Environment Variables\n\nCreate a `.env.local` file in the root directory for clerk api\n\n### 4. Start the Development Server\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n---\n\n## 🧪 Usage\n\n### 🔐 Authentication\n\n* `/auth/sign-up`\n* `/auth/sign-in`\n\n### 🧭 Onboarding (`/auth/onboarding`)\n\n1. `welcome.tsx` – Welcome screen\n2. `interests.tsx` – Select interests\n3. `recommendation.tsx` – Preview personalized recommendations\n4. `final.tsx` – Finalize and save preferences\n\n### 📚 Book Discovery\n\n* Trending: `/discover`\n* Search: `/search`\n* Book Details: `/details/[id]`\n\n  * Includes: `BookMetadataCard`, `SampleReviewCard`, and `Comments`\n\n### 💬 Community\n\n* Create threads: `/create-thread`\n* View threads and engage: `/thread/[id]`\n* Rate books using the `Rating` component\n\n### 👤 Profiles\n\n* View user activity: `/profile/[id]`\n* Explore personal threads via `ThreadsTab`\n\n### 💸 Buy or Rent Books\n\n* Rent: `/rentals/[id]/[user_id]`\n* Buy: `/purchase/[id]/[user_id]`\n\n---\n\n## 🖼️ Screenshots\n\nLocated in the `ss/` folder:\n\n* `homepage.png`\n* `onboarding.png`\n* `book-details.png`\n* `recommendations.png`\n* `profile.png`\n\n---\n\n## 📁 Project Structure\n\n```\nreadwise/\n├── app/\n│   ├── (auth)/\n│   │   ├── onboarding/\n│   │   ├── sign-in/\n│   │   └── sign-up/\n│   ├── (root)/\n│   │   ├── create-thread/\n│   │   ├── details/[id]/\n│   │   ├── discover/\n│   │   ├── profile/[id]/\n│   │   ├── purchase/[id]/[user_id]/\n│   │   ├── rentals/[id]/[user_id]/\n│   │   ├── search/\n│   │   └── thread/[id]/\n│   ├── fonts/\n│   └── ThemeProvider.tsx\n├── components/\n│   ├── cards/\n│   ├── forms/\n│   ├── onboarding/\n│   ├── shared/\n│   └── ui/\n├── lib/\n│   ├── actions/\n│   ├── validations/\n│   └── utils.ts\n├── public/\n├── ss/\n├── .env.local\n├── next.config.mjs\n├── tailwind.config.ts\n├── tsconfig.json\n└── README.md\n```\n\n---\n\n## 📦 Scripts\n\n* `npm run dev` – Start development server\n* `npm run build` – Build for production\n* `npm run start` – Launch production build\n\n---\n\n## 🧰 Technologies\n\n* **Next.js** – App Router, SSR, SSG\n* **React + TypeScript** – Component-driven development\n* **Tailwind CSS** – Utility-first styling\n* **Axios** – For API communication\n* **Geist Fonts** – Custom font system\n\n#### CDN Fallbacks\n\n* React: `https://cdn.jsdelivr.net/npm/react@18.2.0/umd/react.production.min.js`\n* ReactDOM: `https://cdn.jsdelivr.net/npm/react-dom@18.2.0/umd/react-dom.production.min.js`\n\n---\n\n## 🌐 API Integration\n\n**Endpoint:** \n\n**Example Request:**\n\n```json\n{\n  \"user_id\": \"user_1\",\n  \"liked_book_ids\": [\"1001\", \"1002\"],\n  \"preferred_author_ids\": [\"author_1\"],\n  \"user_interests\": [\"science\", \"fiction\"],\n  \"top_n\": 5\n}\n```\n\n**Example Response:**\n\n```json\n[\n  {\n    \"book_id\": \"1003\",\n    \"title\": \"Science Book A\",\n    \"similarity\": 0.95\n  }\n]\n```\n\n---\n\n## ⚠️ Note on Backend\n\n\u003e This repository contains **only the frontend**.\n\u003e The **Flask-based backend**, including FAISS, LDA, and recommendation logic, will be released separately.\n\n---\n\n## 🚀 Deployment\n\n```bash\nnpm run build\n```\n\n---\n\n## 📄 License\n\nThis project is licensed under the **MIT License**.\n\n---\n\n## 📬 Contact\n\nQuestions or feedback?\nReach out to **@oneAlive** or open an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-alive%2Freadwise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-alive%2Freadwise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-alive%2Freadwise/lists"}