Skip to content

MrMench/scamified

Repository files navigation

Scamified Monorepo

Scamified is an AI-powered scam score system for TON contract addresses.

Workspace apps

  • apps/web: Next.js app (search UX, wallet auth, signed reports, analysis polling)
  • apps/worker: BullMQ worker (TonAPI extraction + heuristic score persistence)
  • packages/db: Drizzle schema and database client
  • packages/auth: wallet/session/auth challenge utilities
  • packages/ui: shadcn-based shared UI components

Local stack

docker-compose.local.yml starts:

  • Postgres (postgres:16-alpine)
  • Redis (redis:7-alpine)

Production stack (Docker Compose)

Production compose file: docker-compose.production.yml

Unified env source of truth (root): .env

  1. Copy .env.example to .env and fill secrets.
  2. Run:
    • pnpm prod:up
  3. Useful ops:
    • pnpm prod:logs
    • pnpm prod:migrate
    • pnpm prod:down

Services included:

  • db (Postgres)
  • redis
  • migrate (Drizzle migration one-shot job)
  • worker
  • web

Quick start

  1. pnpm install
  2. Copy apps/web/.env.example -> apps/web/.env.local
  3. Create apps/worker/.env.local with local DATABASE_URL and REDIS_URL
  4. Create packages/db/.env with DATABASE_URL=postgresql://postgres:postgres@localhost:5432/scamified_development
  5. pnpm dev:stack (brings up infra and runs DB migrations automatically)

Key API routes

  • POST /api/auth/ton/challenge
  • POST /api/auth/ton/verify
  • POST /api/reports/challenge
  • POST /api/reports
  • POST /api/analyze
  • GET /api/analyze/:jobId

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages