Skip to content

SMSDAO/SocialAi

Repository files navigation

🌐 SocialAi

The Open Social Index & Identity Claim Network

SocialAi is a lightweight, AI‑powered social discovery engine that mirrors public Farcaster activity, blends optional Reddit timelines, and exposes SEO‑optimized public profiles that users can claim by verifying their Farcaster identity.

It is built on a parallel, auto‑healing, one‑file node architecture powered by Healdec and SmartBrain.

Built with Node.js 24+ | Production-Ready | Modern GitHub-Style UI


πŸ“Έ Screenshots

Public App

Screenshot coming soon. Once available, add it as docs/screenshots/public-app.png and replace this note with an embedded image. Modern GitHub-inspired dark theme for public profiles and timelines

Admin Console

Screenshot coming soon. Once available, add it as docs/screenshots/admin-dashboard.png and replace this note with an embedded image. Real-time system metrics and worker health monitoring

Desktop Admin App

Screenshot coming soon. Once available, add it as docs/screenshots/desktop-admin.png and replace this note with an embedded image. Native Windows admin app built with Tauri


✨ Features

πŸ” Public Social Index

  • SEO‑optimized profiles, posts, timelines
  • Google‑indexable pages
  • Zero‑JS by default (Astro + Vite)
  • Fast SSR for timelines and profiles
  • GitHub-inspired dark theme UI

πŸͺͺ Identity Claim System

  • Farcaster Sign‑In
  • Wallet verification (SIWE)
  • ENS mapping
  • Claim β†’ unlock editing + AI tools

🌐 Multi‑Network Sync

  • Farcaster Hub ingestion
  • Optional Reddit sync
  • Future: Lens, Bluesky, Zora
  • Admin‑controlled feed toggles

πŸ€– SocialAi Brain

  • Embeddings + vector search
  • Timeline summaries
  • Profile optimization
  • Topic clustering
  • Recommendations

🧩 Social Graph

  • Follow / unfollow
  • Likes
  • Saved posts
  • Mutuals

πŸ›  Admin Console

  • Feature flags
  • Sync toggles
  • Logs
  • Worker health
  • Abuse controls
  • NEW: Desktop Windows app (Tauri)

🧱 Architecture

For a detailed architecture diagram and component descriptions, see docs/ARCHITECTURE.md.

Public Layer (Astro + Vite)

  • SEO pages
  • Profiles
  • Timelines
  • Claim flow
  • Landing pages

Admin Layer (Angular)

  • Feature flags
  • Sync controls
  • Worker monitoring
  • System health

Backend (One‑File SocialAi Node)

  • Healdec engine
  • Parallel chain workers
  • AI worker
  • Search worker
  • Sync worker
  • RPC workers

Database (Postgres)

  • Users
  • Profiles
  • Posts
  • External posts
  • Follows
  • Likes
  • Claims
  • Embeddings
  • Feature flags
  • Settings

πŸš€ Getting Started

Prerequisites

  • Node.js 24+ (specified in .nvmrc)
  • PostgreSQL 12+
  • npm 10+

One-Click Setup

git clone https://github.com/SMSDAO/SocialAi.git
cd SocialAi

# Automated setup (zero-error, one-click)
npm run setup

The setup script will:

  • βœ… Check Node.js version (24+)
  • βœ… Create .env from .env.example
  • βœ… Install all dependencies
  • βœ… Validate configuration

Manual Setup

# 1. Clone the repository
git clone https://github.com/SMSDAO/SocialAi.git
cd SocialAi

# 2. Use Node.js 24+
nvm use  # Reads from .nvmrc

# 3. Install dependencies
npm install

# 4. Setup database
createdb socialai
psql -U postgres -d socialai -f db/schema.sql

# 5. Configure environment
cp .env.example .env
# Edit .env with your settings (see .env.example for all options)

# 6. Start the system
npm run dev                # Backend + Workers
npm run dev:public         # Public App (port 4321)
npm run dev:admin          # Admin Console (port 4200)
npm run dev:desktop        # Desktop Admin App (Windows)

Note: These manual steps mirror what the automated setup script (npm run setup) does internally. You can either run npm run setup or follow the commands above manuallyβ€”both paths achieve the same result.

Access Points

Desktop Admin App (Windows)

Build the native Windows admin app:

# Prerequisites: Rust toolchain + Node.js 24+
npm run build:desktop:windows

The installer will be created in desktop-admin/src-tauri/target/release/bundle/:

  • admin.msi - MSI installer
  • admin-setup.exe - NSIS installer

For detailed desktop app documentation, see desktop-admin/README.md.

For detailed setup instructions, see docs/INSTALLATION.md.


πŸš€ Deployment

Vercel Deployment (Frontend)

The public frontend is optimized for Vercel deployment with Node.js 24 runtime.

Quick Deploy to Vercel

  1. Install Vercel CLI:
npm install -g vercel
  1. Deploy:
vercel

The vercel.json configuration is already set up with:

  • βœ… Node.js 24 runtime
  • βœ… Optimized build settings
  • βœ… Correct output directory
  • βœ… Environment variable placeholders

Environment Variables for Vercel

Configure these in your Vercel project settings (frontend only):

Note: Backend secrets (DATABASE_URL, JWT_SECRET, SESSION_SECRET) should only be configured in your backend deployment environment (Railway, Render, etc.), not in Vercel frontend settings.

Backend Deployment

The backend can be deployed to any Node.js 24+ hosting provider:

  • Recommended: Railway, Render, Fly.io
  • Requirements: Node.js 24+, PostgreSQL 12+
  • Build command: npm install
  • Start command: npm run dev

GitHub Actions CI/CD

Automated workflows are configured in .github/workflows/:

  • βœ… CI: Runs on every push/PR (Node 24 checks, builds)
  • ⚠️ Deploy: Workflow exists and currently runs build checks only; Vercel deployment is not yet implemented (TODO and will require Vercel token configuration once enabled).

Production Checklist

  • Set NODE_ENV=production in environment
  • Configure production database
  • Set strong JWT and session secrets
  • Configure CORS origins
  • Enable rate limiting
  • Set up monitoring and logging
  • Review security settings

For detailed deployment instructions, see docs/DEPLOYMENT.md.


πŸ“š Documentation

Core Documentation

Developer Resources

Operations

For a comprehensive overview and quick navigation, start with the Documentation Index.

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors