Skip to content

badhope/HumanOS

HumanOS Reborn

License: MIT Node.js React TypeScript Build Status Code Coverage GitHub stars GitHub forks PRs Welcome

HumanOS Banner

Next-Generation Personality Assessment Platform

๐ŸŒ ไธญๆ–‡ โ€ข ๐Ÿ“– English

Live Demo ยท Documentation ยท Contributing ยท Changelog


โœจ Features

๐ŸŽฏ Core Features

Feature Description
๐Ÿ“Š 30+ Assessments Comprehensive personality, cognitive, and psychological evaluations
๐ŸŽจ Modern UI/UX Glassmorphism design with 3D animations and particle effects
๐Ÿ“ฑ Fully Responsive Seamless experience across desktop, tablet, and mobile
๐Ÿ”’ Privacy-First All data stored locally - no servers, no tracking
โšก High Performance Optimized for Lighthouse scores >90 in all categories
๐ŸŒ i18n Ready English primary, Chinese available

๐Ÿงช Assessment Categories

Category Count Examples
๐Ÿง  Personality & Psychology 8+ MBTI, Big Five, Anxiety, EQ
๐Ÿ’ผ Career & Work 6+ Leadership, Teamwork, Communication
โค๏ธ Relationships 5+ Attachment Style, Social Skills
๐Ÿงฉ Cognitive & Thinking 4+ Problem Solving, Critical Thinking
๐Ÿƒ Health & Lifestyle 4+ Stress Management, Well-being
๐Ÿ’ก Values & Philosophy 3+ Ethical Framework, Life Purpose

๐ŸŽฎ Difficulty Modes

Each assessment offers three difficulty levels:

Mode Questions Depth Use Case
๐ŸŸข Standard 30 Core competencies Quick self-check
๐ŸŸก Hard 60 +30% dimensions Comprehensive analysis
๐Ÿ”ด Expert 100 Full spectrum Professional assessment

๐Ÿ› ๏ธ Technical Stack

Technology Purpose
React 18 UI framework
TypeScript 5 Type safety
Vite 5 Build tool
Zustand State management
Framer Motion Animations
Three.js 3D backgrounds
Tailwind CSS Styling
Recharts Data visualization

๐Ÿš€ Quick Start

Prerequisites

  • Node.js: v18.0.0 or higher
  • npm: v9.0.0 or higher
  • Browser: Modern browsers (Chrome 90+, Firefox 90+, Safari 14+, Edge 90+)

Installation

# Clone the repository
git clone https://github.com/badhope/HumanOS.git
cd HumanOS

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Available Scripts

Command Description
npm run dev Start development server (http://localhost:5173)
npm run build Build for production
npm run preview Preview production build
npm run lint Run ESLint
npm run format Format code with Prettier

๐Ÿ“– Documentation

Project Structure

HumanOS/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/       # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ AssessmentCard3D.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Layout.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Navbar.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ ParticleBackground.tsx
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ pages/            # Page components
โ”‚   โ”‚   โ”œโ”€โ”€ Home.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Assessment.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Results.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard.tsx
โ”‚   โ”‚   โ””โ”€โ”€ About.tsx
โ”‚   โ”œโ”€โ”€ data/             # Static data & configurations
โ”‚   โ”‚   โ””โ”€โ”€ assessments.ts
โ”‚   โ”œโ”€โ”€ store/            # Zustand state management
โ”‚   โ”œโ”€โ”€ types/            # TypeScript type definitions
โ”‚   โ””โ”€โ”€ utils/            # Utility functions
โ”œโ”€โ”€ public/               # Static assets
โ”œโ”€โ”€ .github/              # GitHub configuration
โ”‚   โ”œโ”€โ”€ ISSUE_TEMPLATE/   # Issue templates
โ”‚   โ”œโ”€โ”€ workflows/        # CI/CD pipelines
โ”‚   โ””โ”€โ”€ PULL_REQUEST_TEMPLATE.yml
โ”œโ”€โ”€ docs/                 # Additional documentation
โ”œโ”€โ”€ ARCHITECTURE.md       # System architecture
โ”œโ”€โ”€ CONTRIBUTING.md       # Contribution guidelines
โ”œโ”€โ”€ CODE_OF_CONDUCT.md    # Community code of conduct
โ”œโ”€โ”€ CHANGELOG.md          # Version history
โ”œโ”€โ”€ LICENSE               # MIT License
โ””โ”€โ”€ README.md             # This file

Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      App Shell                           โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚              Layout Component                     โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ Navbar  โ”‚  โ”‚        Main Content          โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚                โ”‚  โ”‚      Page Routes       โ”‚  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚                โ”‚  โ”‚  Home / Assessment /   โ”‚  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚                โ”‚  โ”‚  Results / Dashboard   โ”‚  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚                โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚                โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚              Footer                          โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚           Background Layer (Z-index: 0)           โ”‚   โ”‚
โ”‚  โ”‚   - ParticleBackground (animated particles)       โ”‚   โ”‚
โ”‚  โ”‚   - Background3D (Three.js 3D scene)              โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

State Management

// Global State (Zustand)
interface StoreState {
  // User
  user: UserProfile | null
  setUser: (user: UserProfile) => void

  // Completed Assessments
  completedAssessments: CompletedAssessment[]
  addCompletedAssessment: (assessment: CompletedAssessment) => void
  deleteAssessment: (id: string) => void

  // UI State
  theme: 'dark' | 'light'
  language: 'en' | 'zh'
}

๐Ÿ”ฎ Future Roadmap

Phase 1: Foundation (Current)

  • Core assessment system
  • 3D card animations
  • Particle backgrounds
  • Responsive design
  • Professional documentation

Phase 2: Expansion (Planned)

  • Internationalization (i18n)

    • Full Chinese translation
    • Language switcher component
    • RTL support preparation
  • Assessment Expansion

    • 50+ total assessments
    • Career aptitude battery
    • Emotional intelligence suite
    • Relationship compatibility scores
  • UI/UX Enhancements

    • Interactive 3D avatars
    • Animated result summaries
    • Progress tracking dashboards
    • Comparison with population norms

Phase 3: Community (Future)

  • Question Bank System

    • Modular assessment framework
    • Community-contributed questions
    • Quality assurance system
  • Analytics Dashboard

    • Longitudinal tracking
    • Multi-assessment correlation
    • Export reports (PDF, JSON)

Phase 4: Platform (Long-term)

  • White-label Solution

    • Custom branding
    • Self-hosted deployment
    • API access
  • AI Integration

    • GPT-powered insights
    • Personalized recommendations
    • Smart question selection

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Guide

# 1. Fork the repository
# 2. Clone your fork
git clone https://github.com/YOUR_USERNAME/HumanOS.git

# 3. Create a feature branch
git checkout -b feature/amazing-feature

# 4. Make your changes
# 5. Test thoroughly
npm run build && npm run lint

# 6. Commit and push
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature

# 7. Open a Pull Request

Contribution Areas

Area Description
๐Ÿงช Assessments Add new assessment types or questions
๐ŸŽจ UI/UX Improve visual design and interactions
๐Ÿ“ Documentation Enhance docs, translate, add examples
๐Ÿ› Bug Fixes Fix issues and improve stability
โšก Performance Optimize rendering and bundle size
๐Ÿงช Testing Add unit, integration, or E2E tests

๐Ÿ“Š Project Stats

Metric Value
โญ Stars GitHub stars
๐Ÿด Forks GitHub forks
๐Ÿ› Issues GitHub issues
๐Ÿ”’ License MIT
๐Ÿ“ฆ Build Passing

๐Ÿงช Testing

# Run all tests
npm test

# Run with coverage
npm test -- --coverage

# Run in watch mode
npm test -- --watch

Test Coverage Goals

Type Target
Unit Tests >80%
Integration Tests >60%
E2E Tests Core user flows
Overall >85%

๐Ÿ”’ Security

Please read our Security Policy for responsible disclosure.

Key Security Features

  • โœ… Input sanitization
  • โœ… XSS prevention (React)
  • โœ… Secure random ID generation
  • โœ… Content Security Policy ready
  • โœ… No external data transmission

Known Limitations

  • โš ๏ธ LocalStorage data accessible to browser extensions
  • โš ๏ธ No data encryption (by design for transparency)

๐Ÿ“„ License

This project is licensed under the MIT License - see LICENSE for details.


๐Ÿ™ Acknowledgments


๐Ÿ“ฌ Contact & Support

Channel Link
๐Ÿ’ฌ Discussions GitHub Discussions
๐Ÿ› Issues GitHub Issues
๐Ÿ“ง Email support@humandos.io

Built with โค๏ธ by the HumanOS Team

Stars, forks, and PRs are always welcome!

Powered by React Powered by TypeScript

Releases

No releases published

Packages

 
 
 

Contributors