Prerequisites
Before you begin, ensure you have:- Node.js v18 or later installed
- pnpm package manager
- Git for cloning the repository
If you don’t have pnpm installed, run
npm install -g pnpm to install it globally.Quick Setup
Install dependencies
Set up environment variables
Copy the example environment file:At minimum, you’ll need to configure:For full functionality, you’ll also need API keys for:
.env
- Supabase (database)
- Uploadthing (PDF storage)
- Pinecone (vector embeddings)
- Google AI (LLM features)
- Hugging Face (embeddings)
- Liveblocks (real-time collaboration)
Set up the database
Push the Prisma schema to your database:This creates all necessary tables in your PostgreSQL database.
Start the development server
First Steps with Uxie
Once your application is running, here’s how to get started:Create an account
- Navigate to http://localhost:3000
- Click “Sign in” and authenticate with Google
- Your account will be created automatically
Upload your first PDF
- Click the “Upload” button on the dashboard
- Select a PDF file from your computer
- Wait for the upload to complete (progress indicator will show)
- The PDF will appear in your document library
PDFs are stored using Uploadthing. For local development without Uploadthing, some features may be limited.
Explore core features
After uploading, you can:Reading & Annotation
- Highlight text by selecting it with your mouse
- Add notes by clicking on highlights
- Create image highlights by selecting areas
- Ask questions about the PDF content
- Get AI-generated summaries
- Generate flashcards for learning
- Use text-to-speech for hands-free reading
- Use the BlockNote editor for rich text notes
- Add custom blocks and formatting
- Download notes as Markdown
Try AI features
- Open a PDF document
- Click the AI Chat button
- Ask questions like:
- “Summarize this document”
- “What are the key points on page 5?”
- “Explain this concept in simple terms”
Reading Modes
Uxie offers several specialized reading modes to enhance your learning:- Bionic Reading Mode: Helps you read faster by highlighting key parts of words
- RSVP Reading Mode: Displays one word at a time for focused reading
- Read-Along Mode: Highlights text as it’s being read aloud
- Full-Screen View: Distraction-free reading experience
Next Steps
Installation Guide
Complete setup instructions with all environment variables
Core Features
Explore all available features in detail
API Reference
Learn about the tRPC API endpoints
Contributing
Contribute to Uxie’s development
Troubleshooting
Development server won't start
Development server won't start
Make sure:
- Node.js v18 or later is installed
- All dependencies are installed (
pnpm install) - Environment variables are properly set
- Port 3000 is not in use by another application
Database connection errors
Database connection errors
Verify:
- PostgreSQL is running
- DATABASE_URL is correctly formatted
- Database exists and is accessible
- Run
pnpm prisma db pushto sync the schema
Authentication not working
Authentication not working
Check:
- GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are valid
- NEXTAUTH_SECRET is set
- NEXTAUTH_URL matches your application URL
- Google OAuth redirect URIs include
http://localhost:3000/api/auth/callback/google
PDF upload fails
PDF upload fails
Ensure:
- UPLOADTHING_TOKEN is configured
- You have an active Uploadthing account
- The PDF file is valid and not corrupted
Need Help?
If you encounter issues:- Check the Installation guide for detailed configuration
- Review GitHub Issues for known problems
- Open a new issue with details about your problem
- Submit feedback through the app at https://uxie.vercel.app/feedback
