File size: 2,777 Bytes
791069d
 
 
 
 
234d9b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
---
license: apache-2.0
sdk: docker
colorFrom: yellow
---
🚀 Upniso Backend (v2.0)
Merit-First Creator Ecosystem & AI Feed Engine

Upniso Backend is a production-ready, high-performance backend powering a merit-based creator discovery system and a brand–creator marketplace.
It is designed to prioritize quality, consistency, and fairness over vanity metrics.

This repository represents the core intelligence and infrastructure layer behind Upniso.

🏗️ System Architecture

The platform is intentionally split into two isolated execution environments for scalability, trust, and abuse prevention.

1️⃣ Core Feed Engine (Protected)

Powered by a proprietary Merit Algorithm (281 lines)

Enforces strict quality controls

Includes:

Spam protection

Rolling 24-hour upload limits

Merit-based ranking (not engagement bait)

2️⃣ Community & Brand Hub (Unlimited)

Open interaction layer for:

Brands

Agencies

Creators

Supports:

Brand briefs

Reviews & feedback

Collaboration without feed penalties

This separation ensures the main feed remains signal-rich, while collaboration remains frictionless.

🧠 Core Capabilities

Merit-First Discovery

Talent Score

Progress Score

Consistency-weighted ranking

Multi-Format Content Support

Short-form video (Reels)

Long-form video

Text posts (X-style)

Artwork & images

Full-length music tracks

Spam & Abuse Shield

Rolling 24-hour upload quotas (e.g. 5 Reels/day)

Automatic quality preservation

Brand Connect Layer

Fixed $2 brand brief fee

Built-in review & feedback loop

Transparent creator selection

AI-Ready Infrastructure

Semantic scoring & matching

ML models loaded at build time (zero cold start)

CPU-optimized for predictable cost

🛠️ Tech Stack

Language: Python 3.11

Framework: FastAPI

Database: Firebase Firestore

AI Engine: Cross-Encoder (MS-Marco MiniLM)

Deployment: Docker

Target Platforms: Hugging Face Spaces, Oracle Cloud

🔐 Architecture Notes

Firebase is used internally as a control plane for:

Metadata

Usage limits

Platform logic

Clients never interact with Firebase directly.

Designed for API monetization, rate limiting, and future multi-tenant usage.

🚀 Quick Start (Docker)

Ensure the following environment variable is set:

FIREBASE_KEY_B64=<base64-encoded-firebase-key>

Build the image
docker build -t upniso-backend .

Run the container
docker run -p 7860:7860 upniso-backend


The API will be available at:

http://localhost:7860


Swagger docs:

http://localhost:7860/docs

📜 License

This project is licensed under the Apache License 2.0.

Commercial usage is provided via hosted API access and managed deployments.

🧭 Project Status

Backend: Production-ready

API monetization: In progress

Frontend: Intentionally minimal / decoupled