π https://knowlet.in
Knowlet is a modern educational platform designed to provide free, structured, and accessible study materials for college students. The platform organizes notes, PDFs, previous year questions, important questions, and academic resources into a clean hierarchical structure for easier learning and navigation.
Knowlet focuses on:
- Fast and distraction-free reading experience
- Structured academic content organization
- Student-friendly UI/UX
- Bookmarking and personalized learning
- Scalable educational content management
- Mobile-first responsive design
The platform supports subjects across multiple disciplines including:
- Mathematics
- Physics
- Computer Science
- Statistics
- Economics
- Political Science
- Education
- Zoology
- Botany
- Alternative English
- And more
- Structured content hierarchy:
- Level β Subject β Paper β Unit β Resource
- Dynamic routing using catch-all slug system
- Rich HTML note rendering
- Resource categorization:
- Notes
- PDFs
- PYQs
- Important Questions
- Email OTP authentication
- Forgot password flow
- Secure OTP hashing
- Session persistence
- User profile management
- Like resources
- Bookmark/save resources
- View history tracking
- Reading statistics
- Delayed history logging for accurate analytics
- Responsive top navigation reader UI
- Resource view counting
- Likes count
- Bookmarks count
- Ratings system
- View history optimization
- App Router architecture
- Optimized database queries
- Parallel RPC fetching
- Responsive layouts
- Lazy loading support
- Optimized navigation structure
- Mobile-first design
- Bottom navigation for mobile
- Fixed responsive top bar
- Dynamic viewport height handling
- Touch-friendly UI
| Category | Technology |
|---|---|
| Frontend | Next.js 15 |
| Language | TypeScript |
| Styling | Tailwind CSS |
| Backend | Supabase |
| Database | PostgreSQL |
| Authentication | Custom OTP Auth |
| Email Service | Resend |
| Icons | Lucide React |
| Notifications | Sonner |
| Hosting | Vercel |
| Legacy Hosting | Netlify |
src/
β
βββ app/
β βββ api/
β βββ auth/
β βββ library/
β βββ bookmarks/
β βββ history/
β βββ public/
β βββ ...
β
βββ components/
β
βββ context/
β
βββ lib/
β
βββ utils/Stores user information and authentication data.
Stores academic resources such as notes, PDFs, and PYQs.
Academic subjects.
Subject papers/semesters.
Unit-wise organization.
Stores saved/bookmarked resources.
Tracks liked resources.
Stores user ratings.
Tracks reading history and engagement.
Secure OTP reset flow support.
git clone https://github.com/your-username/knowlet.gitnpm installCreate a .env.local file:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
RESEND_API_KEY=
NEXT_PUBLIC_SITE_URL=http://localhost:3000npm run devhttp://localhost:3000| Variable | Description |
|---|---|
| NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
| NEXT_PUBLIC_SUPABASE_ANON_KEY | Public Supabase key |
| SUPABASE_SERVICE_ROLE_KEY | Server-side admin access |
| RESEND_API_KEY | Email sending service |
| NEXT_PUBLIC_SITE_URL | Base website URL |
- User enters email
- OTP generated
- OTP hashed and stored
- Verification email sent
- User verified
- User submits email
- Old OTPs removed
- New OTP generated
- OTP email sent
- User verifies OTP
- Password updated securely
The reader system includes:
- Dynamic resource loading
- Bookmark state management
- Like toggling
- View tracking
- Reading analytics
- Responsive reading layout
The reader context manages:
liked;
bookmarked;
toggleLike();
toggleBookmark();
loadResStats();Knowlet uses optimized PostgreSQL RPC functions:
Returns:
{
"views_count": 0,
"likes_count": 0,
"comments_count": 0,
"saved_count": 0,
"rating_avg": 0
}Returns:
{
"liked": false,
"saved": false,
"rated": false,
"my_rating": 0
}- Clean academic interface
- Gradient layouts
- Modern card-based navigation
- Mobile bottom navigation
- Responsive toasts
- Fixed reader topbar
- Optimized spacing system
Knowlet includes:
- About
- Help
- Declaration
- Privacy Policy
- Terms & Conditions
- Custom 404 Page
vercelnpm run buildnpm startPlanned features:
- AI-generated summaries
- Advanced search system
- Offline support
- Progressive Web App (PWA)
- Resource commenting
- Collaborative notes
- Admin dashboard
- Recommendation engine
- Smart learning analytics
Contributions are welcome.
- Fork repository
- Create feature branch
- Commit changes
- Push branch
- Create pull request
This project is licensed under the MIT License.
Developed by Sujan Roy https://sujanroy.in
π https://knowlet.in
If you like the project:
- Star the repository
- Share Knowlet with students
- Contribute improvements
- Report bugs
- Suggest features
For support, suggestions, or collaboration:
π https://knowlet.in