Skip to content

Repository files navigation

🧠 Neural Network Builder

A modern, professional web application for designing, training, and evaluating neural networks in your browser. Built with React, TypeScript, and TensorFlow.js.

Neural Network Builder TypeScript React License

✨ Features

πŸ—οΈ Visual Architecture Builder

  • Drag-and-drop layer creation
  • 15+ layer types (Conv2D, LSTM, Transformer, Attention, etc.)
  • Real-time architecture validation
  • Smart layer suggestions
  • Transfer learning support
  • Pre-built architecture templates

πŸ“Š Dataset Management

  • Sample datasets (MNIST, CIFAR-10, Fashion MNIST, IMDB)
  • Custom dataset upload (images, CSV, JSON)
  • Data augmentation pipeline
  • Train/validation/test splitting
  • Preprocessing configuration

πŸš€ Training Simulator

  • Real-time training visualization
  • Live metrics (loss, accuracy)
  • Learning rate scheduling
  • Early stopping
  • Model checkpointing
  • GPU acceleration (WebGL)

πŸ“ˆ Evaluation Dashboard

  • Confusion matrix
  • ROC curves
  • Per-class metrics
  • Interactive visualizations
  • Model comparison

πŸ’Ύ Import/Export

  • Save/load models
  • Export to TensorFlow.js format
  • Version history
  • Model sharing

πŸš€ Quick Start

Prerequisites

  • Node.js 20+
  • pnpm 8+ (recommended) or npm

Installation

# Clone the repository
git clone https://github.com/biblicalandr0id/Neural-Network-Builder.git
cd Neural-Network-Builder

# Install dependencies
pnpm install

# Start development servers (frontend + backend)
pnpm dev

The application will be available at:

πŸ“¦ Tech Stack

Frontend

  • Framework: React 18.2 with TypeScript 5.3
  • Build Tool: Vite 5
  • State Management: Zustand with persist & immer middleware
  • UI Components: Radix UI + shadcn/ui
  • Styling: Tailwind CSS 3
  • ML Framework: TensorFlow.js 4.x
  • Visualization: Recharts, TensorFlow.js Vis
  • Routing: React Router 6

Backend

  • Runtime: Node.js 20
  • Framework: Express 4
  • Language: TypeScript 5.3
  • Security: Helmet, CORS
  • Validation: Zod

DevOps

  • Monorepo: pnpm workspaces
  • Build System: Turborepo
  • Code Quality: ESLint, Prettier
  • Testing: Vitest, React Testing Library

πŸ“ Project Structure

Neural-Network-Builder/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ frontend/          # React application
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ components/   # UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ pages/        # Route pages
β”‚   β”‚   β”‚   β”œβ”€β”€ store/        # Zustand stores
β”‚   β”‚   β”‚   β”œβ”€β”€ services/     # TensorFlow.js services
β”‚   β”‚   β”‚   └── hooks/        # Custom React hooks
β”‚   β”‚   └── package.json
β”‚   β”‚
β”‚   β”œβ”€β”€ backend/           # Express API server
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ routes/       # API routes
β”‚   β”‚   β”‚   β”œβ”€β”€ services/     # Business logic
β”‚   β”‚   β”‚   └── middleware/   # Express middleware
β”‚   β”‚   └── package.json
β”‚   β”‚
β”‚   └── shared/            # Shared types & utilities
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ types/        # TypeScript interfaces
β”‚       β”‚   β”œβ”€β”€ constants/    # Shared constants
β”‚       β”‚   └── validators/   # Zod schemas
β”‚       └── package.json
β”‚
β”œβ”€β”€ docs/                  # Documentation
β”œβ”€β”€ turbo.json            # Turborepo config
β”œβ”€β”€ pnpm-workspace.yaml   # Workspace config
└── package.json          # Root package

πŸ› οΈ Development

Available Scripts

# Development (runs frontend + backend concurrently)
pnpm dev

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint code
pnpm lint

# Format code
pnpm format

# Type check
pnpm type-check

# Clean build artifacts
pnpm clean

Working on Individual Packages

# Frontend only
pnpm --filter frontend dev

# Backend only
pnpm --filter backend dev

# Shared package
pnpm --filter shared build

πŸ§ͺ Testing

# Run all tests
pnpm test

# Run tests in watch mode
pnpm test:watch

# Run tests with coverage
pnpm test:coverage

πŸ“– Documentation

πŸ—ΊοΈ Roadmap

Phase 1: Core Foundation βœ…

  • Monorepo structure
  • Type system
  • State management
  • Routing
  • Basic UI components

Phase 2: Feature Implementation (In Progress)

  • Complete architect page with layer builder
  • Dataset manager with upload functionality
  • Training simulator with real-time visualization
  • Evaluation dashboard with metrics
  • Model import/export

Phase 3: Advanced Features

  • Collaborative editing (WebSockets)
  • Cloud training integration
  • Model marketplace
  • AutoML capabilities
  • Mobile app

Phase 4: Production

  • Comprehensive testing
  • Performance optimization
  • Security audit
  • Deployment pipeline
  • Documentation completion

🀝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.

πŸ“„ License

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

πŸ™ Acknowledgments

  • TensorFlow.js team for the amazing ML framework
  • Radix UI and shadcn/ui for beautiful, accessible components
  • The open-source community for inspiration and tools

πŸ“§ Contact


Built with ❀️ using React, TypeScript, and TensorFlow.js

About

Build a wide range of networks

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages