This is a web app called Leximind, which aims to help students improve their English reading.
Leximind uses Theconversation's news.
- Fetches latest articles from The Conversation
- Clean, distraction-free reading interface
- Mobile-responsive design
- Click on any paragraph to get instant translation
- Detailed grammar analysis for each sentence
- Vocabulary explanations with context
- Grammar Points: Comprehensive grammar analysis for each paragraph(文章中句子的文法重點)
- Vocabulary Highlights: Key words and phrases with explanations(句子中單字的解釋以及延伸重點)
- Frontend: Next.js 14, React, TypeScript
- Styling: Tailwind CSS
- UI Components: Lucide React icons
- Security: DOMPurify for HTML sanitization
- API: Gemini API(model: gemini-2.0-flash-001)
- Node.js 18+
- npm or yarn or bun
- Clone the repository
git clone https://github.com/zc-0120/leximind-web-app.git
cd leximind-web-app- Install dependencies
npm install
# or
yarn install-
Add the gemini API-KEY to
/api/v1/trans/route.ts. -
Run the development server
npm run dev
# or
bun dev
# or
yarn dev- Open http://localhost:3000 in your browser.
- Browse Articles: View the latest articles from The Conversation on the home page
- Select Article: Click on any article to open it in reading mode
- Interactive Reading: Click on any paragraph to see:
- Chinese translation(中文翻譯)
- Grammar analysis(句子文法解析)
- Vocabulary explanations(單字重點整理)
- Learn Progressively: Use the detailed explanations to improve your English comprehension.