Skip to content

Refferq/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Refferq Frontend

Modern marketing website for Refferq β€” the open-source affiliate marketing platform.

Built with Next.js 15 (App Router), React 19, TypeScript, Tailwind CSS 4, and Framer Motion. Optimized for SEO, AEO (Answer Engine Optimization), and GEO (Generative Engine Optimization).

Live

URL
Website refferq.com
Application app.refferq.com
Repository github.com/Refferq/frontend

Project Structure

β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ layout.tsx              # Root layout, global metadata, JSON-LD schemas
β”‚   β”œβ”€β”€ page.tsx                # Homepage (/, landing page)
β”‚   β”œβ”€β”€ features/page.tsx       # Features page (/features)
β”‚   β”œβ”€β”€ pricing/page.tsx        # Pricing page (/pricing)
β”‚   β”œβ”€β”€ docs/page.tsx           # Documentation page (/docs)
β”‚   β”œβ”€β”€ globals.css             # Global styles
β”‚   β”œβ”€β”€ sitemap.ts              # Dynamic sitemap generation
β”‚   β”œβ”€β”€ robots.ts               # Dynamic robots.txt generation
β”‚   β”œβ”€β”€ opengraph-image.tsx     # Dynamic OG image (Edge runtime)
β”‚   └── twitter-image.tsx       # Dynamic Twitter card image (Edge runtime)
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ refferq-nav.tsx         # Navigation bar
β”‚   β”œβ”€β”€ refferq-hero.tsx        # Hero section
β”‚   β”œβ”€β”€ refferq-features.tsx    # Features grid
β”‚   β”œβ”€β”€ refferq-how-it-works.tsx# How it works steps
β”‚   β”œβ”€β”€ refferq-comparison.tsx  # Competitor comparison table
β”‚   β”œβ”€β”€ refferq-pricing.tsx     # Pricing cards
β”‚   β”œβ”€β”€ refferq-pricing-faq.tsx # Pricing FAQ accordion
β”‚   β”œβ”€β”€ refferq-testimonials.tsx# Testimonials
β”‚   β”œβ”€β”€ refferq-cta.tsx         # Call-to-action section
β”‚   β”œβ”€β”€ refferq-footer.tsx      # Footer
β”‚   β”œβ”€β”€ refferq-features-page.tsx # Features page content
β”‚   β”œβ”€β”€ refferq-docs-content.tsx  # Docs page content
β”‚   β”œβ”€β”€ Aurora.tsx              # Animated aurora background
β”‚   β”œβ”€β”€ RotatingText.tsx        # Rotating text animation
β”‚   β”œβ”€β”€ page-transition.tsx     # Page transition wrapper
β”‚   β”œβ”€β”€ navigation-transition.tsx # Navigation transition
β”‚   β”œβ”€β”€ theme-provider.tsx      # Dark/light theme provider
β”‚   └── ui/                     # shadcn/ui component library
β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ use-mobile.ts           # Mobile detection hook
β”‚   └── use-toast.ts            # Toast notification hook
β”œβ”€β”€ lib/
β”‚   └── utils.ts                # Utility functions (cn, etc.)
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ sitemap.xml             # Static sitemap with image extensions
β”‚   β”œβ”€β”€ robots.txt              # Static robots.txt with AI bot rules
β”‚   β”œβ”€β”€ manifest.json           # PWA manifest
β”‚   β”œβ”€β”€ llms.txt                # GEO: LLM context (llms.txt spec)
β”‚   β”œβ”€β”€ llms-full.txt           # GEO: Full AI context document
β”‚   β”œβ”€β”€ humans.txt              # Team & tech credits
β”‚   β”œβ”€β”€ og-image.svg            # Fallback OG image
β”‚   β”œβ”€β”€ icon.svg                # Favicon
β”‚   └── .well-known/
β”‚       β”œβ”€β”€ security.txt        # RFC 9116 security contact
β”‚       └── ai-plugin.json      # AI plugin discovery manifest
β”œβ”€β”€ next.config.mjs             # Next.js config (headers, redirects, caching)
β”œβ”€β”€ tailwind.config.ts          # Tailwind CSS configuration
β”œβ”€β”€ tsconfig.json               # TypeScript configuration
└── package.json

Getting Started

Prerequisites

  • Node.js 18.17+
  • npm 9+ (or pnpm / yarn)

Install & Run

# Clone the repository
git clone https://github.com/Refferq/frontend.git
cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:3000.

Available Scripts

Command Description
npm run dev Start development server with hot reload
npm run build Create optimized production build
npm run start Start production server
npm run lint Run ESLint

Tech Stack

Category Technology
Framework Next.js 15 (App Router)
Language TypeScript 5.7
UI React 19
Styling Tailwind CSS 4
Animations Framer Motion 12
Components shadcn/ui + Radix UI
Icons Lucide React
Analytics Vercel Analytics + Speed Insights
Font Inter (Google Fonts, display: swap)

Pages

Route Description
/ Landing page β€” hero, features, how it works, comparison, pricing, testimonials, CTA
/features Detailed feature breakdown β€” 6 categories, 28+ individual features
/pricing Pricing plans β€” Self-Hosted (free) vs Managed Cloud ($29/mo), FAQ, competitor comparison
/docs Documentation β€” quick start, API reference, deployment guides (Docker, Vercel)

SEO & Optimization

Search Engine Optimization (SEO)

  • Metadata: Per-page title, description, keywords, canonical URLs, Open Graph, Twitter Cards
  • Structured Data (JSON-LD): Organization, WebSite (with SearchAction), SoftwareApplication, BreadcrumbList, FAQPage, Product, TechArticle, ItemList
  • Sitemaps: Dynamic (sitemap.ts) + static (sitemap.xml with image extensions)
  • Robots: Dynamic (robots.ts) + static (robots.txt) with granular per-agent rules
  • OG Images: Dynamically generated via Edge runtime (opengraph-image.tsx, twitter-image.tsx)
  • Security Headers: X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, Referrer-Policy via next.config.mjs
  • Caching: Static assets (1 year), SEO files (1 day)
  • Redirects: Common URL typos handled (/home β†’ /, /feature β†’ /features, etc.)

Answer Engine Optimization (AEO)

  • FAQ structured data on pricing page (6 Q&A pairs)
  • Clear, scannable content with semantic HTML
  • Descriptive headings that match common search queries

Generative Engine Optimization (GEO)

  • llms.txt: Concise structured context following the llms.txt specification
  • llms-full.txt: Full-context AI document (~200 lines) with complete feature details
  • ai-plugin.json: OpenAI plugin manifest for AI discovery
  • robots.txt: Explicit allow rules for GPTBot, PerplexityBot, anthropic-ai, Cohere, YouBot

Deployment

Vercel (Recommended)

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel --prod

Or connect the GitHub repository directly in the Vercel dashboard for automatic deployments on push.

Docker

# Build
docker build -t refferq-frontend .

# Run
docker run -p 3000:3000 refferq-frontend

Self-Hosted (Node.js)

npm run build
npm run start

The server starts on port 3000 by default. Use a reverse proxy (Nginx, Caddy) for production.

Configuration

Environment Variables

Variable Description Required
NEXT_PUBLIC_APP_URL Base URL for the marketing site (e.g., https://refferq.com) No

Customizing URLs

Update these files if deploying to a different domain:

  • app/layout.tsx β€” metadataBase, canonical URLs
  • app/sitemap.ts β€” base URL
  • public/sitemap.xml β€” all <loc> tags
  • public/robots.txt β€” sitemap URL
  • public/manifest.json β€” start_url, scope
  • public/.well-known/security.txt β€” canonical URL

Customizing Branding

  • Colors: Edit Tailwind config and globals.css (emerald/teal theme)
  • Logo: Replace public/icon.svg and update nav component
  • Content: Edit component files in components/

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Make changes and test locally
  4. Run lint: npm run lint
  5. Commit: git commit -m "feat: description"
  6. Push and open a pull request

License

MIT β€” See LICENSE for details.

Support

Channel Link
Documentation refferq.com/docs
Issues GitHub Issues
Discussions GitHub Discussions
Email hello@refferq.com

Made with ❀️ by the Refferq community

Star on GitHub Β· Report Bug Β· Request Feature

About

🌟 Open Source Referral and Affiliate Marketing Platform for SaaS Business Owners - Launch your referral program in minutes!

https://refferq.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors