montanaflynn/asxiv
概要
An AI-powered interface for exploring and understanding arXiv research papers
AI・機械学習できること
- PDF processing enhancements in /api/chat.ts
- UI improvements in ChatWidget.tsx
- Styling updates in CSS modules
- New page types in /pages/pdf/
計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルasXiv
An intelligent AI-powered interface for exploring and understanding arXiv research papers
Quick Start
Prerequisites
- Node.js 18+
- npm, yarn, or pnpm
- Google Gemini API key (Get one here)
Installation
Clone the repository
git clone [email protected]:montanaflynn/asxiv.git cd asxivInstall dependencies
npm installSet up environment variables
cp .env.example .env.localAdd your Gemini API key to
.env.local:GEMINI_API_KEY=your_api_key_hereStart the development server
npm run devOpen the website
Visit the homepage at http://localhost:3000
Configuration
Environment Variables
# Required
GEMINI_API_KEY=your_gemini_api_key
# Optional
GEMINI_MODEL=gemini-2.5-flash-lite
Available Gemini Models:
gemini-2.5-flash-lite- Fastest, lowest cost (default)gemini-2.5-flash- Balanced speed and performancegemini-2.5-pro- Highest quality, slower, more expensive
Development
Project Structure
src/
├── components/
│ ├── ChatWidget.tsx # Main chat interface
│ └── ChatWidget.module.css
├── pages/
│ ├── api/
│ │ └── chat.ts # Gemini API integration
│ ├── pdf/
│ │ └── [...arxivId].tsx # Dynamic PDF viewer pages (supports ArXiv IDs with forward slashes)
│ └── index.tsx # Homepage
└── styles/
└── globals.css # Global styles
Available Scripts
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
Adding New Features
- PDF processing enhancements in
/api/chat.ts - UI improvements in
ChatWidget.tsx - Styling updates in CSS modules
- New page types in
/pages/pdf/
Page Reference Format
The AI uses a standardized format for page references: (page N) where N is the page number. These are automatically converted to clickable links that navigate the PDF viewer. This simple format avoids complex regex parsing while maintaining clean functionality.
Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests if applicable
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Guidelines
- Follow TypeScript best practices
- Use meaningful commit messages
- Add comments for complex logic
- Test your changes thoroughly
- Update documentation as needed
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- arXiv for providing open access to research papers
- Google Gemini for powerful AI capabilities
- PDF.js for excellent PDF rendering
- Next.js for the amazing React framework
Making academic papers more accessible through AI
関連プロジェクトを探す
読み込み中…