Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ npm run dev
**Security Note:**
- Dev mode ONLY activates when `NODE_ENV==='development'` AND `hostname==='localhost'`
- Password stored in plain text in IndexedDB (local only, never sent to server)
- Clear dev data: `indexedDB.deleteDatabase('gwasifier_dev_mode')` in browser console
- Clear dev data: `indexedDB.deleteDatabase('monaidc_dna_explorer_dev_mode')` in browser console

**Enable Full Auto-Load in Brave:**
1. Open `brave://settings/`
Expand Down Expand Up @@ -378,7 +378,7 @@ WHERE accessed_at < NOW() - INTERVAL '90 days'

## Premium Features & Payments

GWASifier offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports.
Monadic DNA Explorer offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports.

### Dual Payment System

Expand Down
2 changes: 1 addition & 1 deletion STABLECOIN_PAYMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

GWASifier Premium now uses a **database-free, stablecoin-based payment system**. Users pay with stablecoins (USDC, USDT, or DAI) from their connected wallet, and subscription status is verified on-chain using Alchemy's indexer API.
Monadic DNA Explorer Premium now uses a **database-free, stablecoin-based payment system**. Users pay with stablecoins (USDC, USDT, or DAI) from their connected wallet, and subscription status is verified on-chain using Alchemy's indexer API.

## How It Works

Expand Down
6 changes: 3 additions & 3 deletions app/components/DisclaimerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis
// More generous threshold for reaching bottom
const threshold = 30;
const isAtBottom = scrollTop + clientHeight >= scrollHeight - threshold;

// Also check if content is shorter than container (no scrolling needed)
const needsScrolling = scrollHeight > clientHeight;

if (isAtBottom || !needsScrolling) {
setHasScrolledToBottom(true);
}
Expand Down Expand Up @@ -64,7 +64,7 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis
<div className="disclaimer-text" onScroll={handleScroll}>
<p><strong>This is an entertainment and educational application only.</strong></p>

<p>GWASifier is designed for entertainment, curiosity, and educational purposes. It is <strong>NOT</strong> a medical device, diagnostic tool, or healthcare application.</p>
<p>Monadic DNA Explorer is designed for entertainment, curiosity, and educational purposes. It is <strong>NOT</strong> a medical device, diagnostic tool, or healthcare application.</p>

<h3>Critical Understanding:</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion app/components/LLMChatInline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ Remember: You have plenty of space. Use ALL of it to provide a complete, thoroug
</div>
${chatContent}
<div style="margin-top: 3rem; padding-top: 1rem; border-top: 2px solid #ddd; color: #666; font-size: 0.9rem; text-align: center;">
Generated by GWASifier • For Educational Purposes Only
Generated by Monadic DNA Explorer • For Educational Purposes Only
</div>
</body>
</html>
Expand Down
14 changes: 9 additions & 5 deletions app/components/NillionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function NillionModal({ isOpen, onClose }: NillionModalProps) {
setProcessingSteps([
{ step: 'Searching genetic database for risk-related traits', status: 'active' },
{ step: 'Matching studies with your genetic profile', status: 'pending' },
{ step: 'Analyzing genetic risk factors with AI', status: 'pending' },
{ step: 'Analyzing genetic risk factors with nilAI', status: 'pending' },
{ step: 'Storing results securely in nilDB', status: 'pending' },
{ step: 'Generating your degen score', status: 'pending' }
]);
Expand Down Expand Up @@ -269,15 +269,15 @@ Provide:
2. Brief, balanced trading behavior advice (1-2 sentences) considering this genetic profile

Respond ONLY with JSON:
{"geneticScore": 7.5, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`;
{"geneticScore": x, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`;

const llmResponse = await callLLM([
{ role: 'system', content: 'You are a genetics specialist.' },
{ role: 'user', content: prompt }
], {
maxTokens: 500,
maxTokens: 10000,
temperature: 0.7,
reasoningEffort: 'low'
reasoningEffort: 'high'
});

// Parse LLM response
Expand Down Expand Up @@ -401,7 +401,11 @@ Respond ONLY with JSON:
</p>
<p>
Answer a few questions about your trading behavior, then we'll calculate
your degen score based on your genetic traits related to risk appetite.
your degen score using nilAI based on your genetic traits related to risk appetite.
</p>
<p>
Your responses will be stored securely in nilDB and we'll publish an analysis
of the delta between self-reported and genetically-derived degen scores.
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/components/OverviewReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export default function OverviewReportModal({ isOpen, onClose }: OverviewReportM
fontSize: '0.9rem',
textAlign: 'center'
}}>
Generated by GWASifier • For Educational Purposes Only
Generated by Monadic DNA Explorer • For Educational Purposes Only
</div>
</div>
) : (
Expand Down
4 changes: 2 additions & 2 deletions app/components/TermsAcceptanceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function TermsAcceptanceModal({ isOpen, onAccept }: TermsAcceptan
<p>
Please read our full{" "}
<a
href="https://github.com/Monadic-DNA/GWASifier/blob/main/terms_and_conditions.md"
href="https://github.com/Monadic-DNA/Explorer/blob/main/terms_and_conditions.md"
target="_blank"
rel="noopener noreferrer"
className="terms-link"
Expand All @@ -56,7 +56,7 @@ export default function TermsAcceptanceModal({ isOpen, onAccept }: TermsAcceptan
</a>
{" "}and{" "}
<a
href="https://github.com/Monadic-DNA/GWASifier/blob/main/privacy_policy.md"
href="https://github.com/Monadic-DNA/Explorer/blob/main/privacy_policy.md"
target="_blank"
rel="noopener noreferrer"
className="terms-link"
Expand Down
2 changes: 1 addition & 1 deletion lib/dev-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* This should NEVER be enabled in production.
*/

const DB_NAME = 'gwasifier_dev_mode';
const DB_NAME = 'monadic_dna_explorer_dev_mode';
const DB_VERSION = 1;
const STORE_NAME = 'file_handles';
const GENOTYPE_HANDLE_KEY = 'genotype_file_handle';
Expand Down
2 changes: 1 addition & 1 deletion lib/llm-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface LLMConfig {
huggingfaceApiKey?: string;
}

const STORAGE_KEY = 'gwasifier_llm_config';
const STORAGE_KEY = 'monadic_dna_explorer_llm_config';

const DEFAULT_CONFIG: LLMConfig = {
provider: 'nilai',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gwasifier",
"name": "Monadic DNA Explorer",
"version": "1.0.0",
"description": "Match your DNA data against an open ended catalogue of DNA traits",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions sql/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Database Index Optimization for GWASifier
# Database Index Optimization for Monadic DNA Explorer

This directory contains SQL files to optimize database performance for the GWAS Catalog data used by GWASifier.
This directory contains SQL files to optimize database performance for the GWAS Catalog data used by Monadic DNA Explorer.

## Files

Expand All @@ -9,7 +9,7 @@ This directory contains SQL files to optimize database performance for the GWAS

## Performance Impact

These indexes are designed to optimize the most common query patterns in GWASifier:
These indexes are designed to optimize the most common query patterns in Monadic DNA Explorer:

1. **Text searches** across studies, traits, authors, and genes
2. **P-value filtering** for statistical significance
Expand Down
2 changes: 1 addition & 1 deletion sql/postgres_indexes.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- PostgreSQL Index Optimization for GWAS Catalog
-- These indexes optimize the common query patterns used by GWASifier
-- These indexes optimize the common query patterns used by Monadic DNA Explorer
--
-- Performance note: Run these after loading your data for optimal performance
-- Consider running VACUUM ANALYZE after creating indexes
Expand Down
2 changes: 1 addition & 1 deletion sql/postgres_schema.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- GWASifier Database Schema - PostgreSQL
-- Monadic DNA Explorer Database Schema - PostgreSQL
-- This is the complete schema including all tables and indexes

-- ========================================
Expand Down
Loading