WallpaperMachine
The wallpapers you love. A new home on your Mac.
자미두수, 사주, 타로 상담을 진행하고 내담자 정보를 관리하며 PDF 리포트를 생성하는 도구
Translation pending
AI summary · website and README
LifestyleHTML · JavaScriptGitHub @key7536-pngOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
✦ 천운 상담도구 v2 — Vercel + Supabase GitHub Pages → Vercel + Supabase 이전 버전 API 키 서버사이드 보호 + 고객 데이터 클라우드 동기화 2단계 — Vercel 환경변수 설정 (API 키 등록) Vercel 대시보드 → 프로젝트 → Settings → Environment Variables ⚠️ 환경변수 추가 후 반드시 Redeploy 해야 적용됩니다. 3단계 — Supabase 설정 (고객 데이터 클라우드) 1. supabase.com → 무료 프로젝트 생성 2. SQL Editor에서 아래 실행: 3. Settings → API → Project URL 과 anon public key 복사 4. 앱 접속 후 상단 ⚙ 아이콘 → URL/Key 입력 → 연결 저장Read the full README ↗
GitHub Pages → Vercel + Supabase 이전 버전
API 키 서버사이드 보호 + 고객 데이터 클라우드 동기화
cheonun-vercel/
├── api/
│ └── ai.js ← Vercel Serverless Function (Gemini API 프록시)
├── public/
│ └── index.html ← 메인 앱 (Supabase 연동)
├── vercel.json ← Vercel 라우팅 설정
├── package.json
└── README.md
# Vercel CLI 설치 (없으면)
npm i -g vercel
# 프로젝트 폴더에서
cd cheonun-vercel
vercel
# 첫 배포 시 질문들:
# Set up and deploy? → Y
# Which scope? → 본인 계정 선택
# Link to existing project? → N
# What's your project's name? → cheonun-consulting (또는 원하는 이름)
# In which directory is your code? → ./
Vercel 대시보드 → 프로젝트 → Settings → Environment Variables
GEMINI_KEY_1 = AQ.Ab8RN... (무료 키 1번)
GEMINI_KEY_2 = AQ.Cd9KM... (무료 키 2번)
...최대 GEMINI_KEY_30까지...
GEMINI_PAID_KEY = AQ.유료키... (유료 키, 선택)
⚠️ 환경변수 추가 후 반드시 Redeploy 해야 적용됩니다.
CREATE TABLE IF NOT EXISTS cheonun_clients (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
name text NOT NULL,
gender text,
birth text,
hour text,
topic text,
question text,
saved_at text,
updated_at timestamptz DEFAULT now()
);
ALTER TABLE cheonun_clients ENABLE ROW LEVEL SECURITY;
CREATE POLICY "allow_all" ON cheonun_clients FOR ALL USING (true);
# vercel dev (로컬 서버 + 환경변수 자동 로드)
vercel dev
# 브라우저: http://localhost:3000
환경변수는 .env.local 파일에도 설정 가능:
GEMINI_KEY_1=AQ.Ab8RN...
GEMINI_KEY_2=AQ.Cd9KM...
# GitHub 저장소 생성 후
git init
git add .
git commit -m "천운 상담도구 v2 — Vercel+Supabase"
git remote add origin https://github.com/key7536-png/cheonun-v2.git
git push -u origin main
# Vercel 대시보드 → Import Git Repository → 연결
# main 브랜치 push 시 자동 배포됩니다
| 항목 | GitHub Pages (구버전) | Vercel (신버전) |
|---|---|---|
| API 키 | HTML 파일 안에 내장 | 서버 환경변수로 보호 |
| 고객 저장 | 기기 localStorage만 | Supabase 클라우드 동기화 |
| 기기 간 동기화 | ❌ | ✅ (Supabase) |
| AI 모델 | Gemini 직접 호출 | Vercel 프록시 경유 |
| 배포 | GitHub Pages | Vercel (자동 HTTPS) |
기존 사주·타로 상담 로직을 변경하지 않고 /ziwei.html에 독립 화면으로 추가되어 있습니다.
자미두수 계산은 MIT 라이선스의 iztro 2.6.0을 사용하며, 브라우저용 고정 버전을 public/vendor에 포함합니다. 계산 회귀 테스트는 다음 명령으로 실행합니다.
npm test
/clients.html은 기존 상담 로직과 분리된 로컬 고객관리 화면입니다.
/saju-analysis.html의 사주 기본분석 양식을 연결iztro 2.6.0으로 양력 변환한 뒤 동일한 사주 엔진에 전달합니다.?key=) 방식으로 서버(Vercel 함수) 안에서만 전달하며, 브라우저 화면에는 노출되지 않습니다.카카오채널: pf.kakao.com/_TTxmxhX
쇼핑몰: 자개빛.shop
외부에서 받은 "사주/운세 완벽 분석기 마스터 프롬프트"를 앱에 맞게 정리해 넣은 상담 방식. 코드는 public/deep-saju.js.
public/report.js(로직) · public/report.css(디자인) · 계산은 public/deep-saju.js의 luckFacts / chartTable.
절기 기준 만세력 라이브러리(lunar-javascript)와 대조한 결과:
대조값 40건은 tests/manse-reference.test.js로 고정해 두었어요.
절입 경계 출생(시진 안에 절입 순간이 있음)은 PDF 리포트 핵심 판단 화면에 ⚠️로 표시돼요. 리포트 글에 자료 밖 간지나 연도·간지를 잘못 짝지은 표현(예: "2027년 병오")이 나오면 장마다 ⚠️로 표시돼요.