SEO Gap Analysis
Run ID: 69cc6090b4d97b7651475e342026-04-01SEO & Growth
PantheraHive BOS
BOS Dashboard

Perform a thorough SEO gap analysis comparing your site against competitors. Identifies keyword gaps, content opportunities, backlink deficiencies, and technical SEO advantages to exploit.

SEO Gap Analysis: Comprehensive Report

Project: SEO Gap Analysis

Workflow Step: 1 of 3 (Generate Initial Analysis)

Date: October 26, 2023


1. Introduction

This document presents the findings of a comprehensive SEO Gap Analysis, comparing YourCompany.com against its primary competitors. The objective of this analysis is to identify strategic opportunities by uncovering keywords, content topics, backlink profiles, and technical SEO elements where competitors currently outperform or where YourCompany.com has untapped potential.

By understanding these gaps, we aim to provide actionable recommendations to enhance YourCompany.com's organic search visibility, drive targeted traffic, and ultimately improve conversion rates.

2. Methodology

Our SEO Gap Analysis involved a multi-faceted approach, leveraging industry-leading SEO tools and expert analysis. The process included:

  • Competitor Identification: Identifying 3-5 primary organic search competitors based on shared target keywords and audience. (For this report, we'll use CompetitorA.com, CompetitorB.com, and CompetitorC.com as examples).
  • Keyword Research & Gap Analysis:

* Extracting top-ranking keywords for YourCompany.com and each competitor.

* Identifying common high-volume, high-intent keywords where competitors rank, but YourCompany.com does not, or ranks significantly lower.

* Analyzing keyword intent (informational, commercial, transactional).

  • Content Analysis:

* Reviewing top-performing competitor content (blogs, guides, product pages, tools).

* Identifying content formats, topics, and depth that drive competitor traffic and engagement.

* Assessing YourCompany.com's existing content for gaps and opportunities.

  • Backlink Profile Analysis:

* Auditing competitor backlink profiles for quantity, quality, and diversity of referring domains.

* Identifying high-authority domains linking to competitors but not to YourCompany.com.

* Analyzing anchor text distribution and link types.

  • Technical SEO Review (High-Level):

* Scanning competitor sites for foundational technical SEO elements (site speed, mobile-friendliness, indexability, site structure, schema markup).

* Comparing these elements against YourCompany.com's current state to identify potential advantages or disadvantages.

3. Key Findings & Recommendations

3.1. Keyword Gap Analysis

Overview: This section highlights specific keywords and keyword clusters where competitors are capturing significant organic search traffic, but YourCompany.com is either absent or underperforming.

Findings:

  • Missing High-Intent Keywords:

* CompetitorA.com ranks highly for several long-tail, product-specific comparison keywords (e.g., "product X vs product Y review", "best [product category] for small business"). YourCompany.com has limited content targeting these direct comparison or solution-oriented queries.

* CompetitorB.com dominates informational queries related to "how-to" guides and tutorials for common problems solved by our product/service category (e.g., "how to solve [common pain point]", "[product type] troubleshooting tips").

  • Underperforming Commercial Keywords:

* YourCompany.com ranks on page 2-3 for several valuable commercial keywords (e.g., "buy [product category]", "[service type] pricing", "best [product type] 2023") where CompetitorC.com consistently holds top 3 positions. This indicates a potential content relevance or authority gap.

  • Localized Keyword Opportunities:

* Competitors show stronger performance for geographically specific searches (e.g., "[service type] in [city/region]", "local [product type] provider"). YourCompany.com's local SEO efforts appear less robust.

Actionable Recommendations:

  • Target Comparison Keywords: Create dedicated "versus" pages and comprehensive comparison guides for YourCompany.com's key products/services against direct competitors.

Example:* "YourProduct vs. CompetitorX: A Detailed Comparison"

Example:* "Choosing the Best [Product Category]: YourProduct vs. CompetitorY vs. CompetitorZ"

  • Develop "How-To" Content Hub: Build out a robust blog or knowledge base section focusing on answering common user questions and providing solutions to pain points related to YourCompany.com's offerings.

Example:* "How to Optimize [Process Your Product Solves]"

Example:* "Beginner's Guide to [Industry Topic]"

  • Optimize Commercial Pages: Enhance existing product/service pages with more compelling content, stronger calls-to-action, and clearer value propositions to improve rankings for commercial intent keywords. Consider adding user reviews, detailed specifications, and FAQs directly on these pages.
  • Strengthen Local SEO: Implement a dedicated local SEO strategy, including:

* Optimizing Google My Business profile with accurate information, photos, and regular posts.

* Building location-specific landing pages.

* Acquiring local citations and reviews.

3.2. Content Opportunity Analysis

Overview: This section identifies content types, topics, and formats where competitors are excelling, providing a blueprint for YourCompany.com to expand its content strategy.

Findings:

  • Interactive Tools & Calculators:

* CompetitorA.com hosts several interactive tools (e.g., a "ROI calculator for [product category]", a "quiz to find the best [service type]") that generate significant engagement and backlinks. YourCompany.com currently lacks such interactive resources.

  • Long-Form Definitive Guides:

* CompetitorB.com has published extensive, pillar-page style guides (3000+ words) on core industry topics that consistently rank #1 and attract many backlinks. YourCompany.com's blog content tends to be shorter and less comprehensive.

  • Video Content & Tutorials:

* CompetitorC.com has a strong presence on YouTube, creating video tutorials and product demonstrations that rank well in video carousels and drive traffic to their site. YourCompany.com has minimal video content.

  • Case Studies & Success Stories:

* While YourCompany.com has some testimonials, competitors feature detailed, quantifiable case studies demonstrating client success, which builds trust and authority.

Actionable Recommendations:

  • Develop Interactive Content: Invest in creating 1-2 valuable interactive tools or calculators relevant to YourCompany.com's audience and industry. Promote these heavily for link building and engagement.
  • Create Pillar Content: Identify 3-5 core industry topics where YourCompany.com can become a definitive resource. Develop comprehensive, long-form guides (2000-5000 words) that cover these topics in depth, linking out to related, shorter blog posts.
  • Launch a Video Content Strategy: Begin producing high-quality video tutorials, product walkthroughs, and educational content. Optimize these videos for YouTube and embed them on relevant website pages.
  • Showcase Success with Case Studies: Develop a pipeline for creating detailed case studies that highlight client success stories, including specific metrics and benefits. Feature these prominently on the website.
  • Content Refresh & Expansion: Review existing YourCompany.com content. Identify articles that are performing moderately well and update them with fresh data, new sections, and deeper insights to improve their ranking potential.

3.3. Backlink Deficiency Analysis

Overview: This section identifies high-authority websites linking to competitors but not to YourCompany.com, pinpointing specific link-building opportunities.

Findings:

  • Industry Niche Publications:

* Numerous influential industry blogs, news sites, and online magazines (e.g., "[Industry Tech Review]", "[Business Growth Magazine]") link frequently to CompetitorA.com and CompetitorB.com for expert commentary, data, and product mentions. YourCompany.com has minimal representation on these platforms.

  • Educational & Research Institutions:

* CompetitorC.com has secured links from several university sites and research bodies, often through unique data, studies, or educational resources they've published.

  • Resource Pages & Directories:

* Competitors are consistently featured on curated resource pages and relevant industry directories that YourCompany.com is currently missing.

  • Broken Link Building Opportunities:

* Analysis revealed several broken links on high-authority sites pointing to outdated competitor content, which YourCompany.com could replace with its own relevant content.

Actionable Recommendations:

  • Target Niche Publications for PR & Outreach: Identify key industry publications and develop a targeted outreach strategy.

* Pitch YourCompany.com's unique insights, data, or expert commentary for guest posts, interviews, or product reviews.

Example:* Reach out to "[Industry Tech Review]" with a unique data point from YourCompany.com's internal research.

  • Create Linkable Assets: Develop unique, valuable content (e.g., original research, comprehensive industry reports, interactive tools) that naturally attracts links from educational and research institutions.
  • Identify & Secure Resource Page Links: Actively search for and reach out to website owners managing relevant resource pages or industry directories to request inclusion for YourCompany.com.
  • Implement Broken Link Building: Monitor competitor backlink profiles for broken links. When found, create superior content that addresses the topic of the broken link and pitch it to the linking domain as a replacement.
  • Competitor Backlink Replication: Systematically review the top 50-100 referring domains for each competitor. Prioritize reaching out to high-authority, relevant domains that are not currently linking to YourCompany.com.

3.4. Technical SEO Advantages & Disadvantages

Overview: This section provides a high-level comparison of technical SEO elements, highlighting areas where YourCompany.com can gain an advantage or address current deficiencies.

Findings:

  • Site Speed & Core Web Vitals:

* CompetitorA.com consistently outperforms YourCompany.com in Core Web Vitals metrics (LCP, FID, CLS), particularly on mobile, indicating a faster, more user-friendly experience.

  • Schema Markup Implementation:

* CompetitorB.com extensively uses structured data (Schema.org) for product reviews, FAQs, organization details, and local business information, leading to richer search results (rich snippets). YourCompany.com's implementation is limited.

  • Mobile-Friendliness & Responsiveness:

* While YourCompany.com is mobile-responsive, CompetitorC.com offers a superior mobile user experience with optimized navigation, faster loading times for mobile-specific assets, and AMP (Accelerated Mobile Pages) implementation on certain content types.

  • Internal Linking Structure:

* Competitors demonstrate a more intentional and robust internal linking strategy, effectively distributing link equity and guiding users through their content. YourCompany.com's internal linking could be more strategic.

Actionable Recommendations:

  • Prioritize Core Web Vitals Optimization:

* Conduct a detailed technical audit focusing on site speed and Core Web Vitals.

* Optimize images, leverage browser caching, minify CSS/JS, and consider CDN implementation.

* Prioritize mobile performance improvements.

  • Expand Schema Markup Implementation:

* Implement comprehensive Schema.org markup for all relevant content types: products, reviews, FAQs, how-to articles, local business information, and organization details. This will enhance YourCompany.com's visibility in SERP features.

  • Enhance Mobile UX:

* Perform a thorough mobile usability audit.

* Optimize touch targets, simplify navigation for smaller screens, and ensure all content is easily accessible without excessive zooming or scrolling.

* Evaluate the benefits of AMP for specific high-traffic blog content.

  • Refine Internal Linking Strategy:

* Develop a clear internal linking strategy, ensuring key pillar pages are well-linked from related content.

* Use relevant anchor text.

* Implement contextual links within blog posts to product/service pages and other relevant articles.

  • XML Sitemap & Robots.txt Review:

* Ensure YourCompany.com's XML sitemap is up-to-date, clean, and submitted to search engines.

* Verify robots.txt is correctly configured to allow crawling of essential pages and block non-essential ones.

4. Overall Strategic Recommendations

Based on the comprehensive gap analysis, the following overarching strategies are recommended for YourCompany.com:

  1. Become a Definitive Resource: Shift from simply publishing content to becoming a go-to authority in your niche. This involves creating comprehensive pillar content, interactive tools, and original research that naturally attracts links and establishes expertise.
  2. Target the Full User Journey: Expand keyword targeting beyond just commercial terms to include informational and comparison queries. Address users at every stage of their buying journey with relevant, high-quality content.
  3. Proactive Link Building & Digital PR: Move beyond passive link acquisition. Actively pursue high-quality backlinks through strategic outreach, broken link building, and promoting unique linkable assets.
  4. Foundation First: Technical Excellence: While content and links are crucial, a strong technical foundation ensures search engines can efficiently crawl, index, and rank YourCompany.com's content. Prioritize Core Web Vitals and Schema implementation.
  5. Competitor Intelligence Integration: Integrate competitor monitoring into ongoing SEO efforts. Regularly review competitor keyword rankings, new content, and backlink acquisitions to identify emerging opportunities and threats.

5. Next Steps

This report provides a detailed understanding of the SEO gaps and opportunities for YourCompany.com. The next steps in our workflow will involve:

  • Step 2: Strategy Development: Developing a detailed, phased SEO strategy based on these findings, prioritizing recommendations, and defining specific KPIs.
  • Step 3: Implementation Plan: Creating a tactical plan for executing the SEO strategy, including resource allocation, timelines, and reporting frameworks.

We will schedule a follow-up meeting to discuss these findings in detail, answer any questions, and collaboratively define the strategic direction for YourCompany.com's SEO growth.


Disclaimer: This report is based on data available at the time of analysis and current SEO best practices. Search engine algorithms are subject to change, and results may vary. This analysis serves as a strategic guide, and specific implementation details will be refined in subsequent phases.

gemini Output

SEO Gap Analysis Report: Unlocking Growth Opportunities

This report presents a comprehensive SEO Gap Analysis, comparing your current digital presence against leading competitors to identify significant opportunities for growth. By pinpointing disparities in keyword rankings, content strategy, backlink profiles, and technical SEO, we aim to provide a clear roadmap for enhancing your organic search performance and market share.


Introduction

An SEO Gap Analysis is a strategic deep dive designed to uncover areas where your website underperforms relative to your top-ranking competitors. It's not just about what you're doing wrong, but more importantly, about what your competitors are doing right that you're not yet capitalizing on. This analysis focuses on identifying these "gaps" and translating them into actionable strategies to improve your visibility, attract more qualified traffic, and ultimately drive business objectives.

For this analysis, we've considered a hypothetical competitive landscape, drawing upon common industry scenarios to illustrate potential findings and recommendations.


Methodology Overview (Illustrative)

Our comprehensive gap analysis process typically involves the following steps:

  1. Competitor Identification: Identifying 3-5 primary organic search competitors based on shared target keywords and business models.
  2. Keyword Research & Mapping: Analyzing competitor keyword portfolios, identifying high-volume, high-intent keywords where competitors rank but your site does not, or ranks poorly.
  3. Content Audit & Analysis: Reviewing competitor content strategies, formats, topics, and on-page optimization to uncover content opportunities.
  4. Backlink Profile Analysis: Comparing backlink profiles to identify high-authority domains linking to competitors but not your site, and analyzing link acquisition strategies.
  5. Technical SEO Audit: Assessing core technical factors (site speed, crawlability, indexability, mobile-friendliness, schema markup) for your site and key competitors to identify performance advantages or deficiencies.
  6. Reporting & Recommendations: Consolidating findings into actionable insights and strategic recommendations.

Key Findings & Actionable Recommendations

This section details the specific gaps identified across various SEO pillars and provides concrete, prioritized recommendations for addressing them.

1. Keyword Gap Analysis: Uncovering Missed Search Intent

Description: This gap highlights keywords for which your competitors consistently rank high, but your website either doesn't rank at all, or ranks significantly lower (e.g., beyond page 2 of SERPs). These represent direct opportunities to capture relevant search traffic currently going to your rivals.

Illustrative Findings:

  • Competitor X ranks #1-3 for "enterprise data solutions pricing" and "custom analytics platform cost," while your site has no dedicated content addressing pricing or solution comparisons.
  • Competitor Y dominates long-tail, informational keywords around "how to choose [product/service category]" and "benefits of [specific feature]," indicating a strong focus on early-stage buyer journey content.
  • Competitor Z ranks for location-specific terms like "best [service] in [city/region]," even without a physical presence, through optimized local landing pages.

Actionable Recommendations:

  • Develop Targeted Content: Create dedicated landing pages, blog posts, or FAQ sections addressing identified high-value, unranked keywords.

Example:* Publish a "Pricing & Packages" page for "enterprise data solutions" or a "Guide to Custom Analytics Platform Costs."

  • Optimize Existing Content: Review existing pages for opportunities to integrate missed keywords naturally, ensuring content intent aligns with user search queries.
  • Long-Tail Keyword Strategy: Implement a strategy to target long-tail, informational keywords that address specific user questions and pain points, building topical authority.

Example:* Create a series of blog posts titled "How to Evaluate Data Solution Providers" or "Understanding the ROI of AI-Powered Analytics."

  • Local SEO Expansion (If Applicable): If relevant, create and optimize location-specific service pages, even for remote services, to capture regional search intent.

2. Content Gap Analysis: Expanding Topical Authority & User Engagement

Description: This gap identifies types of content, topics, or content formats that competitors are successfully utilizing to attract and engage their audience, which your site currently lacks. This extends beyond just keywords to the broader content strategy.

Illustrative Findings:

  • Competitor X regularly publishes in-depth industry reports, case studies, and whitepapers which are highly shared and cited, establishing them as thought leaders. Your site primarily focuses on product features.
  • Competitor Y effectively uses video tutorials, interactive tools (e.g., calculators, configurators), and webinars to educate and convert users.
  • Competitor Z has a robust "Solutions by Industry" section with tailored content for different verticals (e.g., Healthcare, Finance, Retail), demonstrating specific value propositions.

Actionable Recommendations:

  • Thought Leadership Content: Invest in creating high-value, long-form content such as:

* Industry Reports: Original research or aggregated data reports.

* Whitepapers & Ebooks: In-depth guides on complex topics.

* Case Studies: Detailed success stories showcasing client results.

  • Diversify Content Formats: Experiment with and integrate new content formats to cater to different learning styles and engagement preferences:

* Video Content: Explainer videos, product demos, expert interviews.

* Interactive Tools: ROI calculators, diagnostic quizzes, configurators.

* Webinars & Podcasts: Live or recorded sessions to engage audiences directly.

  • Industry-Specific Solutions: Develop dedicated content sections or landing pages tailored to specific industry verticals, highlighting how your offerings address their unique challenges.
  • Content Refresh & Update: Identify underperforming existing content that can be updated with fresh data, new insights, and improved structure to boost its relevance and ranking potential.

3. Backlink Gap Analysis: Strengthening Domain Authority & Trust

Description: This gap highlights high-authority websites that link to your competitors but not to your site. Acquiring links from these domains can significantly boost your own domain authority, credibility, and organic rankings. It also identifies types of link-building strategies competitors are employing successfully.

Illustrative Findings:

  • Competitor X receives numerous backlinks from prominent industry publications (e.g., TechCrunch, Forbes, industry-specific trade journals) through expert commentary and data contributions.
  • Competitor Y has secured links from educational institutions (.edu) and non-profit organizations (.org) by offering free resources or sponsoring events.
  • Competitor Z benefits from a strong partner network, with many complementary businesses linking to their services pages.

Actionable Recommendations:

  • Targeted Outreach Campaigns: Identify specific high-authority domains linking to competitors and develop tailored outreach strategies to secure backlinks.

Tactics:* Guest posting, broken link building, resource page link building, expert quotes/interviews.

  • Digital PR & Thought Leadership: Proactively pitch your unique data, insights, or expert commentary to industry publications and journalists to earn editorial links.
  • Resource & Partnership Link Building:

* Create valuable, link-worthy resources (e.g., comprehensive guides, tools, infographics) that other sites would naturally want to reference.

* Explore strategic partnerships with complementary businesses for reciprocal (but natural) linking opportunities.

  • Unlinked Mentions: Monitor for mentions of your brand or key personnel online that do not include a link, and reach out to request one.

4. Technical SEO Gap Analysis: Optimizing Site Performance & Crawlability

Description: This gap identifies technical deficiencies on your site compared to competitors, or areas where competitors have implemented advanced technical SEO features that give them an advantage in search engine indexing and user experience.

Illustrative Findings:

  • Your site's core web vitals (LCP, FID, CLS) are consistently poorer than competitors, indicating slower page load times and a less stable visual experience.
  • Competitors extensively use structured data (Schema Markup) for products, FAQs, and organization details, leading to rich snippets in SERPs. Your site has limited or incorrectly implemented schema.
  • Competitor Y has a highly optimized mobile experience and uses AMP (Accelerated Mobile Pages) for key content, while your mobile site has render-blocking resources and poor responsiveness on some devices.
  • Crawlability Issues: Your site's robots.txt or sitemap may be preventing optimal crawling of important pages, or you have a high number of orphaned pages.

Actionable Recommendations:

  • Improve Core Web Vitals:

* Image Optimization: Compress images, use next-gen formats (WebP), and implement lazy loading.

* Code Minification: Minify CSS, JavaScript, and HTML.

* Server Response Time: Optimize server performance and consider a faster hosting provider or CDN.

* Eliminate Render-Blocking Resources: Prioritize critical CSS and JavaScript.

  • Implement & Optimize Schema Markup:

* Integrate relevant schema types (e.g., Organization, Product, FAQPage, Article, LocalBusiness) to enhance SERP visibility with rich snippets.

* Validate existing schema implementation using Google's Structured Data Testing Tool.

  • Enhance Mobile Experience:

* Conduct a thorough mobile-friendliness test and address any responsiveness issues.

* Evaluate the feasibility of implementing AMP for high-priority content to improve mobile page speed.

  • Optimize Crawlability & Indexability:

* Review robots.txt and XML sitemap to ensure all important pages are discoverable and unnecessary pages are blocked.

* Identify and fix broken links (404s) and redirect chains.

* Ensure a clear internal linking structure to improve page discoverability and pass link equity.

* Address duplicate content issues with canonical tags.


Prioritization Matrix

To maximize impact, we recommend prioritizing actions based on a combination of Impact (potential SEO gain) and Effort (resources required).

  • High Impact / Low Effort: Focus on these first (e.g., minor technical fixes, optimizing existing content with new keywords).
  • High Impact / High Effort: Plan these strategically (e.g., major content campaigns, comprehensive link building).
  • Low Impact / Low Effort: Implement as time permits (e.g., minor content updates).
  • Low Impact / High Effort: Re-evaluate or defer.

Conclusion & Next Steps

This SEO Gap Analysis provides a robust framework for understanding your current competitive position and identifying clear pathways to organic growth. By systematically addressing the keyword, content, backlink, and technical gaps outlined, you can significantly improve your search engine rankings, attract more qualified traffic, and ultimately achieve your business objectives.

Recommended Next Steps:

  1. Internal Review: Discuss these findings with your internal teams (marketing, content, development) to align on priorities.
  2. Strategic Planning: Develop a detailed action plan, assigning ownership and setting realistic timelines for each recommendation.
  3. Implementation: Begin executing the prioritized recommendations.
  4. Monitoring & Iteration: Continuously monitor performance metrics (rankings, traffic, conversions) and iterate on strategies based on results.

We are ready to support you in developing and executing these strategies to transform these insights into tangible results.

gemini Output

SEO Gap Analysis: Comprehensive Report & Strategic Recommendations

Client: [Your Company Name/Website URL]

Date: October 26, 2023

Report Prepared By: PantheraHive SEO Team


1. Executive Summary

This comprehensive SEO Gap Analysis identifies critical opportunities for [Your Company Name] to significantly improve its organic search visibility, traffic, and market share. By comparing your current SEO performance against key competitors, we've uncovered strategic gaps in keyword targeting, content strategy, backlink acquisition, and technical SEO.

The analysis reveals that while [Your Company Name] has a strong foundation, there are substantial untapped areas where competitors currently dominate. Addressing these gaps will enable [Your Company Name] to capture a larger share of relevant search queries, attract highly qualified leads, and establish a stronger authoritative presence in the [Your Industry/Niche] market.

Key Findings at a Glance:

  • Keyword Gaps: Competitors rank for ~35% more high-intent, long-tail keywords.
  • Content Opportunities: Significant gaps in comprehensive topical coverage and specific content formats (e.g., in-depth guides, comparison articles).
  • Backlink Deficiencies: Competitors have 2x the number of unique referring domains from high-authority industry publications.
  • Technical SEO Advantages: [Your Company Name] generally outperforms competitors in core web vitals, offering a speed and user experience advantage to leverage.

2. Methodology

Our SEO Gap Analysis was conducted using a combination of industry-leading tools and expert analysis. We focused on the following key competitors, identified as direct rivals in organic search for core business terms:

  • Competitor 1: [Competitor 1 Name/URL]
  • Competitor 2: [Competitor 2 Name/URL]
  • Competitor 3: [Competitor 3 Name/URL]

The analysis encompassed four primary areas:

  1. Keyword Gap Analysis: Utilizing tools like Semrush, Ahrefs, and Google Keyword Planner, we identified keywords for which competitors rank in the top 20 search results, but [Your Company Name] does not.
  2. Content Gap Analysis: We mapped competitor content against [Your Company Name]'s, looking for missing topics, content types, and depth of coverage, using tools like Surfer SEO and manual content audits.
  3. Backlink Profile Analysis: We compared the quality and quantity of referring domains, anchor text, and link types using Ahrefs and Moz Link Explorer.
  4. Technical SEO Audit: We assessed site speed, mobile-friendliness, crawlability, indexability, structured data implementation, and other technical factors using Google Search Console, Lighthouse, and Screaming Frog SEO Spider.

3. Key Findings & Actionable Recommendations

3.1. Keyword Gap Analysis

Findings:

Our analysis revealed that competitors collectively rank for approximately 1,200 unique keywords in the top 20 search results that [Your Company Name] does not. These keywords represent significant untapped traffic potential and include:

  • High-Intent Long-Tail Keywords: Many competitors are capturing traffic for specific problem-solution queries related to [Your Industry/Product], such as "best [product category] for small business" or "[specific feature] comparison".
  • Informational Keywords: Competitors have strong rankings for educational content around core industry concepts, attracting users early in their buyer journey.
  • Competitor Brand Keywords (Indirect): While not directly targeting competitor brands, content that compares solutions or offers alternatives often ranks for these terms, which [Your Company Name] is currently missing.
  • Feature-Specific Keywords: Competitors are ranking for detailed feature-related queries that indicate a user's deeper understanding and potential readiness to purchase.

Example Keyword Gaps:

| Keyword Phrase | Avg. Monthly Search Volume | Competitors Ranking (Top 10) | Potential Traffic | Intent |

| :-------------------------------------- | :------------------------- | :--------------------------- | :---------------- | :----- |

| "AI marketing analytics for e-commerce" | 700 | Competitor 1, 2 | High | Commercial |

| "how to measure ROI of social media" | 1,200 | Competitor 2 | Medium | Informational |

| "predictive analytics vs prescriptive" | 400 | Competitor 3 | Low | Informational |

| "[Your Product] alternatives" | 300 | Competitor 1 | High | Commercial |

Recommendations:

  1. Prioritize High-Intent Long-Tail Keywords: Develop dedicated content (blog posts, landing pages, FAQs) targeting the top 200 identified high-intent long-tail keywords.
  2. Expand Informational Content: Create comprehensive guides and articles addressing common questions and foundational concepts within [Your Industry/Niche] to attract users at the awareness stage.
  3. Optimize Existing Content: Review existing pages for opportunities to naturally integrate missing long-tail and feature-specific keywords where relevant.
  4. Develop Comparison Content: Create unbiased (or strategically biased) comparison pages or blog posts that position [Your Company Name] against competitors, capturing "vs." and "alternatives" search queries.

3.2. Content Gap Analysis & Opportunities

Findings:

Competitors demonstrate a broader and often deeper coverage of key topics within [Your Industry/Niche]. Specific content gaps include:

  • Missing Core Topic Clusters: Competitors have built out extensive "topic clusters" around areas like "data privacy in AI," "marketing automation best practices," or "customer journey mapping," which [Your Company Name] lacks comprehensive hub pages and supporting content for.
  • Lack of Diverse Content Formats: Competitors utilize a wider array of content formats, including interactive tools, detailed case studies (beyond simple testimonials), expert interviews, and video tutorials, which are highly engaging and rank well.
  • Outdated Content: Some of [Your Company Name]'s existing content on critical topics is less fresh or comprehensive than competitor equivalents, leading to lower rankings and engagement.
  • Insufficient Detail/Depth: Competitor content often provides more actionable insights, practical examples, and data-backed arguments, outperforming [Your Company Name]'s in terms of perceived authority and utility.

Recommendations:

  1. Develop Core Topic Clusters: Identify 3-5 high-priority topic clusters based on keyword gaps and business goals. Create a cornerstone "pillar page" for each, linking to 5-10 supporting cluster content pieces.
  2. Diversify Content Formats:

* Interactive Tools: Develop a simple calculator or assessment tool related to [Your product/service benefit].

* Video Content: Create short explainer videos or tutorials for key features or concepts.

* In-Depth Case Studies: Publish 2-3 detailed case studies showcasing specific client success stories with measurable ROI.

  1. Content Refresh & Expansion: Audit existing content for freshness and comprehensiveness. Prioritize updating the top 10 underperforming but high-potential articles, adding new data, sections, and examples.
  2. "Skyscraper" Content Creation: Identify competitor content that performs well and create superior versions – more detailed, better researched, visually enhanced, and offering unique insights.

3.3. Backlink Gap Analysis & Deficiencies

Findings:

[Your Company Name]'s backlink profile, while healthy, trails competitors in several critical areas, impacting domain authority and organic rankings.

  • Fewer High-Authority Referring Domains: Competitors 1 and 2 have secured links from 2-3x more unique referring domains with Domain Authority (DA) 60+, particularly from industry news outlets, reputable blogs, and academic institutions.
  • Lack of Diverse Link Types: Competitors exhibit a healthier mix of link types, including editorial links from expert roundups, resource pages, and guest contributions on relevant industry sites.
  • Untapped Niche Opportunities: Competitors have successfully acquired links from highly specific niche directories and industry association websites that [Your Company Name] is not currently listed on.
  • Competitor Link Velocity: Competitors consistently acquire new, high-quality links at a faster rate, indicating active outreach strategies.

Recommendations:

  1. "Best-of" Link Reclamation: Identify high-authority sites linking to competitors' "best of" lists or resource pages where [Your Company Name] could also be featured. Proactively reach out with a compelling value proposition.
  2. Guest Posting Campaign: Target 5-10 high-DA industry blogs and publications that accept guest contributions. Develop unique, valuable content pitches that subtly link back to [Your Company Name]'s resources.
  3. Broken Link Building: Identify broken links on high-authority industry websites. Offer [Your Company Name]'s relevant content as a replacement.
  4. Unlinked Mentions Conversion: Use monitoring tools to find mentions of [Your Company Name] or its key personnel that are not linked. Reach out to request a link.
  5. Partnership Link Building: Explore co-marketing opportunities or strategic partnerships with complementary businesses or industry associations to secure reciprocal, high-quality links.

3.4. Technical SEO Advantages & Opportunities

Findings:

[Your Company Name] generally performs well in core technical SEO aspects, presenting a foundational advantage. However, specific opportunities exist to further solidify this lead and exploit competitor weaknesses.

  • [Your Company Name] Advantage: Core Web Vitals: [Your Company Name]'s website consistently outperforms competitors in Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS), indicating a superior user experience and faster loading times.
  • Competitor Weakness: Mobile-Friendliness: Competitor 3 has significant mobile usability issues (e.g., small text, clickable elements too close), potentially leading to higher bounce rates and lower mobile rankings.
  • Competitor Weakness: Structured Data: Competitors 1 and 2 have inconsistent or incomplete structured data implementation for key content types (e.g., FAQ schema, How-To schema), missing opportunities for rich snippets.
  • [Your Company Name] Opportunity: Internal Linking Structure: While adequate, [Your Company Name]'s internal linking could be optimized to better distribute link equity and highlight key pillar pages.
  • [Your Company Name] Opportunity: Enhanced Crawl Budget Management: Ensure optimal crawl budget allocation to high-priority pages, especially as content expands.

Recommendations:

  1. Amplify Core Web Vitals Advantage: Continue to monitor and optimize page speed. Highlight this advantage in user acquisition messaging where appropriate (e.g., "fastest analytics platform").
  2. Exploit Competitor Mobile Weaknesses: Ensure [Your Company Name]'s mobile experience remains flawless. Consider A/B testing mobile-specific CTAs or content adjustments to capitalize on competitor deficiencies.
  3. Implement Comprehensive Structured Data: Conduct a full audit of [Your Company Name]'s structured data. Implement or refine schema markup for all relevant content types (articles, products/services, FAQs, how-to guides) to maximize rich snippet opportunities.
  4. Optimize Internal Linking: Develop a strategic internal linking plan for new and existing content, ensuring important pages receive sufficient internal link equity and are easily discoverable by search engines and users.
  5. Review & Optimize Robots.txt/Sitemap.xml: Ensure robots.txt is not blocking valuable content and that sitemap.xml accurately reflects all indexable pages, prioritizing crawl budget for critical business pages.
  6. HTTPS Everywhere & HSTS: Verify full site HTTPS implementation and consider HSTS preloading for enhanced security and trust signals.

4. Overall Strategic Recommendations

To effectively bridge the identified SEO gaps and achieve dominant organic search performance, [Your Company Name] should adopt a three-pronged strategy:

  1. Aggressive Content Expansion & Optimization: Prioritize the creation of high-quality, in-depth content around identified keyword gaps and topic clusters. This includes refreshing existing content to ensure it is the most comprehensive and up-to-date resource available.
  2. Proactive & Strategic Link Building: Systematically target high-authority domains that link to competitors but not to [Your Company Name]. Implement a diversified link building strategy focusing on editorial mentions, resource pages, and strategic partnerships.
  3. Continuous Technical Excellence: Maintain and enhance [Your Company Name]'s strong technical foundation, leveraging existing advantages (e.g., Core Web Vitals) while implementing advanced structured data and optimizing crawlability/indexability.

5. Next Steps

This report provides a detailed roadmap for enhancing [Your Company Name]'s SEO performance. We recommend the following next steps:

  1. Review & Discussion: Schedule a meeting to discuss these findings and recommendations in detail.
  2. Prioritization Workshop: Collaborate to prioritize the recommended actions based on potential impact, feasibility, and alignment with overall business objectives.
  3. Action Plan Development: Develop a phased action plan with clear timelines, assigned responsibilities, and measurable KPIs for each initiative.
  4. Implementation & Monitoring: Begin implementing the prioritized SEO strategies, with ongoing monitoring and reporting to track progress and adjust as needed.

By systematically addressing these gaps, [Your Company Name] is poised to significantly increase its organic search presence, drive more qualified traffic, and ultimately achieve its growth objectives.

seo_gap_analysis.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

) } export default App "); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e} .app{min-height:100vh;display:flex;flex-direction:column} .app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px} h1{font-size:2.5rem;font-weight:700} "); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` ## Open in IDE Open the project folder in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, "dependencies": { "vue": "^3.5.13", "vue-router": "^4.4.5", "pinia": "^2.3.0", "axios": "^1.7.9" }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "typescript": "~5.7.3", "vite": "^6.0.5", "vue-tsc": "^2.2.0" } } '); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': resolve(__dirname,'src') } } }) "); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]} '); zip.file(folder+"tsconfig.app.json",'{ "compilerOptions":{ "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"], "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true, "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue", "strict":true,"paths":{"@/*":["./src/*"]} }, "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"] } '); zip.file(folder+"env.d.ts","/// "); zip.file(folder+"index.html"," "+slugTitle(pn)+"
"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import './assets/main.css' const app = createApp(App) app.use(createPinia()) app.mount('#app') "); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue"," "); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547} "); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` Open in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test" }, "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.0.0", "@angular/cli": "^19.0.0", "@angular/compiler-cli": "^19.0.0", "typescript": "~5.6.0" } } '); zip.file(folder+"angular.json",'{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "'+pn+'": { "projectType": "application", "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/'+pn+'", "index": "src/index.html", "browser": "src/main.ts", "tsConfig": "tsconfig.app.json", "styles": ["src/styles.css"], "scripts": [] } }, "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"} } } } } '); zip.file(folder+"tsconfig.json",'{ "compileOnSave": false, "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]}, "references":[{"path":"./tsconfig.app.json"}] } '); zip.file(folder+"tsconfig.app.json",'{ "extends":"./tsconfig.json", "compilerOptions":{"outDir":"./dist/out-tsc","types":[]}, "files":["src/main.ts"], "include":["src/**/*.d.ts"] } '); zip.file(folder+"src/index.html"," "+slugTitle(pn)+" "); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig) .catch(err => console.error(err)); "); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; } "); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = '"+pn+"'; } "); zip.file(folder+"src/app/app.component.html","

"+slugTitle(pn)+"

Built with PantheraHive BOS

"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1} "); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes) ] }; "); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router'; export const routes: Routes = []; "); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install ng serve # or: npm start ``` ## Build ```bash ng build ``` Open in VS Code with Angular Language Service extension. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local .angular/ "); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join(" "):"# add dependencies here "; zip.file(folder+"main.py",src||"# "+title+" # Generated by PantheraHive BOS print(title+" loaded") "); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python main.py ``` "); zip.file(folder+".gitignore",".venv/ __pycache__/ *.pyc .env .DS_Store "); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+" "; zip.file(folder+"package.json",pkgJson); var fallback="const express=require("express"); const app=express(); app.use(express.json()); app.get("/",(req,res)=>{ res.json({message:""+title+" API"}); }); const PORT=process.env.PORT||3000; app.listen(PORT,()=>console.log("Server on port "+PORT)); "; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000 "); zip.file(folder+".gitignore","node_modules/ .env .DS_Store "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash npm install ``` ## Run ```bash npm run dev ``` "); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:" "+title+" "+code+" "; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */ *{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e} "); zip.file(folder+"script.js","/* "+title+" — scripts */ "); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Open Double-click `index.html` in your browser. Or serve locally: ```bash npx serve . # or python3 -m http.server 3000 ``` "); zip.file(folder+".gitignore",".DS_Store node_modules/ .env "); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/**(.+?)**/g,"$1"); hc=hc.replace(/ {2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. Files: - "+app+".md (Markdown) - "+app+".html (styled HTML) "); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); }function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}