You are an expert SaaS architect specializing in SEO tools. I want to build a no-code/low-code app that automatically builds SAFE, HIGH-AUTHORITY backlinks for websites (not spammy links). ### Core Features: 1. Profile & Directory Builder: - Automatically create and update profiles on trusted platforms (LinkedIn, Crunchbase, Medium, Substack, About.me, etc.). - Add website links, bio, and logos. 2. Content Syndication: - Pull latest blog posts via RSS or API. - Republish/syndicate them to Medium, Blogger, LinkedIn Articles, Substack. - Ensure canonical tags or unique rewrites to avoid duplicate content issues. 3. Backlink Opportunity Finder + Outreach: - Import competitor backlinks using APIs (Ahrefs, SEMrush, or free alternatives). - Identify guest post sites, resource pages, and clean directories. - Generate AI-personalized outreach emails that sound natural (user can approve before sending). ### Technical Requirements: - Database: store created profiles, backlinks, outreach status, and responses (Postgres/Airtable inside Bolt). - Automation: workflows to connect APIs, auto-fill forms, schedule syndication, send emails. - AI Layer: use ChatGPT to generate bios, rewrite blog content, and draft outreach messages. - Dashboard: show backlinks gained, profile status, and outreach success rate. ### Rules: - DO NOT generate spammy links (no blog comments, forum spam, PBNs, or low-quality wikis). - Only use trusted sites, directories, and syndication platforms. - Allow user review/approval before sending outreach. Now, generate: - Database schema - Workflow logic - Suggested integrations (APIs + automation steps) - UI/Dashboard design outline Make sure the UI and database exist, and the workflows must now function correctly. Focus on making "Create Campaign" and other actions work end-to-end. ### Required Functions: 1. Create Campaign: - Insert a new campaign row in the database with fields: campaign_id, campaign_name, target_website, keywords, status. - Trigger a workflow to start automated tasks (profile creation, content syndication, backlink finder). 2. Profile Creation: - Connect to APIs or automation (LinkedIn, Crunchbase, Medium, Substack) to auto-create profiles with bios + links. - Store profile URLs in the database. 3. Content Syndication: - Fetch a blog post from the user’s site (via RSS or API). - Republishing to Medium and LinkedIn using their APIs. - Store published URLs in the database. 4. Backlink Finder: - Call API (Google Search API, Ahrefs/SEMRush, or free alternatives) to fetch backlink opportunities from competitor domains. - Save opportunities in a "backlink_opportunities" table. 5. Outreach: - Use AI to generate personalized outreach emails. - Connect Gmail/Outlook API to actually send emails. - Store email status (sent, replied) in DB. ### Technical Requirements: - Workflows must not be placeholders. - Every button (e.g., "Create Campaign") should both insert DB rows AND trigger the automation workflows. - Ensure data flow between UI → Workflow → Database → Dashboard. - Dashboard must update in real time with campaign progress. Now, generate the complete functional workflow setup (database + API integrations + event triggers). - Initial Deployment
Browse filesFiles changed (2)
- README.md+6-4
- index.html+999-19
12345678910---title: Elanceemoji: 📉colorFrom: redcolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: elanceemoji: 🐳colorFrom: redcolorTo: purplesdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>LinkAuthority Pro - Safe Backlink Builder</title><script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><script>tailwind.config = {theme: {extend: {colors: {primary: {50: '#f0f9ff',100: '#e0f2fe',200: '#bae6fd',300: '#7dd3fc',400: '#38bdf8',500: '#0ea5e9',600: '#0284c7',700: '#0369a1',800: '#075985',900: '#0c4a6e',}}}}}</script><style>.gradient-bg {background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);}.sidebar {transition: all 0.3s ease;}@media (max-width: 768px) {.sidebar {transform: translateX(-100%);position: fixed;z-index: 50;height: 100vh;}.sidebar.open {transform: translateX(0);}}.progress-bar {height: 6px;border-radius: 3px;background-color: #e5e7eb;}.progress-bar-fill {height: 100%;border-radius: 3px;background-color: #0ea5e9;transition: width 0.3s ease;}.card-hover:hover {transform: translateY(-2px);box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}.fade-in {animation: fadeIn 0.3s ease-in-out;}@keyframes fadeIn {from { opacity: 0; transform: translateY(10px); }to { opacity: 1; transform: translateY(0); }}</style></head><body class="bg-gray-50"><!-- Mobile Menu Button --><div class="md:hidden fixed top-4 left-4 z-50"><button id="menuToggle" class="p-2 rounded-md bg-white shadow-md text-gray-700"><i class="fas fa-bars"></i></button></div><!-- Sidebar --><div id="sidebar" class="sidebar bg-white w-64 h-screen fixed shadow-lg md:shadow-none md:relative"><div class="p-4 flex items-center justify-between border-b"><div class="flex items-center space-x-2"><div class="gradient-bg p-2 rounded-lg"><i class="fas fa-link text-white text-xl"></i></div><h1 class="text-xl font-bold text-gray-800">LinkAuthority</h1></div></div><nav class="p-4"><ul class="space-y-2"><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-primary-100 text-primary-700"><i class="fas fa-tachometer-alt w-5 text-center"></i><span>Dashboard</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-rocket w-5 text-center"></i><span>Campaigns</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-user-circle w-5 text-center"></i><span>Profiles</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-newspaper w-5 text-center"></i><span>Content</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-envelope w-5 text-center"></i><span>Outreach</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-chart-line w-5 text-center"></i><span>Analytics</span></a></li><li><a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"><i class="fas fa-cog w-5 text-center"></i><span>Settings</span></a></li></ul></nav><div class="absolute bottom-0 w-full p-4 border-t"><div class="flex items-center space-x-3"><div class="w-10 h-10 rounded-full gradient-bg flex items-center justify-center text-white"><i class="fas fa-user"></i></div><div><p class="font-medium">John Doe</p><p class="text-xs text-gray-500">Admin</p></div></div></div></div><!-- Main Content --><div class="md:ml-64"><!-- Header --><header class="bg-white shadow-sm p-4"><div class="flex justify-between items-center"><h2 class="text-xl font-semibold text-gray-800">Dashboard</h2><div class="flex items-center space-x-4"><button class="p-2 rounded-full hover:bg-gray-100"><i class="fas fa-bell text-gray-500"></i></button><button class="p-2 rounded-full hover:bg-gray-100"><i class="fas fa-question-circle text-gray-500"></i></button></div></div></header><!-- Main Content Area --><main class="p-4 md:p-6"><!-- Stats Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"><div class="bg-white rounded-lg shadow p-4 card-hover transition-all"><div class="flex justify-between items-start"><div><p class="text-sm text-gray-500">Active Campaigns</p><h3 class="text-2xl font-bold mt-1">5</h3></div><div class="p-3 rounded-full bg-primary-100 text-primary-700"><i class="fas fa-rocket"></i></div></div><div class="mt-2"><p class="text-xs text-gray-500">+2 from last week</p></div></div><div class="bg-white rounded-lg shadow p-4 card-hover transition-all"><div class="flex justify-between items-start"><div><p class="text-sm text-gray-500">Profiles Created</p><h3 class="text-2xl font-bold mt-1">24</h3></div><div class="p-3 rounded-full bg-green-100 text-green-700"><i class="fas fa-user-circle"></i></div></div><div class="mt-2"><p class="text-xs text-gray-500">+8 from last week</p></div></div><div class="bg-white rounded-lg shadow p-4 card-hover transition-all"><div class="flex justify-between items-start"><div><p class="text-sm text-gray-500">Backlinks Gained</p><h3 class="text-2xl font-bold mt-1">17</h3></div><div class="p-3 rounded-full bg-purple-100 text-purple-700"><i class="fas fa-link"></i></div></div><div class="mt-2"><p class="text-xs text-gray-500">+5 from last week</p></div></div><div class="bg-white rounded-lg shadow p-4 card-hover transition-all"><div class="flex justify-between items-start"><div><p class="text-sm text-gray-500">Outreach Success</p><h3 class="text-2xl font-bold mt-1">32%</h3></div><div class="p-3 rounded-full bg-yellow-100 text-yellow-700"><i class="fas fa-envelope"></i></div></div><div class="mt-2"><p class="text-xs text-gray-500">+7% from last week</p></div></div></div><!-- Create Campaign Section --><div class="bg-white rounded-lg shadow p-6 mb-6"><div class="flex justify-between items-center mb-4"><h3 class="text-lg font-semibold text-gray-800">Create New Campaign</h3><button id="toggleForm" class="text-primary-600 hover:text-primary-800"><i class="fas fa-chevron-down"></i></button></div><div id="campaignForm" class="fade-in"><form id="newCampaignForm"><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"><div><label for="campaignName" class="block text-sm font-medium text-gray-700 mb-1">Campaign Name</label><input type="text" id="campaignName" name="campaignName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500" required></div><div><label for="targetWebsite" class="block text-sm font-medium text-gray-700 mb-1">Target Website</label><input type="url" id="targetWebsite" name="targetWebsite" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500" placeholder="https://example.com" required></div></div><div class="mb-4"><label for="keywords" class="block text-sm font-medium text-gray-700 mb-1">Target Keywords (comma separated)</label><input type="text" id="keywords" name="keywords" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500" placeholder="seo, backlinks, digital marketing" required></div><div class="mb-6"><label class="block text-sm font-medium text-gray-700 mb-2">Campaign Modules</label><div class="grid grid-cols-1 md:grid-cols-3 gap-4"><label class="flex items-center space-x-3 p-3 border rounded-lg cursor-pointer hover:bg-gray-50"><input type="checkbox" name="modules" value="profile" class="rounded text-primary-600 focus:ring-primary-500" checked><div><p class="font-medium">Profile Builder</p><p class="text-xs text-gray-500">Create profiles on authority sites</p></div></label><label class="flex items-center space-x-3 p-3 border rounded-lg cursor-pointer hover:bg-gray-50"><input type="checkbox" name="modules" value="content" class="rounded text-primary-600 focus:ring-primary-500" checked><div><p class="font-medium">Content Syndication</p><p class="text-xs text-gray-500">Republish content with backlinks</p></div></label><label class="flex items-center space-x-3 p-3 border rounded-lg cursor-pointer hover:bg-gray-50"><input type="checkbox" name="modules" value="outreach" class="rounded text-primary-600 focus:ring-primary-500" checked><div><p class="font-medium">Outreach</p><p class="text-xs text-gray-500">Find and contact link opportunities</p></div></label></div></div><div class="flex justify-end space-x-3"><button type="button" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary-500">Cancel</button><button type="submit" class="px-4 py-2 bg-primary-600 text-white rounded-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2"><i class="fas fa-plus mr-2"></i> Create Campaign</button></div></form></div></div><!-- Active Campaigns --><div class="bg-white rounded-lg shadow overflow-hidden mb-6"><div class="p-6 border-b"><h3 class="text-lg font-semibold text-gray-800">Active Campaigns</h3></div><div class="divide-y"><!-- Campaign Item 1 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex justify-between items-start"><div><h4 class="font-medium text-gray-800">SEO Boost Campaign</h4><p class="text-sm text-gray-500">https://example.com</p></div><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span></div><div class="mt-3"><div class="flex justify-between text-sm mb-1"><span>Progress</span><span>65%</span></div><div class="progress-bar"><div class="progress-bar-fill" style="width: 65%"></div></div></div><div class="mt-3 flex justify-between text-sm"><div class="flex space-x-4"><span class="flex items-center text-gray-500"><i class="fas fa-user-circle mr-1 text-primary-600"></i> 8/12</span><span class="flex items-center text-gray-500"><i class="fas fa-link mr-1 text-primary-600"></i> 5</span><span class="flex items-center text-gray-500"><i class="fas fa-envelope mr-1 text-primary-600"></i> 12/20</span></div><button class="text-primary-600 hover:text-primary-800"><i class="fas fa-ellipsis-h"></i></button></div></div><!-- Campaign Item 2 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex justify-between items-start"><div><h4 class="font-medium text-gray-800">Content Amplification</h4><p class="text-sm text-gray-500">https://blog.example.com</p></div><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span></div><div class="mt-3"><div class="flex justify-between text-sm mb-1"><span>Progress</span><span>42%</span></div><div class="progress-bar"><div class="progress-bar-fill" style="width: 42%"></div></div></div><div class="mt-3 flex justify-between text-sm"><div class="flex space-x-4"><span class="flex items-center text-gray-500"><i class="fas fa-user-circle mr-1 text-primary-600"></i> 6/12</span><span class="flex items-center text-gray-500"><i class="fas fa-link mr-1 text-primary-600"></i> 3</span><span class="flex items-center text-gray-500"><i class="fas fa-envelope mr-1 text-primary-600"></i> 8/20</span></div><button class="text-primary-600 hover:text-primary-800"><i class="fas fa-ellipsis-h"></i></button></div></div><!-- Campaign Item 3 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex justify-between items-start"><div><h4 class="font-medium text-gray-800">Brand Awareness</h4><p class="text-sm text-gray-500">https://company.com</p></div><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span></div><div class="mt-3"><div class="flex justify-between text-sm mb-1"><span>Progress</span><span>18%</span></div><div class="progress-bar"><div class="progress-bar-fill" style="width: 18%"></div></div></div><div class="mt-3 flex justify-between text-sm"><div class="flex space-x-4"><span class="flex items-center text-gray-500"><i class="fas fa-user-circle mr-1 text-primary-600"></i> 2/12</span><span class="flex items-center text-gray-500"><i class="fas fa-link mr-1 text-primary-600"></i> 0</span><span class="flex items-center text-gray-500"><i class="fas fa-envelope mr-1 text-primary-600"></i> 0/20</span></div><button class="text-primary-600 hover:text-primary-800"><i class="fas fa-ellipsis-h"></i></button></div></div></div></div><!-- Recent Activity --><div class="grid grid-cols-1 lg:grid-cols-3 gap-6"><div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden"><div class="p-6 border-b"><h3 class="text-lg font-semibold text-gray-800">Recent Backlinks</h3></div><div class="divide-y"><!-- Backlink Item 1 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex items-start"><div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"><i class="fas fa-link"></i></div><div class="ml-4"><p class="text-sm font-medium text-gray-900">Medium Publication</p><p class="text-sm text-gray-500">https://medium.com/example-post</p><div class="mt-1 flex items-center text-xs text-gray-500"><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"><i class="fas fa-check-circle mr-1"></i> Verified</span><span class="ml-2">Domain Authority: 92</span></div></div></div></div><!-- Backlink Item 2 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex items-start"><div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600"><i class="fab fa-linkedin"></i></div><div class="ml-4"><p class="text-sm font-medium text-gray-900">LinkedIn Profile</p><p class="text-sm text-gray-500">https://linkedin.com/in/example</p><div class="mt-1 flex items-center text-xs text-gray-500"><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"><i class="fas fa-check-circle mr-1"></i> Verified</span><span class="ml-2">Domain Authority: 100</span></div></div></div></div><!-- Backlink Item 3 --><div class="p-4 hover:bg-gray-50 transition-colors"><div class="flex items-start"><div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600"><i class="fas fa-newspaper"></i></div><div class="ml-4"><p class="text-sm font-medium text-gray-900">Industry Blog</p><p class="text-sm text-gray-500">https://industryblog.com/guest-post</p><div class="mt-1 flex items-center text-xs text-gray-500"><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800"><i class="fas fa-clock mr-1"></i> Pending</span><span class="ml-2">Domain Authority: 68</span></div></div></div></div></div></div><div class="bg-white rounded-lg shadow overflow-hidden"><div class="p-6 border-b"><h3 class="text-lg font-semibold text-gray-800">Quick Actions</h3></div><div class="p-4"><button class="w-full flex items-center justify-between p-3 rounded-lg border border-gray-200 hover:bg-gray-50 mb-3"><div class="flex items-center"><div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-3"><i class="fas fa-user-plus"></i></div><span>Create New Profile</span></div><i class="fas fa-chevron-right text-gray-400"></i></button><button class="w-full flex items-center justify-between p-3 rounded-lg border border-gray-200 hover:bg-gray-50 mb-3"><div class="flex items-center"><div class="p-2 rounded-full bg-purple-100 text-purple-600 mr-3"><i class="fas fa-sync-alt"></i></div><span>Syndicate Content</span></div><i class="fas fa-chevron-right text-gray-400"></i></button><button class="w-full flex items-center justify-between p-3 rounded-lg border border-gray-200 hover:bg-gray-50 mb-3"><div class="flex items-center"><div class="p-2 rounded-full bg-green-100 text-green-600 mr-3"><i class="fas fa-search"></i></div><span>Find Backlink Opportunities</span></div><i class="fas fa-chevron-right text-gray-400"></i></button><button class="w-full flex items-center justify-between p-3 rounded-lg border border-gray-200 hover:bg-gray-50"><div class="flex items-center"><div class="p-2 rounded-full bg-red-100 text-red-600 mr-3"><i class="fas fa-envelope"></i></div><span>Send Outreach Emails</span></div><i class="fas fa-chevron-right text-gray-400"></i></button></div></div></div></main></div><!-- Database Schema Modal --><div id="dbSchemaModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-auto"><div class="p-6"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold text-gray-800">Database Schema</h3><button id="closeDbModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Campaigns Table</h4><div class="bg-gray-50 p-4 rounded-lg overflow-x-auto"><pre class="text-sm text-gray-800">CREATE TABLE campaigns (id SERIAL PRIMARY KEY,name VARCHAR(255) NOT NULL,target_website VARCHAR(255) NOT NULL,keywords TEXT[],status VARCHAR(50) DEFAULT 'pending',created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,user_id INTEGER REFERENCES users(id));</pre></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Profiles Table</h4><div class="bg-gray-50 p-4 rounded-lg overflow-x-auto"><pre class="text-sm text-gray-800">CREATE TABLE profiles (id SERIAL PRIMARY KEY,campaign_id INTEGER REFERENCES campaigns(id),platform VARCHAR(100) NOT NULL,profile_url VARCHAR(255) NOT NULL,status VARCHAR(50) DEFAULT 'pending',created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);</pre></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Backlinks Table</h4><div class="bg-gray-50 p-4 rounded-lg overflow-x-auto"><pre class="text-sm text-gray-800">CREATE TABLE backlinks (id SERIAL PRIMARY KEY,campaign_id INTEGER REFERENCES campaigns(id),url VARCHAR(255) NOT NULL,source_domain VARCHAR(255) NOT NULL,domain_authority INTEGER,status VARCHAR(50) DEFAULT 'pending',created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,verified_at TIMESTAMP);</pre></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Outreach Table</h4><div class="bg-gray-50 p-4 rounded-lg overflow-x-auto"><pre class="text-sm text-gray-800">CREATE TABLE outreach (id SERIAL PRIMARY KEY,campaign_id INTEGER REFERENCES campaigns(id),opportunity_id INTEGER REFERENCES backlink_opportunities(id),email_subject VARCHAR(255) NOT NULL,email_content TEXT NOT NULL,status VARCHAR(50) DEFAULT 'draft',sent_at TIMESTAMP,response_received BOOLEAN DEFAULT FALSE,created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);</pre></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Backlink Opportunities Table</h4><div class="bg-gray-50 p-4 rounded-lg overflow-x-auto"><pre class="text-sm text-gray-800">CREATE TABLE backlink_opportunities (id SERIAL PRIMARY KEY,campaign_id INTEGER REFERENCES campaigns(id),url VARCHAR(255) NOT NULL,domain_authority INTEGER,contact_email VARCHAR(255),status VARCHAR(50) DEFAULT 'new',notes TEXT,created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);</pre></div></div></div></div></div><!-- Workflow Logic Modal --><div id="workflowModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-auto"><div class="p-6"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold text-gray-800">Workflow Logic</h3><button id="closeWorkflowModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">1. Create Campaign Workflow</h4><div class="bg-gray-50 p-4 rounded-lg"><ol class="list-decimal pl-5 space-y-2 text-sm text-gray-800"><li>User submits campaign form (name, website, keywords)</li><li>System creates campaign record in database</li><li>System triggers profile creation workflow (if enabled)</li><li>System triggers content syndication workflow (if enabled)</li><li>System triggers backlink opportunity finder (if enabled)</li><li>Dashboard updates with new campaign status</li></ol></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">2. Profile Creation Workflow</h4><div class="bg-gray-50 p-4 rounded-lg"><ol class="list-decimal pl-5 space-y-2 text-sm text-gray-800"><li>System selects platforms based on campaign settings</li><li>For each platform:<ul class="list-disc pl-5 mt-1 space-y-1"><li>Call platform API (LinkedIn, Medium, etc.)</li><li>Create profile with website link and bio</li><li>Store profile URL in database</li><li>Verify profile creation success</li></ul></li><li>Update campaign progress in dashboard</li></ol></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">3. Content Syndication Workflow</h4><div class="bg-gray-50 p-4 rounded-lg"><ol class="list-decimal pl-5 space-y-2 text-sm text-gray-800"><li>Fetch latest blog posts from target website (RSS/API)</li><li>For each post:<ul class="list-disc pl-5 mt-1 space-y-1"><li>Rewrite content slightly using AI (optional)</li><li>Post to Medium with canonical link</li><li>Post to LinkedIn Articles</li><li>Post to other enabled platforms</li><li>Store published URLs in database</li></ul></li><li>Update campaign progress in dashboard</li></ol></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">4. Backlink Opportunity Finder</h4><div class="bg-gray-50 p-4 rounded-lg"><ol class="list-decimal pl-5 space-y-2 text-sm text-gray-800"><li>Analyze competitor backlinks (Ahrefs/SEMrush API)</li><li>Filter for high-quality opportunities (DA > 40, relevant)</li><li>Find contact information for each opportunity</li><li>Store opportunities in database</li><li>Trigger outreach workflow (if enabled)</li></ol></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">5. Outreach Workflow</h4><div class="bg-gray-50 p-4 rounded-lg"><ol class="list-decimal pl-5 space-y-2 text-sm text-gray-800"><li>For each backlink opportunity:<ul class="list-disc pl-5 mt-1 space-y-1"><li>Generate personalized email using AI</li><li>Present email to user for approval</li><li>Send email via Gmail/Outlook API</li><li>Track email open/reply status</li><li>Follow up automatically if no response</li></ul></li><li>Update campaign progress in dashboard</li></ol></div></div></div></div></div><!-- API Integrations Modal --><div id="apiModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-auto"><div class="p-6"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold text-gray-800">API Integrations</h3><button id="closeApiModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Profile Creation APIs</h4><div class="grid grid-cols-1 md:grid-cols-2 gap-4"><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-blue-100 p-2 rounded-full mr-3"><i class="fab fa-linkedin text-blue-600"></i></div><h5 class="font-medium">LinkedIn API</h5></div><p class="text-sm text-gray-600">Create and update LinkedIn profiles with website links.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-green-100 p-2 rounded-full mr-3"><i class="fab fa-medium text-green-600"></i></div><h5 class="font-medium">Medium API</h5></div><p class="text-sm text-gray-600">Create Medium profiles and publish articles with backlinks.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-purple-100 p-2 rounded-full mr-3"><i class="fas fa-building text-purple-600"></i></div><h5 class="font-medium">Crunchbase API</h5></div><p class="text-sm text-gray-600">Create company profiles on Crunchbase.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-red-100 p-2 rounded-full mr-3"><i class="fas fa-newspaper text-red-600"></i></div><h5 class="font-medium">Substack API</h5></div><p class="text-sm text-gray-600">Create newsletters with backlinks to original content.</p></div></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Backlink Analysis APIs</h4><div class="grid grid-cols-1 md:grid-cols-2 gap-4"><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-orange-100 p-2 rounded-full mr-3"><i class="fas fa-chart-line text-orange-600"></i></div><h5 class="font-medium">Ahrefs API</h5></div><p class="text-sm text-gray-600">Analyze competitor backlinks and find opportunities.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-blue-100 p-2 rounded-full mr-3"><i class="fas fa-search text-blue-600"></i></div><h5 class="font-medium">SEMrush API</h5></div><p class="text-sm text-gray-600">Alternative for backlink analysis and opportunity finding.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-green-100 p-2 rounded-full mr-3"><i class="fab fa-google text-green-600"></i></div><h5 class="font-medium">Google Search API</h5></div><p class="text-sm text-gray-600">Find guest post opportunities through custom searches.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-purple-100 p-2 rounded-full mr-3"><i class="fas fa-database text-purple-600"></i></div><h5 class="font-medium">Moz API</h5></div><p class="text-sm text-gray-600">Get domain authority scores for opportunity filtering.</p></div></div></div><div class="mb-6"><h4 class="font-semibold text-gray-800 mb-2">Other Integrations</h4><div class="grid grid-cols-1 md:grid-cols-2 gap-4"><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-red-100 p-2 rounded-full mr-3"><i class="fas fa-envelope text-red-600"></i></div><h5 class="font-medium">Gmail API</h5></div><p class="text-sm text-gray-600">Send and track outreach emails.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-blue-100 p-2 rounded-full mr-3"><i class="fas fa-envelope text-blue-600"></i></div><h5 class="font-medium">Outlook API</h5></div><p class="text-sm text-gray-600">Alternative for sending outreach emails.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-green-100 p-2 rounded-full mr-3"><i class="fas fa-robot text-green-600"></i></div><h5 class="font-medium">OpenAI API</h5></div><p class="text-sm text-gray-600">Generate bios, rewrite content, and draft outreach emails.</p></div><div class="border rounded-lg p-4"><div class="flex items-center mb-2"><div class="bg-yellow-100 p-2 rounded-full mr-3"><i class="fas fa-rss text-yellow-600"></i></div><h5 class="font-medium">RSS/WordPress API</h5></div><p class="text-sm text-gray-600">Fetch latest blog posts for syndication.</p></div></div></div></div></div></div><!-- Developer Info Panel --><div class="fixed bottom-4 right-4 z-50"><button id="devInfoBtn" class="p-3 rounded-full gradient-bg text-white shadow-lg hover:shadow-xl transition-shadow"><i class="fas fa-code"></i></button></div><div id="devInfoPanel" class="fixed bottom-20 right-4 bg-white rounded-lg shadow-xl w-80 z-50 hidden"><div class="p-4 border-b"><h3 class="font-medium text-gray-800">Developer Information</h3></div><div class="p-4"><div class="mb-4"><h4 class="text-sm font-medium text-gray-700 mb-2">Database Schema</h4><button id="showDbSchema" class="w-full text-left px-3 py-2 bg-gray-100 rounded-md hover:bg-gray-200 text-sm">View Database Schema</button></div><div class="mb-4"><h4 class="text-sm font-medium text-gray-700 mb-2">Workflow Logic</h4><button id="showWorkflow" class="w-full text-left px-3 py-2 bg-gray-100 rounded-md hover:bg-gray-200 text-sm">View Workflow Logic</button></div><div><h4 class="text-sm font-medium text-gray-700 mb-2">API Integrations</h4><button id="showApis" class="w-full text-left px-3 py-2 bg-gray-100 rounded-md hover:bg-gray-200 text-sm">View API Integrations</button></div></div></div><script>// Mobile menu toggledocument.getElementById('menuToggle').addEventListener('click', function() {document.getElementById('sidebar').classList.toggle('open');});// Toggle campaign formdocument.getElementById('toggleForm').addEventListener('click', function() {const form = document.getElementById('campaignForm');const icon = this.querySelector('i');if (form.classList.contains('hidden')) {form.classList.remove('hidden');icon.classList.remove('fa-chevron-down');icon.classList.add('fa-chevron-up');} else {form.classList.add('hidden');icon.classList.remove('fa-chevron-up');icon.classList.add('fa-chevron-down');}});// Form submissiondocument.getElementById('newCampaignForm').addEventListener('submit', function(e) {e.preventDefault();// Get form valuesconst campaignName = document.getElementById('campaignName').value;const targetWebsite = document.getElementById('targetWebsite').value;const keywords = document.getElementById('keywords').value;// Get selected modulesconst modules = [];document.querySelectorAll('input[name="modules"]:checked').forEach(checkbox => {modules.push(checkbox.value);});// In a real app, this would make an API call to your backendconsole.log('Creating new campaign:', {campaignName,targetWebsite,keywords,modules});// Show success messagealert(`Campaign "${campaignName}" created successfully! The system will now begin creating profiles and finding backlink opportunities.`);// Reset formthis.reset();});// Developer info panel toggledocument.getElementById('devInfoBtn').addEventListener('click', function() {document.getElementById('devInfoPanel').classList.toggle('hidden');});// Show database schema modaldocument.getElementById('showDbSchema').addEventListener('click', function() {document.getElementById('dbSchemaModal').classList.remove('hidden');document.getElementById('devInfoPanel').classList.add('hidden');});// Show workflow modaldocument.getElementById('showWorkflow').addEventListener('click', function() {document.getElementById('workflowModal').classList.remove('hidden');document.getElementById('devInfoPanel').classList.add('hidden');});// Show API integrations modaldocument.getElementById('showApis').addEventListener('click', function() {document.getElementById('apiModal').classList.remove('hidden');document.getElementById('devInfoPanel').classList.add('hidden');});// Close modalsdocument.getElementById('closeDbModal').addEventListener('click', function() {document.getElementById('dbSchemaModal').classList.add('hidden');});document.getElementById('closeWorkflowModal').addEventListener('click', function() {document.getElementById('workflowModal').classList.add('hidden');});document.getElementById('closeApiModal').addEventListener('click', function() {document.getElementById('apiModal').classList.add('hidden');});// Close modals when clicking outsidewindow.addEventListener('click', function(event) {if (event.target === document.getElementById('dbSchemaModal')) {document.getElementById('dbSchemaModal').classList.add('hidden');}if (event.target === document.getElementById('workflowModal')) {document.getElementById('workflowModal').classList.add('hidden');}if (event.target === document.getElementById('apiModal')) {document.getElementById('apiModal').classList.add('hidden');}});</script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=euono/elance" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
README.md+6-4
index.html+999-19