regplatform-multi-account-registration
```markdown
What this skill does
```markdown
---
name: regplatform-multi-account-registration
description: Multi-platform batch account registration system supporting OpenAI, Grok, Kiro, Gemini with task scheduling, HuggingFace worker nodes, Cloudflare routing, credits system, and admin management
triggers:
- set up regplatform registration system
- configure batch account registration
- deploy huggingface worker nodes for registration
- set up cloudflare worker routing for regplatform
- configure openai grok kiro account registration
- manage hf space worker nodes
- set up credits and user management for regplatform
- troubleshoot regplatform worker deployment
---
# RegPlatform Multi-Platform Account Registration
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
RegPlatform is a Go-based multi-platform batch account registration system. It orchestrates automated registration across OpenAI, Grok, Kiro, and Gemini via distributed HuggingFace Space worker nodes routed through Cloudflare Workers, with a full admin panel, credits system, JWT auth, and real-time WebSocket log streaming.
---
## Architecture
```
Browser → Nginx (443) → Vue 3 SPA
│
Go Backend (:8000)
│
TaskEngine (worker pool)
│
CF Worker
/ | \ \
/openai/ /grok/ /kiro/ /ts/
│ │ │ │
HFNP HFGS HFKR HFTS
(OpenAI) (Grok) (Kiro) (Turnstile)
```
---
## Prerequisites
- Go 1.25+
- Node.js 18+
- PostgreSQL 16+
- Docker & Docker Compose
- HuggingFace account + tokens
- Cloudflare Worker account
---
## Installation & Local Development
### 1. Clone and configure
```bash
git clone https://github.com/your-username/regplatform.git
cd regplatform
cp .env.example .env
```
### 2. Edit `.env`
```env
DATABASE_URL=postgres://user:password@localhost:5432/regplatform
JWT_SECRET=your-32-char-minimum-secret-here
PORT=8000
GIN_MODE=release
DEV_MODE=false
ADMIN_USERNAME=youradminuser
SSO_SECRET=
REDIS_URL=
JWT_EXPIRE_HOURS=72
CORS_ORIGINS=https://yourdomain.com
```
### 3. Start backend
```bash
go mod tidy
go run cmd/server/main.go
```
### 4. Start frontend
```bash
cd web
npm install
npm run dev
```
### 5. Docker (production)
```bash
docker-compose -f docker-compose.prod.yml up -d
```
---
## First-Time Setup
1. Navigate to `http://localhost:8000`
2. Register the first account — it **automatically becomes admin**
3. Log in and go to Admin → System Settings
4. Configure mail services, captcha solvers, and registration URLs
---
## Project Structure
```
regplatform/
├── cmd/
│ ├── server/ # Main server entrypoint
│ ├── openai-worker/ # OpenAI worker binary → HFNP
│ ├── grok-worker/ # Grok worker binary → HFGS
│ └── grpctest/ # gRPC-web debug tool
├── internal/
│ ├── config/ # Viper config loading
│ ├── model/ # GORM data models
│ ├── service/ # TaskEngine, HFSpaceService, etc.
│ ├── worker/ # Platform worker implementations
│ ├── handler/ # HTTP route handlers
│ ├── middleware/ # JWT auth, CORS, rate limiting
│ ├── dto/ # Request/response structs
│ └── pkg/ # Internal utilities
├── web/ # Vue 3 frontend
├── services/
│ ├── aws-builder-id-reg/ # Kiro registration microservice
│ └── turnstile-solver/ # Turnstile solver microservice
├── cloudflare/ # CF Worker source
├── HFNP/ # OpenAI HF Space template
├── HFGS/ # Grok HF Space template
├── HFKR/ # Kiro HF Space template
└── HFTS/ # Turnstile HF Space template
```
---
## API Reference
### Authentication
```bash
# Register (rate limited: 3/min per IP)
curl -X POST http://localhost:8000/api/auth/register \
-H "Content-Type: application/json" \
-d '{"username":"myuser","password":"MyPass123"}'
# Login
curl -X POST http://localhost:8000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"myuser","password":"MyPass123"}'
# Returns: {"token":"eyJ..."}
# Get current user
curl http://localhost:8000/api/me \
-H "X-Auth-Token: $TOKEN"
```
Password requirements: ≥8 chars, uppercase + lowercase + digit.
Token can be passed as:
- Cookie
- `X-Auth-Token: <token>` header
- `Authorization: Bearer <token>` header
### Task Management
```bash
# Create a registration task
curl -X POST http://localhost:8000/api/tasks \
-H "X-Auth-Token: $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"platform": "openai",
"count": 10,
"proxy_id": 1
}'
# Start task
curl -X POST http://localhost:8000/api/tasks/123/start \
-H "X-Auth-Token: $TOKEN"
# Stop task
curl -X POST http://localhost:8000/api/tasks/123/stop \
-H "X-Auth-Token: $TOKEN"
# Get current running task
curl http://localhost:8000/api/tasks/current \
-H "X-Auth-Token: $TOKEN"
```
### Results
```bash
# List results
curl http://localhost:8000/api/results \
-H "X-Auth-Token: $TOKEN"
# Export results for a task
curl http://localhost:8000/api/results/123/export \
-H "X-Auth-Token: $TOKEN" \
-o results.csv
```
### Credits
```bash
# Check balance
curl http://localhost:8000/api/credits/balance \
-H "X-Auth-Token: $TOKEN"
# Redeem a code
curl -X POST http://localhost:8000/api/credits/redeem \
-H "X-Auth-Token: $TOKEN" \
-H "Content-Type: application/json" \
-d '{"code":"REDEEM-CODE-HERE"}'
```
### Proxy Management
```bash
# Add proxy
curl -X POST http://localhost:8000/api/proxies \
-H "X-Auth-Token: $TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"http://user:pass@host:port","name":"proxy1"}'
# List proxies
curl http://localhost:8000/api/proxies \
-H "X-Auth-Token: $TOKEN"
# Delete proxy
curl -X DELETE http://localhost:8000/api/proxies/1 \
-H "X-Auth-Token: $TOKEN"
```
### Admin Endpoints
```bash
# List users
curl http://localhost:8000/api/admin/users \
-H "X-Auth-Token: $ADMIN_TOKEN"
# Recharge credits for user
curl -X POST http://localhost:8000/api/admin/credits/recharge \
-H "X-Auth-Token: $ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id":2,"amount":1000}'
# Get/set system settings
curl http://localhost:8000/api/admin/settings \
-H "X-Auth-Token: $ADMIN_TOKEN"
curl -X POST http://localhost:8000/api/admin/settings \
-H "X-Auth-Token: $ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"new_user_bonus","value":"100"}'
# HF Space overview
curl http://localhost:8000/api/admin/hf/overview \
-H "X-Auth-Token: $ADMIN_TOKEN"
# Deploy HF Spaces
curl -X POST http://localhost:8000/api/admin/hf/spaces/deploy \
-H "X-Auth-Token: $ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"openai","count":3}'
# Run health check
curl -X POST http://localhost:8000/api/admin/hf/spaces/health \
-H "X-Auth-Token: $ADMIN_TOKEN"
# Autoscale spaces
curl -X POST http://localhost:8000/api/admin/hf/autoscale \
-H "X-Auth-Token: $ADMIN_TOKEN"
# Sync CF Worker env vars
curl -X POST http://localhost:8000/api/admin/hf/sync-cf \
-H "X-Auth-Token: $ADMIN_TOKEN"
```
### Real-Time Logs
```bash
# SSE stream
curl -N http://localhost:8000/ws/logs/123/stream \
-H "X-Auth-Token: $TOKEN"
# WebSocket (use wscat or browser)
wscat -c "ws://localhost:8000/ws/logs/123" \
-H "X-Auth-Token: $TOKEN"
```
---
## System Settings Reference
Configure these in Admin → System Settings (persisted to DB):
| Key | Description |
|-----|-------------|
| `yydsmail_base_url` | YYDS Mail temp email API URL |
| `gptmail_api_key` | GPTMail API key |
| `gptmail_base_url` | GPTMail service URL |
| `turnstile_solver_url` | Turnstile solver service URL |
| `cf_bypass_solver_url` | CF bypass solver URL |
| `yescaptcha_key` | YesCaptcha API key |
| `openai_reg_Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.