orbitspy

byLucifer Nexgen

Build a production-ready, single-tenant micro-SaaS called "AdSpyZero: Competitor Ad Monitor". The application must be fully operational, heavily optimized for low code footprints to build successfully within 10 credits, and leverage an opinionated stack. ### 1. THEME & VISUAL DESIGN (Deep Space / Black Hole Aesthetic) - Colors: Primary background must be rich deep space black (#050508). Surface cards must use a translucent cosmic dark blue-gray (#0d0e15) with a subtle border (#1e2235). - Accents: Neon singularity violet (#8b5cf6), event horizon cyan (#06b6d4), and stellar amber (#f59e0b) for high-performance badges. - Effects: Use Tailwind's backdrop-blur-md, radical gradients (`bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))]`), and subtle neon box-shadows to simulate an event-horizon glow around active data modules. ### 2. SYSTEM ARCHITECTURE & CODE CONSTRAINTS - Stack: Next.js (App Router), Tailwind CSS, Lucide Icons, SQLite (via Prisma or native Node-sqlite) for the database. - Credit-Saving Constraint: Do NOT generate placeholder tests, excessive microservices, or complex multi-role setups. Consolidate logic. Keep backend endpoints inside Next.js API routes (/app/api/). - Mock Infrastructure: Create an internal simulated worker service (`/lib/services/adScraperSim.js`) that mimics scraping and populates the database with realistic competitor ad mock data (Ad copy, image/video thumbnail URLs, status, active days, platform, and date detected) when a user adds a competitor URL. ### 3. CORE DATA MODELS (Prisma/SQL Schema) - User: id, email, passwordHash, activeSubscription (boolean). - Competitor: id, userId, name, websiteUrl, dateAdded, trackingStatus (Active/Paused). - AdCreative: id, competitorId, platform (Meta, TikTok, Google), adText, visualUrl, daysRunning, dateDetected, firstSeen, status (Active/Inactive). ### 4. FRONTEND UI & PAGES (Space-Themed Tailwind Canvas) Build a clean, high-conversion SaaS dashboard layout featuring: 1. Landing / Auth Page: Cinematic "Event Horizon" marketing layout. A massive typography hero section ("Pull Your Competitors' Strategies into the Event Horizon") set against a dark radial gradient background, with a translucent login/signup card. 2. Main Dashboard Layout: Fixed left sidebar with a futuristic control-panel layout (Dashboard, Tracked Competitors, Ad Archive, Billing) using subtle violet active-state text glows. 3. Dashboard Overview Page: - Cosmic Stat Cards: 4 glassmorphism cards displaying Total Tracked Competitors, Total Ads Monitored, Active Ads, and Average Ad Lifespan (Days). - "Pull Competitor URL" Input: A sleek, neon-bordered input field that accepts a website URL and triggers the mock automated scraping sync. - Singularity Alerts Feed: A clean list showing newly discovered competitor ads with a neon badge for the platform (e.g., Meta, TikTok) and "Days Running" count. 4. Competitor Detail View: Clicking a competitor reveals their specific grid of captured ad creatives. Each ad card must display the thumbnail, ad copy text, platform icon, date detected, and a glowing "Supernova Performance" fire badge if daysRunning > 14. 5. Billing Tab: A simple tier selection page displaying the $79/mo plan with a mock payment success trigger toggle to update `activeSubscription` state. ### 5. BACKEND API LOGIC - POST `/api/competitors`: Validates and adds a competitor URL. Instantly triggers the mock crawler function to generate 3-5 randomized ad creative entries attached to that competitor id so the UI instantly feels alive. - GET `/api/ads`: Fetches all tracked ads sorted by `daysRunning` desc or `dateDetected` desc with basic query filtering by platform. - DELETE `/api/competitors/[id]`: Removes a competitor and cascades deletes their tracked ads. Execute this design immediately across Frontend, Backend, and Database layers. Rely on clean Tailwind utility patterns. Focus strictly on a pristine, functional UI and bulletproof local mock-data persistence to keep execution under 10 credits.

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 8

System Requirements Document for orbitspy

1. Introduction

The project "AdSpyZero: Competitor Ad Monitor" is a production-ready, single-tenant micro-SaaS application designed to monitor competitor advertisements. The application is optimized for low code footprints to ensure it can be built successfully within 10 credits. It leverages an opinionated stack, including Next.js, Tailwind CSS, Lucide Icons, and SQLite, to deliver a seamless user experience with a deep space/black hole aesthetic.

2. System Overview

AdSpyZero is designed for a single SaaS operator who needs to track competitor websites and monitor captured ad creatives. The application provides a live, self-serve view of competitor ad activity without manual research. It includes a mock infrastructure to simulate ad scraping and populates the database with realistic competitor ad mock data. The system is built with a focus on a pristine, functional UI and bulletproof local mock-data persistence.

2a. Product Interpretation and Delivery Boundary

The application is a single-tenant micro-SaaS, meaning it is designed for use by one operator at a time. It must be built within 10 credits, emphasizing a low code footprint. The backend endpoints are consolidated within Next.js API routes, and the database is managed using SQLite via Prisma or native Node-sqlite. The application includes a mock scraper service to simulate ad data collection, and payment is managed through a mock success trigger toggle.

Page 2 of 8

2b. Source Content Inventory

Not applicable as no content_source directive was provided.

2c. Page Content and Component Coverage

Landing

  • Information/State: Introduction to AdSpyZero, explaining its purpose and features.
  • Primary Actions: Navigate to the Landing / Auth Page.
  • Components: Hero section with a real-time WebGL event-horizon ring, headline, and status ticker.

Landing / Auth Page

  • Information/State: Login and signup forms.
  • Primary Actions: User authentication (email/password).
  • Components: Translucent login/signup card, violet glow button.

Dashboard Overview Page

  • Information/State: Overview of tracked competitors and ads.
  • Primary Actions: Add competitor URL, view alerts.
  • Components: Cosmic Stat Cards, "Pull Competitor URL" Input, Singularity Alerts Feed.

Tracked Competitors

  • Information/State: List of tracked competitors.
  • Primary Actions: Manage competitor records, delete competitors.
  • Components: Competitor list, delete action.
Page 3 of 8

Competitor Detail View

  • Information/State: Detailed view of a competitor's ad creatives.
  • Primary Actions: View ad details.
  • Components: Ad creative grid, Supernova Performance badges.

Ad Archive

  • Information/State: Archive of all tracked ads.
  • Primary Actions: Browse ads, filter by platform.
  • Components: Ad list, platform filter.

Billing

  • Information/State: Subscription details.
  • Primary Actions: Manage subscription.
  • Components: Tier selection, mock payment success toggle.

3. Functional Requirements

  1. As a Solo SaaS Operator, I should be able to authenticate using email and password to access the dashboard, competitor, archive, and billing states. (required_inference)
  2. As a Solo SaaS Operator, I should be able to add a competitor URL to trigger the mock scraper service, generating ad creatives for immediate dashboard updates. (required_inference)
  3. As a Solo SaaS Operator, I should be able to view a dashboard overview with cosmic stat cards, a URL input for competitor tracking, and a Singularity Alerts Feed. (explicit)
  4. As a Solo SaaS Operator, I should be able to manage tracked competitors by adding, viewing, and deleting them, with cascading ad deletion. (explicit)
  5. As a Solo SaaS Operator, I should be able to view detailed competitor ad creatives with performance badges. (explicit)
  6. As a Solo SaaS Operator, I should be able to browse an ad archive with sorting and filtering capabilities. (explicit)
  7. As a Solo SaaS Operator, I should be able to manage my subscription through a billing page with a mock payment success toggle. (required_inference)

4. User Personas

Page 4 of 8

Solo SaaS Operator

  • Product Context: The single-tenant operator who uses AdSpyZero to monitor competitor ads.
  • Primary Goal: To gain insights into competitor advertising strategies without manual research.
  • Responsibilities: Adding competitor URLs, reviewing dashboard stats, inspecting ad creatives, managing subscription.
  • Interactions: Engages with the dashboard, competitor detail view, and billing page.
  • Observable Success: A live, updated view of competitor ad activity.
Page 5 of 8

5. Core User Flows

  1. Authentication Flow

    • Start: User accesses the Landing / Auth Page.
    • Action: User enters email and password.
    • Result: User is authenticated and redirected to the Dashboard Overview Page.
  2. Competitor URL Submission Flow

    • Start: User is on the Dashboard Overview Page.
    • Action: User enters a competitor URL in the "Pull Competitor URL" input.
    • Result: Mock scraper service generates ad creatives, updating the dashboard stats and alerts.
  3. Competitor Management Flow

    • Start: User accesses the Tracked Competitors page.
    • Action: User adds or deletes a competitor.
    • Result: Competitor list is updated, and associated ads are managed accordingly.
  4. Ad Creative Inspection Flow

    • Start: User clicks on a competitor in the Tracked Competitors page.
    • Action: User views the Competitor Detail View.
    • Result: User inspects ad creatives and performance badges.
  5. Subscription Management Flow

    • Start: User accesses the Billing page.
    • Action: User toggles the mock payment success.
    • Result: Subscription state is updated.
Page 6 of 8

6. Visuals Colors and Theme

  • Muse: Gleb Kuznetsov
  • Palette:
    • Background: #050508
    • Surface: #0d0e15
    • Text: #e8e9f2
    • Primary: #8b5cf6
    • Accent: #06b6d4
    • Muted: #1e2235
  • Typography:
    • Headings: Space Grotesk
    • Body: IBM Plex Sans
    • Numbers: JetBrains Mono
  • Shape Language: Soft-edged glass, thin luminous strokes.
  • Layout: Fixed left control rail, 12-col grid content column.

7. Signature Design Concept

The public entry page features a real-time WebGL event-horizon ring as the hero element, creating an immersive deep-space experience. The headline "Pull Your Competitors' Strategies into the Event Horizon" is prominently displayed, with a status ticker providing live updates. The translucent auth card is positioned to overlap the ring, enhancing the cinematic effect.

Page 7 of 8

8. Interaction Model & Motion Direction

  • Interaction Model: Animated
  • Motion Tempo: Cinematic
  • Hero Dimensionality: WebGL
  • Landing Hero Motion Brief: The event-horizon ring rotates slowly, with particle streaks brightening as the URL field is focused. The headline animates into view, and the status ticker updates dynamically.

9. Non-Functional Requirements

  • Performance: The application must be optimized for low code footprints to ensure it builds successfully within 10 credits.
  • Scalability: The system should support the single-tenant model efficiently.
  • Usability: The UI must be intuitive and align with the deep space/black hole aesthetic.

10. Tech Stack

  • Frontend: Next.js (App Router), Tailwind CSS, Lucide Icons
  • Backend: Next.js API routes
  • Database: SQLite (via Prisma or native Node-sqlite)
  • Mock Infrastructure: Internal simulated worker service for ad scraping

11. Assumptions and Constraints

  • The application is single-tenant and must be built within 10 credits.
  • Backend endpoints are consolidated within Next.js API routes.
  • The database is managed using SQLite.
  • Ad scraping is simulated through a mock service.
  • Payment is managed through a mock success trigger toggle.
Page 8 of 8

12. Glossary

  • AdCreative: A model representing an advertisement's details.
  • Competitor: A model representing a competitor being tracked.
  • Mock Scraper Service: A simulated service that generates ad data.
  • Single-Tenant: An application designed for use by one operator at a time.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Landing: View product overview
Landing / Auth Page: Sign up or sign in
Dashboard Overview Page: 1. Review stat cards and alerts
Dashboard Overview Page: Submit competitor URL
Dashboard Overview Page: Review captured ad creatives
Tracked Competitors: View tracked competitors
Tracked Competitors: Delete competitor and ads
Competitor Detail View: Inspect ad creatives
Competitor Detail View: Check Supernova badges
Ad Archive: Browse all tracked ads
Ad Archive: Filter ads by platform
Billing: 2. Select $79/mo tier
Billing: 3. Toggle mock payment success
Dashboard: 4. View live overview

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Landing: View product overview
Landing / Auth Page: Sign up or sign in
Dashboard Overview Page: 1. Review stat cards and alerts
Dashboard Overview Page: Submit competitor URL
Dashboard Overview Page: Review captured ad creatives
Tracked Competitors: View tracked competitors
Tracked Competitors: Delete competitor and ads
Competitor Detail View: Inspect ad creatives
Competitor Detail View: Check Supernova badges
Ad Archive: Browse all tracked ads
Ad Archive: Filter ads by platform
Billing: 2. Select $79/mo tier
Billing: 3. Toggle mock payment success
Dashboard: 4. View live overview