Skip to content
shashank-785Public

About

LearnOS AI-powered student learning platform

Resources

Stars

62 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

26 Commits

Folders and files

Repository files navigation

LearnOS β€” AI-Powered Student Learning & Career Platform

One workspace for studying smarter, practising code, preparing for exams, and building career-ready skills.

React TypeScript Vite Node.js License

Live Demo Β· Repository


πŸ“Œ 1. Problem Statement: Fragmented Student Learning

Students often have to switch between separate tools to manage their academic and career development:

  1. Scattered study resources: Notes, syllabus material, revision content, and practice questions live in different places.
  2. Disconnected productivity workflows: Timetables, assignments, revision schedules, and focus sessions are difficult to coordinate.
  3. Limited hands-on practice: Students need a convenient place to practise programming, check solutions, and prepare for technical interviews.
  4. Weak progress visibility: Without a unified view of study activity, quiz performance, and completed goals, it is harder to identify what needs attention.

LearnOS brings these workflows together in one student-focused platform.

⚑ 2. What is LearnOS?

LearnOS is a full-stack learning and career development application built with a React and TypeScript frontend and a Node.js/Express backend.

It combines academic support, study planning, document-based revision, coding practice, skill roadmaps, and progress analytics in one interface.

Core Design Goals

  • Unified workspace: Keep essential student workflows accessible from one dashboard.
  • Practical learning: Combine explanations with quizzes, flashcards, coding exercises, and mock interviews.
  • AI-assisted study: Provide tutor and assistant experiences supported by the configured local inference runtime.
  • Progress awareness: Present study activity, quiz performance, and achievements in a single place.

3.🧠 Usefulness of Large Language Models (LLMs)

Large Language Models (LLMs) make LearnOS more interactive, intelligent, and accessible by helping students understand concepts and improve their learning experience.

Key Benefits of LLMs in LearnOS

  1. Personalised Learning: Help students understand difficult academic concepts through conversational explanations.

  2. AI Tutoring: Provide explanations, examples, and guidance on different subjects.

  3. Smart Study Assistance: Help summarise study material and make complex information easier to understand.

  4. Question Generation: Assist in creating practice questions and quizzes for revision.

  5. Programming Support: Explain programming concepts, help understand code, and assist students while learning different programming languages.

  6. Career Preparation: Support interview preparation, technical learning, and skill development.

  7. 24/7 Learning Support: Make learning assistance accessible whenever students need it.

Why LLMs Matter

Traditional learning platforms mainly provide predefined content. LLM-powered applications can offer interactive assistance that responds to individual questions and learning requirements.

By exploring LLM technologies, LearnOS aims to make education more accessible, engaging, and student-focused.

🧩 4. Platform Modules

Module Capabilities
Dashboard Study overview, schedule, tasks, activity, and progress indicators
College Tutor Subject-based learning, syllabus topics, explanations, and practice support
Study Planner Timetable, task board, spaced repetition, and Pomodoro focus timer
Notes & Documents Organised notes, document upload, summaries, MCQs, and flashcards
Exam Centre Quizzes, flashcards, mock exams, score history, and previous-year questions
Coding Lab Programming workspace for Python, JavaScript, C++, and Java
Skill Development Career roadmaps and technical mock interview practice
AI Assistant Conversational academic and career assistance
Analytics Study activity, quiz accuracy, coding progress, and achievements
Profile & Settings Academic profile and application configuration

πŸ—οΈ 5. System Architecture

LearnOS is organised as an npm workspace monorepo.

TEAMBREAK/
β”œβ”€β”€ client/                 # React + TypeScript + Vite frontend
β”‚   └── src/
β”‚       β”œβ”€β”€ components/     # Shared UI components
β”‚       β”œβ”€β”€ pages/          # Feature pages
β”‚       β”œβ”€β”€ services/       # API communication
β”‚       └── types/          # Shared TypeScript contracts
β”‚
β”œβ”€β”€ server/                 # Express + TypeScript backend
β”‚   └── src/
β”‚       β”œβ”€β”€ routes/         # Backend route handlers
β”‚       └── services/       # Application services
β”‚
β”œβ”€β”€ agents/                 # Agent-related project modules
β”œβ”€β”€ docs/                   # Project documentation
β”œβ”€β”€ scripts/                # Build and publishing scripts
β”œβ”€β”€ package.json            # Workspace scripts
└── README.md

Technology Stack

Layer Technologies
Frontend React 18, TypeScript, Vite 5
Styling Tailwind CSS 3
Backend Node.js, Express, TypeScript
Workspace npm workspaces
AI runtime Local Qwen3-1.7B GGUF inference using node-llama-cpp
Persistence JSON-file-based application storage
Code execution Optional isolated Piston-compatible sandbox endpoint
Deployment GitHub Pages frontend; separately hosted backend

🧠 6. AI Inference Architecture

LearnOS is designed to run its configured language model locally on the backend host.

Local Model Workflow

  1. The frontend sends an AI-assisted task to the backend.
  2. The backend AI service handles the request.
  3. The configured Qwen3-1.7B Q8_0 GGUF model is loaded through node-llama-cpp.
  4. The generated result is returned to the application.

Model Setup

npm run setup:model

The deployment guide documents a model download of approximately 1.83 GB into the user's local model directory, outside the repository.

Runtime note: AI generation requires the model files and native runtime to be available on the backend host. If they are missing, the server reports AI as unavailable rather than presenting placeholder generated responses.

🀝 7. BharatCode AI β€” Acknowledgement & Future Scope

During the development of LearnOS, our team was not familiar with the BharatCode AI platform and its capabilities. Consequently, BharatCode AI was not integrated into the current version of the project.

We acknowledge BharatCode AI as an emerging opportunity for future development and plan to explore its API, AI models, and integration possibilities in upcoming iterations.

Our commitment: Continue learning, experimenting, and improving LearnOS by exploring new AI technologies and developer platforms.

πŸ” 8. Data, Security & Current Limitations

The following implementation details are important when running or deploying LearnOS:

  • Storage model: The current integration report describes JSON-file-based persistence.
  • Single-user limitation: The current storage design does not provide per-user ownership isolation. Do not deploy it as a multi-user service containing private student data until this is implemented.
  • Authentication secret: Configure a unique AUTH_SECRET with at least 32 bytes for authenticated API sessions.
  • Secret handling: Keep real environment values in server/.env; never commit secrets.
  • AI availability: Local inference depends on the model weights and native runtime being installed on the backend host.
  • Code execution: An isolated Piston-compatible sandbox endpoint must be configured; code execution is not available by default.

πŸ› οΈ 9. Installation & Quick Start

Prerequisites

  • Node.js
  • npm
  • Git

Step 1 β€” Clone the Repository

git clone https://github.com/shashank-785/TEAMBREAK.git
cd TEAMBREAK

Step 2 β€” Install Dependencies

npm ci

Step 3 β€” Configure Environment Variables

cp server/.env.example server/.env

Set a unique AUTH_SECRET. Generate one with:

node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"

Review the other settings in server/.env.example before starting the backend.

Step 4 β€” Set Up the Local AI Model

npm run setup:model

This is a one-time setup on the machine hosting the backend.

Step 5 β€” Start the Backend

npm run dev:server

Step 6 β€” Start the Frontend

Open a second terminal in the project root:

npm run dev:client

Open the local frontend URL shown by Vite (the deployment guide uses http://localhost:5173).

πŸ§ͺ 10. Build & Test

Run the test suites:

npm test

Build the frontend and backend:

npm run build

Build only the frontend:

npm run build:client

Build only the backend:

npm run build:server

🌐 11. Deployment

The frontend and backend are deployed separately:

For self-hosting, deploy the Express backend on a host that can store and load the local model. Configure the frontend origin in CORS_ORIGINS and set LEARNOS_MODEL_PATH if the model is stored at a custom location.

Important: GitHub Pages can host the frontend, but it cannot host the Express API or run the local language model. Review DEPLOYMENT_GUIDE.md before deploying.

πŸ—ΊοΈ 12. Application Routes

Route Section
/ Dashboard
/tutor College Tutor
/planner Study Planner
/notes Notes & Documents
/exams Exam Centre
/coding Coding Lab
/skills Skill Development
/assistant AI Assistant
/analytics Analytics
/settings Profile & Settings

πŸ“š 13. Project Documentation

🀝 14. Contributing

Contributions and suggestions are welcome.

  1. Fork the repository.
  2. Create a feature branch.
  3. Make focused changes and test them.
  4. Open a pull request with a clear description of the changes.

πŸ“„ License

This project is distributed under the MIT License. See the LICENSE file if included in the repository.


LearnOS β€” Learn. Practise. Improve. Build your future.

Built for students.

About

LearnOS AI-powered student learning platform

Resources

Stars

62 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages