Skip to content

dmihai91/flowstarter-library

Repository files navigation

Flowstarter Library

The official template library for Flowstarter - an AI-powered website builder for non-technical users.

This repository contains premium, production-ready website templates built with modern web technologies. Each template features sophisticated design, smooth animations, and is optimized for conversions.

🎯 Available Templates

1. Local Business Pro

Perfect for: Restaurants, cafes, salons, gyms, and service businesses

A premium template designed to help local businesses attract customers with a stunning, modern web presence. Features beautiful menu displays, testimonials, service showcases, and contact forms.

πŸ“‚ View Template

2. Personal Brand Pro

Perfect for: Consultants, freelancers, coaches, and executives

Establish a strong professional online presence with this elegant personal branding template. Includes portfolio showcase, testimonials, service offerings, and professional contact forms.

πŸ“‚ View Template

3. SaaS Product Pro

Perfect for: Software products, web applications, and digital services

A conversion-optimized template for SaaS businesses. Features comprehensive pricing tables, feature showcases, FAQ sections, and compelling call-to-action elements.

πŸ“‚ View Template

✨ Template Features

All templates include:

  • 🎨 Premium Design - Sophisticated gradients and modern styling
  • πŸ“± Fully Responsive - Perfect on all devices
  • πŸš€ TanStack Start - Modern full-stack React framework
  • ✨ Smooth Animations - Professional transitions and effects
  • πŸ’Ό Professional Forms - Beautiful contact and lead capture
  • πŸ“Š SEO Optimized - Built for search engine visibility
  • 🎯 Conversion Focused - Designed to turn visitors into clients
  • πŸ”§ Easy Customization - Simple template variable system
  • 🌍 i18n Support - Multi-language ready

πŸ› οΈ Tech Stack

  • Framework: TanStack Start
  • React: 19
  • Styling: Tailwind CSS with custom color palette
  • Icons: Lucide React
  • TypeScript: Full type safety
  • Deployment: Vercel ready

πŸš€ Quick Start

Prerequisites

This project uses Bun as the package manager and runtime:

# Install Bun (if not already installed)
powershell -c "irm bun.sh/install.ps1 | iex"

Development Server

