The rule engine calculates a marriage-readiness score by weighting five dimensions and outputs strengths, weaknesses and priority improvements
konkatsu-diagnosis-lp — Vite Business Template
By yuuchi55
A diagnosis-style landing page template for small marriage agencies and independent marriage-consultation advisers, using rule-based scoring to show marriage-readiness and guide visitors to a free consultation or LINE.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 2
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
The results page includes a profile improvement example (Before→After) that incorporates the visitor's "biggest concern"
Questions, CTA links, scoring and copy are centralized in the data and engine directories for easy replacement
No server or API key is required by default, and it can be built as static files and deployed to Vercel or Netlify
aiEngine.ts and an engine switch entry point are reserved, so it can be changed to call Claude or OpenAI following the README steps
Template Details
This template is a diagnosis-style landing page built on React, Vite and TypeScript. It targets small marriage agencies and independent marriage-consultation advisers who acquire leads through their website or social media but have a weak path to conversion before consultation. After visitors answer questions about their marriage-seeking situation, the page shows a marriage-readiness score (out of 100), strengths, weaknesses, the 3 points they should improve first, and a profile improvement example, then guides them to book a free consultation or register via LINE.
The diagnosis logic uses a rule engine by default and does not depend on external AI, so no server or API key is required and it can be deployed to static hosting. The README states that scoring covers five dimensions—clarity of goals, volume of action, results in encounters, profile presentation and accumulated activity—and calculates a total by weight. Dimensions scoring 70 or above are classified as strengths and those at 45 or below as weaknesses; combined with the visitor's "biggest concern," the page generates improvement suggestions and a profile rewrite example.
The template separates the page, data and diagnosis engine: questions and options are in data/questions.ts, CTA links and the agency name are in data/config.ts, and scoring and copy are in engine/ruleBasedEngine.ts. The README also provides steps for later switching to Claude or OpenAI, but stresses that API keys must not be placed on the browser side and that production use requires relaying through a self-hosted server. The README does not document performance, accessibility or production readiness.
Is it right for your project?
Use Cases
- A small marriage agency directs traffic from its existing website or social media to a free diagnosis, then to a free consultation booking
- An independent marriage-consultation adviser uses the diagnosis results as pre-consultation material to show the visitor's marriage-seeking situation
- Deploy as a static landing page to Vercel or Netlify and collect consultation interest through CTA links outside the form
Suitable For
- Marriage agencies that want to improve pre-consultation conversion through a "free diagnosis → free consultation" path
- Independent advisers without the technical resources to build a diagnosis tool themselves but able to edit configuration files following the README
- Developers who need a lightweight diagnosis page template that can be forked and have its copy and CTAs replaced
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install, start locally with npm run dev, and generate production files with npm run build
- 2
Replace the agency name and the CTA links for the free consultation and LINE in src/data/config.ts; the initial values are placeholder URLs on example.com
- 3
Adjust questions in src/data/questions.ts and typeQuestions.ts, and adjust scoring and copy in src/engine/ruleBasedEngine.ts
- 4
To switch to an AI engine, implement src/engine/aiEngine.ts and switch it in src/engine/index.ts, and keep the API key on a self-hosted server
- 5
The README states that diagnosis results are general reference only and that actual advice should be given in the free consultation
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version under the MIT license in the public repository; the free scope is the code of that version and does not mean external services or third-party assets are free.
Must comply with when using
- The code of this version may be used, modified, used commercially and distributed free of charge.
- When distributing copies or substantial portions of the code, the original author's copyright notice and the full MIT license notice must retain.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments or AI may incur separate charges.
- The CTA links (config.ts) initially contain placeholder URLs on example.com and must be replaced with real links before going public.
- If switched to an AI engine, the API key must not be placed on the browser side, or it will be stolen; production use requires a self-hosted server to relay and safeguard the key.
- The default rule engine requires no server or API key; however, switching to the Claude/OpenAI engine requires a self-hosted server and incurs the corresponding external service costs.
- Diagnosis results are reference only, based on general trends, and actual advice should be given in the free consultation.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
- CTAリンク(`config.ts`)は初期状態でダミーURL(example.com)です。公開前に必ず差し替えてください。
Original README
APIキーをブラウザ(フロント)に置くと**盗まれます**。本番では必ず
Original README
外部AI不要で動くため、**サーバーもAPIキーも不要・無料ホスティングで即公開**できます。
Original README
https://github.com/yuuchi55/konkatsu-diagnosis-lp/blob/main/LICENSEhttps://github.com/yuuchi55/konkatsu-diagnosis-lp/blob/main/README.md- 本診断は一般的な傾向に基づく目安です。実際の提案は無料相談で行う想定です。
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-18. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 85 / 100
- Technologies
- Vite · React
- Website type
- Corporate Website
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-06-26
- Screenshot last checked
- 2026-10-18
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Vite as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: codex-user-requested-batch-review-20261021 · 2026-10-21
Inspect the recorded source material
SHA-256: ff8d3e9cda7288e75431589601591d44d025037dfc556270fb55bbc761af3ea2
2026-10-18T21:47:53.609Z
Source file / repository# 3分婚活診断AI
> 小規模な結婚相談所・個人コンサル向けの、**「無料診断 → 無料相談予約」へ送客する診断LPテンプレート**です。
> フォークして文言・CTAを差し替えるだけで、自分の相談所用の診断ページを最短で公開できます。
🔗 **デモ:https://konkatsu-shindan-demo.vercel.app**
## 解決する課題(誰のための何か)
- **対象**:見込み客をHP・SNSで集めているが、**問い合わせ前のひと押し(送客導線)が弱い**小規模な結婚相談所・個人の婚活コンサル。
- **課題**:「いきなり無料相談」はハードルが高く離脱する。けれど診断ツールを自前で作る技術リソースはない。
- **このテンプレで解決**:見込み客が婚活状況を入力すると、
**婚活準備スコア(100点満点)/強み/弱点/今すぐ直すべき3点/プロフィール改善例**
を表示し、最後に**無料相談の予約・LINE登録へ自然に誘導**します。
外部AI不要で動くため、**サーバーもAPIキーも不要・無料ホスティングで即公開**できます。
- 技術:React 19 + Vite + TypeScript
- 診断ロジック:**最初は外部AIを使わないルールベース**(あとからClaude / OpenAI APIへ差し替え可能)
## このテンプレートの使い方(フォークする人向け)
1. このリポジトリをフォーク/クローンして `npm install`
2. `src/data/config.ts` の相談所名・CTAリンク(無料相談 / LINE)を自分のものに差し替え
3. `src/data/questions.ts`・`typeQuestions.ts` で質問文を、`src/engine/ruleBasedEngine.ts` で点数・文言を調整
4. `npm run build` → Vercel / Netlify など静的ホスティングへデプロイ
---
## 起動方法
```bash
npm install
npm run dev
```
表示されたURL(例:http://localhost:5173 )をブラウザで開いてください。
ビルド(本番用ファイル生成):
```bash
npm run build # 型チェック + ビルド
npm run preview # ビルド結果をローカル確認
```
---
## ファイル構成と「どこを直すか」
```
src/
├─ App.tsx 画面の切り替え(フォーム⇔結果)だけ
├─ index.css 見た目(色・レイアウト)を変えるならここ
├─ components/
│ ├─ DiagnosisForm.tsx 入力フォームの画面
│ └─ ResultView.tsx 診断結果の画面
├─ engine/ ★診断ロジック(差し替えの中心)
│ ├─ types.ts 入力・出力の「型」= 画面とロジックの契約書
│ ├─ index.ts diagnose() の窓口。使うエンジンの切替もここ
│ ├─ ruleBasedEngine.ts ルールベース診断の中身(点数・文言)
│ └─ aiEngine.ts AI版のひな形(今は未使用)
└─ data/
├─ questions.ts 入力項目・選択肢の定義(文言変更はここ)
└─ config.ts CTAリンク(無料相談・LINE)・相談所名
```
| やりたいこと | 編集するファイル | |
| ----------------- | -------------------------------------------------------- | --- |
| 質問文・選択肢を変える | `src/data/questions.ts` | |
| 無料相談・LINEのURLを変える | `src/data/config.ts` | |
| 点数の付け方・結果の文章を変える | `src/engine/ruleBasedEngine.ts` | |
| 結果画面の見た目・項目の並び | `src/components/ResultView.tsx` + `src/index.css` | |
| 診断をAIに差し替える | `src/engine/aiEngine.ts` を実装 → `src/engine/index.ts` で切替 | |
---
## 診断ロジックの仕組み(ルールベース)
`ruleBasedEngine.ts` は次の5観点をそれぞれ0〜100点で評価し、重み付き平均で総合スコアを出します。
| 観点 | 元になる入力 | 重み |
|---|---|---|
| 目標の明確さ | いつまでに結婚したいか | 20% |
| 行動量 | 現在の活動状況 | 25% |
| 出会いの成果 | マッチング・交際経験 | 25% |
| プロフィールの見せ方 | 写真・プロフィールの自信 | 20% |
| 活動の積み重ね | 婚活歴 | 10% |
- 70点以上の観点 → **強み**、45点以下 → **弱点** として文章化
- 低い観点や「一番の悩み」に合わせて **今すぐ直すべき3つ** を選択
- 「一番の悩み」に合わせて **プロフィール改善例(Before→After)** を表示
点数・文言はすべて同ファイル内のテーブルにまとまっているので、相談所の方針に合わせて調整できます。
---
## あとからAI(Claude / OpenAI)に差し替える手順
画面・データはそのままで、エンジンだけ差し替えられる設計です。
1. `src/engine/aiEngine.ts` を実装する
- 返り値は必ず `DiagnosisResult` 型(`types.ts`)に合わせる
- 雛形に **Claude/OpenAI共通のプロンプト例** をコメントで用意済み
2. `src/engine/index.ts` でエンジンを切り替える
```ts
// import { aiEngine } from './aiEngine'; // ← コメントを外す
const activeEngine: DiagnosisEngine = ruleBasedEngine;
// const activeEngine: DiagnosisEngine = aiEngine; // ← こちらに変える
```
これだけで画面コードを変えずにAI診断へ移行できます。
### ⚠️ セキュリティ上の注意(重要)
APIキーをブラウザ(フロント)に置くと**盗まれます**。本番では必ず
**自前のサーバー(API Route / Cloud Functions など)を1枚はさみ**、
そこでキーを保管してClaude/OpenAIを呼んでください。
```
ブラウザ → 自前サーバー(キー保管)→ Claude / OpenAI API
```
`aiEngine.ts` のコメントは、このサーバー経由の呼び出し(`/api/diagnose`)を前提にした例になっています。
---
## 備考
- 本診断は一般的な傾向に基づく目安です。実際の提案は無料相談で行う想定です。
- CTAリンク(`config.ts`)は初期状態でダミーURL(example.com)です。公開前に必ず差し替えてください。
---
## コントリビューション / セキュリティ
- 改善提案・バグ報告は [`CONTRIBUTING.md`](./CONTRIBUTING.md) を参照してください。
- 脆弱性は公開Issueではなく [`SECURITY.md`](./SECURITY.md) の手順で報告してください。
## ライセンス
[MIT License](./LICENSE) です。商用・改変・再配布自由です。
自分の相談所用にフォークして使ってください。
Explore similar templates
Compare previews and descriptions within the same stack and category.

business-website-template
A React, Tailwind CSS, and Vite corporate website template with a single-page structure covering header, hero, features, billing, product showcase, testimonials, clients, call-to-action, and footer.
Vite · Corporate Website

kiaalap
Kiaalap is a free, open-source admin template from Colorlib for education, online courses, and school management.
Vite · Admin dashboard

saasboard
SaaSBoard is an open-source SaaS admin dashboard template from MekuHQ, built with React, Vite, and Tailwind CSS. It provides pages for Tools, Reports, Billing, Settings, and Support, along with shared components such as Sidebar, Layout, and Topbar.
Vite · Admin dashboard

crowdup
CrowdUp is a self-hostable crowdfunding platform template built on React Router, Supabase and Stripe Connect.
Vite · Corporate Website

vite-react-ts-shadcn-ui
A Vite-based React + TypeScript frontend starter template with Shadcn/ui and TailwindCSS, plus ESLint, Prettier, Husky, Commitlint, Lint-staged and Playwright built in.
Vite · Corporate Website

vite-vanilla-ts
A Vite-based Vanilla TypeScript starter template for native HTML and TypeScript websites, SPAs, or landing pages without a UI framework. It presets TypeScript, TailwindCSS, SASS, PostCSS, and Playwright, and integrates ESLint, Prettier, Husky, and Commitlint.
Vite · Corporate Website
