Social Media Campaign
Run ID: 69cad6b774bac0555ea30a732026-03-30Marketing
PantheraHive BOS
BOS Dashboard

Plan and create content for a complete social media campaign

Social Media Campaign: Content Calendar - Step 1 of 2

This document outlines a comprehensive content calendar for your upcoming social media campaign, focusing on increasing brand awareness, driving engagement, and generating leads for your new AI-Powered Workflow Automation feature. This calendar provides detailed, ready-to-publish content for a two-week period across key platforms.


1. Campaign Overview

  • Campaign Name: InnovateFlow: Smart Workflows, Smarter You
  • Primary Goal: Launch and drive awareness for InnovateFlow's new AI-Powered Workflow Automation, showcasing its benefits in efficiency, productivity, and strategic decision-making.
  • Target Audience: Project Managers, Team Leads, Operations Managers, Small to Medium Business Owners, and professionals seeking to optimize their workflows.
  • Key Platforms: LinkedIn, X (Twitter), Instagram, Facebook
  • Core Message: InnovateFlow's AI-Powered Workflow Automation transforms chaotic tasks into streamlined, intelligent processes, freeing your team to focus on what matters most.

2. Content Calendar - Week 1

Day 1: Monday - Launch & Introduction

  • Theme: Announcing the Future of Work with AI Automation
  • Content Type: Product Launch Announcement (Image/Short Video)

* LinkedIn:

* Headline: 🚨 Introducing InnovateFlow AI-Powered Workflow Automation! 🚨

* Body Text: The future of productivity is here. Say goodbye to manual bottlenecks and hello to intelligent automation that learns, adapts, and optimizes your workflows. InnovateFlow's new AI feature empowers your team to achieve more with less effort, transforming complex tasks into seamless operations. Elevate your efficiency today!

* Call to Action: Learn how AI can revolutionize your team's productivity. Watch our demo: [Link to Demo/Landing Page]

* Hashtags: #AIAutomation #WorkflowAutomation #InnovateFlow #FutureOfWork #Productivity #SaaSLaunch

* Visual Suggestion: Dynamic graphic or short animation showcasing a complex workflow becoming simplified by AI, featuring the InnovateFlow logo.

* X (Twitter):

* Headline: πŸš€ Big News! InnovateFlow just launched AI-Powered Workflow Automation!

* Body Text: Stop wasting time on manual tasks. Our new AI automates, optimizes, and empowers your team to focus on strategy. Get ready for smarter work.

* Call to Action: Discover the power of AI in your workflows: [Shortened Link]

* Hashtags: #InnovateFlowAI #AI #Workflow #ProductivityBoost #NewFeature

* Visual Suggestion: Eye-catching graphic with a "NEW" badge and the AI feature's key benefit.

* Instagram:

* Headline: The Future is Now: InnovateFlow AI Automation is Here! ✨

* Body Text: Imagine workflows that think for themselves. Our new AI-Powered Automation feature is designed to cut through the clutter, automate repetitive tasks, and give your team back precious time. Ready to experience unparalleled efficiency?

* Call to Action: Tap the link in bio to see our AI in action! #InnovateFlowAI

* Hashtags: #InnovateFlow #AI #Automation #WorkSmartNotHard #TechLaunch #Innovation

* Visual Suggestion: High-quality, vibrant image or short reel highlighting the "smart" aspect of AI, perhaps a sleek dashboard UI element.

* Facebook:

* Headline: Unleash Peak Productivity: InnovateFlow's AI Workflow Automation is LIVE!

* Body Text: We're thrilled to announce the launch of our groundbreaking AI-Powered Workflow Automation! This innovative feature is set to redefine how teams manage projects, streamline operations, and achieve their goals. Experience intelligent task management, automated approvals, and data-driven insights.

* Call to Action: Explore the benefits and transform your team's output. Visit our website: [Link to Website]

* Hashtags: #InnovateFlow #AIWorkflow #BusinessAutomation #ProductivityTools #TechNews

* Visual Suggestion: Engaging launch video or a carousel of key feature screenshots.

Day 2: Tuesday - Problem/Solution Focus

  • Theme: Tackling Workflow Bottlenecks with AI
  • Content Type: Infographic/Carousel (Pain Point -> Solution)

* LinkedIn:

* Headline: Are Workflow Bottlenecks Holding Your Team Back?

* Body Text: Manual approvals, repetitive data entry, and missed deadlines are productivity killers. InnovateFlow's AI-Powered Automation identifies inefficiencies and automatically streamlines processes, ensuring smooth operations and freeing your team for strategic work.

* Call to Action: Stop the bottlenecks. See how InnovateFlow AI can help: [Link to Blog Post/Case Study on efficiency]

* Hashtags: #WorkflowEfficiency #BusinessChallenges #AIsolutions #InnovateFlow #ProductivityHacks

* Visual Suggestion: Multi-slide carousel or infographic illustrating common workflow problems and how AI automation solves each one.

* X (Twitter):

* Headline: Tired of workflow bottlenecks? 😫

* Body Text: InnovateFlow's AI automation cuts through the clutter, streamlining tasks & boosting efficiency. Manual work is officially over.

* Call to Action: Get smarter workflows now: [Shortened Link]

* Hashtags: #AI #Workflow #Efficiency #ProblemSolved #InnovateFlow

* Visual Suggestion: Simple graphic showing a "before" (messy) and "after" (streamlined) workflow.

* Instagram:

* Headline: Unlock Your Team's Full Potential ✨

* Body Text: Manual tasks drain energy and time. Our AI-Powered Workflow Automation tackles these challenges head-on, ensuring every process runs like clockwork. What's your biggest workflow pain point? Let us know in the comments!

* Call to Action: Swipe left to see how we transform chaos into calm. #WorkflowSolutions

* Hashtags: #InnovateFlow #Automation #BusinessGrowth #TeamProductivity #AIforBusiness

* Visual Suggestion: Engaging carousel post with clean, modern design, showing a common pain point on slide 1 and the AI solution on slide 2.

* Facebook:

* Headline: Is Your Team Drowning in Manual Tasks? InnovateFlow Has the AI Solution!

* Body Text: From tedious data entry to complex approval chains, manual workflows cost time and money. Discover how InnovateFlow's AI-Powered Automation intelligently handles these tasks, allowing your team to focus on innovation and strategic initiatives.

* Call to Action: Transform your workflow today. Request a personalized demo: [Link to Demo Request Form]

* Hashtags: #InnovateFlow #AIAutomation #ProductivityBoost #BusinessSolutions #WorkflowOptimization

* Visual Suggestion: Engaging video explaining the problem and solution, or a compelling image of a relieved team.

Day 3: Wednesday - Feature Deep Dive / Educational

  • Theme: Key Benefits of AI-Powered Approvals & Task Assignment
  • Content Type: Short Explainer Video / Blog Excerpt

* LinkedIn:

* Headline: Automated Approvals & Intelligent Task Assignment: The InnovateFlow AI Difference

* Body Text: Ever wish your approval processes were faster and smarter? InnovateFlow's AI learns your team's patterns, automatically routing approvals and assigning tasks to the right people at the right time. Say goodbye to bottlenecks and hello to seamless collaboration.

* Call to Action: Dive deeper into our AI features. Read our latest blog post: [Link to Blog Post]

* Hashtags: #AIforApprovals #TaskAutomation #SmartWorkflows #InnovateFlow #CollaborationTools

* Visual Suggestion: Short video demonstrating the automated approval flow or a graphic highlighting "Smart Approvals" and "Intelligent Task Assignment."

* X (Twitter):

* Headline: AI-Powered Approvals? Yes, please! πŸ‘‹

* Body Text: InnovateFlow's AI learns your team's needs, automates approvals & assigns tasks intelligently. Boost efficiency, reduce delays.

* Call to Action: See it in action: [Shortened Link to Feature Page]

* Hashtags: #AI #Automation #Approvals #TaskManagement #InnovateFlow

* Visual Suggestion: GIF of a seamless approval process.

* Instagram:

* Headline: Your Approvals Just Got Smarter! 🧠

* Body Text: No more chasing signatures! InnovateFlow's AI intelligently routes approvals and assigns tasks based on your team's workflow. It's like having a super-efficient assistant for every project.

* Call to Action: DM us "AI" to get a quick overview! #InnovateFlowAI

* Hashtags: #SmartApprovals #AIinBusiness #WorkflowMagic #InnovateFlow #ProductivityApps

* Visual Suggestion: Instagram Reel showcasing a quick, satisfying visual of an approval process completing automatically.

* Facebook:

* Headline: Streamline Your Decisions with InnovateFlow's AI-Powered Approvals

* Body Text: Decision-making and task assignment can be major time sinks. Our AI-Powered Workflow Automation takes the guesswork and manual effort out, ensuring timely approvals and optimal task distribution, keeping your projects on track and on time.

* Call to Action: Discover how intelligent automation can benefit your team. Download our free guide: [Link to Gated Content - e.g., "Guide to AI-Powered Approvals"]

* Hashtags: #InnovateFlow #AIforBusiness #WorkflowAutomation #DecisionMaking #TeamEfficiency

* Visual Suggestion: Engaging graphic with statistics on time saved by automated approvals.

Day 4: Thursday - Thought Leadership / Industry Insight

  • Theme: The Future of Work: AI's Role in Project Management
  • Content Type: Article Share / Expert Quote (Image)

* LinkedIn:

* Headline: The Future of Project Management is AI-Driven. Are You Ready?

* Body Text: AI isn't just a buzzword; it's reshaping how we manage projects, predict risks, and allocate resources. From automating repetitive tasks to providing predictive analytics, AI is empowering project managers to achieve unprecedented levels of efficiency and strategic insight.

* Call to Action: Read our insights on the evolving role of AI in project management: [Link to InnovateFlow Blog/Whitepaper]

* Hashtags: #FutureOfWork #AIinProjectManagement #ThoughtLeadership #InnovateFlow #DigitalTransformation

* Visual Suggestion: Professional image of a diverse team collaborating with a futuristic overlay, or a graphic with a compelling statistic about AI in project management.

* X (Twitter):

* Headline: AI isn't just for tech giants. It's transforming #ProjectManagement for everyone!

* Body Text: From predictive analytics to automated tasks, AI is the future. Get ahead with InnovateFlow.

* Call to Action: Learn more: [Shortened Link to Article]

* Hashtags: #AI #PM #FutureofWork #InnovateFlow #TechTrends

* Visual Suggestion: Quote card with a powerful statement about AI's impact on project management.

* Instagram:

* Headline: AI: Your New Project Management Superpower πŸ¦Έβ€β™€οΈ

* Body Text: The landscape of project management is evolving, and AI is at the forefront. It's not about replacing humans, but empowering them with tools to work smarter, predict better, and deliver more.

* Call to Action: What are your thoughts on AI in PM? Share below! #AIandPM

* Hashtags: #InnovateFlow #ProjectManagement #AItools #FutureIsNow #Innovation

* Visual Suggestion: Inspiring visual of a project manager confidently overseeing a streamlined process, with subtle AI elements.

* Facebook:

* Headline: Navigating the AI Revolution in Project Management

* Body Text: As AI continues to integrate into our daily work lives, its impact on project management is undeniable. InnovateFlow is at the cutting edge, providing AI tools that empower teams to optimize resource allocation, mitigate risks, and ensure project success like never before.

* Call to Action: Join the conversation! How has AI impacted your project management approach?

* Hashtags: #InnovateFlow #AIinBusiness #ProjectSuccess #DigitalInnovation #WorkplaceEvolution

* Visual Suggestion: Facebook Live discussion prompt or a graphic with a compelling question.

Day 5: Friday - Engagement / Weekend Tease

  • Theme: Reflecting on Productivity & Weekend Prep
  • Content Type: Poll/Question (Text/Image)

