Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SG ALL IN [: API :]

SG ALL IN API Logo

Modern centralized backend infrastructure powering the SG Ecosystem.


Overview

SG ALL IN API is designed as the core backend system connecting multiple SG ecosystem modules into one scalable platform.

The system is focused on:

  • emergency assistance discovery
  • payment infrastructure
  • vulnerable user support systems
  • service mapping
  • secure modular integrations
  • AI-assisted services
  • future WhatsApp ecosystem integrations

🚀 SG ALL IN API - Central Backend Infrastructure


Current Modules

SG Connect

Location-aware support and service discovery.

SG Emergency Map

Real-time emergency assistance lookup system.

SG Pay

Payment and donation infrastructure for services and support systems.

SG Secure

Security-oriented user protection systems and risk prevention.

Gosipi

Diplomatic feedback and ecosystem intelligence module.


Core Technology Stack

Layer Technology
Backend Node.js
Language TypeScript
API Framework Express.js
Database PostgreSQL / Supabase
Deployment Vercel
Payments Stripe / Circle / Coinbase
AI Systems OpenAI + Python Modules
Communication WhatsApp Cloud API

API Routes

Health Check

GET /health

Services

GET /services

Example:

GET /services?type=food&city=Malaga&openNow=true

Emergency Assistance

POST /emergency/nearest

Example body:

{
  "lat": 36.7213,
  "lng": -4.4214,
  "need": "food"
}

Payments

POST /payments/create-link

Example body:

{
  "amount": 5,
  "currency": "EUR",
  "purpose": "SG Bite food support"
}

Feedback

POST /feedback

Local Development

Install dependencies:

npm install

Run development server:

npm run dev

Future Development Goals

  • WhatsApp-native SG ecosystem
  • AI routing and assistance
  • stablecoin payment systems
  • multilingual AI translation
  • emergency optimization systems
  • SG ALL IN dashboard
  • global deployment scaling
  • AI safety and secure communications

Project Structure

src/
  index.ts

  routes/
    health.ts
    services.ts
    emergency.ts
    payments.ts
    feedback.ts

  data/
    mockServices.ts

Created By

Created by Robert Andersson


License

MIT License

About

SG ALL IN central backend API powering SG ecosystem modules including SG Connect, SG Pay, SG Emergency Map, SG Secure, Gosipi and future AI integrations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages