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).
| URL | |
|---|---|
| Website | refferq.com |
| Application | app.refferq.com |
| Repository | github.com/Refferq/frontend |
βββ 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
- Node.js 18.17+
- npm 9+ (or pnpm / yarn)
# Clone the repository
git clone https://github.com/Refferq/frontend.git
cd frontend
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000.
| 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 |
| 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) |
| 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) |
- 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.xmlwith 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.)
- FAQ structured data on pricing page (6 Q&A pairs)
- Clear, scannable content with semantic HTML
- Descriptive headings that match common search queries
- 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
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prodOr connect the GitHub repository directly in the Vercel dashboard for automatic deployments on push.
# Build
docker build -t refferq-frontend .
# Run
docker run -p 3000:3000 refferq-frontendnpm run build
npm run startThe server starts on port 3000 by default. Use a reverse proxy (Nginx, Caddy) for production.
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_APP_URL |
Base URL for the marketing site (e.g., https://refferq.com) |
No |
Update these files if deploying to a different domain:
app/layout.tsxβmetadataBase, canonical URLsapp/sitemap.tsβ base URLpublic/sitemap.xmlβ all<loc>tagspublic/robots.txtβ sitemap URLpublic/manifest.jsonβstart_url,scopepublic/.well-known/security.txtβ canonical URL
- Colors: Edit Tailwind config and
globals.css(emerald/teal theme) - Logo: Replace
public/icon.svgand update nav component - Content: Edit component files in
components/
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make changes and test locally
- Run lint:
npm run lint - Commit:
git commit -m "feat: description" - Push and open a pull request
MIT β See LICENSE for details.
| Channel | Link |
|---|---|
| Documentation | refferq.com/docs |
| Issues | GitHub Issues |
| Discussions | GitHub Discussions |
| hello@refferq.com |
Made with β€οΈ by the Refferq community