The repository has two separate development servers:

  1. Showcase - Visual preview interface for browsing templates (http://localhost:5173)
  2. MCP Server - API server for Flowstarter platform integration (stdio mode)

For Template Development (Most Common)

# Install dependencies
bun install

# Start showcase dev server
bun run dev:showcase
# Opens at http://localhost:5173

For Platform Integration Development

# In another terminal: Start MCP server
bun run dev:mcp
# Runs in stdio mode (watch mode)

Option 2: Run Individual Templates

Each template can be developed independently:

# Navigate to a template
cd templates/local-business-pro
# or cd templates/personal-brand-pro
# or cd templates/saas-product-pro

# Install dependencies
bun install

# Start development server (must be in start/ directory)
cd start
bun dev

Open http://localhost:3000 to view your site.

Docker Deployment

For production-like environment:

# Build and start all services
bun run docker:dev

# Or rebuild from scratch
bun run docker:dev:rebuild

Services will be available at:

πŸ“ Customization

Content Management

Each template uses a centralized content.md file containing all text content:

  • Navigation labels
  • Hero sections
  • Feature descriptions
  • Testimonials
  • FAQ items
  • Contact information
  • Footer text

Simply edit content.md to customize content without touching code files.

Template Variables

All templates support automatic variable replacement:

  • {{PROJECT_NAME}} - Your business/product name
  • {{PROJECT_DESCRIPTION}} - Brief description
  • {{TARGET_USERS}} - Your target audience
  • {{BUSINESS_GOALS}} - Your business objectives
  • {{PROJECT_NAME_SLUG}} - URL-friendly version
  • {{YEAR}} - Current year

Styling

  • Colors defined in app/globals.css
  • Easy gradient and color scheme modifications
  • Fully responsive design

🎨 Design System

Color Palette

  • Primary: Blue gradients (#5e72e4 β†’ #825ee4)
  • Success: Emerald tones (#2dce89)
  • Info: Cyan accents (#11cdef)
  • Warning: Orange highlights (#fb6340)

Design Elements

  • Premium cards with elevated shadows
  • Glassmorphism effects
  • Micro-interactions and hover states
  • Professional typography
  • Smooth scroll animations

πŸ“¦ Deployment

Deploy to Vercel with one command:

vercel deploy

Or connect your Git repository for automatic deployments on push.

πŸ”Œ MCP Server

This repository includes a Model Context Protocol (MCP) server that exposes templates programmatically to the Flowstarter platform and editor.

What is the MCP Server?

The MCP server acts as a bridge between your application and the template repository, providing:

  • Template Discovery: List all available templates with metadata
  • Template Scaffolding: Get complete file structure and contents for project creation
  • Search & Filter: Find templates by keywords or use case
  • Clerk Authentication: Optional user authentication for secure access

How It Works

Platform/Editor
      ↓
 [MCP Client]
      ↓
  MCP Server ←→ Clerk Auth (optional)
      ↓
 [Scans & Indexes]
      ↓
Template Files

Startup Process:

  1. Scans all template directories (local-business-pro, personal-brand-pro, saas-product-pro)
  2. Extracts metadata from README.md, config.json, content.md, package.json
  3. Builds complete file tree for each template (excludes node_modules, .git)
  4. Caches metadata in memory for fast access
  5. Validates Clerk authentication if configured

Request Flow:

  1. Client sends tool call (e.g., list_templates, scaffold_template)
  2. Server verifies Clerk session token (if auth enabled)
  3. Retrieves data from cache or reads files on-demand
  4. Returns structured JSON response

Available Tools

  • list_templates: Get all templates with metadata (name, description, file count, LOC)
  • get_template_details: Get comprehensive details for a specific template
  • scaffold_template: Get complete file tree + contents for editor scaffolding
  • search_templates: Search templates by keywords or category

Quick Start

cd flowstarter-mcp-server
bun install
bun run build

# Optional: Configure Clerk authentication
cp .env.example .env
# Add CLERK_SECRET_KEY and CLERK_PUBLISHABLE_KEY

bun start

Usage Example

// Platform lists templates
const { templates } = await mcpClient.callTool('list_templates', {
  _sessionToken: clerkSessionToken // if auth enabled
});

// Editor scaffolds a project
const { scaffold } = await mcpClient.callTool('scaffold_template', {
  slug: 'local-business-pro',
  _sessionToken: clerkSessionToken
});

// scaffold.files contains all template files with content
scaffold.files.forEach(file => {
  fs.writeFileSync(file.path, file.content);
});

Authentication

The server requires Clerk authentication for all requests:

  • ⚠️ Server will not start without Clerk API keys configured
  • All tool calls require a valid Clerk session token
  • Returns 401 Unauthorized if token is missing or invalid
  • Returns 403 Forbidden if user doesn't have permissions

Get Clerk API keys from clerk.com and configure in .env.

πŸ“– Full Documentation: flowstarter-mcp-server/README.md

πŸ—οΈ Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               πŸ‘₯ Non-Technical Users                      β”‚
β”‚         (Business Owners, Entrepreneurs, etc.)            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           ↓ Natural Language
                           β”‚ ("I need a restaurant website")
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          πŸ€– Flowstarter Platform (AI-Powered)              β”‚
β”‚    - Understands user requirements via AI chat           β”‚
β”‚    - Suggests appropriate templates                      β”‚
β”‚    - Customizes content automatically                    β”‚
β”‚    - Generates complete website (no coding needed)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           ↓ MCP Protocol
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        πŸ”Œ MCP Server (Template API - Port 3100)          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚List Templatesβ”‚  β”‚Get Details   β”‚  β”‚Scaffold Projectβ”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           ↓ Reads & Indexes
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          🎨 Website Templates (This Repo)               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚Local Business  β”‚ β”‚Personal Brandβ”‚ β”‚SaaS Product Proβ”‚  β”‚
β”‚  β”‚      Pro       β”‚ β”‚     Pro       β”‚ β”‚                 β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           ↓ Builds & Displays
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚       πŸ‘οΈ  Template Showcase (Port 5173)                 β”‚
β”‚        Live preview & comparison interface               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

How It Works

  1. User Interaction: Non-technical users describe their needs to Flowstarter using natural language
  2. AI Processing: Flowstarter's AI understands requirements and selects the best template
  3. Template Discovery: MCP Server provides available templates and their metadata
  4. Customization: AI automatically customizes content, colors, and structure based on user input
  5. Deployment: Complete, production-ready website is generated and deployed

No coding knowledge required - Users simply describe what they want, and Flowstarter handles the rest.

πŸ“ Repository Structure

flowstarter-library/
β”œβ”€β”€ templates/                    # Production-ready templates
β”‚   β”œβ”€β”€ local-business-pro/       # For restaurants, cafes, services
β”‚   β”‚   β”œβ”€β”€ start/                # TanStack Start app
β”‚   β”‚   β”‚   β”œβ”€β”€ src/routes/       # Page routes
β”‚   β”‚   β”‚   β”œβ”€β”€ src/components/   # UI components
β”‚   β”‚   β”‚   └── src/styles/       # Global styles
β”‚   β”‚   β”œβ”€β”€ public/               # Images, fonts, etc.
β”‚   β”‚   β”œβ”€β”€ config.json           # Template metadata
β”‚   β”‚   β”œβ”€β”€ content.md            # Customizable content
β”‚   β”‚   └── package.json          # Dependencies
β”‚   β”œβ”€β”€ personal-brand-pro/       # For professionals, consultants
β”‚   └── saas-product-pro/         # For software products
β”‚
β”œβ”€β”€ flowstarter-mcp-server/       # MCP API server
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ index.ts              # Server entry point
β”‚   β”‚   β”œβ”€β”€ http-server.ts        # HTTP transport
β”‚   β”‚   β”œβ”€β”€ tools/                # MCP tools (list, scaffold, etc.)
β”‚   β”‚   └── types/                # TypeScript definitions
β”‚   └── README.md                 # Server documentation
β”‚
β”œβ”€β”€ templates-showcase/           # Preview interface
β”‚   └── src/                      # React app for live demos
β”‚
β”œβ”€β”€ scripts/                      # Build automation
β”‚   β”œβ”€β”€ build-all-templates.js    # Build all templates
β”‚   └── generate-template-thumbnails.js # Create preview images
β”‚
β”œβ”€β”€ docs/                         # Documentation
└── Dockerfile                    # Container setup

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

These templates are provided for use with Flowstarter.

πŸ†˜ Support

For questions and support, visit Flowstarter


Built with ❀️ using Flowstarter

About

Premium TanStack Start templates for Flowstarter

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors