How harishpullagurla/astrix works
Astrix is an academic resource-sharing platform for IIITDMJ. Students browse or search papers, unlock paid resources with AST coins, upload contributions, and participate in community Insights; personalized profile and library views support that workflow. Server actions handle resource, post, and account operations against MongoDB, with uploads also using file storage and Gemini auditing. The README documents curriculum mapping, moderation, reward throttling, and contribution analytics, but sampled excerpts do not establish every implementation link, so those relationships are not expanded. Some route and dashboard behavior is represented from the index and README.
Main entry points: actions.ts Server actions · auth.ts Authentication · upload-modal.tsx Upload form · button.tsx UI primitives
Components 20
Student experience
- Paper browse
src/app/browse/browse-client.tsx - Academic explorer
src/app/explorer/explorer-client.tsx - Community insights
src/app/insights/insights-client.tsx - Resource library
src/app/library/library-client.tsx - Dashboard
src/app/dashboard/dashboard-client.tsx - Personal profile
src/app/profile/page.tsx - Navigation
src/components/navbar.tsx - UI primitives
src/components/ui/button.tsx
Resource contribution
- Upload form
src/components/upload-modal.tsx
Domain services
- Server actions
src/lib/actions.ts - Authentication
src/auth.ts - Auth configuration
src/auth.config.ts - Gemini auditing
- Blob file storage
Identity and data
- MongoDB
src/lib/db.ts - Resource records
src/models/Resource.ts - User records
src/models/User.ts - Insight posts
src/models/Post.ts - Unlock records
src/models/Unlock.ts
Other components
- Student
Connections 25
- Student → Paper browse: searches
- Student → Upload form: contributes
- Paper browse → Server actions: requests papers
src/app/browse/browse-client.tsx - Academic explorer → Server actions: searches and unlocks
src/app/explorer/explorer-client.tsx - Community insights → Server actions: posts and votes
src/app/insights/insights-client.tsx - Upload form → Server actions: submits upload
src/components/upload-modal.tsx - Dashboard → Upload form: opens form
src/app/dashboard/dashboard-client.tsx - Server actions → Authentication: checks session
src/lib/actions.ts - Authentication → Auth configuration: uses configuration
src/auth.ts - Authentication → MongoDB: connects
src/auth.ts - Authentication → User records: reads and creates
src/auth.ts - Server actions → MongoDB: connects
src/lib/actions.ts - Server actions → Resource records: reads and writes
src/lib/actions.ts - Server actions → User records: reads and writes
src/lib/actions.ts - Server actions → Insight posts: reads and writes
src/lib/actions.ts - Server actions → Unlock records: uses unlock records
src/lib/actions.ts - Server actions → Gemini auditing: audits uploads
src/lib/actions.ts - Server actions → Blob file storage: stores files
src/lib/actions.ts - Resource library → Server actions: loads library
src/app/library/page.tsx - Personal profile → Server actions: uses account actions
src/app/profile/page.tsx - Navigation → Server actions: signs out
src/components/navbar.tsx - Paper browse → UI primitives: renders controls
src/app/browse/browse-client.tsx - Academic explorer → UI primitives: renders controls
src/app/explorer/explorer-client.tsx - Community insights → UI primitives: renders controls
src/app/insights/insights-client.tsx - Upload form → UI primitives: renders controls
src/components/upload-modal.tsx