* LinkedIn:

* Headline: Wrapping up the week: What's your top productivity hack?

* Body Text: As we head into the weekend, we'd love to hear from our community! What's one thing you do to ensure maximum productivity during your work week? Share your tips below! P.S. InnovateFlow's AI automation is ours! πŸ˜‰

* Call to Action: Share your insights in the comments!

* Hashtags: #ProductivityTips #WorkLifeBalance #WeekendVibes #InnovateFlow #CommunityEngagement

* Visual Suggestion: Relaxed, professional image (e.g., a tidy desk at the end of the day, or a coffee cup with a laptop).

* X (Twitter):

* Headline: Friday Poll! What's your biggest productivity killer?

* Body Text: A) Manual tasks B) Endless meetings C) Distractions D) All of the above! Vote & tell us!

* Call to Action: Vote & RT! #ProductivityPoll

* Hashtags: #Poll #Productivity #FridayFeeling #InnovateFlow #WorkChallenges

* Visual Suggestion: Simple poll graphic.

* Instagram:

* Headline: Friday Feels! What's making your workflow easier this week? β˜€οΈ

* Body Text: We're all about smart work, not hard work! What's one tool or habit that saved you time this week? Let's share some wisdom!

* Call to Action: Drop your best tip in the comments! πŸ‘‡

* Hashtags: #InnovateFlow #FridayMotivation #WorkSmart #ProductivityGoals #WeekendReady

* Visual Suggestion: Bright, positive image or a short, upbeat video of someone closing their laptop with a smile.

* Facebook:

Headline: *Happy Friday! What's on

sharper4k Output

Social Media Campaign: Image Generation Plan (sharper4k)

This document outlines a comprehensive plan for generating high-quality, professional images for your social media campaign, focusing on the "sharper4k" aesthetic. The goal is to produce visually stunning, engaging, and brand-aligned content that captivates your audience and effectively communicates your campaign message.


1. Campaign Context & Visual Strategy

Campaign Goal (Assumed): To launch and promote "Zenith Desks," a new line of minimalist, ergonomic standing desks and accessories designed for modern professionals seeking enhanced focus, well-being, and a sophisticated home office environment.

Overall Visual Theme & Aesthetic (sharper4k):

The visual strategy centers on a modern minimalist, high-end aesthetic characterized by:

  • Clean Lines & Uncluttered Spaces: Emphasizing product design and functionality without distraction.
  • Natural Light & Brightness: Creating an airy, inviting, and positive atmosphere.
  • Sophisticated Color Palette: Predominantly neutral tones (whites, grays, natural wood) with subtle, tasteful accent colors (e.g., muted greens, soft blues) to evoke calm and focus.
  • Premium Materiality: Highlighting textures of wood, metal, and matte finishes.
  • Ergonomics & Comfort: Subtly showcasing the ease of use and physical benefits.
  • Professional & Aspirational: Images should inspire and reflect a desired lifestyle of productivity and balance.

2. Core Image Concepts & Detailed Specifications

We will generate images across several key categories to ensure diverse and impactful content for various social media platforms and campaign messages. Each concept includes specific details for lighting, composition, mood, and elements.

2.1. Hero Shots: Product Spotlight

Objective: Showcase the Zenith Desk in its most pristine and appealing form, highlighting its design and elegance.

  • Image Concept 1.1: The Iconic Desk

* Description: A pristine, eye-level shot of the Zenith standing desk (e.g., light oak top, matte black frame) in a spacious, minimalist home office setting. The desk is positioned slightly off-center, drawing the eye. A single, high-design monitor and a sleek wireless keyboard/mouse are the only items on the desk.

* Lighting: Abundant natural light streaming from a large window to the side, creating soft shadows and highlighting textures.

* Composition: Rule of thirds, clean background (e.g., a textured off-white wall or a subtle concrete finish). No clutter.

* Mood: Serene, sophisticated, aspirational.

* Sharper4k Prompt Keywords: high-resolution, professional product photography, minimalist standing desk, light oak, matte black frame, modern home office, abundant natural light, soft shadows, clean lines, sleek monitor, wireless keyboard, sophisticated, serene, architectural digest style.

  • Image Concept 1.2: Elevated Perspective

* Description: A slightly elevated, wide-angle shot capturing the Zenith desk along with a complementary accessory (e.g., a matching ergonomic chair or a plant on a minimalist stand). The desk is set to a standing height, showcasing its versatility.

* Lighting: Even, soft ambient light, with a subtle glow from a hidden LED strip under the desk edge.

* Composition: Emphasizing depth and the overall harmony of the workspace. Include a subtle glimpse of a calming backdrop (e.g., a blurred outdoor view through a window).

* Mood: Balanced, innovative, inviting.

* Sharper4k Prompt Keywords: ultra-high definition, professional studio shot, Zenith standing desk, standing height, ergonomic chair, minimalist plant, wide-angle, soft ambient light, subtle LED glow, modern design, harmonious workspace, blurred natural backdrop, innovative.

2.2. Lifestyle Shots: Productivity & Well-being in Action

Objective: Demonstrate the benefits of the Zenith Desk through human interaction, emphasizing comfort, focus, and a balanced work-life.

  • Image Concept 2.1: Focused Productivity

* Description: A professional (gender-neutral, 30s-40s) engaged in focused work at the Zenith standing desk. They are looking at their screen (screen content can be blurred or generic UI), with a subtle smile of concentration. The desk is at a comfortable standing height. The person is dressed in smart-casual attire.

* Lighting: Warm, directional natural light illuminating the person and the desk, creating a sense of energy and clarity.

* Composition: Medium shot, focusing on the person's upper body and the desk area. Avoid showing faces too clearly to maintain broad appeal, or show a profile.

* Mood: Productive, focused, energetic, comfortable.

* Sharper4k Prompt Keywords: 4k professional lifestyle photography, focused professional, standing at ergonomic desk, Zenith desk, smart-casual attire, natural light, warm tones, concentration, productivity, modern office, blurred screen content, comfort, well-being.

  • Image Concept 2.2: Seamless Transition & Relaxation

* Description: A person gracefully transitioning the Zenith desk from sitting to standing height (or vice versa), or simply taking a brief, mindful pause at the desk with a cup of herbal tea. The scene conveys ease and stress reduction.

* Lighting: Soft, diffused light, creating a calming ambiance.

* Composition: Dynamic shot capturing movement (if transitioning) or a serene, contemplative pose. Include a small, stylish mug on the desk.

* Mood: Calm, adaptable, mindful, effortless.

* Sharper4k Prompt Keywords: ultra HD lifestyle image, person interacting with smart standing desk, smooth height adjustment, Zenith desk, mindful pause, herbal tea mug, soft diffused light, calm ambiance, adaptable workspace, stress reduction, modern, ergonomic.

2.3. Detail Shots: Craftsmanship & Features

Objective: Highlight the premium materials, intricate details, and innovative features of the Zenith Desks and accessories.

  • Image Concept 3.1: Materiality & Controls

* Description: A macro shot focusing on the texture of the desk surface (e.g., fine-grain wood or smooth matte finish) meeting the sleek control panel. Emphasize the tactile quality and the seamless integration of technology. A finger lightly touching a button on the control panel.

* Lighting: Extremely precise, directional lighting to highlight textures and finishes, with subtle reflections on metal elements.

* Composition: Extreme close-up, sharp focus on the details, bokeh background.

* Mood: Precision, quality, craftsmanship, tactile.

* Sharper4k Prompt Keywords: macro photography, Zenith desk detail, fine-grain wood texture, matte finish, sleek control panel, precise directional lighting, subtle reflections, finger touching button, craftsmanship, quality, seamless technology integration, bokeh.

  • Image Concept 3.2: Smart Cable Management & Accessories

* Description: A close-up showcasing the integrated cable management solution (e.g., discreet tray, magnetic clips) and a complementary Zenith accessory like a monitor arm or a smart power hub. The cables are neatly organized.

* Lighting: Clean, even lighting to reveal the clever design and functionality.

* Composition: Angled shot to reveal the hidden organization, emphasizing tidiness and efficiency.

* Mood: Organized, efficient, smart, thoughtful design.

* Sharper4k Prompt Keywords: high-detail product photography, Zenith desk cable management, integrated solution, magnetic clips, sleek monitor arm, smart power hub, organized cables, clean even lighting, efficiency, thoughtful design, close-up.

2.4. Aspirational & Environmental Shots

Objective: Place the Zenith Desk in an idealized, inspiring environment, connecting it with broader lifestyle aspirations.

  • Image Concept 4.1: The Urban Oasis

* Description: A Zenith desk positioned in a light-filled corner of a modern apartment or loft, overlooking a vibrant city skyline or a serene green space. Lush but minimalist indoor plants are tastefully arranged nearby. The desk is clean, ready for inspiration.

* Lighting: Bright, expansive natural light, with a slight golden hour glow if overlooking a city, or cool light if overlooking nature.

* Composition: Wide shot, emphasizing the view and the harmonious integration of the desk into a desirable living space.

* Mood: Inspirational, aspirational, balanced, urban serenity.

* Sharper4k Prompt Keywords: cinematic wide shot, Zenith desk, modern apartment, city skyline view, lush indoor plants, golden hour natural light, urban oasis, aspirational lifestyle, balanced work-life, minimalist decor, high-end.

  • Image Concept 4.2: Creative Sanctuary

* Description: The Zenith desk as part of a creative workspace, perhaps with a sketchbook, high-end headphones, and a beautifully designed lamp. The focus is on fostering creativity and deep work.

* Lighting: Soft, focused task lighting from the lamp, combined with gentle ambient light.

* Composition: Slightly overhead shot, showcasing the curated items on the desk, inviting engagement.

* Mood: Creative, focused, inspiring, personal sanctuary.

* Sharper4k Prompt Keywords: professional creative workspace, Zenith desk, minimalist sketchbook, high-end headphones, designer lamp, soft focused task lighting, gentle ambient light, inspiring, personal sanctuary, deep work, curated.


3. Technical Specifications & Best Practices for Image Generation

To ensure the "sharper4k" standard, please adhere to the following:

  • Resolution: All generated images should be at minimum 4K (3840x2160 pixels) or higher to allow for cropping and resizing without loss of quality.
  • Aspect Ratios:

* 1:1 (Square): Ideal for Instagram feed, Facebook.

* 4:5 (Portrait): Instagram portrait, Pinterest.

* 16:9 (Landscape): Facebook cover, website banners, LinkedIn.

* 9:16 (Vertical): Instagram Stories, Reels, TikTok (ensure key elements are central).

Deliverables should include at least 1:1 and 4:5 versions where applicable, or provide source files that allow for flexible cropping.*

  • Lighting: Prioritize natural, soft, and intentional lighting. Avoid harsh shadows unless used for dramatic effect. Focus on highlighting product features and creating desired moods.
  • Color Palette: Maintain consistency with the brand's aesthetic – primarily neutrals with subtle, sophisticated accents. Ensure color accuracy and vibrancy.
  • Composition: Employ principles like the rule of thirds, leading lines, and negative space to create visually appealing and balanced images. Ensure key elements are in sharp focus.
  • File Formats: Deliver in high-quality JPG or PNG for web use, and consider TIFF or original source files for future print or high-fidelity applications.
  • Brand Consistency: While images should be natural, ensure subtle branding opportunities (e.g., logo on a monitor, branding on an accessory) are considered where appropriate, without being overtly promotional.
  • Avoid Stock Photo ClichΓ©s: Strive for authenticity and originality. The "sharper4k" aesthetic means moving beyond generic stock imagery.

This detailed plan provides a robust framework for generating stunning visual assets for your "Zenith Desks" social media campaign. Each image concept is designed to be actionable, ensuring high-quality output that resonates with your target audience.

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
\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);}});}