From 181dc6664a5b75e6c0b7d366cc552d0381548a22 Mon Sep 17 00:00:00 2001 From: Cosmos Admin Date: Sat, 7 Nov 2026 11:27:09 +0530 Subject: [PATCH] feat(ui): redesign Cosmos home, Oort auth, Forge, and Orbit with 3D space theme --- orbitcontroller.go | 24 +- templates/git.html | 1517 +++++++++-------------- templates/index.html | 2289 +++++++++++++++++------------------ templates/login.html | 1173 +++++++++--------- templates/orbit.html | 835 +++++++++++++ templates/orbitconsole.html | 10 +- templates/signup.html | 1350 +++++++++------------ 7 files changed, 3722 insertions(+), 3476 deletions(-) create mode 100644 templates/orbit.html diff --git a/orbitcontroller.go b/orbitcontroller.go index 504053d..ada0c29 100644 --- a/orbitcontroller.go +++ b/orbitcontroller.go @@ -537,11 +537,31 @@ func RegisterOrbitRoutes(mux *http.ServeMux) { log.Println("[ORBIT] Orbit routes registered") } -// handleOrbitConsole serves the Orbit web dashboard. +// handleOrbitConsole serves the Orbit web dashboard or landing page. func handleOrbitConsole(w http.ResponseWriter, r *http.Request) { email, err := getSessionUser(r) if err != nil { - http.Redirect(w, r, "/oort/login?next=/orbit", http.StatusFound) + if r.URL.Query().Get("console") == "1" { + http.Redirect(w, r, "/oort/login?next=/orbit", http.StatusFound) + return + } + w.Header().Set("Content-Type", "text/html; charset=utf-8") + data := map[string]interface{}{ + "Year": time.Now().Year(), + } + if errTmpl := tmpl.ExecuteTemplate(w, "orbit.html", data); errTmpl != nil { + http.Redirect(w, r, "/oort/login?next=/orbit", http.StatusFound) + } + return + } + + if r.URL.Query().Get("landing") == "1" { + w.Header().Set("Content-Type", "text/html; charset=utf-8") + data := map[string]interface{}{ + "UserEmail": email, + "Year": time.Now().Year(), + } + tmpl.ExecuteTemplate(w, "orbit.html", data) return } diff --git a/templates/git.html b/templates/git.html index ffffd8d..60dd880 100644 --- a/templates/git.html +++ b/templates/git.html @@ -4,7 +4,7 @@ Forge — Sovereign Git Version Control · Cosmos - + @@ -17,170 +17,82 @@ if (typeof THREE === 'undefined') { - - - - - + + + + - + - - - - -
-
- -
- -
- FORGE CLUSTER · INNER SYSTEM - PROTOCOL GIT/2 · SSH READY -
-
- 00:00:00 UTC - · - ALL SYSTEMS NOMINAL -
- -
-
- - MODULE 01 · SOVEREIGN SOURCE CONTROL +
+ +
+
+ MODULE 01 · SOVEREIGN REPOSITORIES
-

- Source - Code. +

+ Source Code.
+ Forged in Isolation.

-

Self-hosted Git infrastructure engineered for engineering teams that cannot afford exposure. Branch protection, cryptographic audit logs, high-speed SSH/HTTPS, and zero third-party telemetry.

-
- Sign In to Forge - Create Repository Account +

+ Self-hosted Git infrastructure engineered for teams that cannot afford exposure. Complete branch protection, cryptographic audit logs, high-speed SSH/HTTPS push, and zero third-party telemetry. +

+ + -
-
-
100%
-
Sovereignty
+ +
+
+ $ + git clone https://cosmos.local/source/core-engine.git
-
-
<1ms
-
Push Latency
+ +
+
+ + +
+
+
REPOSITORY CAPABILITIES
+

Forged for teams that demand sovereignty.

+
+ +
+ +
+ Governance +

Enforced Branch Protection & Merge Gateways

+

+ Safeguard production code with granular rule sets: require peer reviews, enforce clean linear histories, verify status checks, and restrict direct push privileges. +

+
+
# Direct push to main rejected by sovereign ACL
+
$ git push origin main
+
remote: error: GH006: Protected branch update failed for refs/heads/main.
+
remote: error: At least 1 approving review required from team leads.
+
-
-
SSH/HTTPS
-
Protocols
+ + +
+ PaaS Pipeline +

Orbit Auto Deployments

+

+ Pushing code directly triggers Cosmos Orbit container builds. Multi-stage Docker builds deploy behind edge reverse proxies in seconds. +

+
+ Webhook Pipeline + ✓ 200 OK +
-
-
∞
-
Repositories
+ + +
+ Compliance +

GPG Verification

+

+ Every commit, tag, and merge is cryptographically validated. ScyllaDB authentication records guarantee user audit trails. +

+
+ + +
+ Airgap Security +

Cosmos Forge vs. Public SaaS Git

+

+ Complete immunity from third-party outages, hidden telemetry, IP scraping, and arbitrary seat licensing fees. +

+
+
+
100%
+
Private & Airgapped
+
+
+
< 1ms
+
Push Latency
+
+
+
$0
+
Per-Seat Cloud Fees
+
+
-
+
- -
-
-

VERSION CONTROL CAPABILITIES

-

Forged for teams that demand sovereignty.

-
- -
- -
- Governance -

Enforced Branch Protection & Merge Gateways

-

Safeguard production code with granular rule sets: require peer reviews, enforce clean linear histories, verify status checks, and restrict push privileges by team role.

- -
-
# Direct push to main rejected by sovereign ACL
-
$ git push origin main
-
remote: error: GH006: Protected branch update failed for refs/heads/main.
-
remote: error: At least 1 approving review required from team leads.
-
-
- - -
- PaaS Integration -

Cosmos Orbit Automated Pipelines

-

Connect directly to Orbit PaaS. Pushing code automatically triggers zero-config multi-stage Docker builds and routes transparent edge reverse proxies.

-
- Webhook Status - ✓ Active (200 OK) -
-
- - -
- Compliance -

Cryptographic Integrity

-

Every commit, tag, and merge request is verified with GPG signatures and immutable commit histories. ScyllaDB authentication records guarantee user audit trails.

-
- - -
- Sovereign Architecture -

Cosmos Forge vs. Public Cloud Git

-

Complete freedom from foreign SaaS downtime, IP scanning, code training, and arbitrary seat licensing fees.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
CapabilityCosmos ForgeCloud SaaS (GitHub/GitLab)
Code Privacy100% Airgapped SovereignThird-party Cloud Hosted
Code AI TrainingNever (Zero telemetry)Subject to Cloud Terms
Seat Pricing$0 / Unlimited Users$21+ / user / month
-
-
-
-
-
- -

SELF-HOSTED GIT PLATFORM · FULL AIRGAP CAPABILITY

-
-
- 51.4778° N · 0.0015° W - SESSION T+00:00:00 -
-
All systems nominal
+ + + + + + + Cosmos Forge + +
SOVEREIGN GIT VERSION CONTROL · ALL SYSTEMS OPERATIONAL
+
UTC 00:00:00
diff --git a/templates/index.html b/templates/index.html index e0672c3..5ae62da 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,1276 +2,1245 @@ - + Cosmos — Sovereign Cloud Platform - + - + + + - - - - - -
01 — COSMOS
+ + + + - + - -
-
+
+ +
+
+ SOVEREIGN CLOUD ARCHITECTURE +
+

+ Your Infrastructure.
+ Zero Compromises. +

+

+ Cosmos delivers full-spectrum self-hosted cloud sovereign power. High-speed Git version control, dedicated Mornye streaming NAS & S3 object storage, and automated container deployment on your own bare metal. +

- -
-
-
-
Sovereign Cloud Platform
-

Your sky.Your rules.

-

- Self-hosted Git, infinite object storage, container orchestration — - encrypted, isolated, no third-party ever. -

- - + + + +
+
+
100%
+
Data Sovereignty
+
+
+
< 1ms
+
Local Bus Latency
+
+
+
ScyllaDB
+
Auth Engine
+
+
+
Docker API
+
Container Mesh
-
+
- -
-
-
- 00 — Sovereignty -

-

- The cloud promised freedom and delivered surveillance. - Every file you store, every commit you push, every container you spin — - recorded, indexed, monetised. - Cosmos was built to end that. -

-
-
01
Zero telemetry

Nothing phones home. No analytics, no crash reports, no data leaving your hardware.

-
02
End-to-end encryption

AES-256 at rest, mutual TLS in transit. Keys never leave your server.

-
03
Air-gap capable

Runs entirely offline. No external DNS, no CDN, no cloud dependencies.

-
04
You own the keys

Root access guaranteed. Export, migrate, delete — no lock-in, no permission needed.

-
-
+ +
+
+ +

Engineered for absolute independence.

-
- -
-
-
-
- 01 — Forge -

Private Git.
Infinite repos.

-

- Full-featured self-hosted Git forge. Code review, CI pipelines, - protected branches, SSH and HTTPS — none of the surveillance. +

+ +
+
+
+
+ STATION 01 + GIT REPOSITORIES +
+

Forge

+
Sovereign Source Control
+

+ Ultra-fast self-hosted Git version control platform. Granular branch protection, commit signing verification, and zero third-party telemetry or code scraping.

-
-
1,218
Commits today
-
∞
Repositories
-
0
Third parties
-
- Open Forge ↗ +
    +
  • SSH & HTTPS Dual Protocol Push
  • +
  • Mandatory Peer Review Gateways
  • +
  • Seamless Orbit CI/CD Webhooks
  • +
-
-
forge · liveNominal
-
-
-
1,218
Commits / day
-
12
SSH keys
-
4.1ms
Clone latency
-
99.99%
Uptime (90d)
-
-
Git-compatible · Gitea-poweredOpen Forge →
+
-
-
- -
-
-
-
- 02 — Oort NAS for Mornye -

Mornye NAS.
Your music hardware.

-

- High-performance Network Attached Storage built for Mornye music streaming - and sovereign S3 object cloud. Unique isolated streaming URLs for every account, - lossless FLAC byte-range delivery, zero cloud bills. + +

+
+
+
+ STATION 02 + NAS & S3 CLOUD +
+

Oort

+
NAS for Mornye & Sovereign Storage
+

+ High-performance Network Attached Storage engineered specifically for Mornye music streaming and sovereign S3 object cloud. Unique streaming URLs for every account, lossless FLAC byte-range streaming, zero cloud bills.

-
-
34,210
Req / second
-
3.8ms
p99 latency
-
4.7TB
Data stored
-
- Open Mornye NAS ↗ +
    +
  • Native WebDAV & HTTP(S) for Mornye
  • +
  • Private Isolated Bucket Per User
  • +
  • Full S3 API & Web File Manager
  • +
-
-
oort · nas liveNominal
-
-
-
34,210
Req / s
-
3.8ms
p99 latency
-
4.7TB
Stored
-
FLAC/24b
Hi-Res Ready
-
-
Mornye NAS · MinIO-poweredOpen NAS →
+
-
-
- -
-
-
-
- 03 — Orbit -

Container cloud.
No AWS needed.

-

- Deploy, scale, and monitor containers from a single dashboard. - Real-time logs, resource metrics, reverse-proxy routing — - on your own server. + +

+
+
+
+ STATION 03 + CONTAINER ENGINE +
+

Orbit

+
Zero-Config App PaaS
+

+ Continuous deployment application engine. Simply connect your Git repository or Docker image; Orbit builds, isolates, and routes edge traffic with live streaming logs.

-
-
:4109
Live port
-
7
Containers
-
0
Cold starts
-
- Open Orbit ↗ +
    +
  • Zero-Config Multi-Stage Docker Builds
  • +
  • Dynamic Reverse Proxy & Custom Domains
  • +
  • Real-time CPU/RAM Telemetry & Logs
  • +
-
-
orbit · liveNominal
-
-
-
:4109
Live port
-
7
Containers
-
0.4%
CPU overhead
-
mTLS
Inter-container
-
-
Docker-compatible · ScyllaDB-backedOpen Orbit →
+
-
+ - -
-
-
- 04 — Scale -

Built to
never slow down.

-
-
99.99
% uptime SLA
trailing 90 days
-
∞
Storage capacity
limited by hardware
-
0
Third-party access
no vendors, ever
-
34,200
Requests / second
Oort peak throughput
-
3.8ms
p99 object latency
on commodity NVMe
-
AES-256
Encryption at rest
keys never leave server
-
-
-
-
- - -
-
-
- 05 — Comparison -

Why not
the cloud?

- - - - - - - - - -
CosmosAWSGCPAzure
Data ownership✓ You own it✗ Their TOS✗ Their TOS✗ Their TOS
Monthly cost✓ Fixed$ Variable$ Variable$ Variable
Private Git✓ Built-in✗ Extra cost✗ Cloud Source✗ DevOps add-on
S3 storage✓ Included$ Per GB$ Per GB$ Per GB
Containers✓ Included$ ECS/EKS$ GKE$ AKS
Vendor lock-in✓ None✗ High✗ High✗ High
-
-
-
- - -
-
-
- 06 — Begin -

Your cloud.Starts now.

-

- Deploy your sovereign stack today. Full control, no vendors, no compromise. - Every byte of storage — encrypted, isolated, yours. + +

+
+
+ +

Single Sign-On across your entire cluster.

+

+ One identity unlocks all three platforms. Authentication is backed by an ultra-fast ScyllaDB distributed database with cryptographic session hashing and strict role isolation.

-
- Create Account - Open Forge ↗ - Open Orbit ↗ + -

Self-hosted · Private · No third parties · No exceptions

+
+ +
+
+ ● + CLUSTER TOPOLOGY OVERVIEW +
+
[ CLIENT REQUEST ]
+
│
+
▼
+
NGINX REVERSE PROXY (:443) ── SSL TERMINATION
+
│
+
▼
+
COSMOS GO PORTAL GATEWAY (:8000)
+
├─── Auth & Session Verification ──► ScyllaDB Cluster
+
├─── /git ──► Forge Git Bare Repo Engine
+
├─── /oort ──► MinIO S3 & WebDAV Mornye NAS Storage
+
└─── /orbit ──► Docker Engine API & App Routing
-
+
-
-
+ +
+
+ +

Cosmos vs. Public Cloud Lock-In

+
- -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Platform FeatureCosmos ClusterPublic SaaS (AWS / GitHub)
Data Sovereignty100% On-Premise AirgapCloud Provider Owned
Mornye Music Streaming NASBuilt-in Dedicated ServerComplex Custom Setup
Code & Data AI ScrapingZero (No Telemetry)Trained on Your Code
Per-Seat Licensing Fees$0 / Unlimited Users$21 - $250+ / user / month
Single Sign-On DatabaseUltra-low Latency ScyllaDBFragmented Accounts
+
+
- -
+ + + - - - + diff --git a/templates/login.html b/templates/login.html index 70ecf26..41f80e3 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,55 +4,54 @@ Sign In — Cosmos {{.Service}} - - + + - + + + + + +
+
+
- - - - + +
+ +
+ +
+ Cosmos Cloud +
-
- ← Cosmos Core -
- - SECURE CHANNEL · {{.Service}} +
+ + Cosmos Core Online
-
-
-
- + +
+
+
+ + - - - Cosmos {{.Service}} - - -

Welcome back

-

Sign in to your sovereign enclave to continue

+
+ {{if eq .Service "git"}} + Forge Git Service +

Welcome back, Developer

+

Access your private repositories, code review, and CI pipelines.

+ {{else if eq .Service "orbit"}} + Orbit Compute Engine +

Command Bridge Access

+

Deploy, monitor, and scale your sovereign container fleet.

+ {{else}} + Oort NAS & Cloud +

Sovereign Storage Terminal

+

Lossless byte-range Mornye streaming and unified S3 buckets.

+ {{end}} +
{{if .Error}} -
{{.Error}}
+
+ + {{.Error}} +
{{end}}
- - +
+ Username or Email +
+
+ + +
- -
- - +
+ Password + Forgot Key?
-
Caps Lock is on
- - + -
-
- 51.4778° N · 0.0015° W - Zero Cloud Leakage - Sovereign Enclave + +
+
Encrypted with AES-256-GCM · Sovereign Infrastructure
+
Portals Go v2.4 · Zero Telemetry
- - + diff --git a/templates/orbit.html b/templates/orbit.html new file mode 100644 index 0000000..0db341f --- /dev/null +++ b/templates/orbit.html @@ -0,0 +1,835 @@ + + + + + +Orbit — Autonomous Container PaaS & Deployment Engine · Cosmos + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ MODULE 03 · AUTONOMOUS CONTAINER PAAS +
+

+ Deploy Anything.
+ Zero Configuration. +

+

+ Continuous deployment container engine for your sovereign cloud. Push code or Dockerfiles; Orbit builds images, configures isolated networks, and routes edge traffic with dynamic reverse proxying. +

+ + + + +
+
+ ● PIPELINE: BUILD & DEPLOY + STATUS: RUNNING +
+
[ORBIT BUILD] Initializing build context for app 'api-service' (commit: 84f2de)
+
[DOCKER] Building multi-stage image via local engine socket...
+
[DOCKER] Container health checks: PASSED (port :8080)
+
[PROXY] Edge routing live at https://api.cosmos.local
+
+
+ + +
+
+
CONTAINER PLATFORM
+

Production PaaS without cloud lock-in.

+
+ +
+ +
+ CI/CD Engine +

Instant Git Push Deployments

+

+ Connect your Forge repositories directly. Every git push triggers an automated build pipeline, validates health endpoints, and executes zero-downtime container rotations. +

+
+ Dockerfile Auto-Detect + Zero-Downtime Swap + Live Build Stream +
+
+ + +
+ Networking +

Dynamic Reverse Proxy

+

+ Automatic subdomain routing, SSL termination, and port forwarding with zero manual Nginx restarts. +

+
+ + +
+ Observability +

Real-Time Telemetry

+

+ Monitor container CPU utilization, memory thresholds, network I/O, and active streaming logs in real time. +

+
+ + +
+ Security +

Encrypted Environment Secrets

+

+ Keep API keys and database credentials secure. Orbit isolates environment parameters per container and encrypts variables at rest in ScyllaDB. +

+
+
+
+
+ + + + + + + diff --git a/templates/orbitconsole.html b/templates/orbitconsole.html index 948142f..2058d72 100644 --- a/templates/orbitconsole.html +++ b/templates/orbitconsole.html @@ -814,14 +814,18 @@ body { Deploy New App
- + + + + Cosmos Home + Forge Git - + - Oort Storage + Oort NAS diff --git a/templates/signup.html b/templates/signup.html index 5ef33e6..1c53ce3 100644 --- a/templates/signup.html +++ b/templates/signup.html @@ -3,55 +3,54 @@ -Create Account — Cosmos {{.Service}} - - +Create Space — Cosmos {{.Service}} + + - + + + + + +
+
+
- - - - + +
+ +
+ +
+ Cosmos Cloud +
-
- ← Cosmos Core -
- - SECURE CHANNEL · {{.Service}} +
+ + Sovereign Identity Gateway
-
-
-
- + +
+
+
+ + - - - Cosmos {{.Service}} - +
+ {{if eq .Service "git"}} + Forge Git Provisioning +

Initialize Forge Developer Account

+

Deploy repositories, CI workflows, and manage SSH authentication keys.

+ {{else if eq .Service "orbit"}} + Orbit Compute Node +

Provision Cluster Access

+

Deploy containerized web services, microVMs, and private network routing.

+ {{else}} + Oort NAS Storage +

Initialize Sovereign Space

+

Automatic 10GB S3 bucket and dedicated Mornye NAS streaming endpoint.

+ {{end}} +
-

Create your account

-

Provision your sovereign workspace and encryption keys

- - {{if .Error}} -
{{.Error}}
- {{end}} - -
-
-
- - + +
+
+ +
+ + +
-
- - -
3–20 chars, letters/numbers/_
-
-
- -
- - -
-
- -
- -
- - - - - +
+ +
+ +
-
Click to upload or drag & drop
-
PNG, JPG, GIF up to 5MB
- -
- - + +
+ +
-
-
-
-
-
- -
-
Caps Lock is on
-
- -
- - +
+
+ +
+ + +
+
+ +
+ +
+ + +
-
- + + + + -

By creating an account you agree to cryptographic isolation terms and private data sovereignty.

- -
-