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

This deliverable outlines a comprehensive strategy for generating high-quality visual content for your social media campaign, "Social Media Campaign," focusing on the sharper4k β†’ generate_image step. The goal is to produce detailed, professional image generation prompts that align with a modern, innovative brand aesthetic, suitable for a new product launch or brand awareness initiative.

For demonstration purposes, we will assume a campaign for a new "AI-Powered Smart Home Hub" named "NexusFlow." This allows us to craft specific and actionable prompts that you can adapt to your actual product or service.


Social Media Campaign: Image Generation Plan (Step 2 of 2)

1. Campaign Overview & Visual Strategy

Campaign Name: NexusFlow: The Future of Smart Living (Example)

Campaign Goal: To generate excitement, awareness, and pre-orders for the new AI-Powered Smart Home Hub, "NexusFlow."

Target Audience: Tech-savvy homeowners, early adopters, design enthusiasts, individuals seeking seamless smart home integration.

Brand Aesthetic: Modern, minimalist, sophisticated, user-friendly, innovative, clean, and high-tech.

Overall Visual Mood: Inspiring, aspirational, efficient, and effortlessly futuristic.

2. General Image Generation Guidelines

To ensure brand consistency and high quality across all visuals, please adhere to the following general guidelines when generating images:

3. Detailed Image Generation Prompts by Content Type

Here are specific, detailed prompts categorized by common social media content types. Each prompt is designed to elicit a distinct visual that contributes to the overall campaign narrative.


3.1. Hero Product Shot: Introducing NexusFlow

Purpose: To showcase the "NexusFlow" hub in its most appealing and professional light, highlighting its design and premium quality.

Prompt:

text • 1,183 chars
A diverse team of three engineers (two male, one female, all mid-career professionals) collaborating intently around a large digital display showing a 3D CAD rendering of the "NexusFlow" hub. They are in a modern, well-lit R&D lab or tech office, with whiteboards visible in the background featuring complex equations and design sketches. One engineer is pointing to the screen, fostering a sense of dynamic teamwork and innovation.
**Style:** Authentic, documentary-style photography, professional yet approachable.
**Lighting:** Bright, even, professional office lighting, possibly with some creative backlighting to highlight the team's focus.
**Colors:** Professional office environment colors (grays, whites, muted blues), with the screen providing a pop of vibrant tech green or blue.
**Composition:** Medium shot, focusing on the team and the screen, conveying interaction and collaboration.
**Keywords:** `behind the scenes, innovation, tech development, engineering team, diverse group, collaboration, modern office, R&D lab, prototype, AI development, future tech, authentic, documentary style, clean environment, high resolution, digital display, CAD rendering, teamwork`
Sandboxed live preview

Social Media Campaign: Comprehensive Content Calendar - Step 1 of 2

Project: Social Media Campaign

Step: generate_content_calendar

Description: Plan and create content for a complete social media campaign.


Executive Summary

This document outlines a comprehensive 4-week social media content calendar designed to launch and promote the "TerraBloom Sustainable Home Cleaning Kit." The campaign aims to generate brand awareness, educate the target audience on the product's unique benefits and eco-friendly attributes, drive engagement, and ultimately convert interest into sales. Each piece of content is crafted to be engaging, informative, and actionable, complete with headlines, body text, calls to action, and visual guidelines, ready for immediate publishing across key social media platforms.


1. Campaign Objectives

  • Increase Brand Awareness: Introduce TerraBloom and its commitment to sustainable living to a broad audience.
  • Educate & Inform: Highlight the unique features, natural ingredients, and environmental benefits of the TerraBloom Sustainable Home Cleaning Kit.
  • Drive Engagement: Foster community interaction, encourage shares, comments, and discussions around sustainable living and home care.
  • Generate Website Traffic: Direct users to the TerraBloom product page for more information and purchase.
  • Drive Sales: Convert interested prospects into customers for the TerraBloom Sustainable Home Cleaning Kit.

2. Target Audience

  • Primary: Environmentally conscious individuals, homeowners/renters aged 25-55, health-conscious consumers, those interested in sustainable living and ethical consumption.
  • Secondary: Young families, individuals seeking effective yet safe cleaning solutions, early adopters of eco-friendly products.

3. Content Pillars & Themes

The campaign content will revolve around the following key pillars to ensure a diverse and impactful narrative:

  • Sustainability & Eco-Friendliness: Highlighting natural ingredients, reduced waste, and positive environmental impact.
  • Effectiveness & Performance: Showcasing the cleaning power and efficiency of the TerraBloom kit.
  • Health & Safety: Emphasizing non-toxic formulas safe for families and pets.
  • Convenience & Simplicity: Demonstrating how TerraBloom simplifies sustainable home cleaning.
  • Community & Lifestyle: Connecting with the audience's values and integrating TerraBloom into their daily lives.

4. Content Calendar Legend

  • Platform(s): Refers to the social media channel(s) where the content will be posted.
  • Content Type: The format of the post (e.g., Image Post, Video, Carousel, Story).
  • Theme/Focus: The primary message or topic of the content.
  • Headline/Caption: The engaging title or opening line for the post.
  • Body Text: The main descriptive content of the post.
  • Call to Action (CTA): The specific instruction for the audience.
  • Visuals/Notes: Description of the recommended image or video content.
  • Hashtags: Strategic hashtags to increase discoverability.

5. Detailed 4-Week Content Calendar


Week 1: Introduction & Awareness - "Unveiling a Cleaner Future"

Goal: Announce the TerraBloom Kit, introduce brand values, and generate initial excitement.


Day 1: Campaign Launch - Product Reveal

  • Platform(s): Instagram, Facebook, Twitter
  • Content Type: High-quality Image Post / Short Video Reveal
  • Theme/Focus: Grand launch of TerraBloom Sustainable Home Cleaning Kit.
  • Headline/Caption: ✨ The Future of Clean is Here! Introducing TerraBloom.
  • Body Text:

Get ready to transform your home and the planet! We're thrilled to announce the official launch of the TerraBloom Sustainable Home Cleaning Kit – your new partner for a sparkling clean, eco-conscious living space. Crafted with nature's finest ingredients and designed for maximum impact with minimal footprint, TerraBloom makes sustainable cleaning effortless. Say goodbye to harsh chemicals and hello to a healthier home!

  • Call to Action (CTA): Discover the TerraBloom difference! Link in bio to explore the kit.
  • Visuals/Notes: Stunning flat lay photo of the TerraBloom kit components (bottles, cloths, brushes) in a bright, natural setting OR a short, elegant video revealing the kit. Use muted, earthy tones.
  • Hashtags: #TerraBloomLaunch #SustainableCleaning #EcoFriendlyHome #NewProduct #CleanWithPurpose #GreenLiving

Day 3: Brand Ethos - Our Commitment

  • Platform(s): Instagram, Facebook, LinkedIn
  • Content Type: Image Post (quote graphic) / Text Post (LinkedIn)
  • Theme/Focus: Highlighting TerraBloom's mission and commitment to sustainability.
  • Headline/Caption: More Than Just Clean: Our Promise to the Planet.
  • Body Text:

At TerraBloom, we believe a truly clean home shouldn't come at the Earth's expense. Our mission is to provide effective cleaning solutions that are kind to your family, your home, and our planet. From responsibly sourced ingredients to refillable packaging, every aspect of the TerraBloom Sustainable Home Cleaning Kit reflects our unwavering commitment to a greener future. Join us in making a positive impact, one clean home at a time.

  • Call to Action (CTA): Learn more about our sustainability journey at [YourWebsite.com/AboutUs].
  • Visuals/Notes: A visually appealing graphic with a key quote about sustainability or a photo of natural ingredients. For LinkedIn, a professional photo of the team or a nature shot.
  • Hashtags: #TerraBloomMission #SustainableLiving #EcoConscious #PlanetFriendly #EthicalBrand #GreenCleaning

Day 5: Product Feature Spotlight - Natural Power

  • Platform(s): Instagram (Carousel), Facebook
  • Content Type: Carousel Post (3-5 slides)
  • Theme/Focus: Highlighting key natural ingredients and their cleaning power.
  • Headline/Caption: Unlocking Nature's Cleaning Secrets: Meet Our Star Ingredients!
  • Body Text:

Ever wondered what makes TerraBloom so powerfully effective yet incredibly gentle? It's nature's finest! Swipe to discover the magic behind our sustainable cleaning kit:

* Slide 1: Overview - "Our Secret: Nature's Best!"

* Slide 2: Lemon Extract - "The Zest for Grease: Natural degreaser & fresh scent."

* Slide 3: Plant-Derived Surfactants - "Foaming Power, Naturally: Lifts dirt without harsh chemicals."

* Slide 4: Essential Oils - "Aromatherapy for Your Home: Pure scents, no synthetic fragrances."

* Slide 5: Conclusion - "Clean that Cares. For your home, for the Earth."

  • Call to Action (CTA): Explore all ingredients and their benefits on our website! Link in bio.
  • Visuals/Notes: Each slide features a beautiful macro shot of the ingredient with text overlay, explaining its benefit. Consistent branding throughout.
  • Hashtags: #NaturalIngredients #PlantBasedCleaning #TerraBloomKit #EcoFriendlyProducts #CleanHomeHealthyPlanet #IngredientSpotlight

Week 2: Deep Dive & Education - "Experience the Difference"

Goal: Educate on product benefits, address common concerns, and showcase effectiveness.


Day 8: "How It Works" Video Tutorial

  • Platform(s): Instagram (Reel/IGTV), Facebook, YouTube (cross-promote)
  • Content Type: Short Video Tutorial (60-90 seconds)
  • Theme/Focus: Demonstrating the ease of use and effectiveness of the TerraBloom kit.
  • Headline/Caption: πŸŽ₯ See TerraBloom in Action! Sustainable Cleaning Made Simple.
  • Body Text:

Tired of complicated cleaning routines? The TerraBloom Sustainable Home Cleaning Kit is designed for efficiency and ease! Watch how simple it is to achieve a sparkling, fresh, and truly clean home without compromise. From kitchen counters to bathroom tiles, our powerful formulas tackle dirt and grime effortlessly. Get ready to fall in love with cleaning again!

  • Call to Action (CTA): Ready to simplify your cleaning? Shop the kit today – link in bio!
  • Visuals/Notes: A visually appealing, fast-paced video showing someone easily cleaning different surfaces with TerraBloom products. Highlight before-and-after shots subtly. Upbeat, inspiring music.
  • Hashtags: #HowToClean #TerraBloomTutorial #SustainableLivingTips #EasyCleaning #EcoFriendlySolutions #HomeCare #CleanHomeHappyLife

Day 10: Myth Busting - "Green Cleaning Isn't Weak"

  • Platform(s): Instagram (Story/Post), Facebook, Twitter
  • Content Type: Image Post (Myth vs. Fact graphic) / Story Poll
  • Theme/Focus: Debunking common misconceptions about eco-friendly cleaning.
  • Headline/Caption: πŸ’‘ Myth vs. Fact: Is Green Cleaning REALLY Effective?
  • Body Text:

There's a common misconception that eco-friendly cleaning products aren't as powerful as their chemical-laden counterparts. We're here to bust that myth! The TerraBloom Sustainable Home Cleaning Kit proves that you don't need harsh chemicals to achieve a spotless home. Our plant-powered formulas are scientifically developed to cut through grease, grime, and dirt, leaving surfaces pristine and your conscience clear.

  • Call to Action (CTA): What other myths have you heard? Share below! Find out more about TerraBloom's power at [YourWebsite.com/Effectiveness].
  • Visuals/Notes: A graphic clearly stating a myth (e.g., "Myth: Eco-cleaners don't work") and then a fact ("Fact: TerraBloom delivers powerful clean, naturally!"). For stories, use interactive polls.
  • Hashtags: #MythBusting #GreenCleaningMyths #TerraBloomFacts #SustainableSolutions #EffectiveCleaning #EcoFriendlyLiving #TruthAboutClean

Day 12: Customer Testimonial / Review Feature (Hypothetical)

  • Platform(s): Instagram, Facebook
  • Content Type: Image Post (Quote graphic with user photo)
  • Theme/Focus: Building trust and social proof through positive customer feedback.
  • Headline/Caption: ⭐ Hear What Our Community Is Saying About TerraBloom!
  • Body Text:

"I'm absolutely in love with my TerraBloom kit! My home has never felt so fresh and genuinely clean, and I love knowing I'm not exposing my family to harsh chemicals. Plus, the packaging is beautiful! Highly recommend!" - Sarah L., TerraBloom Customer.

We're so grateful for the wonderful feedback from our growing community! Your satisfaction and a healthier planet are our biggest motivators. Join Sarah and countless others who are making the switch to sustainable cleaning.

  • Call to Action (CTA): Ready to experience the TerraBloom difference yourself? Shop now via the link in bio!
  • Visuals/Notes: A clean, branded graphic featuring a professional headshot of "Sarah L." (stock photo or placeholder) and her quoted testimonial.
  • Hashtags: #TerraBloomReviews #CustomerLove #SustainableLiving #HappyHome #EcoFriendlyTestimonial #RealResults #CleanHomeHappyLife

Week 3: Community & Impact - "Join the Movement"

Goal: Foster community, highlight environmental impact, and inspire lifestyle changes.


Day 15: Environmental Impact Spotlight

  • Platform(s): Instagram (Infographic), Facebook, LinkedIn
  • Content Type: Infographic / Data Visualization
  • Theme/Focus: Quantifying the positive environmental impact of choosing TerraBloom.
  • Headline/Caption: 🌎 Your Choice, Our Planet: The TerraBloom Impact.
  • Body Text:

Every choice we make has an impact, and with TerraBloom, that impact is overwhelmingly positive! By choosing our Sustainable Home Cleaning Kit, you're not just cleaning your home; you're contributing to:

* 90% less plastic waste compared to conventional cleaners (with refills).

* 100% biodegradable ingredients that protect waterways.

* Reduced carbon footprint from manufacturing to delivery.

Join the movement of conscious consumers making a real difference, one clean home at a time.

  • Call to Action (CTA): Be part of the change. Learn more about our sustainability efforts at [YourWebsite.com/Impact].
  • Visuals/Notes: A striking infographic showing statistics and visuals (e.g., comparison of plastic bottles, clean water droplet, green leaf icon).
  • Hashtags: #EnvironmentalImpact #TerraBloomImpact #ReduceWaste #GoGreen #SustainableChoice #PlanetOverPlastic #EcoWarrior

Day 17: Behind-the-Scenes / Meet the Makers

  • Platform(s): Instagram (Story/Reel), Facebook
  • Content Type: Short Video / Image Series
  • Theme/Focus: Humanizing the brand and showing the passion behind TerraBloom.
  • Headline/Caption: πŸ‘‹ Meet the Heart Behind TerraBloom!
  • Body Text:

Ever wondered about the passion and dedication that goes into creating your favorite sustainable cleaning kit? Swipe/Watch to get a peek behind the scenes at TerraBloom! From our passionate product developers to our eco-conscious packaging team, every step is infused with our love for a cleaner planet and healthier homes. We're more than just a brand; we're a community driven by purpose.

  • Call to Action (CTA): Have questions for our team? Drop them in the comments!
  • Visuals/Notes: Candid shots or short clips of team members working, packaging products, or discussing ideas. Emphasize natural light and a friendly atmosphere.
  • Hashtags: #BehindTheScenes #TerraBloomTeam #SustainableBrand #EcoInnovators #MeetTheMakers #BrandStory #PassionForPlanet

Day 19: Lifestyle Integration - "Your Sustainable Sanctuary"

  • Platform(s): Instagram, Facebook
  • Content Type: Aspirational Image Post
  • Theme/Focus: Showing how TerraBloom fits into a holistic, healthy, and sustainable lifestyle.
  • Headline/Caption: 🏑 Cultivate Your Sustainable Sanctuary with TerraBloom.
  • Body Text:

Imagine a home that not only sparkles but also radiates well-being. TerraBloom isn't just about cleaning; it's about creating a


4. Platform-Specific Considerations

While the core image prompts are robust, consider these minor adjustments for different social media platforms:

  • Instagram/Facebook: Often prefer square (1:1) or vertical (4:5, 2:3) aspect ratios. Ensure key elements are centered and visible.
  • LinkedIn: Best for professional, informative content. Horizontal (16:9) or square images work well.
  • Twitter: Horizontal (16:9) images are generally preferred for optimal display in feeds.
  • Pinterest: Strongly favors vertical (2:3, 9:16) aspect ratios for maximum visibility.
  • TikTok: Primarily vertical video, but static images can be used in carousels. Focus on dynamic, engaging visuals.

Recommendation: Generate each image prompt in at least two common aspect ratios (e.g., 1:1 square and 16:9 horizontal) to maximize versatility across platforms.

5. Next Steps & Recommendations

  1. Generate Images: Use the provided detailed prompts with your preferred AI image generation tool (e.g., Midjourney, DALL-E 3, Stable Diffusion).
  2. Iterate & Refine: AI generation is often iterative. Generate multiple variations for each prompt and select the best ones. Don't hesitate to tweak prompt details (e.g., specific colors, camera angles) if initial results aren't perfect.
  3. Brand Integration: After generation, consider adding subtle brand logos, campaign hashtags, or specific product names as text overlays using graphic design software.
  4. A/B Testing: Once you have a selection of images, consider A/B testing different visuals to see which ones resonate most with your audience.
  5. Captioning Strategy: Develop compelling captions and calls-to-action that complement each visual, driving engagement and conversion.

By following these detailed guidelines and prompts, you will be able to generate a diverse and high-quality set of visuals that effectively support your "

social_media_campaign.txt
Download source file
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);}});}