README
README.md
The Integrity Studio - Documentation
React-based web application with Auth0 authentication, PostgreSQL database, Tinybird analytics, and comprehensive monitoring.
Quick Links
- Quick Start Guide - Get started in 5 minutes
- Next Steps - What to do after setup
- Test Documentation - Testing guides and commands
Technology Stack
Frontend
- React 18 + TypeScript - Modern React with type safety
- Vite - Fast build tool and dev server
- Tailwind CSS - Utility-first styling
Backend & Database
- PostgreSQL - User data and application state
- Prisma - Type-safe database ORM
Authentication & Analytics
- Auth0 - User authentication and management
- Google Analytics 4 - Web analytics
- Facebook Pixel - Marketing analytics
- Tinybird - Real-time event streaming and metrics
Testing
- Vitest - Unit and integration tests
- Playwright - End-to-end browser testing
- Accessibility tests - WCAG compliance validation
Development Workflow
# Install dependencies
npm install
# Start dev server
npm run dev
# Run tests
npm test
Quick Start Guide
QUICK_START.md
Quick Start: Auth0
Get up and running with Auth0 in 5 minutes.
Quick Setup
# Install and configure (one command!)
npx @auth0/auth0-mcp-server init
# Follow the interactive prompts:
# - Select your MCP client (Claude Desktop, Cursor, etc.)
# - Choose read-only scopes for safety
# - Authenticate in your browser
# - Done!
Test it: Open Claude Desktop and ask: "List all my Auth0 applications"
What You Get
- Manage Auth0 via AI/natural language
- 20+ authentication tools
- OAuth 2.0 compliant
- Free and open-source (MIT)
- One-command setup
Quick Troubleshooting
# Re-authenticate
npx @auth0/auth0-mcp-server logout
npx @auth0/auth0-mcp-server init
Marketing Strategy Summary v2.0
MARKETING_STRATEGY_SUMMARY.md
Integrity Studio LLC - Marketing Strategy Summary
AI Consulting for Nonprofit Organizations | Updated February 2026
Executive Summary
This document summarizes comprehensive market research on how Integrity Studio LLC should position and market its AI consulting services to nonprofit organizations in 2026. This version (2.0) includes a new Market & Competitive Environment Shifts section documenting changes since the original January 2025 plan.
Key Market Findings
| Indicator | Jan 2025 | Feb 2026 | Trend |
| Nonprofits using AI tools | 82% | 85%+ | ▲ Rising |
| Lack formal AI policy | 76% | 65-70% | ▼ Improving |
| Leaders feel unprepared | 92% | 75-80% | ▼ Improving |
| Concerned about data privacy | 70% | 72-78% | ▲ Increasing |
| Formal AI training provided | ~20% est. | 28% | ▲ Slow growth |
| Board discussing AI | 29% | 45% | ▲ Growing |
| AI-specific grant funding | $50M+ | $150M+ | ▲ 3x growth |
Strategic Positioning
Unique Value Proposition
"Enterprise AI capabilities at nonprofit-accessible pricing, with governance and responsible implementation built in from day one."
Key Differentiators
- Nonprofit-First Approach - Solutions designed for mission-driven constraints
- Responsible AI Focus - Ethics, governance, and compliance expertise (addressing the 65-70% policy gap); AI governance now a funder requirement
- Accessible Pricing - Sliding scale, pilot programs, and grant application support ($150M+ in AI grants available)
- Education-Centric - Capacity building over consultant dependency (only 28% of nonprofits have provided formal AI training)
- Technical + Strategic - Full-stack services from policy to implementation, including data readiness assessment
Go-to-Market Strategy
Phase 1: Foundation (Months 1-3)
- Join NTEN (Nonprofit Technology Enterprise Network)
- Optimize digital presence (website, LinkedIn)
- Create high-value lead magnet (AI Readiness Assessment)
- Launch LinkedIn outreach campaign
- Publish SEO-optimized blog posts
Phase 2: Traction (Months 4-6)
- Launch monthly webinar series
- Guest blogging campaign
- Develop "90-Day AI Pilot Program"
- Formalize referral partnerships
Phase 3: Authority Building (Months 7-12)
- Execute "State of AI in Nonprofits 2026" research report
- Submit speaking proposals for NTC 2027
- Launch "Nonprofit AI Practitioners" community
- Publish thought leadership in major outlets
Success Metrics
12-Month Targets
| Metric | Target |
| Email subscribers | 1,000-2,000 |
| LinkedIn followers | 1,500-3,000 |
| Qualified leads/month | 20-40 |
| Pilot programs completed | 3-6 |
| Full implementations | 1-3 |
| Year 1 revenue | $120K-$450K |
Market & Competitive Shifts NEW
MARKETING_STRATEGY_SUMMARY.md (new section)
Market & Competitive Environment Shifts (Jan 2025 → Feb 2026)
Material changes in the nonprofit AI market since the original plan was drafted.
Market Adoption Trajectory
The nonprofit AI landscape has moved from early experimentation to operational integration in 12 months.
NONPROFIT AI ADOPTION INDICATORS: Jan 2025 vs. Feb 2026
Using AI tools ████████████████░░░░ 82% (Jan 2025)
█████████████████░░░ 85%+ (Feb 2026) ▲ +3-5%
Lack formal AI policy ███████████████░░░░░ 76% (Jan 2025)
█████████████░░░░░░░ 65-70% (Feb 2026) ▼ -6-11%
Feel unprepared ██████████████████░░ 92% (Jan 2025)
███████████████░░░░░ 75-80% (Feb 2026) ▼ -12-17%
Privacy concerns ██████████████░░░░░░ 70% (Jan 2025)
███████████████░░░░░ 72-78% (Feb 2026) ▲ +2-8%
Formal AI training █████░░░░░░░░░░░░░░░ ~20% (Jan 2025 est.)
█████░░░░░░░░░░░░░░░ 28% (Feb 2026) ▲ +8%
Board discussing AI █████░░░░░░░░░░░░░░░ 29% (Jan 2025)
█████████░░░░░░░░░░░ 45% (Feb 2026) ▲ +16%
Key insight: Adoption is rising but governance lags badly. The "action gap" remains massive — only 28% train staff, 30-35% have formal policies. This is the core market opportunity.
Grant Funding Landscape (3x Growth)
AI GRANT FUNDING AVAILABLE TO NONPROFITS
Jan 2025: $50M+ ██████████░░░░░░░░░░░░░░░░░░░░
Feb 2026: $150M+ ██████████████████████████████░ ▲ 3x growth
| Funder | Jan 2025 | Feb 2026 | Change |
| OpenAI People-First AI Fund | $50M announced | $50M+ (grants distributed, 2nd cycle expected) | Maturing |
| Google.org AI Opportunity Fund | $17M | $75M+ globally | 4.4x increase |
| Microsoft AI for Good | 4 programs, ~$25M est. | 5 programs (+AI for Health), $50M+ | 2x increase |
| Patrick J. McGovern Foundation | Not in original plan | $40M+ committed | New entrant |
| Anthropic | Not in original plan | Nonprofit partnerships, discounted API | New entrant |
| AWS IMAGINE | Cloud credits only | Credits + expanded Gen AI category | Expanded |
| Community Foundations | Minimal | Austin ($1M), Silicon Valley, Cleveland, Chicago | Emerging trend |
| Total Estimated | $50M+ | $150-200M+ | 3x growth |
Competitive Landscape Evolution
| Competitor Category | Jan 2025 | Feb 2026 | Threat |
| Boutique AI consultants | <5 identifiable | 10-20+ entering market | MEDIUM ▲ |
| Nonprofit tech firms (Heller, Build, Cathexis) | AI as bolt-on | Dedicated AI practice areas | MEDIUM ▲ |
| Large firms (Accenture, Deloitte) | Serving large nonprofits only | Unchanged — still inaccessible | LOW ═ |
| Embedded platform AI (Copilot, Gemini, Einstein) | Early features | Deeply integrated, reducing basic tool consulting | HIGH ▲ |
| AI Ethics consultancies | Academic focus | Targeting nonprofit sector | MEDIUM ▲ |
| NTEN / TechSoup education | Basic webinars | Expanded AI training offerings | LOW-MED ▲ |
Biggest disruption: Not from other consultants — it's from embedded AI in major platforms. This reduces basic tool consulting demand but increases demand for strategic guidance, governance, training, and data readiness.
Regulatory Environment Changes
AI REGULATORY TIMELINE (Relevant to Nonprofits)
2024 EU AI Act adopted
├── International nonprofits must comply
└── Sets global precedent for AI governance
2025 US state-level AI laws accelerating
├── Colorado AI Act (automated decision-making)
├── California AI transparency requirements
└── 10+ additional states with active legislation
2025 Sector-specific AI regulation
├── HIPAA + AI guidance (health nonprofits)
├── FERPA + AI guidance (education nonprofits)
└── FTC enforcement actions on AI claims
2026 Insurance and funder requirements
├── D&O insurance carriers asking about AI policies
├── Foundations requiring AI ethics in grant apps
└── Government contracts requiring AI governance
Demand Shift: "What Is AI?" → "How Do We Govern It?"
| Jan 2025 | Feb 2026 |
| Phase | Experimentation — "Should we use AI?" | Operationalization — "How do we use AI well?" |
| Top question | What is AI? | AI governance & policy |
| Buyer motivation | Curious early adopter | Board mandate / funder requirement |
| Budget source | Discretionary / innovation fund | Compliance / strategic investment |
| Sales cycle | Education-led (6-12 weeks) | Problem-led, shorter for governance (3-6 weeks) |
Strategic Implications
| Shift | Implication | Action |
| Grant funding tripled | Grant support is a major revenue enabler | Bundle grant strategy into every engagement |
| Embedded AI in platforms | Basic tool consulting declining | Reposition as strategic/governance advisor |
| Regulatory tightening | Governance becomes compliance | Lead with compliance messaging |
| Competitor growth | More boutiques entering | Differentiate on full-stack + grant support |
| Funder requirements | AI ethics now required in grants | Create "grant-ready governance" package |
| Data infrastructure gap (68%) | AI tools outpacing data readiness | Add data readiness assessment offering |
| Only 28% train staff | Massive training gap | Expand training/workshop revenue line |
| Board engagement up (29%→45%) | Boards are a reachable audience | Create board-specific education products |
Marketing Budget & ROI Projections v2.0
MARKETING_BUDGET_ROI.md
Marketing Budget & ROI Projections
Year 1 Financial Planning | Updated February 2026
Executive Summary
| Scenario | Revenue | ROI |
| Conservative | $120,000-$200,000 | 5.5x to 9.1x |
| Moderate | $200,000-$350,000 | 9.1x to 15.9x |
| Optimistic | $350,000-$450,000 | 15.9x to 20.5x |
Total Year 1 Marketing Investment: $22,000-$24,000 (revised from $21,400-$22,000)
Budget Breakdown
One-Time Setup Costs
| Item | Cost |
| NTEN Individual Membership | $150 |
| Website SEO Optimization | $0 (in-house) |
| Lead Magnet Creation | $0 (in-house) |
Monthly Recurring Costs (2026 Pricing)
| Category | Monthly | Annual | Notes |
| Email Marketing Platform | $25-$50 | $300-$600 | Mailchimp, Kit (fka ConvertKit) |
| Webinar Platform (Zoom) | $79-$101 | $948-$1,212 | Webinars add-on + Workplace base |
| LinkedIn Sales Navigator | $100-$150 | $1,200-$1,800 | Core: $99.99/mo; Advanced: $149.99/mo |
| Design Tools (Canva Pro) | $0-$15 | $0-$180 | FREE via Canva for Nonprofits (501c3) |
LinkedIn Ad Benchmarks (Revised)
| Metric | Jan 2025 Plan | Feb 2026 Actual |
| Cost per lead | $10-$33 | $40-$120 |
| Monthly leads at $1K spend | 30-50 | 8-17 |
| C-suite CPL | Not specified | $75-$150+ |
Revenue Model
Service Offerings & Pricing
| Service | Price Range | Close Rate |
| 90-Day Pilot (Small Org) | $15,000-$25,000 | 40% |
| 90-Day Pilot (Mid Org) | $25,000-$40,000 | 35% |
| Full Implementation | $75,000-$150,000 | 25% |
| Fractional CTO Retainer | $5,000-$10,000/mo | 30% |
| Training & Workshops | $2,000-$10,000 | 50% |
Key Insight
All scenarios break even very early (Month 3) due to relatively low marketing costs and high deal values. LinkedIn ad CPL is higher than originally projected, but organic content, webinars, and referrals remain highly cost-effective.
12-Month Marketing Timeline v2.0
MARKETING_TIMELINE_GANTT.md
12-Month Marketing Timeline & Gantt Chart
Detailed month-by-month execution plan for Integrity Studio's go-to-market strategy. Updated February 2026.
Visual Timeline
PHASE 1: FOUNDATION (Months 1-3) [============------------]
PHASE 2: TRACTION (Months 4-6) [------------============]
PHASE 3: AUTHORITY (Months 7-12) [------------------------============]
Month 1: Foundation Building
Week 1
- Join NTEN as individual member ($150)
- Audit and optimize website for nonprofit AI keywords
- Create and optimize LinkedIn Company Page
- Set up email marketing platform
- Create first lead magnet: "AI Readiness Assessment"
Week 2
- Write and schedule first 4 blog posts
- Set up lead magnet landing page
- Configure email automation sequences
- Begin NTEN community participation
Year 1 Summary
Expected Outcomes
| Category | Target |
| Email subscribers | 3,500-5,000 |
| LinkedIn connections | 500-1,000 |
| Community members | 300-500 |
| Blog posts published | 100+ |
| Webinars hosted | 10-12 |
| Speaking engagements | 3-5 |
Marketing Content Pieces v2.0
MARKETING_CONTENT_PIECES.md
Marketing Content Pieces
Ready-to-publish content for Integrity Studio LLC. Updated February 2026.
Blog Posts
Blog Post 1: "85% of Nonprofits Use AI But 65-70% Lack Policies"
Target Keyword: nonprofit AI policy
Word Count: 1,800-2,000 words
Addresses the persistent disconnect between AI adoption and governance in nonprofits, covering legal, operational, and reputational risks. Now includes AI governance as a funder requirement.
Blog Post 2: "How to Write an AI Policy for Your Nonprofit in 30 Days"
Step-by-step guide with day-by-day implementation plan, template walkthrough, and board presentation tips.
Blog Post 3: "AI Grants for Nonprofits 2026: $150M+ in Funding"
Comprehensive guide covering OpenAI, Google.org ($75M+), AWS, Microsoft, Patrick J. McGovern Foundation, Anthropic, and community foundation programs.
Lead Magnets
- AI Readiness Assessment - Self-scoring PDF evaluating 5 key dimensions
- AI Policy Template - Fully editable Word document
- 2026 AI Grant Database - Excel spreadsheet with 25+ programs ($150M+ landscape)
Email Sequences
5-email welcome sequence for new subscribers including:
- Email 1: Welcome + Deliver Lead Magnet
- Email 2: Introduce yourself + Value
- Email 3: Educational value (#1 mistake)
- Email 4: Social proof + Resource
- Email 5: Clear CTA
Implementation Templates v2.0
MARKETING_IMPLEMENTATION_TEMPLATES.md
Marketing Implementation Templates & Scripts
Ready-to-use marketing materials. Updated February 2026.
Email Templates
- Lead Magnet Delivery Email
- Webinar Invitation Email
- Post-Webinar Follow-Up Email
- Cold Outreach Email
- Pilot Program Proposal Email
- Monthly Newsletter Template
LinkedIn Scripts
- Connection Request (Personalized)
- Follow-Up Message
- Thought Leadership Post Template
- Case Study Post Template
- Comment Strategy
Webinar Outlines
- "AI Policy Development for Nonprofits: 60-Min Crash Course"
- "Getting Started with AI: Your First 3 Use Cases"
- "AI Grant Opportunities 2026: How to Apply and Win"
Partnership Outreach
- Complementary Consultant Partnership Template
- TechSoup Service Provider Inquiry
- NTC 2027 Sponsorship Inquiry
Proposal Template: 90-Day AI Pilot Program
- Executive Summary
- Understanding Your Challenge
- Proposed Approach (4 phases)
- Success Metrics
- Timeline
- Investment
Auth0 Setup Guide
AUTH0_SETUP.md
Auth0 Setup Guide
Complete guide for setting up Auth0 authentication.
Step 1: Create Auth0 Application
- Log in to Auth0 Dashboard at manage.auth0.com
- Click "Applications" - "Applications" - "Create Application"
- Select "Single Page Application"
- Note your Domain and Client ID
Step 2: Configure URLs
Allowed Callback URLs:
http://localhost:5173,
http://localhost:5173/callback,
https://yourdomain.com
Step 3: Environment Variables
# Auth0 Configuration
VITE_AUTH0_DOMAIN=your-domain.auth0.com
VITE_AUTH0_CLIENT_ID=your_client_id_here
VITE_AUTH0_AUDIENCE=https://your-domain.auth0.com/api/v2/
Available Components
<LoginButton /> - Pre-styled login button
<LogoutButton /> - Pre-styled logout button
<UserProfile /> - User profile display
<AuthGuard /> - Protected content wrapper
Security Best Practices
- Never commit
.env file
- Use HTTPS in production
- Enable MFA for sensitive operations
- Implement proper token refresh logic
Auth0 MCP Server + Analytics Setup
AUTH_ANALYTICS_SETUP.md
Auth0 MCP Server + Tinybird Analytics Setup
Part 1: Auth0 MCP Server Setup
Step 1: Install
npx @auth0/auth0-mcp-server init
Step 2: Interactive Setup
The installer will prompt you to:
- Select your MCP client (Claude Desktop, Cursor, Windsurf)
- Choose scopes (read:users, read:clients, read:logs)
- Authenticate in browser
Security Best Practices
# Read-only mode (recommended for testing)
npx @auth0/auth0-mcp-server init --read-only
# Logout when done
npx @auth0/auth0-mcp-server logout
Security Checklist
- Auth0 credentials stored in system keychain
- Logout implemented when switching contexts
- Error messages don't expose sensitive data
- HTTPS enabled for all API calls
User Database Integration Guide
USER_DATABASE_INTEGRATION.md
User Database Integration Guide
Complete guide for integrating Auth0 with PostgreSQL database and MCP services.
Overview
This system provides:
- User authentication with Auth0
- User data storage in PostgreSQL
- User context in MCP Memory (knowledge graph)
- Profile enrichment using MCP Fetch
- Activity and session tracking
- Role-based permissions
Database Schema
- users - Core user information
- user_profiles - Extended profile data
- user_sessions - Active sessions
- user_activity - Activity log
- roles - Role definitions
- user_roles - User-role assignments
Setup Steps
# Create database
createdb integrity_studio
# Run schema migration
./scripts/setup-database.sh
Usage Example
import { useUserSync } from './hooks/useUserSync';
function App() {
const { dbUser, isSyncing, syncError } = useUserSync();
if (isSyncing) {
return <div>Syncing user data...</div>;
}
return <div>Welcome {dbUser?.name}!</div>;
}
Schema.org Implementation Guide
schema/schema-implementation-guide.md
Schema.org Structured Data Implementation
Comprehensive Schema.org recommendations using JSON-LD format.
Implemented Schema Types
- Organization Schema - Knowledge Graph presence, brand recognition
- ProfessionalService Schema - Service-specific rich results
- Service Schemas - 6 individual services defined
- WebSite & WebPage Schemas - Sitelinks search box
- BreadcrumbList Schema - Navigation hierarchy
- FAQPage Schema - Expandable Q&A in search
- LocalBusiness Schema - Local pack eligibility
- BlogPosting Schemas - Article rich results
Rich Results Eligibility
- Knowledge Panel - Organization information
- Sitelinks & Search Box - Enhanced navigation
- FAQ Rich Results - Expandable Q&A
- Breadcrumbs - Navigation path
- Local Pack - Business listings
- Service Snippets - Detailed service info
SEO Impact
- Visibility: 30-40% increase in SERP visibility
- CTR: 15-25% improvement in click-through rates
- Trust: Enhanced credibility through knowledge graph
Tailwind CSS Class Reference
development/tailwind-class-chart.md
Tailwind CSS Class Usage Chart
Documentation of all Tailwind CSS class combinations used across project files.
Sample Class Definitions
| className | Tailwind Classes |
btn-primary-base | bg-blue-500 text-white px-6 py-2 rounded-lg hover:bg-blue-600 |
card-surface | bg-gray-800 rounded-2xl p-8 shadow-sm border border-gray-700 |
form-input | w-full px-4 py-3 border border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 |
gradient-text | text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-indigo-400 |
hero-heading | text-4xl lg:text-6xl font-bold text-white leading-tight |
Naming Conventions
- Use semantic prefixes: text-*, bg-*, flex-*, grid-*, border-*, card-*, btn-*
- Add modifiers: -light, -dark, -sm, -md, -lg, -primary, -rounded, -responsive
- Use kebab-case for multi-word names
- Order: [component]-[variant]-[size]-[state]
Total unique class combinations: 99
Tailwind CSS Usage Guide
development/tailwind-usage-chart.md
Tailwind CSS Usage Chart
Documentation of complete Tailwind CSS class combinations excluding classes defined in index.css.
Naming Conventions
- Use semantic prefixes based on primary utility
- Add descriptive modifiers: -muted, -light, -accent, -bold, -rounded, -interactive, -animated, -responsive
- Use component context when no clear pattern is found
- Keep names concise but descriptive
- Use kebab-case for multi-word names
SEO Validation Tests
testing/seo-validation-tests.md
SEO and Schema.org Validation Tests
Automated testing strategy for structured data and Rich Results eligibility.
Test Coverage
Schema Validation Tests
- Valid JSON-LD structure
- Required properties for each schema type
- Organization, Service, WebSite, FAQPage schemas
- Proper @id references
Rich Results Validation Tests
- Organization rich results
- Local Business rich results
- FAQ rich results
- Sitelinks Search Box
- Breadcrumb rich results
Running Tests
# Run schema validation tests
npm test -- tests/seo/schema-validation.test.tsx
# Run rich results tests
npm test -- tests/seo/rich-results.test.tsx
# Run all SEO tests
npm test -- tests/seo/
Performance Expectations
- 30-40% increase in SERP visibility
- 15-25% improvement in click-through rates
- Enhanced Knowledge Graph presence
- Better local search rankings
Accessibility Implementation Guide
accessibility/accessibility-implementation.md
Accessibility Implementation Guide
Comprehensive accessibility features for WCAG 2.1 AA compliance.
Features Implemented
1. Semantic HTML & ARIA
- Proper heading hierarchy (h1 - h2 - h3)
- Semantic HTML5 elements
- ARIA landmarks for screen readers
- ARIA live regions for dynamic content
2. Keyboard Navigation
- Full keyboard accessibility
- Visible focus indicators (2px blue outline)
- Logical tab order
- Skip navigation link
3. Form Accessibility
- Proper label associations
- Real-time validation with screen reader announcements
- Error messages with role="alert"
- Required field indicators
4. Visual Accessibility
- Enhanced color contrast (WCAG AA)
- High contrast mode support
- Reduced motion support
- Print accessibility
Testing
# Run accessibility tests
npm run test:a11y
# Watch mode
npm run test:a11y:watch
WCAG 2.1 AA Compliance
- Perceivable: Text alternatives, captions, contrast
- Operable: Keyboard accessible, timing, seizures
- Understandable: Readable, predictable
- Robust: Compatible with assistive technologies
Security Documentation
security/README.md
Security Documentation
This directory contains security-related documentation.
Best Practices
- Never commit
.env files or API tokens
- Use Doppler for secrets management
- Rotate tokens every 90 days
- Report vulnerabilities to security@integritystudio.ai
Access Policy
access_policy.com
Cloudflare Access Policy
const accessPolicy = {
"name": "secure-app-access",
"decision": "allow",
"include": [
{
"email_domain": {
"domain": "integrityai.com"
}
}
],
"session_duration": "24h"
};