Compliance Policy Generator
Run ID: 69cb061258b35c7ea758c2d42026-03-30Business
PantheraHive BOS
BOS Dashboard

Generate regulatory compliance policies including privacy policy, terms of service, cookie policy, DMCA policy, and accessibility statement.

Marketing Strategy for Compliance Policy Generator

This document outlines a comprehensive marketing strategy for the "Compliance Policy Generator," designed to reach target audiences, communicate value effectively, and measure success.


1. Executive Summary

The "Compliance Policy Generator" addresses a critical need for businesses operating online: the efficient and cost-effective generation of essential legal policies such as Privacy Policy, Terms of Service, Cookie Policy, DMCA Policy, and Accessibility Statement. This strategy focuses on positioning the generator as an indispensable tool for mitigating legal risks, enhancing user trust, and ensuring regulatory adherence, particularly for small to medium-sized businesses (SMBs) and startups.


2. Target Audience Analysis

Understanding who needs our solution and why is fundamental to effective marketing.

2.1 Primary Audiences

  • Small to Medium-sized Businesses (SMBs):

* Profile: E-commerce stores, online service providers (SaaS, web hosting), digital agencies, content creators, bloggers.

* Pain Points: Limited legal budgets, lack of in-house legal expertise, fear of non-compliance (fines, lawsuits, reputational damage), time-consuming manual policy drafting, unawareness of all necessary policies (e.g., accessibility).

* Motivation: Seek affordable, reliable, and quick solutions to meet legal obligations without diverting significant resources from core business operations.

  • Startups & New Businesses:

* Profile: Tech startups, app developers, newly launched online ventures.

* Pain Points: High burn rate, focus on product development and market fit, often overlook legal groundwork until a critical stage or incident, need to establish credibility from day one.

* Motivation: Require a fast, automated way to secure foundational legal documents to attract investors, users, and comply with regulations from inception.

  • Online Service Providers (SaaS, Apps):

* Profile: Companies offering software-as-a-service, mobile applications, or other digital platforms.

* Pain Points: Complex data handling regulations (GDPR, CCPA), need for robust Terms of Service for user agreements, DMCA for user-generated content, and accessibility for broad user reach.

* Motivation: Ensure seamless user experience while maintaining stringent legal compliance to avoid service disruptions and legal challenges.

2.2 Secondary Audiences

  • Freelancers & Solo Entrepreneurs: Similar pain points to SMBs but with even tighter budgets and resource constraints.
  • Marketing & Web Development Agencies: Could use the generator as a white-label solution or a value-add service for their clients when building websites or digital platforms.
  • Legal Tech Consultants: May integrate the generator into their toolkit for initial client assessments or basic policy generation.

2.3 Psychographics

  • Risk-Averse: Concerned about legal penalties, data breaches, and reputational harm.
  • Time-Poor: Value efficiency, automation, and solutions that free up their time.
  • Budget-Conscious: Seeking cost-effective alternatives to traditional legal services.
  • Compliance-Aware (or becoming aware): Actively seeking solutions to navigate complex regulatory landscapes.

3. Channel Recommendations

A multi-channel approach will ensure broad reach and targeted engagement.

3.1 Digital Marketing Channels

  • Search Engine Optimization (SEO):

* Strategy: Create high-quality, educational content around compliance topics. Optimize for relevant keywords.

* Keywords: "privacy policy generator," "terms of service template," "GDPR compliance tool," "CCPA policy generator," "DMCA policy for websites," "website accessibility statement generator," "online legal policy creator," "startup legal compliance."

* Content Ideas: Blog posts like "5 Essential Legal Policies Every Website Needs," "GDPR vs. CCPA: What's the Difference and How to Comply," "How to Make Your Website Accessible: A Beginner's Guide," "Avoiding Legal Pitfalls for E-commerce."

  • Search Engine Marketing (SEM / PPC):

* Strategy: Target high-intent keywords with Google Ads and Bing Ads.

* Tactics:

* Branded Keywords: Bidding on competitor names (if permissible and strategic).

* Problem/Solution Keywords: "how to create a privacy policy," "legal compliance for small business."

* Remarketing: Target users who visited the site but didn't convert.

  • Content Marketing:

* Strategy: Establish thought leadership and provide value through comprehensive resources.

* Assets: E-books ("The Ultimate Guide to Online Legal Compliance"), webinars ("Demystifying Data Privacy Laws"), checklists ("Website Compliance Checklist"), infographics, case studies (anonymized success stories).

* Distribution: Blog, email newsletters, social media, industry publications.

  • Social Media Marketing:

* LinkedIn: Ideal for reaching B2B audiences (business owners, legal professionals, startup founders). Share compliance news, educational content, and product updates. Use LinkedIn Ads for targeted campaigns.

* Twitter: Engage with legal tech influencers, share real-time updates on regulatory changes, participate in relevant hashtags (#LegalTech, #Privacy, #GDPR).

* Facebook/Instagram: Retargeting campaigns, awareness campaigns for SMBs, short educational videos.

  • Email Marketing:

* Strategy: Nurture leads, announce updates, and drive conversions.

* Tactics:

* Lead Magnets: Offer free compliance checklists or basic policy templates in exchange for email sign-ups.

* Onboarding Series: For free trial users, guiding them through the policy generation process.

* Educational Newsletters: Regular updates on legal changes, compliance tips.

* Promotional Campaigns: Special offers for subscriptions or premium features.

  • Affiliate Marketing & Partnerships:

* Strategy: Leverage established platforms and communities.

* Partners: Web hosting providers (e.g., GoDaddy, SiteGround), website builders (e.g., Shopify, WordPress, Squarespace, Wix), startup incubators, legal tech blogs, business consulting firms.

* Collaboration: Offer white-label solutions, referral programs, co-marketing webinars.

3.2 Community & PR

  • Online Forums & Communities: Engage in relevant subreddits (r/smallbusiness, r/startups, r/legaladvice), Indie Hackers, Product Hunt. Provide valuable insights and subtly introduce the generator as a solution.
  • Media Outreach: Pitch stories to business, tech, and legal publications about the importance of compliance and how automation can help.

4. Messaging Framework

Our messaging will emphasize ease, affordability, comprehensiveness, and peace of mind.

4.1 Core Value Proposition

"Automate your online legal compliance with ease. Generate essential policies in minutes, save significant time and money, and gain peace of mind knowing your business is protected and trustworthy."

4.2 Key Messaging Pillars

  • Simplicity & Speed:

Message*: "Generate legally compliant policies in minutes, not days or weeks."

Benefit*: Frees up time to focus on core business activities.

  • Cost-Effectiveness:

Message*: "An affordable alternative to expensive legal counsel, designed for businesses of all sizes."

Benefit*: Significant cost savings without compromising on legal quality.

  • Comprehensive Coverage:

Message*: "All your essential policies in one place: Privacy, Terms of Service, Cookie, DMCA, and Accessibility."

Benefit*: Holistic compliance solution, no need for multiple tools or services.

  • Up-to-Date & Compliant:

Message*: "Policies are regularly updated to reflect the latest global regulations (GDPR, CCPA, etc.)."

Benefit*: Stay ahead of legal changes, reduce risk of non-compliance.

  • Peace of Mind & Trust:

Message*: "Reduce legal risk, avoid fines, and build customer trust with transparent, professional policies."

Benefit*: Protects business reputation, fosters user loyalty.

4.3 Audience-Specific Messaging Examples

  • For SMBs: "Focus on growing your business. We'll handle your legal policies, so you can operate with confidence."
  • For Startups: "Launch your venture with a solid legal foundation. Get compliant from day one and impress investors."
  • For E-commerce: "Build customer loyalty and trust with clear, compliant privacy and cookie policies."
  • For Developers/SaaS: "Streamline your user agreements and data handling compliance, ensuring smooth operations and avoiding legal headaches."

4.4 Calls to Action (CTAs)

  • "Generate Your Policies Now"
  • "Start Your Free Trial"
  • "Get Compliant Today"
  • "Learn More About Our Policy Generator"
  • "Download Your Free Compliance Checklist"

5. Key Performance Indicators (KPIs)

Measuring success is crucial for optimizing the marketing strategy.

5.1 Website & Traffic Metrics

  • Website Traffic: Unique visitors, page views (especially policy generation and pricing pages).
  • Bounce Rate: On key landing pages.
  • Time on Page: For educational content.
  • Organic Search Rankings: Position for target keywords.
  • Referral Traffic: From partners and affiliates.

5.2 Lead Generation & Conversion

  • Lead Volume: Number of sign-ups for free trials, downloads of lead magnets.
  • **
gemini Output

Compliance Policy Generator Output

This document provides comprehensive template policies for your business, covering essential regulatory compliance areas. These policies are designed to be detailed and professional, offering a strong foundation for your legal and operational frameworks.

Important Disclaimer: The policies provided below are general templates. They are intended for informational purposes and as a starting point for your business. They do not constitute legal advice. It is crucial to consult with a qualified legal professional to customize these policies to your specific business operations, jurisdiction, and legal requirements. Failure to do so may result in non-compliance.


1. Privacy Policy

[Your Company Name] Privacy Policy

Last Updated: [Date of Last Update]

This Privacy Policy describes how [Your Company Name] ("we," "us," or "our") collects, uses, and discloses your personal information when you use our website, [Your Website URL], and our services (collectively, the "Service"). By accessing or using our Service, you agree to the collection and use of information in accordance with this policy.

1.1. Information We Collect

We collect several types of information from and about users of our Service, including:

  • Personal Information: Information that can be used to identify you directly or indirectly. This may include:

* Contact Information: Name, email address, postal address, phone number.

* Account Information: Username, password, preferences.

* Payment Information: Billing address, credit card details (processed by third-party payment processors, we do not store full card details).

* Demographic Information: Age, gender, interests (if provided by you).

  • Usage Data: Information about how you access and use the Service. This may include:

* Your computer's Internet Protocol (IP) address, browser type, browser version.

* The pages of our Service that you visit, the time and date of your visit, the time spent on those pages.

* Unique device identifiers and other diagnostic data.

  • Tracking & Cookies Data: We use cookies and similar tracking technologies to track the activity on our Service and hold certain information. Please refer to our Cookie Policy for more details.

1.2. How We Use Your Information

We use the collected information for various purposes, including:

  • To Provide and Maintain Our Service: Including monitoring the usage of our Service.
  • To Manage Your Account: To manage your registration as a user of the Service. The Personal Data you provide can give you access to different functionalities of the Service that are available to you as a registered user.
  • For the Performance of a Contract: The development, compliance and undertaking of the purchase contract for the products, items or services you have purchased or of any other contract with us through the Service.
  • To Contact You: To contact you by email, telephone calls, SMS, or other equivalent forms of electronic communication, such as a mobile application's push notifications regarding updates or informative communications related to the functionalities, products or contracted services, including security updates, when necessary or reasonable for their implementation.
  • To Provide You with News, Special Offers and General Information: About other goods, services and events which we offer that are similar to those that you have already purchased or enquired about unless you have opted not to receive such information.
  • To Manage Your Requests: To attend and manage your requests to us.
  • For Business Transfers: We may use your information to evaluate or conduct a merger, divestiture, restructuring, reorganization, dissolution, or other sale or transfer of some or all of our assets, whether as a going concern or as part of bankruptcy, liquidation, or similar proceeding, in which Personal Data held by us about our Service users is among the assets transferred.
  • For Other Purposes: We may use your information for data analysis, identifying usage trends, determining the effectiveness of our promotional campaigns and to evaluate and improve our Service, products, services, marketing and your experience.

1.3. How We Share Your Information

We may share your personal information in the following situations:

  • With Service Providers: We may share your personal information with service providers to monitor and analyze the use of our Service, to contact you.
  • For Business Transfers: We may share or transfer your personal information in connection with, or during negotiations of, any merger, sale of company assets, financing, or acquisition of all or a portion of our business to another company.
  • With Affiliates: We may share your information with our affiliates, in which case we will require those affiliates to honor this Privacy Policy. Affiliates include our parent company and any other subsidiaries, joint venture partners or other companies that we control or that are under common control with us.
  • With Business Partners: We may share your information with our business partners to offer you certain products, services or promotions.
  • With Other Users: When you share personal information or otherwise interact in the public areas with other users, such information may be viewed by all users and may be publicly distributed outside.
  • With Your Consent: We may disclose your personal information for any other purpose with your consent.
  • Legal Requirements: We may disclose your personal information if required to do so by law or in response to valid requests by public authorities (e.g., a court or a government agency).
  • Protection of Rights: To protect and defend the rights or property of [Your Company Name], prevent or investigate possible wrongdoing in connection with the Service, protect the personal safety of users of the Service or the public, and protect against legal liability.

1.4. Data Retention

We will retain your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies.

We will also retain Usage Data for internal analysis purposes. Usage Data is generally retained for a shorter period of time, except when this data is used to strengthen the security or to improve the functionality of Our Service, or We are legally obligated to retain this data for longer time periods.

1.5. Data Security

The security of your Personal Data is important to us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While we strive to use commercially acceptable means to protect your Personal Data, we cannot guarantee its absolute security.

1.6. Your Rights

Depending on your jurisdiction, you may have the following rights regarding your personal data:

  • Right to Access: Request access to the personal data we hold about you.
  • Right to Rectification: Request correction of inaccurate or incomplete data.
  • Right to Erasure ("Right to be Forgotten"): Request deletion of your personal data under certain circumstances.
  • Right to Object: Object to the processing of your personal data under certain circumstances.
  • Right to Restriction of Processing: Request that we restrict the processing of your personal data under certain circumstances.
  • Right to Data Portability: Request a copy of your personal data in a structured, commonly used, machine-readable format.
  • Right to Withdraw Consent: Withdraw your consent at any time where we relied on your consent to process your personal information.

To exercise any of these rights, please contact us at [Your Contact Email].

1.7. Children's Privacy

Our Service is not intended for individuals under the age of [e.g., 13 or 16, depending on jurisdiction and service type]. We do not knowingly collect personally identifiable information from anyone under the age of [e.g., 13 or 16]. If you are a parent or guardian and you are aware that your child has provided us with Personal Data, please contact us. If we become aware that we have collected Personal Data from anyone under the age of [e.g., 13 or 16] without verification of parental consent, we take steps to remove that information from our servers.

1.8. Changes to This Privacy Policy

We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Last Updated" date. You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.

1.9. Contact Us

If you have any questions about this Privacy Policy, please contact us:

  • By email: [Your Contact Email]
  • By visiting this page on our website: [Link to Contact Us Page]
  • By mail: [Your Company Address]

2. Terms of Service

[Your Company Name] Terms of Service

Last Updated: [Date of Last Update]

Welcome to [Your Website/Service Name]! These Terms of Service ("Terms") govern your access to and use of [Your Website URL] and any related services provided by [Your Company Name] ("we," "us," or "our"). By accessing or using the Service, you agree to be bound by these Terms and our Privacy Policy. If you do not agree to these Terms, please do not use our Service.

2.1. Acceptance of Terms

By creating an account, accessing, or using the Service, you signify your agreement to these Terms. If you are using the Service on behalf of an organization, you are agreeing to these Terms for that organization and warrant that you have the authority to bind that organization to these Terms.

2.2. User Accounts

  • Registration: To access certain features of the Service, you may be required to register for an account. You agree to provide accurate, current, and complete information during the registration process and to update such information to keep it accurate, current, and complete.
  • Account Security: You are responsible for safeguarding your password and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account. We are not liable for any loss or damage arising from your failure to comply with these obligations.
  • Eligibility: You must be at least [e.g., 13 or 18] years old to use our Service. By using the Service, you represent and warrant that you meet this age requirement.

2.3. User Responsibilities and Conduct

You agree to use the Service only for lawful purposes and in a way that does not infringe the rights of, restrict, or inhibit anyone else's use and enjoyment of the Service. Prohibited conduct includes:

  • Prohibited Content: Uploading, posting, or transmitting any content that is unlawful, harmful, threatening, abusive, harassing, defamatory, vulgar, obscene, libelous, invasive of another's privacy, hateful, or racially, ethnically, or otherwise objectionable.
  • Illegal Activities: Engaging in any activity that is illegal or violates any applicable local, state, national, or international law.
  • Interference: Interfering with or disrupting the Service or servers or networks connected to the Service.
  • Fraud: Attempting to impersonate another user or person or using a false email address.
  • Spamming: Sending unsolicited or unauthorized advertising, promotional materials, "junk mail," "spam," "chain letters," "pyramid schemes," or any other form of solicitation.
  • Malware: Uploading or transmitting viruses, worms, Trojan horses, or any other malicious code.

2.4. Intellectual Property Rights

  • Our Content: All content on the Service, including text, graphics, logos, images, audio clips, digital downloads, and data compilations, is the property of [Your Company Name] or its content suppliers and protected by international copyright laws.
  • Your Content: You retain ownership of any content you submit, post, or display on or through the Service ("User Content"). By submitting User Content, you grant us a worldwide, non-exclusive, royalty-free, transferable, and sublicensable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform, and display such User Content in connection with the Service and our business.
  • DMCA: We respect the intellectual property rights of others. Please refer to our DMCA Policy for information on how to report copyright infringement.

2.5. Disclaimers

THE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT ANY WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED, SECURE, OR ERROR-FREE, OR THAT DEFECTS WILL BE CORRECTED. WE DISCLAIM ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND COURSE OF PERFORMANCE.

2.6. Limitation of Liability

IN NO EVENT SHALL [YOUR COMPANY NAME], NOR ITS DIRECTORS, EMPLOYEES, PARTNERS, AGENTS, SUPPLIERS, OR AFFILIATES, BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING WITHOUT LIMITATION, LOSS OF PROFITS, DATA, USE, GOODWILL, OR OTHER INTANGIBLE LOSSES, RESULTING FROM (I) YOUR ACCESS TO OR USE OF OR INABILITY TO ACCESS OR USE THE SERVICE; (II) ANY CONDUCT OR CONTENT OF ANY THIRD PARTY ON THE SERVICE; (III) ANY CONTENT OBTAINED FROM THE SERVICE; AND (IV) UNAUTHORIZED ACCESS, USE, OR ALTERATION OF YOUR TRANSMISSIONS OR CONTENT, WHETHER BASED ON WARRANTY, CONTRACT, TORT (INCLUDING NEGLIGENCE) OR ANY OTHER LEGAL THEORY, WHETHER OR NOT WE HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGE, AND EVEN IF A REMEDY SET FORTH HEREIN IS FOUND TO HAVE FAILED OF ITS ESSENTIAL PURPOSE.

2.7. Indemnification

You agree to defend, indemnify, and hold harmless [Your Company Name] and its licensee and licensors, and their employees, contractors, agents, officers, and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, and expenses (including but not limited to attorney's fees), resulting from or arising out of a) your use and access of the Service, by you or any person using your account and password; b) a breach of these Terms, or c) Content posted on the Service.

2.8. Governing Law and Dispute Resolution

These Terms shall be governed and construed in accordance with the laws of [Your State/Country

gemini Output

As part of the "Compliance Policy Generator" workflow, we have generated a comprehensive suite of regulatory compliance policies tailored for your business. These policies are designed to help you meet legal obligations related to data privacy, intellectual property, website usage, and accessibility.

Please review each policy carefully and customize the bracketed placeholders [like this] with your specific company information. We strongly recommend consulting with legal counsel to ensure these policies fully comply with all applicable laws and regulations relevant to your specific operations and jurisdiction.


1. Privacy Policy

Effective Date: [Date of Last Update]

This Privacy Policy describes how [Your Company Name] ("we," "us," or "our") collects, uses, processes, and discloses your information in connection with your access to and use of [Your Website/Service Name] (the "Service").

1.1. Information We Collect

We collect various types of information to provide and improve our Service to you.

  • Personal Information: Information that can be used to identify you, such as:

* Name, email address, postal address, phone number.

* Account credentials (username, password).

* Payment information (processed by third-party payment processors).

* Communications with us (support requests, feedback).

  • Usage Data: Information about how you access and use the Service, including:

* IP address, browser type, operating system.

* Pages visited, time spent on pages, clickstream data.

* Referring URLs, search terms.

  • Device Information: Information about the device you use to access the Service, such as device type, unique device identifiers, and mobile network information.
  • Cookies and Tracking Technologies: Information collected through cookies, web beacons, and similar technologies (see our Cookie Policy for details).

1.2. How We Use Your Information

We use the information we collect for various purposes, including:

  • To Provide and Maintain the Service: Operate, maintain, and improve our Service, including processing transactions and delivering content.
  • To Personalize Your Experience: Customize content and features based on your preferences and usage patterns.
  • To Communicate with You: Send you service-related announcements, updates, security alerts, and support messages.
  • For Marketing and Promotional Purposes: Send you promotional materials, newsletters, and offers (you can opt-out at any time).
  • For Analytics and Research: Understand how users engage with our Service to improve functionality and user experience.
  • For Security and Fraud Prevention: Detect, prevent, and address technical issues, fraud, or security incidents.
  • To Comply with Legal Obligations: Meet applicable laws, regulations, legal processes, or governmental requests.

1.3. How We Share Your Information

We may share your information with third parties in the following circumstances:

  • Service Providers: With third-party vendors, consultants, and other service providers who perform services on our behalf (e.g., hosting, analytics, payment processing, customer support).
  • Business Transfers: In connection with a merger, acquisition, asset sale, or other business transaction involving all or part of our company.
  • Legal Requirements: When required by law, subpoena, or other legal process, or if we believe in good faith that such action is necessary to comply with legal obligations, protect our rights or property, or ensure the safety of our users or the public.
  • With Your Consent: With your explicit consent or at your direction.
  • Aggregated/Anonymized Data: We may share aggregated or de-identified information that cannot reasonably be used to identify you.

1.4. Data Retention

We retain your personal information only for as long as necessary to fulfill the purposes for which it was collected, including for the purposes of satisfying any legal, accounting, or reporting requirements.

1.5. Your Data Rights

Depending on your jurisdiction, you may have the following rights regarding your personal information:

  • Access: Request access to the personal data we hold about you.
  • Rectification: Request correction of inaccurate or incomplete personal data.
  • Erasure: Request deletion of your personal data.
  • Objection: Object to the processing of your personal data.
  • Restriction: Request restriction of processing your personal data.
  • Data Portability: Request a copy of your personal data in a structured, commonly used, machine-readable format.
  • Withdraw Consent: Withdraw your consent at any time where we rely on consent to process your personal data.

To exercise any of these rights, please contact us at [Your Contact Email].

1.6. Security Measures

We implement reasonable technical and organizational measures to protect your personal information from unauthorized access, use, alteration, or destruction. However, no internet transmission or electronic storage is entirely secure, and we cannot guarantee absolute security.

1.7. Children's Privacy

Our Service is not directed to individuals under the age of [e.g., 13 or 16, depending on jurisdiction]. We do not knowingly collect personal information from children without parental consent. If you are a parent or guardian and believe your child has provided us with personal information, please contact us.

1.8. Changes to This Privacy Policy

We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Effective Date" at the top. We encourage you to review this Privacy Policy periodically.

1.9. Contact Us

If you have any questions about this Privacy Policy, please contact us:

  • By email: [Your Contact Email]
  • By mail: [Your Company Address]

2. Terms of Service

Effective Date: [Date of Last Update]

Welcome to [Your Website/Service Name]! These Terms of Service ("Terms") govern your access to and use of [Your Website/Service Name] (the "Service") provided by [Your Company Name] ("we," "us," or "our").

By accessing or using the Service, you agree to be bound by these Terms. If you do not agree to these Terms, do not use the Service.

2.1. Acceptance of Terms

By creating an account, clicking "I Agree," or otherwise using the Service, you represent that you have read, understood, and agree to be bound by these Terms, including our Privacy Policy and Cookie Policy.

2.2. User Accounts

  • Account Creation: To access certain features of the Service, you may need to register for an account. You agree to provide accurate, current, and complete information during the registration process and to update such information to keep it accurate, current, and complete.
  • Account Security: You are responsible for maintaining the confidentiality of your account password and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account. We are not liable for any loss or damage arising from your failure to comply with this section.
  • Eligibility: You must be at least [e.g., 13 or 18] years old to use the Service. By using the Service, you represent and warrant that you meet this age requirement.

2.3. User Conduct and Prohibited Uses

You agree not to use the Service to:

  • Violate any applicable local, state, national, or international law or regulation.
  • Infringe upon or violate our intellectual property rights or the intellectual property rights of others.
  • Upload, post, transmit, or otherwise make available any content that is unlawful, harmful, threatening, abusive, harassing, defamatory, vulgar, obscene, libelous, invasive of another's privacy, hateful, or racially, ethnically, or otherwise objectionable.
  • Impersonate any person or entity, or falsely state or otherwise misrepresent your affiliation with a person or entity.
  • Engage in any unsolicited or unauthorized advertising, promotional materials, "junk mail," "spam," "chain letters," "pyramid schemes," or any other form of solicitation.
  • Interfere with or disrupt the Service or servers or networks connected to the Service.
  • Attempt to gain unauthorized access to any portion of the Service, other accounts, computer systems, or networks connected to the Service, through hacking, password mining, or any other means.
  • Collect or store personal data about other users without their express consent.

2.4. Intellectual Property Rights

  • Our Content: All content on the Service, including text, graphics, logos, images, audio clips, video clips, data compilations, and software, is the property of [Your Company Name] or its content suppliers and is protected by copyright, trademark, and other intellectual property laws.
  • Limited License: We grant you a limited, non-exclusive, non-transferable, revocable license to access and use the Service for your personal or internal business use, subject to these Terms.
  • User-Generated Content: You retain ownership of any content you submit, post, or display on or through the Service ("User Content"). By submitting User Content, you grant us a worldwide, non-exclusive, royalty-free, transferable, and sublicensable license to use, reproduce, distribute, prepare derivative works of, display, and perform the User Content in connection with the Service and our business.

2.5. Third-Party Links and Services

The Service may contain links to third-party websites or services that are not owned or controlled by [Your Company Name]. We have no control over, and assume no responsibility for, the content, privacy policies, or practices of any third-party websites or services. You acknowledge and agree that we shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods, or services available on or through any such websites or services.

2.6. Disclaimers

THE SERVICE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT ANY WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR COURSE OF PERFORMANCE. WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED, SECURE, OR ERROR-FREE.

2.7. Limitation of Liability

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL [YOUR COMPANY NAME], ITS AFFILIATES, DIRECTORS, EMPLOYEES, OR AGENTS BE LIABLE FOR ANY INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES, INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA, OR OTHER INTANGIBLE LOSSES, ARISING OUT OF OR RELATING TO YOUR USE OF, OR INABILITY TO USE, THE SERVICE.

2.8. Indemnification

You agree to indemnify, defend, and hold harmless [Your Company Name] and its affiliates, officers, directors, employees, and agents from and against any and all claims, liabilities, damages, losses, costs, expenses, or fees (including reasonable attorneys' fees) that such parties may incur as a result of or arising from your (or anyone using your account's) violation of these Terms or use of the Service.

2.9. Termination

We may terminate or suspend your account and access to the Service immediately, without prior notice or liability, for any reason whatsoever, including without limitation if you breach the Terms. Upon termination, your right to use the Service will immediately cease.

2.10. Governing Law and Jurisdiction

These Terms shall be governed and construed in accordance with the laws of [Your Jurisdiction], without regard to its conflict of law provisions. You agree to submit to the personal jurisdiction of the courts located within [Your Jurisdiction] for the purpose of litigating all such claims or disputes.

2.11. Changes to Terms

We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material, we will provide at least [e.g., 30] days' notice prior to any new terms taking effect. By continuing to access or use our Service after those revisions become effective, you agree to be bound by the revised terms.

2.12. Contact Us

If you have any questions about these Terms, please contact us:

  • By email: [Your Contact Email]
  • By mail: [Your Company Address]

3. Cookie Policy

Effective Date: [Date of Last Update]

This Cookie Policy explains what cookies are, how [Your Company Name] ("we," "us," or "our") uses cookies and similar technologies on [Your Website/Service Name] (the "Service"), and your choices regarding cookies.

3.1. What are Cookies?

Cookies are small text files that are placed on your computer or mobile device when you visit a website. They are widely used to make websites work more efficiently and to provide information to the website owners. Cookies can be "persistent" or "session" cookies. Persistent cookies remain on your personal computer or mobile device when you go offline, while session cookies are deleted as soon as you close your web browser.

3.2. How We Use Cookies

We use cookies for the following purposes:

  • Essential Cookies: These cookies are strictly necessary to provide you with services available through our Service and to enable you to use some of its features, such as accessing secure areas. Without these cookies, we cannot provide the services you have asked for.
  • Performance and Analytics Cookies: These cookies collect information about how visitors use our Service, such as which pages visitors go to most often and if they get error messages from web pages. These cookies do not collect information that identifies a visitor. All information these cookies collect is aggregated and therefore anonymous. It is only used to improve how our Service works.
  • Functionality Cookies: These cookies allow our Service to remember choices you make (like your username, language, or the region you are in) and provide enhanced, more personal features. They may also
compliance_policy_generator.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
\n\n\n"); 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'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); 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'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n
\n )\n}\nexport default App\n"); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e}\n.app{min-height:100vh;display:flex;flex-direction:column}\n.app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px}\nh1{font-size:2.5rem;font-weight:700}\n"); 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)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\n## Open in IDE\nOpen the project folder in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- 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",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "type": "module",\n "scripts": {\n "dev": "vite",\n "build": "vue-tsc -b && vite build",\n "preview": "vite preview"\n },\n "dependencies": {\n "vue": "^3.5.13",\n "vue-router": "^4.4.5",\n "pinia": "^2.3.0",\n "axios": "^1.7.9"\n },\n "devDependencies": {\n "@vitejs/plugin-vue": "^5.2.1",\n "typescript": "~5.7.3",\n "vite": "^6.0.5",\n "vue-tsc": "^2.2.0"\n }\n}\n'); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport { resolve } from 'path'\n\nexport default defineConfig({\n plugins: [vue()],\n resolve: { alias: { '@': resolve(__dirname,'src') } }\n})\n"); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]}\n'); zip.file(folder+"tsconfig.app.json",'{\n "compilerOptions":{\n "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"],\n "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true,\n "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue",\n "strict":true,"paths":{"@/*":["./src/*"]}\n },\n "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"]\n}\n'); zip.file(folder+"env.d.ts","/// \n"); zip.file(folder+"index.html","\n\n\n \n \n "+slugTitle(pn)+"\n\n\n
\n \n\n\n"); 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'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './assets/main.css'\n\nconst app = createApp(App)\napp.use(createPinia())\napp.mount('#app')\n"); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue","\n\n\n\n\n"); 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}\n"); 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)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\nOpen in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- 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",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "scripts": {\n "ng": "ng",\n "start": "ng serve",\n "build": "ng build",\n "test": "ng test"\n },\n "dependencies": {\n "@angular/animations": "^19.0.0",\n "@angular/common": "^19.0.0",\n "@angular/compiler": "^19.0.0",\n "@angular/core": "^19.0.0",\n "@angular/forms": "^19.0.0",\n "@angular/platform-browser": "^19.0.0",\n "@angular/platform-browser-dynamic": "^19.0.0",\n "@angular/router": "^19.0.0",\n "rxjs": "~7.8.0",\n "tslib": "^2.3.0",\n "zone.js": "~0.15.0"\n },\n "devDependencies": {\n "@angular-devkit/build-angular": "^19.0.0",\n "@angular/cli": "^19.0.0",\n "@angular/compiler-cli": "^19.0.0",\n "typescript": "~5.6.0"\n }\n}\n'); zip.file(folder+"angular.json",'{\n "$schema": "./node_modules/@angular/cli/lib/config/schema.json",\n "version": 1,\n "newProjectRoot": "projects",\n "projects": {\n "'+pn+'": {\n "projectType": "application",\n "root": "",\n "sourceRoot": "src",\n "prefix": "app",\n "architect": {\n "build": {\n "builder": "@angular-devkit/build-angular:application",\n "options": {\n "outputPath": "dist/'+pn+'",\n "index": "src/index.html",\n "browser": "src/main.ts",\n "tsConfig": "tsconfig.app.json",\n "styles": ["src/styles.css"],\n "scripts": []\n }\n },\n "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"}\n }\n }\n }\n}\n'); zip.file(folder+"tsconfig.json",'{\n "compileOnSave": false,\n "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"]},\n "references":[{"path":"./tsconfig.app.json"}]\n}\n'); zip.file(folder+"tsconfig.app.json",'{\n "extends":"./tsconfig.json",\n "compilerOptions":{"outDir":"./dist/out-tsc","types":[]},\n "files":["src/main.ts"],\n "include":["src/**/*.d.ts"]\n}\n'); zip.file(folder+"src/index.html","\n\n\n \n "+slugTitle(pn)+"\n \n \n \n\n\n \n\n\n"); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser';\nimport { appConfig } from './app/app.config';\nimport { AppComponent } from './app/app.component';\n\nbootstrapApplication(AppComponent, appConfig)\n .catch(err => console.error(err));\n"); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; }\n"); 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';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n standalone: true,\n imports: [RouterOutlet],\n templateUrl: './app.component.html',\n styleUrl: './app.component.css'\n})\nexport class AppComponent {\n title = '"+pn+"';\n}\n"); zip.file(folder+"src/app/app.component.html","
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n \n
\n"); 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}\n"); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { routes } from './app.routes';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n};\n"); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router';\n\nexport const routes: Routes = [];\n"); 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)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nng serve\n# or: npm start\n\`\`\`\n\n## Build\n\`\`\`bash\nng build\n\`\`\`\n\nOpen in VS Code with Angular Language Service extension.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n.angular/\n"); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/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("\n"):"# add dependencies here\n"; zip.file(folder+"main.py",src||"# "+title+"\n# Generated by PantheraHive BOS\n\nprint(title+\" loaded\")\n"); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n\`\`\`\n\n## Run\n\`\`\`bash\npython main.py\n\`\`\`\n"); zip.file(folder+".gitignore",".venv/\n__pycache__/\n*.pyc\n.env\n.DS_Store\n"); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/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)+"\n"; zip.file(folder+"package.json",pkgJson); var fallback="const express=require(\"express\");\nconst app=express();\napp.use(express.json());\n\napp.get(\"/\",(req,res)=>{\n res.json({message:\""+title+" API\"});\n});\n\nconst PORT=process.env.PORT||3000;\napp.listen(PORT,()=>console.log(\"Server on port \"+PORT));\n"; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000\n"); zip.file(folder+".gitignore","node_modules/\n.env\n.DS_Store\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\n\`\`\`\n\n## Run\n\`\`\`bash\nnpm run dev\n\`\`\`\n"); } /* --- 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:"\n\n\n\n\n"+title+"\n\n\n\n"+code+"\n\n\n\n"; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */\n*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e}\n"); zip.file(folder+"script.js","/* "+title+" — scripts */\n"); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Open\nDouble-click \`index.html\` in your browser.\n\nOr serve locally:\n\`\`\`bash\nnpx serve .\n# or\npython3 -m http.server 3000\n\`\`\`\n"); zip.file(folder+".gitignore",".DS_Store\nnode_modules/\n.env\n"); } /* ===== 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(/\n{2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\nFiles:\n- "+app+".md (Markdown)\n- "+app+".html (styled HTML)\n"); } 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);}});}