Skip to content

Latest commit

 

History

1,362 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soul Codex

A personal insight and journaling app for self-discovery

It is not a horoscope generator. It is not incense smoke wrapped in JSON. It calculates your birth chart, derives your Human Design type and gates, maps your Gene Key profile, computes your numerology, and weaves these together into a coherent narrative that respects your intelligence and does not predict your fate.


What the 35+ Systems Actually Do

Category Systems Included
Western Astrology Sun/Moon/Rising, 10 planets, 12 houses, major aspects, Chiron, Lilith, North Node
Vedic Astrology Jyotish chart, Nakshatras (27 lunar mansions), Dasha periods
Human Design Type (Generator/Manifestor/Projector/Reflector/MG), Strategy, Authority, Profile, Defined/Open Centers
Gene Keys Activation Sequence (Life's Work, Evolution, Radiance, Purpose), Shadow → Gift → Siddhi arc
Numerology Life Path, Expression, Soul Urge, Personality, Birthday, Maturity numbers
Tarot Birth card pair (Major Arcana), year card, monthly card
I Ching Hexagram derived from birth data, line reading
Runes Birth rune and current-cycle rune
Fixed Stars Prominent fixed stars conjunct natal planets
Chinese Astrology Year animal, element, inner/secret animals
Mayan Calendar Tzolk'in day sign and tone
Elemental Medicine Five-element profile (Wood/Fire/Earth/Metal/Water)
Enneagram Type and wing suggestion based on chart signature
MBTI overlay Cognitive function stack correlated to chart
Chakra system Dominant and blocked chakras from chart patterns
Sacred Geometry Core geometric archetype from numerology/chart
Moral Compass Core values cluster derived from chart emphasis

All calculations are performed on the server using real ephemeris data (astronomy-engine). No hardcoded readings. Every result is computed from your exact birth date, time, and place.


The 4 Core Experiences (MVP)

1. Profile

Enter your birth date, time, and place once. The engine calculates all 35+ systems and renders your complete Soul Codex — a layered portrait of your archetype, strengths, shadow, purpose, and life path.

2. Daily

Every day, your transiting planets, active Gene Key, Tarot card of the day, and I Ching reading combine into a Daily Soul Context — not a forecast, a lens for today.

3. Compatibility

Add any person (partner, friend, colleague). The engine runs a 5-pillar compatibility analysis: synastry aspects, Human Design inter-type dynamics, Gene Key resonance, numerology harmony, and elemental balance.

4. Codex Reading

A deeper dive into your full reading with AI-generated synthesis (powered by Google Gemini), section-by-section interpretation, and PDF export for offline use.


Tech Stack

Layer Technology
Frontend React 18, TypeScript, TailwindCSS, Radix UI, Wouter
Backend Node.js 20, Express.js, TypeScript
Database PostgreSQL via Neon (serverless), Drizzle ORM
AI Google Gemini (primary), OpenAI GPT-4 (fallback)
Payments Stripe (subscriptions)
Build Vite 5 (client), esbuild (server)
Auth Passport.js local strategy, Argon2id password hashing
Ephemeris astronomy-engine (real planetary calculations)

Quick Start

# 1. Clone
git clone https://github.com/Bboy9090/Ultimate-SoulCodex-Engine-of-the-Eternal-Now.git
cd Ultimate-SoulCodex-Engine-of-the-Eternal-Now

# 2. Install
npm install

# 3. Configure environment
cp .env.example .env
# Edit .env — minimum required: DATABASE_URL (or set DEMO_MODE=true to skip DB)

# 4. Build
npm run build

# 5. Run
npm start

Open http://localhost:3000.

Note on npm run dev: The dev script uses Vite for hot-module reloading. If you're running locally without a Vite-enabled platform environment, use npm run build && npm start instead. npm start always works after a build.

Demo Mode (No Database Required)

Set DEMO_MODE=true in your .env to run with a seeded demo profile. No PostgreSQL setup needed. All features work except persisting new users and payments.


Environment Variables

See .env.example for the full list. Key variables:

Variable Required Description
DATABASE_URL Unless DEMO_MODE=true PostgreSQL connection string (Neon recommended)
DEMO_MODE No Set to true to run with seeded demo data, no DB required
SESSION_SECRET Yes (prod) Random secret for session signing
GEMINI_API_KEY Recommended Google Gemini API key for AI synthesis
OPENAI_API_KEY Optional OpenAI fallback for AI features
STRIPE_SECRET_KEY Optional Stripe key for payment processing

Deployment

Supports Railway, Fly.io, Render, and any VPS with Docker.

Health check endpoint: GET /health{ "status": "ok" }


Roadmap

See ROADMAP.md for what's live, what's coming, and what's intentionally out of scope.

Changelog

See CHANGELOG.md for release history.

Documentation

For deeper understanding:

  • docs/soul-codex/README.md
  • docs/soul-codex/product-doctrine.md
  • docs/soul-codex/system-boundaries.md
  • docs/soul-codex/reading-quality-standard.md
  • docs/soul-codex/confidence-rules.md
  • docs/soul-codex/explanation-template.md
  • docs/soul-codex/parent-family-layer.md
  • docs/engine/calculation-contract.md
  • docs/engine/ephemeris-strategy.md
  • docs/engine/system-inputs.md
  • docs/engine/system-outputs.md
  • docs/engine/test-fixtures.md

Working architecture in this repo

The active app path in this worktree is root-level:

  • Backend entry: server/index.ts (Express + Vite middleware in dev).
  • Frontend entry: client/src/main.tsx (served by root vite.config.ts with client/ root).
  • Route layer: root routes.ts.
  • Shared and engine packages: packages/* (core, db, ai, astrology).

Quick Start

Prerequisites

  • Node.js 20 (use nvm: nvm use 20)
  • npm 10+

Installation & Setup

  1. Clone the repository
git clone https://github.com/Bboy9090/Ultimate-SoulCodex.git
cd Ultimate-SoulCodex
  1. Install dependencies
npm install
  1. Configure environment
cp .env.example .env

For local development without a database, set in .env:

DEMO_MODE=true
SESSION_SECRET=your-secret-here

This enables demo mode with in-memory storage for local development.

  1. Build workspace packages
npm run build -w packages/db
npm run build -w packages/core
  1. Start the development server
source ~/.nvm/nvm.sh && nvm use 20
NODE_ENV=development npx tsx server/index.ts
  1. Open the app Navigate to http://localhost:5000

Production Build

npm run build:client  # Build frontend to dist/public/
npm run build:server  # Build backend to dist/
npm start             # Run production server

Environment Variables

Variable Required Description
SESSION_SECRET Yes Session encryption key. Server fails fast without it.
DEMO_MODE No Set true for in-memory storage (no database).
DATABASE_URL No Postgres connection string. Omit for MemStorage.
GEMINI_API_KEY No Google Gemini AI. Falls back to deterministic if absent.
GROQ_API_KEY No Groq AI (second cascade tier).
OPENAI_API_KEY No OpenAI (third cascade tier).
ALLOWED_ORIGINS No Comma-separated CORS origins for production. Dev allows all.
NODE_ENV No Set production for secure cookies, generic errors, helmet defaults.
PORT No Server port (default: 5000).

Testing

Six smoke test suites verify all core systems. No database or AI keys required for non-AI tests.

# Service-level tests (no server needed)
npx tsx scripts/smoke-astrology.ts       # 7/7 — natal chart, vedic, transits
npx tsx scripts/smoke-compatibility.ts   # 6/6 — scoring honesty, missing systems
npx tsx scripts/smoke-unknown-time.ts    # 7/7 — AI unknown-time guards

# Server-level tests (start server first)
SESSION_SECRET=dev DEMO_MODE=true PORT=5055 npx tsx server/index.ts &
SMOKE_BASE=http://localhost:5055 npx tsx scripts/smoke-premium.ts      # 7/7
SMOKE_BASE=http://localhost:5055 npx tsx scripts/smoke-production.ts   # 7/7
SMOKE_BASE=http://localhost:5055 npx tsx scripts/smoke-ai-live.ts      # 4/4 (needs AI keys)

Total: 38/38 tests across 6 suites.

Architecture Overview

The active app structure:

  • Backend: server/index.ts (Express + Vite middleware in dev mode)
  • Frontend: client/src/main.tsx (React SPA)
  • Routes: routes.ts (~3900 lines)
  • Packages: packages/* (core, db, ai, astrology)

Key Files

  • Confidence model: CONFIDENCE.md
  • Runtime confidence: packages/core/compute/confidence.ts
  • Output schema: packages/core/soulcodex-v1/schema.ts
  • Generator pipeline: packages/core/soulcodex-v1/generate.ts

Known Limitations (MVP)

  • No fake or randomly generated mystical data
  • Basic personalization (not deeply customized at MVP stage)
  • AI-powered features require API keys (GEMINI_API_KEY or OPENAI_API_KEY)
  • Journal UI page pending implementation
  • Saved insights UI pending implementation

Next Steps

See ROADMAP.md for planned features:

  • Dynamic reading engines
  • Data privacy review
  • Mobile sync capabilities
  • Enhanced journal UI
  • Saved insights interface

Contributing

See AGENTS.md for development guidelines and the "No Illusion" rule:

  • Never invent results or fake success
  • No placeholders/mocks in production paths
  • Small, focused PRs only
  • Always verify changes work end-to-end

License

Private repository - All rights reserved.

About

Mobile-first mystical personality app synthesizing 30+ spiritual systems (astrology, numerology, Human Design) with AI-powered insights for self-discovery and relationships

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages