Skip to content

SquizAI/humanGLue_brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Human Glue - AI-Powered Organizational Development Platform

An agentic landing page built with atomic design architecture, featuring multi-model AI support through Netlify Functions.

πŸ—οΈ Architecture

Atomic Design Structure

components/
β”œβ”€β”€ atoms/          # Basic building blocks (Button, Text, Input, Icon, Badge)
β”œβ”€β”€ molecules/      # Combined atoms (InputField, Card, IconButton, TypingDots)
β”œβ”€β”€ organisms/      # Complex components (ChatMessage, ModelSelector, ChatInput)
└── templates/      # Page-level components

Key Technologies

  • AI Integration: Powered by Claude Sonnet 4.5 (via Anthropic API)
  • State Management: React Context + LocalStorage
  • Styling: Tailwind CSS + Custom Animations
  • Deployment: Netlify with serverless functions
  • AI Models: Multiple providers via unified API
    • Google Gemini 2.5 (Pro & Flash)
    • OpenAI GPT-4o & O3
    • Anthropic Claude (Opus 4 & Sonnet 4)

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • API keys for AI providers (optional)

Installation

  1. Clone the repository:
git clone https://github.com/your-org/humanglue-landing.git
cd humanglue-landing
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env.local
  1. Add your API keys to .env.local:
GOOGLE_AI_API_KEY=your_key
OPENAI_API_KEY=your_key
ANTHROPIC_API_KEY=your_key
  1. Run development server:
npm run dev

🌐 Deployment

Netlify Deployment

  1. Connect your GitHub repository to Netlify

  2. Configure build settings:

    • Build command: npm run build
    • Publish directory: .next
  3. Add environment variables in Netlify dashboard

  4. Deploy!

Environment Variables

All environment variables from .env.example should be configured in Netlify:

# Required for API functionality
GOOGLE_AI_API_KEY
OPENAI_API_KEY
ANTHROPIC_API_KEY

# Optional configuration
RATE_LIMIT_REQUESTS_PER_MINUTE
SESSION_SECRET
CORS_ALLOWED_ORIGINS

πŸ“ Project Structure

humanglue-landing/
β”œβ”€β”€ app/                    # Next.js app directory
β”œβ”€β”€ components/            # Atomic design components
β”‚   β”œβ”€β”€ atoms/            # Basic UI elements
β”‚   β”œβ”€β”€ molecules/        # Composite components
β”‚   β”œβ”€β”€ organisms/        # Complex features
β”‚   └── templates/        # Page templates
β”œβ”€β”€ netlify/              # Netlify Functions
β”‚   └── functions/        # Serverless API endpoints
β”œβ”€β”€ lib/                  # Core libraries
β”‚   └── mcp/             # Model Context Protocol
β”œβ”€β”€ services/            # API service layer
β”œβ”€β”€ utils/               # Utility functions
β”œβ”€β”€ constants/           # App constants
└── hooks/              # Custom React hooks

πŸ”§ Configuration

Feature Flags

Control features via environment variables:

NEXT_PUBLIC_ENABLE_CHAT=true
NEXT_PUBLIC_ENABLE_MODEL_SELECTOR=true
NEXT_PUBLIC_ENABLE_ANALYTICS=false

Model Configuration

Models are configured in lib/mcp/models.ts with environment variable overrides:

GOOGLE_AI_MODEL_PRO=gemini-2.0-flash-exp
OPENAI_MODEL_GPT4O=gpt-4o
ANTHROPIC_MODEL_SONNET=claude-3-5-sonnet-20241022

πŸ› οΈ Development

Component Development

Follow atomic design principles:

  1. Atoms: Single-purpose, reusable elements
  2. Molecules: Simple combinations of atoms
  3. Organisms: Complex, feature-complete components
  4. Templates: Page layouts and structures

Adding New Components

# Create atom
touch components/atoms/NewAtom.tsx

# Export from index
echo "export { NewAtom } from './NewAtom'" >> components/atoms/index.ts

API Development

Netlify Functions are located in netlify/functions/:

// netlify/functions/my-function.ts
import { Handler } from '@netlify/functions'

export const handler: Handler = async (event) => {
  // Function logic
}

πŸ“Š Monitoring

Analytics (Optional)

Configure analytics providers:

GOOGLE_ANALYTICS_ID=G-XXXXXXXXXX
MIXPANEL_TOKEN=your_token
SENTRY_DSN=your_dsn

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Follow atomic design principles
  4. Write tests for new components
  5. Submit a pull request

πŸ“„ License

MIT License - see LICENSE file for details

πŸ”— Resources

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •