À propos
An AI-powered interface for exploring and understanding arXiv research papers
IA et apprentissage automatiqueWhat you can do
- PDF processing enhancements in /api/chat.ts
- UI improvements in ChatWidget.tsx
- Styling updates in CSS modules
- New page types in /pages/pdf/
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalasXiv
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
Explorer des projets similaires
Chargement…