Skip to content

SamerNaffah/antops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

ANTOPS - AI powered IT operations platform

A modern, real-time IT operations platform built with Next.js, Supabase, and AI-powered insights.

License Next.js TypeScript

✨ Features

Core ITIL Management

  • πŸ“‹ Incident Management - Track, prioritize, and resolve incidents with full lifecycle management
  • πŸ” Problem Management - Root cause analysis, workarounds, and permanent solutions
  • πŸ”„ Change Management - Approval workflows, scheduling, and rollback planning
  • πŸ—οΈ Infrastructure Mapping - Visual network topology with drag-and-drop interface

Collaboration

  • πŸ’¬ Real-time Comments - WebSocket-powered live collaboration
  • πŸ‘₯ Mentions & Notifications - @mention team members, instant notifications
  • πŸ“Ž File Attachments - Attach files to incidents, problems, and changes
  • πŸ”” Smart Notifications - Context-aware alerts for assignments and updates

AI-Powered Features

  • πŸ€– Risk Analysis - AI-powered component risk scoring
  • πŸ“Š Impact Assessment - Automatic dependency analysis
  • πŸ’‘ Insights - Intelligent recommendations for incident resolution
  • 🎯 Failure Prediction - Proactive identification of potential issues

Integrations

  • πŸ“Ÿ PagerDuty - Automatic incident creation from PagerDuty alerts
  • πŸ“ˆ Grafana - Webhook integration for monitoring alerts
  • πŸ”Œ REST API - Full API for custom integrations
  • πŸ” API Tokens - Secure programmatic access

πŸš€ Quick Start

Prerequisites

  • Node.js 20+
  • npm or yarn
  • Supabase account (free tier works)
  • OpenAI API key (optional, for AI features)

Installation

  1. Clone the repository
git clone https://github.com/antopshq/antops.git
cd antops/antops-app
  1. Install dependencies
npm install
  1. Set up Supabase
  • Create a new project at supabase.com
  • Run the complete database schema:
    • Copy contents of complete-schema.sql
    • Paste in Supabase SQL Editor
    • Click "Run" to create all tables, functions, and policies
    • This includes all 28 tables, RLS policies, triggers, and views
  1. Configure environment variables
cp .env.example .env.local

Edit .env.local:

# Supabase
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key

# OpenAI (optional, for AI features)
OPENAI_API_KEY=sk-your-key

# App URL
NEXT_PUBLIC_APP_URL=http://localhost:3000
  1. Run the development server
npm run dev
  1. Open the app

Visit http://localhost:3000

πŸ—οΈ Tech Stack

  • Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
  • Backend: Next.js API Routes, Node.js custom server (WebSocket)
  • Database: Supabase (PostgreSQL)
  • Authentication: Supabase Auth
  • Storage: Supabase Storage
  • AI: OpenAI GPT-4o-mini
  • Real-time: Socket.io
  • UI Components: Radix UI, shadcn/ui
  • Rich Text: Tiptap
  • Diagrams: ReactFlow

πŸ“ Project Structure

antops-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”‚   β”œβ”€β”€ api/               # API routes
β”‚   β”‚   β”œβ”€β”€ incidents/         # Incident management pages
β”‚   β”‚   β”œβ”€β”€ problems/          # Problem management pages
β”‚   β”‚   β”œβ”€β”€ changes/           # Change management pages
β”‚   β”‚   └── infrastructure/    # Infrastructure mapping
β”‚   β”œβ”€β”€ components/            # React components
β”‚   β”‚   β”œβ”€β”€ ui/               # Base UI components
β”‚   β”‚   β”œβ”€β”€ incidents/        # Incident-specific components
β”‚   β”‚   β”œβ”€β”€ problems/         # Problem-specific components
β”‚   β”‚   └── changes/          # Change-specific components
β”‚   └── lib/                   # Utility functions
β”‚       β”œβ”€β”€ supabase/         # Supabase client
β”‚       β”œβ”€β”€ store.ts          # Data access layer
β”‚       β”œβ”€β”€ openai-client.ts  # AI integration
β”‚       └── websocket-server.ts # Real-time server
β”œβ”€β”€ server.js                  # Custom Node.js server (WebSocket)
β”œβ”€β”€ public/                    # Static assets
└── package.json              # Dependencies

πŸ”§ Configuration

Environment Variables

Variable Required Description
NEXT_PUBLIC_SUPABASE_URL Yes Your Supabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEY Yes Supabase anonymous key
SUPABASE_SERVICE_ROLE_KEY Yes Supabase service role key (server-side only)
OPENAI_API_KEY No OpenAI API key for AI features
PAGERDUTY_API_KEY No PagerDuty integration key

Database Setup

The complete database schema is in complete-schema.sql (single source of truth).

What's included:

  • βœ… All 28 tables (incidents, problems, changes, infrastructure, integrations, etc.)
  • βœ… All Row Level Security (RLS) policies
  • βœ… All triggers and functions
  • βœ… All indexes and constraints
  • βœ… All views and sequences
  • βœ… Complete with sample data structure

To set up:

  1. Copy the entire contents of complete-schema.sql
  2. Paste into Supabase SQL Editor
  3. Run once - that's it!

No need for incremental migrations - everything is included.

πŸ“š Documentation

  • API Documentation: See /docs/API.md (coming soon)
  • Deployment Guide: See /docs/DEPLOYMENT.md (coming soon)
  • Contributing: See CONTRIBUTING.md

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

How to Contribute

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

πŸ“„ License

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

πŸ”’ Security

See SECURITY.md for security policy and reporting vulnerabilities.

Important: Never commit sensitive data:

  • Don't commit .env.local files
  • Don't include API keys in code
  • Use environment variables for secrets

πŸ’¬ Support

πŸ™ Acknowledgments


Made with ❀️ by Samex ANTOPS is an open‑source IT‑ops platform founded by Samer Naffah.

About

IT operations platform with AI-powered insights, real-time collaboration, and many integrations. Built with Next.js, React, TypeScript, and Supabase.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors