Social Media Campaign
Run ID: 69ccd80e3e7fb09ff16a59052026-04-01Marketing
PantheraHive BOS
BOS Dashboard

Plan and create content for a complete social media campaign

Social Media Campaign: Content Calendar & Strategy

Project: Social Media Campaign

Step 1 of 2: Generate Content Calendar

Date: October 26, 2023


1. Campaign Overview & Introduction

Welcome to the detailed content calendar for your upcoming social media campaign! This document outlines a comprehensive strategy and a week-by-week content plan designed to maximize engagement, build brand awareness, and drive conversions for your innovative productivity and collaboration SaaS solution, SynergyFlow.

This calendar provides ready-to-publish content, tailored for key social media platforms, complete with headlines, body text, calls to action, and visual guidance. Our goal is to ensure a consistent, impactful, and professional presence across all channels.


2. Campaign Goals

The primary objectives for this social media campaign are:

  • Increase Brand Awareness: Introduce SynergyFlow to a wider audience, establishing its unique value proposition.
  • Drive Engagement: Foster meaningful interactions with our target audience through compelling content, discussions, and community building.
  • Generate Leads & Website Traffic: Direct interested users to the SynergyFlow website for demos, sign-ups, and more information.
  • Educate & Position: Showcase SynergyFlow as the leading solution for modern team collaboration and productivity challenges.

3. Target Audience

Our campaign is designed to resonate with:

  • Professionals & Teams: Individuals and groups working in small to medium-sized businesses (SMBs) and enterprises.
  • Managers & Team Leads: Decision-makers seeking tools to improve team efficiency, communication, and project management.
  • Remote & Hybrid Workers: Teams navigating the complexities of distributed work environments.
  • Innovators & Early Adopters: Individuals and companies keen on leveraging cutting-edge technology to gain a competitive edge.

4. Key Message & Value Proposition

Core Message: "Unlock your team's full potential with SynergyFlow – the intuitive platform that streamlines collaboration, boosts productivity, and brings your vision to life."

Value Proposition: SynergyFlow integrates essential tools for task management, communication, and project tracking into one seamless platform, reducing context switching and fostering truly synergistic teamwork. We empower teams to achieve more, together.


5. Content Pillars

Our content strategy is built around four key pillars to ensure a diverse and engaging content mix:

  1. Educate: Informational content, how-to guides, industry insights, productivity tips, feature spotlights.
  2. Inspire: Success stories (generic/mock), motivational content, future of work trends, thought leadership.
  3. Promote: Product announcements, feature benefits, testimonials, special offers, demo invitations.
  4. Engage: Questions, polls, discussions, behind-the-scenes, interactive content.

6. Platform Strategy

Each platform will be leveraged strategically to maximize reach and engagement:

  • LinkedIn: Professional insights, thought leadership, detailed feature explanations, case studies, company news, industry trend analysis.
  • Instagram: Visually appealing content, short video tips, behind-the-scenes glimpses, inspirational quotes, product in action snippets, carousels.
  • Facebook: Community building, engaging questions, product benefits, customer stories, event promotion, longer-form explanatory videos.
  • Twitter (X): Quick tips, industry news, engaging questions, polls, links to blog posts, real-time engagement.

7. Content Calendar: Detailed Week 1

This section provides a detailed, day-by-day content plan for the first week of the campaign.

Week 1: Foundations & Introduction

Focus: Introducing SynergyFlow, highlighting core problems it solves, and establishing initial engagement.


Day 1: Monday - Campaign Launch & Problem/Solution Introduction

  • Theme: Introducing SynergyFlow and addressing common productivity pain points.

* Platform: LinkedIn

* Content Type: Image/Carousel (Professional graphic: "Is Your Team Juggling Too Many Tools?")

* Headline: Tired of Productivity Roadblocks? Meet SynergyFlow.

* Body Text: "In today's fast-paced world, disjointed tools and endless communication threads can kill productivity. At SynergyFlow, we believe collaboration should be seamless, not stressful. Our all-in-one platform is designed to unify your team's workflow, making project management, communication, and task tracking effortless. Say goodbye to scattered efforts and hello to cohesive teamwork. #SynergyFlowLaunch #TeamProductivity #SaaSSolutions"

* Call to Action: "Learn how SynergyFlow can transform your team's efficiency. Visit our website for a free demo!"

* Link: [YourWebsite.com/demo]

* Visual Notes: Clean, professional graphic with a question about scattered tools, leading to a visual of SynergyFlow's unified interface.

* Platform: Instagram

* Content Type: Reel/Short Video (15-30s quick cuts of frustrated workers transitioning to happy, collaborative team)

* Headline: Stop the Scroll, Start the Flow! πŸš€

* Body Text: "Ever feel like your team is stuck in a productivity maze? 😩 Too many apps, too little synergy! SynergyFlow is here to change that. One platform, endless possibilities. See how we make teamwork effortless. #SynergyFlow #ProductivityHacks #TeamworkMakesTheDreamWork #WorkSmarterNotHarder"

* Call to Action: "Tap the link in bio to discover SynergyFlow!"

* Link in Bio: [YourWebsite.com]

* Visual Notes: Upbeat music, quick transitions from chaotic visuals (multiple open apps, stressed faces) to organized, smiling team members interacting within a clean UI mock-up.

* Platform: Twitter (X)

* Content Type: Text with Image/GIF (Relatable meme about tool overload)

* Tweet: "Is your team drowning in apps? 🀯 SynergyFlow brings all your productivity tools into ONE place. Simplify, collaborate, achieve. #SynergyFlow #Productivity #SaaS #TeamCollaboration"

* Call to Action: "Discover the difference: [YourWebsite.com]"

* Visual Notes: A humorous, relatable GIF or meme depicting confusion or overload from too many tools.


Day 2: Tuesday - Feature Spotlight: Unified Communication

  • Theme: Highlighting how SynergyFlow streamlines communication.

* Platform: Facebook

* Content Type: Video (1-2 min animated explainer or screen recording demonstrating chat/comments features)

* Headline: End the Email Chains: Communicate Smarter with SynergyFlow!

* Body Text: "Tired of endless email threads and scattered messages? SynergyFlow integrates all your team communication directly within your projects and tasks. Discuss, decide, and deliverβ€”all in one place. Watch how our unified communication features keep everyone on the same page, effortlessly. #SynergyFlow #TeamCommunication #WorkEfficiency #DigitalWorkplace"

* Call to Action: "See SynergyFlow in action. Request a personalized demo today!"

* Link: [YourWebsite.com/demo]

* Visual Notes: Clear, concise demonstration of in-app chat, task comments, and notification system. Use friendly, professional voiceover.

* Platform: LinkedIn

* Content Type: Text post with a compelling statistic (e.g., "70% of workplace communication is inefficient")

* Headline: Transforming Team Talk: The SynergyFlow Advantage.

* Body Text: "Did you know inefficient communication costs businesses billions annually? πŸ’Έ SynergyFlow is engineered to cut through the noise. Our platform centralizes discussions, feedback, and updates, ensuring every team member has the context they need, exactly when they need it. Reduce misunderstandings, accelerate decisions, and elevate your team's collective intelligence. #BusinessEfficiency #CommunicationTools #SynergyFlowInsights"

* Call to Action: "Read our latest blog post on effective communication strategies: [YourBlogLink.com/communication]"

* Visual Notes: A professional graphic showing the statistic or a simple icon representing communication.


Day 3: Wednesday - Productivity Tip / "How-To" Content

  • Theme: Providing value through actionable productivity advice, subtly linking to SynergyFlow.

* Platform: Instagram

* Content Type: Carousel Post (5-7 slides)

* Headline: 5 Ways to Boost Your Team's Productivity TODAY!

* Body Text: "Ready to supercharge your team? πŸš€ Here are 5 actionable tips to enhance focus and collaboration. (Swipe to see them all!) From setting clear goals to streamlining communication, we've got you covered. #ProductivityTips #TeamGrowth #WorkLifeBalance #SynergyFlow"

* Call to Action: "Which tip will you try first? Let us know below! πŸ‘‡"

* Visual Notes:

* Slide 1: Engaging title slide.

* Slides 2-6: Each slide features one tip (e.g., "1. Set SMART Goals," "2. Centralize Communication," "3. Minimize Distractions," "4. Delegate Effectively," "5. Use the Right Tools"). Use clean, branded graphics with short text.

* Slide 7: Call to action with SynergyFlow logo.

* Platform: Twitter (X)

* Content Type: Poll

* Tweet: "What's the BIGGEST obstacle to your team's productivity? πŸ€” Let us know! #ProductivityChallenges #WorkLife #Teamwork"

* Poll Options:

* Too many tools

* Unclear communication

* Lack of focus

* Disorganized tasks

* Call to Action: "Vote now and share your thoughts!"

* Visual Notes: A simple, engaging poll.


Day 4: Thursday - Customer Story / Testimonial (Mock)

  • Theme: Building trust and credibility through social proof.

* Platform: LinkedIn

* Content Type: Image (Professional headshot of a "satisfied client" with a quote overlay)

* Headline: "SynergyFlow Transformed Our Project Delivery!" – [Client Name/Company]

* Body Text: "We're incredibly proud to share how [Mock Client Company Name], a leading [Industry] firm, achieved a 30% increase in project completion rates after implementing SynergyFlow. '[SynergyFlow] has been a game-changer for our remote teams. We now have a single source of truth for all our projects, drastically improving communication and accountability,' says [Mock Client Name], [Title]. See how your team can experience similar results. #ClientSuccess #Testimonial #SynergyFlowImpact #CaseStudy"

* Call to Action: "Read the full success story on our blog: [YourBlogLink.com/success-story]"

* Visual Notes: High-quality image of a professional, overlaid with a compelling quote.

* Platform: Facebook

* Content Type: Text with Image (Graphic featuring the testimonial quote)

* Headline: Hear From Our Happy Users!

* Body Text: "Nothing makes us prouder than seeing our clients thrive! πŸŽ‰ [Mock Client Name] from [Mock Client Company] raves about how SynergyFlow has streamlined their operations and boosted team morale. 'It's like we finally speak the same language!' Want to achieve synergy like them? #CustomerLove #SynergyFlowReviews #TeamSuccess"

* Call to Action: "Ready to write your own success story? Start your free trial today: [YourWebsite.com/trial]"

* Visual Notes: A visually appealing graphic with the quote and SynergyFlow branding.


Day 5: Friday - Weekend Preview / Value-Added Content

  • Theme: Engaging content for the end of the week, looking forward.

* Platform: Instagram

* Content Type: Image/Reel (Inspirational quote about future of work or team collaboration)

* Headline: Dreaming of a More Productive Week? ✨

* Body Text: "As the week winds down, let's reflect on how we can make next week even better. At SynergyFlow, we envision a future where every team works in perfect harmony. What's one thing you're doing this weekend to recharge for a productive week ahead? #WeekendVibes #FutureOfWork #SynergyFlowInspiration #ProductivityMindset"

* Call to Action: "Share your weekend plans in the comments!"

* Visual Notes: A serene, professional image or short video clip with an inspiring quote about teamwork or productivity.

* Platform: LinkedIn

* Content Type: Article Share/Blog Post (Link to a thought leadership piece)

* Headline: The Future of Work: Are You Ready for True Synergy?

* Body Text: "The way we work is constantly evolving. This weekend, take a moment to explore our latest article on the trends shaping the future of team collaboration and how platforms like SynergyFlow are essential for staying ahead. From AI-powered insights to seamless integrations, the future is collaborative. #ThoughtLeadership #FutureOfWork #WorkplaceInnovation #SynergyFlowBlog"

* Call to Action: "Dive into the insights here: [YourBlogLink.com/future-work]"

* Visual Notes: A compelling thumbnail from the blog post.


Day 6: Saturday - Engagement & Lifestyle

  • Theme: Light, engaging content to maintain presence and connect on a personal level.

* Platform: Facebook / Instagram Story

* Content Type: Interactive Story (Poll/Question Sticker)

* Headline: Weekend Brain Teaser! 🧠

* Body Text: "If you could instantly eliminate one workplace inefficiency, what would it be? πŸ€” #WeekendThoughts #WorkplaceEfficiency #SynergyFlow"

* Call to Action: "Tap to vote!"

* Poll Options:

* Endless meetings

* Searching for files

* Email overload

* Unclear tasks

* Visual Notes: Fun, branded graphic with the question and poll options.


Day 7: Sunday - Recap & Preview

  • Theme: Summarizing the week's value and hinting at what's next.

* Platform: Twitter (X)

*Content Type

sharper4k Output

As part of your "Social Media Campaign" workflow, this deliverable focuses on the visual content strategy and specific image generation requirements for a comprehensive campaign. The goal is to create a compelling and cohesive visual narrative that resonates with your target audience across various social media platforms.


Social Media Campaign: Visual Content Strategy & Image Generation Plan

This document outlines the detailed plan for generating all necessary visual assets (images, graphics) for your upcoming social media campaign. Each section provides specific instructions and creative briefs to ensure high-quality, on-brand, and platform-optimized visuals.

1. Campaign Overview & Visual Objectives

Campaign Name: [Placeholder - e.g., "AuraFlow Smart Diffuser Launch"]

Campaign Goal: To maximize brand awareness, drive engagement, and generate conversions (e.g., website visits, product pre-orders/sales) for the [Product/Service/Brand].

Visual Objective: To create a diverse set of high-quality, engaging, and brand-consistent images that effectively communicate the campaign's core message, highlight key features/benefits, and inspire user interaction across all target social media platforms. Visuals will aim for a sophisticated, modern, and inviting aesthetic.

2. Core Visual Themes & Messaging

The visual content will revolve around the following themes to support the overall campaign narrative:

  • Innovation & Technology: Showcasing the advanced features and smart capabilities.
  • Lifestyle & Wellness: Emphasizing how the product/service integrates into daily life, promoting relaxation, productivity, or well-being.
  • Elegance & Design: Highlighting the aesthetic appeal and premium quality.
  • Simplicity & Ease of Use: Demonstrating user-friendliness through clean, uncluttered visuals.
  • Community & Connection: Fostering a sense of belonging and shared experience (if applicable).

3. Platform-Specific Image Strategies & Specifications

To ensure optimal performance and engagement, visuals will be tailored for each primary social media platform.

3.1. Instagram

  • Strategy: Focus on aspirational lifestyle shots, high-quality product photography, engaging carousels, and visually striking short-form graphics. Emphasize aesthetics and emotional connection.
  • Key Content Types: Hero product shots, lifestyle scenes, feature highlights (single graphics or carousels), quote cards, behind-the-scenes glimpses.
  • Recommended Dimensions:

* Square: 1080x1080 px (1:1 aspect ratio) - for feed posts.

* Portrait: 1080x1350 px (4:5 aspect ratio) - for feed posts (maximizes screen real estate).

* Stories/Reels: 1080x1920 px (9:16 aspect ratio) - for full-screen immersive content.

3.2. Facebook

  • Strategy: Combine high-quality imagery with clear, concise text overlays (where appropriate) and calls to action. Leverage album posts for richer storytelling.
  • Key Content Types: Product showcases, lifestyle scenarios, infographics, event promotions (if applicable), community engagement visuals.
  • Recommended Dimensions:

* Feed Image: 1200x630 px (1.91:1 aspect ratio) or 1080x1080 px (1:1) - wider images often perform well.

* Carousel Ads: 1080x1080 px (1:1).

* Stories: 1080x1920 px (9:16).

3.3. X (formerly Twitter)

  • Strategy: Quick, impactful visuals that grab attention in a fast-paced feed. Infographics, data points, and engaging questions paired with relevant images.
  • Key Content Types: Concise product shots, feature call-outs, quote graphics, GIFs/short animations (though this step focuses on static images, plan for potential animated versions).
  • Recommended Dimensions:

* In-stream Photo: 1200x675 px (16:9 aspect ratio) - recommended for tweets.

* Profile Header: 1500x500 px.

3.4. LinkedIn

  • Strategy: Professional, informative visuals that demonstrate value, innovation, and thought leadership. Focus on product benefits, case studies (visual summaries), and company culture.
  • Key Content Types: Professional product shots, infographics detailing features/benefits, team/behind-the-scenes (professional context), industry-relevant data visualizations.
  • Recommended Dimensions:

* Feed Image: 1200x627 px (1.91:1 aspect ratio) - standard for articles and shares.

* Company Page Banner: 1128x191 px.

4. Detailed Image Concepts & Generation Prompts

This section provides specific creative briefs for the images to be generated or designed. Each prompt is designed to be actionable for an AI image generation tool or a graphic designer.

4.1. Hero Product Shots

  • Objective: To showcase the product's design, form factor, and premium quality in a clean, appealing manner.
  • Prompts:

1. "Floating Elegance": A minimalist, high-key studio shot of the [Product Name] against a soft, gradient background (e.g., subtle pastel blue to white). The product appears to be gently floating, with soft, diffused lighting highlighting its contours. Focus on clean lines and material texture. Aspect Ratio: 1:1, 4:5

2. "Dynamic Angle Showcase": The [Product Name] captured from a low, slightly angled perspective, emphasizing its sleek profile and any prominent features (e.g., LED light ring, control panel). Use a modern, light-filled environment, perhaps with a blurred, sophisticated interior in the background. Aspect Ratio: 1.91:1, 1:1

3. "Texture & Detail Focus": A close-up shot of a specific detail of the [Product Name] (e.g., brushed metal finish, unique button texture, subtle branding). The focus should be sharp, with a shallow depth of field to draw attention to the quality and craftsmanship. Aspect Ratio: 1:1, 4:5

4.2. Lifestyle & Usage Shots

  • Objective: To demonstrate the product's integration into daily life, highlighting its benefits and user experience in relatable settings.
  • Prompts:

1. "Morning Serenity": The [Product Name] placed on a minimalist bedside table in a sunlit bedroom. A person's hand (diverse ethnicity, gender-neutral) is gently touching the device or reaching for a cup of tea nearby. Soft, warm lighting, cozy aesthetic. Implies relaxation and a calm start to the day. Aspect Ratio: 4:5, 1:1

2. "Focus & Productivity": The [Product Name] on a clean, modern desk alongside a laptop, notebook, and a plant. A person (diverse, professional-looking) is working in the background, slightly out of focus. The scene should convey a sense of calm focus and an enhanced work environment. Aspect Ratio: 1.91:1, 1:1

3. "Evening Unwind": The [Product Name] glowing softly in a living room at dusk, creating a soothing ambiance. Perhaps a cozy blanket, a book, or subtle decorative elements are visible. Focus on the mood and atmosphere created by the device. Aspect Ratio: 16:9, 1:1

4.3. Feature Highlight Graphics

  • Objective: To visually explain key features and benefits using clean, branded graphics.
  • Prompts:

1. "Smart Connectivity Iconography": A graphic featuring the [Product Name] at the center, surrounded by clean, modern icons representing "App Control," "Voice Assistant Integration," and "Scheduling." Use a consistent brand color palette. Aspect Ratio: 1:1

2. "Benefit Callout: Wellness": A graphic with a subtle, abstract background (e.g., diffusing mist effect). Overlay a bold headline like "Elevate Your Well-being" and 2-3 bullet points with corresponding minimalist icons (e.g., leaf for natural, wave for calm, brain for focus). Aspect Ratio: 1:1, 4:5

3. "Technology Explained": A clean, simple diagram or infographic-style image illustrating a key technological aspect (e.g., "Ultrasonic Diffusion Technology" with a visual representation of mist particles). Use brand fonts and colors. Aspect Ratio: 1.91:1, 1:1

4.4. Infographics / Educational Content

  • Objective: To provide valuable information related to the product or its benefits in an easily digestible visual format.
  • Prompts:

1. "Benefits at a Glance": A vertical infographic listing 5-7 key benefits of the [Product Name] (e.g., improved air quality, relaxation, smart scheduling, aesthetic design, energy efficiency). Each benefit has a small, custom icon and a short descriptive text. Use a clean, modern layout with brand colors. Aspect Ratio: 4:5, 1:1 (for individual slides in a carousel)

2. "How It Works - Simple Steps": A step-by-step visual guide (3-4 steps) on how to set up or use a core function of the [Product Name]. Use numbered icons and minimal text. Aspect Ratio: 1:1 (for a carousel), 4:5 (single graphic)

4.5. User-Generated Content (UGC) Style Prompts

  • Objective: To create authentic-looking visuals that resonate with potential customers by showing real-world use and testimonials.
  • Prompts:

1. "Cozy Home Setup": A slightly imperfect, warm-toned photo of the [Product Name] in a real-world home setting (e.g., on a bookshelf with books, plants, and a warm beverage). The lighting is natural, making it feel less staged. Aspect Ratio: 1:1, 4:5

2. "Customer Review Overlay": A clean, minimalist graphic featuring a compelling 5-star review quote from a fictional customer. The quote is prominently displayed over a blurred, tasteful background image of the product in use. Include a placeholder for a customer name/avatar. Aspect Ratio: 1:1

5. Visual Style Guide & Branding Notes

To ensure consistency across all generated images:

  • Color Palette: Predominantly use [Brand Primary Color], [Brand Secondary Color], and [Brand Accent Color], complemented by neutrals (whites, grays, soft pastels). Avoid overly saturated or jarring colors.
  • Lighting: Prefer natural, soft, and diffused lighting. Aim for bright, airy scenes. Avoid harsh shadows unless intentionally used for dramatic effect in specific product shots.
  • Composition: Clean, uncluttered compositions are preferred. Utilize negative space effectively.
  • Aesthetic: Modern, sophisticated, minimalist, and inviting.
  • Brand Elements: Ensure any visible branding (logo, product name) is clear and consistent.
  • Diversity: Depict a diverse range of individuals in lifestyle shots to reflect broad appeal.

6. Call to Action (CTA) Integration in Visuals

While the primary CTA will be in the accompanying copy, visuals can subtly support it:

  • Product focus: Clearly showcase the product to encourage "Shop Now."
  • Benefit focus: Visually convey the positive outcomes to drive "Learn More."
  • Brand consistency: Reinforce brand identity, leading to "Follow Us."
  • Subtle Text Overlays: For specific graphics (e.g., feature highlights), a small, non-intrusive "Learn More at [YourWebsite.com]" can be included.

7. Deliverables & Next Steps

  • Image Assets: A collection of high-resolution image files (.JPG, .PNG) for each prompt, optimized for web and social media use.
  • File Naming Convention: [CampaignName]_[Platform]_[ContentType]_[Descriptor].jpg (e.g., AuraFlow_Instagram_Lifestyle_MorningSerenity.jpg).
  • Review & Feedback: Generated images will be presented for review to ensure they align with the campaign vision and brand guidelines.
  • Integration: Approved images will be passed to the content creation team for integration into social media posts and scheduling.

This detailed plan will guide the creation of impactful visuals that are crucial for the success of your social media campaign.

social_media_campaign.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);}});}