// apps/api/src/config/publicSources.js

module.exports = {
    // =========================================================================
    // REDDIT COMMUNITIES (High global/regional buyer intent)
    // =========================================================================
    reddit: [
        'forhire', 'hiring', 'freelance', 'jobs', 'slavelabour',
        'entrepreneur', 'startups', 'smallbusiness', 'webdev',
        'designjobs', 'marketing', 'SEO', 'Shopify', 'Wordpress',
        'SaaS', 'sideproject', 'cofounder', 'remotejs', 'remotework',
        'digitalnomad', 'business',
        'softwaredevelopment', 'technewsafrica', 'growthhacking', 
        'freelance_writers', 'logodesign', 'userexperience', 'RequestABot'
    ],

    // =========================================================================
    // GOOGLE SITE SEARCHES: AFRICA-FOCUSED CLASSIFIEDS & MARKETPLACES
    // Focuses heavily on open, indexable business-to-business requests.
    // =========================================================================
    africanClassifiedSearches: [
        // East Africa (Kenya, Uganda, Tanzania)
        'site:jiji.co.ke "need a web"',
        'site:jiji.co.ke "looking for a developer"',
        'site:jiji.co.ke "hiring a graphic designer"',
        'site:pigiame.co.ke "looking for website"',
        'site:pigiame.co.ke "need a designer"',
        'site:kupatana.com "buni website"', 
        'site:zoaby.co.ke "looking for"',
        'site:businesslist.co.ke "website redesign"',

        // West Africa (Nigeria, Ghana)
        'site:jiji.ng "looking for software"',
        'site:jiji.ng "need website designer"',
        'site:jiji.ng "urgent need developer"',
        'site:tonaton.com "looking for app"',
        'site:nairaland.com "looking for a web developer"',
        'site:nairaland.com "need a programmer"',
        'site:nairaland.com "hiring graphics designer"',
        'site:olist.ng "need app developer"',
        'site:locanto.ng "need seo expert"',

        // Southern Africa (South Africa, Zimbabwe)
        'site:gumtree.co.za "looking for web"',
        'site:gumtree.co.za "need developer"',
        'site:gumtree.co.za "website design needed"',
        'site:junkmail.co.za "looking for developer"',
        'site:locanto.co.za "web design company needed"',
        'site:southafricainfo.co.za "looking for services"'
    ],

    // =========================================================================
    // PUBLIC SOCIAL MEDIA INTENT FOOTPRINTS
    // Targeted specifically at unauthenticated indexable public URLs.
    // =========================================================================
    facebookSearches: [
        'site:facebook.com/groups "need web developer" "Africa"',
        'site:facebook.com/groups "looking for graphic designer" "Kenya"',
        'site:facebook.com/groups "need seo expert" "Nigeria"',
        'site:facebook.com/groups "hiring wordpress developer"',
        'site:facebook.com/groups "looking for social media manager"',
        'site:facebook.com/groups "need ecommerce website"',
        'site:facebook.com/groups "need mobile app developer"',
        'site:facebook.com/groups "need marketing agency"',
        'site:facebook.com/groups "need logo designer"',
        'site:facebook.com/groups "need react developer"',
        'site:facebook.com "looking for freelancer" "South Africa"',
        'site:facebook.com "need website designer"',
        'site:facebook.com "hiring graphic designer"',
        'site:facebook.com "need shopify expert"',
        'site:facebook.com "need tiktok ads expert"'
    ],

    linkedinSearches: [
        'site:linkedin.com/posts "looking for web developer" "Africa"',
        'site:linkedin.com/posts "hiring frontend developer"',
        'site:linkedin.com/posts "need graphic designer" "Nairobi"',
        'site:linkedin.com/posts "need seo specialist" "Lagos"',
        'site:linkedin.com/posts "looking for social media manager"',
        'site:linkedin.com/posts "need website redesign"',
        'site:linkedin.com/posts "hiring react developer"',
        'site:linkedin.com/posts "need wordpress developer"',
        'site:linkedin.com/posts "need ecommerce developer"',
        'site:linkedin.com/posts "looking for freelancer"'
    ],

    twitterSearches: [
        'site:x.com "need web developer" "remotely"',
        'site:x.com "looking for designer" "Lagos"',
        'site:x.com "hiring frontend developer" "Nairobi"',
        'site:x.com "need seo expert"',
        'site:x.com "need mobile app developer"',
        'site:x.com "looking for marketing agency"',
        'site:x.com "need social media manager"',
        'site:x.com "need react developer"',
        'site:x.com "need wordpress expert"'
    ],

    // =========================================================================
    // UPWORK PUBLIC FOOTPRINT FOOT-TUNNEL (Replaces Broken 410 RSS Feeds)
    // Pulls direct live contract postings using open indexation footprints
    // =========================================================================
    upworkSearches: [
        'site:upwork.com/jobs/ "looking for web developer"',
        'site:upwork.com/jobs/ "mobile app"',
        'site:upwork.com/jobs/ "wordpress needed"',
        'site:upwork.com/jobs/ "react developer"',
        'site:upwork.com/jobs/ "africa"'
    ],

    // =========================================================================
    // STARTUP & BOOTSTRAPPER FORUMS (Where founders state outsourcing intent)
    // =========================================================================
    startupSearches: [
        'site:indiehackers.com "looking for developer"',
        'site:indiehackers.com "need a marketer"',
        'site:producthunt.com "looking for a cofounder"',
        'site:hackernews.ycombinator.com "need developer"',
        'site:dev.to "looking for freelancer"',
        'site:hashnode.com "hiring developer"',
        'site:vc4a.com "looking for technical partner"',
        'site:techpoint.africa "looking for specialized"'
    ],

    // =========================================================================
    // ACTIVE SYSTEM INGESTION TICKERS (RSS & JSON Rest Endpoints)
    // =========================================================================
    rssFeeds: [
        // --- Freelancer Local Targets ---
        {
            name: 'Freelancer South Africa RSS Feed',
            url: 'https://www.freelancer.co.za/rss.xml',
            type: 'freelance_marketplace',
            format: 'xml'
        },

        // --- International Remote Tickers ---
        {
            name: 'We Work Remotely',
            url: 'https://weworkremotely.com/feed',
            type: 'job_board',
            format: 'xml'
        },
        {
            name: 'Himalayas',
            url: 'https://himalayas.app/jobs/rss',
            type: 'job_board',
            format: 'xml'
        },
        {
            name: 'Jobicy',
            url: 'https://jobicy.com/jobs-rss-feed',
            type: 'job_board',
            format: 'xml'
        },
        {
            name: 'Remotive Endpoint',
            url: 'https://remotive.com/api/remote-jobs',
            type: 'api_endpoint',
            format: 'json' // Routed straight through the JSON interceptor
        },
        {
            name: 'HireWeb3',
            url: 'https://hireweb3.io/job/rss',
            type: 'job_board',
            format: 'xml'
        },
        {
            name: 'Hacker News Ask HN',
            url: 'https://hnrss.org/ask',
            type: 'forum',
            format: 'xml'
        },
        {
            name: 'Hacker News Show HN',
            url: 'https://hnrss.org/show',
            type: 'forum',
            format: 'xml'
        }
    ]
};