Real Estate Listing Generator
Run ID: 69cbd87761b1021a29a8cd692026-03-31Real Estate
PantheraHive BOS
BOS Dashboard

Create professional real estate listings with compelling descriptions, feature highlights, neighborhood analysis, pricing comparisons, and marketing copy.

Step 1 of 3: Property Analysis - Detailed Report

This report provides a comprehensive analysis of a hypothetical property to lay the groundwork for generating a compelling real estate listing. Since specific property details were not provided in the initial user input, we have generated a detailed profile for a representative suburban single-family home to demonstrate the depth and utility of this analysis step. This output will directly inform the subsequent steps of description generation and marketing strategy.


1. Hypothetical Property Profile Overview

To provide a concrete example of the analyze_property function's output, we've created a profile for a modern suburban single-family home.

  • Property Type: Single-Family Home
  • Address (Hypothetical): 123 Maplewood Drive, Evergreen Heights, CA 90210
  • Bedrooms: 4
  • Bathrooms: 2.5 (2 full, 1 half)
  • Square Footage: 2,200 sq ft (Finished)
  • Lot Size: 0.25 acres
  • Year Built: 1998
  • Condition: Excellent, well-maintained with significant recent upgrades.
  • Parking: Attached 2-car garage, driveway
  • Key Renovations:

* Kitchen fully remodeled (2022) with high-end appliances.

* Master Bathroom renovated (2022) with spa-like features.

* New HVAC system (2023).

* Hardwood flooring throughout main living areas (2021).

* Exterior paint (2021).


2. Key Property Features & Specifications

This section details the property's attributes, highlighting both standard features and premium upgrades.

  • Interior Features:

* Living Space: Open-concept living room with gas fireplace, formal dining room, dedicated home office/den.

* Kitchen: Gourmet kitchen featuring quartz countertops, custom cabinetry, stainless steel appliances (gas range, double oven, built-in microwave, French door refrigerator), large island with breakfast bar, pantry.

* Bedrooms: Master suite with walk-in closet and en-suite bath. Three additional spacious bedrooms with ample closet space.

* Bathrooms: Master bath with dual vanity, soaking tub, separate walk-in shower. Guest full bath with modern fixtures. Convenient half-bath on main floor.

* Flooring: Gleaming hardwood floors on main level, plush new carpeting in bedrooms, tile in bathrooms.

* Utilities/Systems: New high-efficiency HVAC (2023), tankless water heater (2020), smart home thermostat (Nest), smart doorbell (Ring).

* Lighting: Recessed lighting, modern fixtures throughout.

  • Exterior Features:

* Lot: Manicured 0.25-acre lot, fully fenced backyard.

* Outdoor Living: Large composite deck (2020) perfect for entertaining, mature landscaping, irrigation system.

* Garage: Attached two-car garage with smart opener, additional storage space.

* Roof: Architectural shingle roof (installed 2015, estimated 10-15 years remaining life).

* Curb Appeal: Fresh exterior paint, welcoming front porch.

  • Accessibility: Main level includes living room, dining room, kitchen, office, and half bath. Access to garage is step-free.

3. Neighborhood & Location Analysis: Evergreen Heights, CA 90210

A deep dive into the surrounding area provides crucial context for market positioning.

  • Location Type: Desirable suburban community, known for its family-friendly atmosphere and excellent schools.
  • Demographics:

* Average Household Income: $120,000 - $150,000 (20% above state average).

* Population Age: Predominantly families with children (35-55 age bracket) and young professionals.

* Education Level: High percentage of college graduates (60%+).

  • Schools:

* Elementary: Evergreen Elementary (Rated 9/10 GreatSchools) - 0.8 miles

* Middle: Maplewood Middle (Rated 8/10 GreatSchools) - 1.5 miles

* High: Evergreen High School (Rated 9/10 GreatSchools) - 2.0 miles

Insight:* Strong school ratings are a significant draw for families and contribute to property value stability.

  • Amenities & Services:

* Shopping: Evergreen Town Center (1.2 miles - major retailers, grocery stores, restaurants), local boutiques.

* Dining: Diverse range of casual and upscale dining options within 1-3 miles.

* Parks & Recreation: Maplewood Park (0.5 miles - playground, sports fields, walking trails), Evergreen Community Pool (1.8 miles), various nature preserves nearby.

* Healthcare: Evergreen Medical Center (3.5 miles).

  • Transportation & Commute:

* Major Roads: Easy access to Highway 101 (2.5 miles) and Interstate 5 (4 miles).

* Public Transit: Bus stops within walking distance, commuter rail station (Evergreen Station) 4 miles away with direct lines to downtown.

* Commute Times: Approximately 30-40 minutes to downtown during peak hours, 15-20 minutes to major tech hubs.

Insight:* Excellent connectivity appeals to commuters, while local amenities support a self-contained lifestyle.

  • Community Vibe: Safe, quiet, well-maintained streets with active neighborhood associations and community events. Low crime rate.

4. Market Data & Pricing Insights

This section analyzes current market conditions and provides a data-driven estimated value range.

  • Recent Sales of Comparable Properties (Last 6 Months, within 1-mile radius, 3-5 BR, 2000-2500 sq ft):

* Property A: 4 BR, 2.5 BA, 2150 sq ft, built 1999, minor updates. Sold for $895,000 (30 days on market).

* Property B: 3 BR, 2 BA, 2000 sq ft, built 1997, renovated kitchen/baths. Sold for $920,000 (18 days on market).

* Property C: 4 BR, 3 BA, 2300 sq ft, built 2000, fully updated, larger lot. Sold for $985,000 (10 days on market).

* Property D: 4 BR, 2.5 BA, 2250 sq ft, built 1998, original condition. Sold for $870,000 (45 days on market).

  • Market Trends (Evergreen Heights - Q1/Q2 2024):

* Median Sales Price: $910,000 (+6% year-over-year).

* Average Days on Market: 22 days (-15% year-over-year).

* Inventory: Low, approximately 1.8 months supply (indicates a strong seller's market).

* Price Per Square Foot: $410 - $450.

* Interest Rates: Currently stable but still impacting buyer affordability; however, strong demand in this desirable area buffers some effects.

  • Estimated Property Value Range: Based on recent comps and the property's extensive recent renovations (kitchen, master bath, HVAC, flooring), which significantly elevate its appeal beyond Property A and D, and bring it close to Property C's value proposition despite a slightly smaller lot.

* Conservative Estimate: $930,000

* Optimistic Estimate: $970,000

* Recommended Listing Price: $949,900 - $969,900 (to generate strong interest and potential multiple offers).

  • Appraisal Considerations: The recent renovations provide strong justification for the higher end of the market, assuming quality workmanship and permits where required.

5. Target Audience Identification

Understanding the ideal buyer helps tailor the listing's language and marketing efforts.

  • Primary Target Audience:

* Growing Families: Seeking top-rated schools, safe neighborhoods, ample space (4 bedrooms), and a large backyard. The renovated kitchen and master bath are strong draws for this demographic.

* Upscale Commuters: Professionals working in downtown or tech hubs who value a suburban lifestyle, good schools for children, and a relatively easy commute. The dedicated office space is a significant plus.

  • Secondary Target Audience:

* Empty Nesters: Looking for a well-maintained home with modern amenities, potentially with space for grandchildren visits, and desiring a vibrant community with amenities. The main floor living options (office, half bath) are appealing.

* Relocating Professionals: Individuals or families moving to the area for work, seeking a move-in ready home in a desirable, established community.


6. Unique Selling Propositions (USPs) & Marketing Angles

These are the key differentiators that should be emphasized in the listing.

  • USPs:

1. Turnkey Modern Luxury: Extensively renovated kitchen and master bathroom (2022) with high-end finishes, new HVAC (2023), and updated flooring make this home truly move-in ready.

2. Prime Family-Friendly Location: Situated in Evergreen Heights, known for its top-tier schools, safe streets, and abundant parks/recreation.

3. Spacious & Functional Layout: 4 bedrooms, dedicated home office, open-concept living, and a generous 0.25-acre lot with a large deck.

4. Smart Home Integration: Modern conveniences like Nest thermostat and Ring doorbell enhance comfort and security.

5. Excellent Commuter Access: Proximity to major highways and public transit options ensures an easy commute to urban centers.

  • Marketing Angles:

* "Experience suburban perfection in this meticulously updated 4-bedroom gem."

* "Your dream kitchen awaits: a culinary haven for family and entertaining."

* "Top-rated schools and a vibrant community are just steps from your front door."

* "Work from home in style with a dedicated office, then unwind on your expansive deck."

* "Move right in and enjoy: every major update has been thoughtfully completed."


7. Recommendations for Listing Generation (Next Steps)

Based on this analysis, here are specific recommendations for crafting the real estate listing.

  • Headline & Opening Paragraph: Start with a strong hook emphasizing "turnkey luxury," "prime location," and "family-friendly." Highlight the recent renovations immediately.
  • Feature Emphasis:

* High Priority: Kitchen & Master Bath renovations, new HVAC, dedicated office, large backyard/deck, 4 bedrooms, school district.

* Medium Priority: Hardwood floors, smart home features, attached garage, fireplace, proximity to parks/shops.

* Lower Priority: Standard appliances (unless premium), basic landscaping.

  • Descriptive Language: Use evocative and benefit-oriented language.

* Instead of "updated kitchen," use "gourmet chef's kitchen with quartz countertops and custom cabinetry."

* Instead of "big backyard," use "expansive, fully fenced backyard perfect for entertaining and play."

  • Photography & Virtual Tour: Absolutely critical. Invest in professional photography showcasing the renovated spaces, the backyard, and the overall flow. A 3D virtual tour (Matterport) would be highly beneficial to allow buyers to experience the layout remotely, especially the office and master suite. Drone footage could highlight the lot size and proximity to parks.
  • Floor Plans: Include detailed floor plans to help buyers visualize space and furniture placement.
  • Community Highlights: Dedicate a section to the benefits of living in Evergreen Heights, focusing on schools, amenities, and community vibe.
  • Call to Action: Encourage immediate showings due to high demand in the area.

8. Next Steps in Workflow: "Real Estate Listing Generator"

This detailed property analysis serves as the foundational input for the subsequent steps in the workflow.

  • Step 2: Generate Listing Description: The comprehensive features, USPs, target audience, and marketing angles identified in this report will be directly utilized to craft a compelling, keyword-rich, and persuasive listing description.
  • Step 3: Create Marketing Copy & Collateral: The analysis of neighborhood, market trends, and target audience will inform the development of broader marketing copy for social media, flyers, and open house materials, ensuring consistent messaging that resonates with potential buyers.

This structured analysis ensures that every aspect of the property and its market context is thoroughly understood, enabling the creation of a highly effective and professional real estate listing.

gemini Output

Here is the comprehensive, detailed, and professional output for a real estate listing, designed for immediate publishing. This content integrates compelling descriptions, key feature highlights, neighborhood analysis, and strong marketing copy, structured for maximum impact.


Exquisite Modern Oasis in [Neighborhood Name]: Your Dream Home Awaits!

Discover Unparalleled Luxury & Convenience at [Property Address]

Welcome to a masterpiece of modern design and comfortable living, nestled in the highly sought-after [Neighborhood Name] community. This stunning [Number]-bedroom, [Number]-bathroom residence at [Property Address] offers a rare blend of sophisticated elegance, cutting-edge amenities, and an unbeatable location. Spanning an impressive [Square Footage] sq. ft., this home is meticulously crafted for discerning buyers seeking both tranquility and connectivity.

From the moment you arrive, you'll be captivated by its striking curb appeal, featuring [mention a specific exterior feature, e.g., mature landscaping, contemporary facade, inviting entryway]. Step inside to discover a world where every detail has been thoughtfully curated to provide an exceptional living experience.


Property Highlights & Key Features

  • Spacious & Bright Interiors: An open-concept layout with soaring [mention ceiling height, e.g., 10-foot] ceilings and expansive [type of windows, e.g., floor-to-ceiling] windows that flood every room with natural light.
  • Gourmet Chef's Kitchen: State-of-the-art [brand name, e.g., Sub-Zero/Wolf] stainless steel appliances, custom [type of wood/finish] cabinetry, oversized [type of countertop, e.g., quartz waterfall] island with seating, and a walk-in pantry. Perfect for culinary enthusiasts and entertaining.
  • Luxurious Primary Suite: A serene sanctuary featuring a spacious bedroom, a spa-like ensuite bathroom with a freestanding soaking tub, dual vanity with [type of finish] countertops, and an expansive walk-in closet with custom organizers.
  • Flexible Living Spaces: Includes a dedicated home office/den, a versatile media room, and [Number] additional well-appointed bedrooms, each offering comfort and privacy.
  • Premium Finishes Throughout: [Type of flooring, e.g., Wide-plank hardwood] floors, designer light fixtures, custom millwork, and smart home technology integration (e.g., smart thermostat, security system).
  • Outdoor Entertainment Haven: A private, meticulously landscaped backyard oasis featuring a [feature, e.g., covered patio with outdoor kitchen hookups, sparkling swimming pool, tranquil garden space]. Ideal for al fresco dining and relaxation.
  • Energy Efficiency: Equipped with [mention energy-efficient features, e.g., solar panels, high-efficiency HVAC system, energy-star rated windows] for reduced utility costs and a smaller carbon footprint.
  • Attached [Number]-Car Garage: With ample storage and direct access.

A Glimpse into [Neighborhood Name]: Your Vibrant Community Awaits

Nestled in the heart of [City, State], [Neighborhood Name] is renowned for its charming tree-lined streets, friendly atmosphere, and unparalleled convenience. This vibrant community offers residents an exceptional lifestyle with everything you need just moments away.

  • Top-Rated Schools: Access to highly-regarded [mention school district or specific schools, e.g., "award-winning [School District Name] schools"], making it an ideal location for families.
  • Parks & Recreation: Enjoy immediate proximity to [mention specific parks, e.g., "the scenic [Park Name] Park," "miles of walking and biking trails," "community sports facilities"].
  • Dining & Shopping: A short stroll or drive to a diverse array of gourmet restaurants, trendy cafes, boutique shops, and essential services at [mention specific shopping center or street, e.g., "The Commons at Main Street," "Downtown [City]"].
  • Cultural & Entertainment Hub: Experience the local culture with nearby [mention cultural attractions, e.g., "art galleries," "live music venues," "community events"].
  • Commuter's Dream: Excellent access to major highways (e.g., [Highway 1], [Highway 2]) and public transportation options (e.g., [Train Station Name] train station, bus routes), ensuring an easy commute to [mention key areas, e.g., "Downtown [City]," "Silicon Valley tech hubs"].
  • Strong Community Vibe: [Neighborhood Name] boasts a strong sense of community with regular neighborhood events, farmers markets, and local gatherings.

Investment Value & Unbeatable Opportunity

This property represents not just a home, but a sound investment in one of [City]'s most desirable and appreciating neighborhoods. With a robust local real estate market and consistent demand for quality homes in [Neighborhood Name], this residence offers significant long-term value. While exact pricing comparisons are best discussed with your agent, similar homes in this exclusive enclave have recently commanded strong interest due to their prime location, superior construction, and modern amenities, positioning this property as an exceptional opportunity in its class. Don't miss your chance to own a piece of this coveted community.


Your Next Chapter Begins Here

Imagine waking up in your dream home, enjoying your morning coffee on your private patio, and having all the amenities of a vibrant city at your fingertips. This is more than just a house; it's a lifestyle waiting to be embraced.

Don't let this extraordinary opportunity slip away!


Call to Action

Schedule your private tour today and experience the elegance and comfort of [Property Address] firsthand!

Contact [Your Name/Team Name] at [Your Phone Number] or email [Your Email Address] to arrange a showing.

Visit our website: [Your Website URL] for more details and a virtual tour.


Disclaimer

All information deemed reliable but not guaranteed. Buyer to verify all facts, figures, and property details. Price and availability subject to change.


gemini Output

Comprehensive Real Estate Marketing Strategy: [Property Address/Placeholder]

This document outlines a detailed marketing strategy designed to effectively position and sell the property located at [Property Address - e.g., 123 Serene Heights Blvd, Anytown, USA]. The strategy encompasses target audience analysis, recommended marketing channels, a core messaging framework, and key performance indicators to ensure measurable success.


1. Target Audience Analysis

Understanding the ideal buyer is crucial for tailoring marketing efforts. For [Property Address], we envision the following primary and secondary target audiences:

1.1. Primary Target Audience: Affluent Professionals & Families

  • Demographics:

* Age: 35-55 years old.

* Income: High-net-worth individuals or dual-income professional couples (e.g., $250,000+ household income).

* Family Status: Established families with school-aged children, or couples planning to start a family, seeking a long-term residence.

* Profession: Executives, entrepreneurs, medical professionals, tech leaders, or successful business owners.

  • Psychographics & Lifestyle:

* Values: Privacy, security, luxury, convenience, quality education for children, community, health, and wellness.

* Lifestyle: Active, socially conscious, appreciate fine dining, travel, cultural experiences, outdoor activities, and entertaining at home.

* Needs: Spacious living areas, dedicated home office space, modern amenities, smart home technology, ample outdoor space, proximity to top-rated schools, parks, and upscale retail/dining.

* Pain Points: Lack of privacy in current residence, outdated features, insufficient space for family growth or entertaining, long commutes.

1.2. Secondary Target Audience: Empty Nesters & Retirees (Luxury Downsizing/Upsizing)

  • Demographics:

* Age: 55-70 years old.

* Income: High disposable income, often from accumulated wealth or retirement funds.

* Family Status: Children have moved out, seeking a more manageable yet luxurious home, or a property that can accommodate visiting family.

  • Psychographics & Lifestyle:

* Values: Comfort, low-maintenance living, accessibility, luxury, community, safety, proximity to leisure activities (golf, cultural events).

* Lifestyle: Enjoy travel, hobbies, entertaining, and a sophisticated yet relaxed pace of life.

* Needs: Single-level living options (or elevator access), high-end finishes, smart home features for convenience, strong community amenities, less yard work, security, and proximity to healthcare.


2. Channel Recommendations

A multi-channel approach will maximize reach and engagement with the identified target audiences.

2.1. Digital Channels:

  • Premium Real Estate Portals:

* Platforms: Zillow Premier Agent, Realtor.com Showcase, Trulia, Luxury Portfolio International, Christie's International Real Estate, Sotheby's International Realty.

* Action: Feature high-resolution photography, professional videography (walkthroughs, drone footage), 3D virtual tours (Matterport), and detailed floor plans. Utilize "featured listing" options for increased visibility.

  • Social Media Marketing (Paid & Organic):

* Platforms: Instagram, Facebook, LinkedIn, Pinterest.

* Strategy:

* Instagram/Facebook: Visually driven content (stunning photos, short video clips, Reels showcasing features), geo-targeted ads to high-income zip codes, lookalike audiences based on luxury brand interests, and lifestyle targeting.

* LinkedIn: Target professionals in relevant industries and senior management roles. Share sophisticated content focusing on investment potential, lifestyle benefits, and neighborhood amenities.

* Pinterest: Curated boards showcasing interior design, landscaping, and the lifestyle associated with the home.

* Content: "Day in the Life" videos, feature spotlights (e.g., "The Gourmet Kitchen Experience"), "Neighborhood Spotlight" series.

  • Email Marketing:

* Strategy: Curated database of high-net-worth individuals, existing client lists, and opt-in subscribers from website/open houses.

* Content: Exclusive "first look" invitations, virtual tour links, detailed property brochures, and invitations to private showings.

  • Paid Search Engine Marketing (SEM):

* Platforms: Google Ads.

* Strategy: Target keywords like "luxury homes [City Name]," "homes with [specific high-end feature]," "[Neighborhood Name] real estate," "executive homes for sale."

  • Website & Landing Page:

* Action: Create a dedicated, aesthetically pleasing landing page on the brokerage's website with all listing details, media, neighborhood information, and a clear call to action (e.g., "Schedule a Private Tour"). Ensure mobile responsiveness.

2.2. Traditional & Offline Channels:

  • Professional Photography & Videography:

* Action: Essential for all channels. Includes twilight shots, drone aerials, lifestyle shots, and a high-quality cinematic video tour.

  • Exclusive Open Houses & Private Showings:

* Strategy: Host invite-only open houses for pre-qualified buyers and VIP clients. Schedule private showings for serious inquiries, ensuring a personalized and high-touch experience.

  • Luxury Print Media:

Platforms: Local luxury magazines (e.g., Modern Luxury, Luxe Interiors + Design), regional lifestyle publications, Wall Street Journal* (online/print for national reach).

* Action: High-impact, full-page advertisements showcasing the property's best features.

  • Brokerage Networking:

* Action: Leverage the agent's and brokerage's network of local and international luxury real estate agents. Host broker-only open houses.

  • Direct Mail (Targeted):

* Strategy: High-quality, glossy brochures or postcards mailed to high-income households in specific desirable zip codes or luxury communities.

  • Public Relations:

* Strategy: Pitch to local news outlets or real estate blogs for a feature on the property's unique architecture, design, or historical significance.


3. Messaging Framework

The core message will consistently highlight the property's unique value proposition, catering to the aspirations and needs of the target audience.

3.1. Core Value Proposition:

"Experience unparalleled luxury and sophisticated living in [Property Address/Neighborhood], where exquisite design meets ultimate comfort and convenience. This isn't just a home; it's a lifestyle sanctuary designed for discerning individuals who appreciate quality, privacy, and seamless indoor-outdoor living."

3.2. Key Selling Points (Tailored from Listing Details):

  • Luxury & Design: "Architectural masterpiece with bespoke finishes," "Gourmet chef's kitchen," "Spa-inspired master suite," "Smart home integration."
  • Lifestyle & Comfort: "Seamless indoor-outdoor entertaining spaces," "Private resort-style backyard," "Dedicated home office/wellness studio," "Tranquil oasis for relaxation."
  • Location & Convenience: "Prestigious [Neighborhood Name] address," "Proximity to top-rated schools, fine dining, and cultural attractions," "Easy access to major transportation routes."
  • Investment & Exclusivity: "Rare opportunity in a sought-after community," "Turn-key luxury with lasting value," "A statement of success and refined taste."

3.3. Tone & Voice:

  • Sophisticated & Exclusive: Emphasize the unique, high-end nature of the property.
  • Aspirational & Evocative: Paint a picture of the luxurious lifestyle the buyer will experience.
  • Professional & Authoritative: Instill confidence in the property's quality and value.

3.4. Calls to Action (CTAs):

  • "Schedule Your Private Showing Today."
  • "Discover Your Dream Home."
  • "Explore the Virtual Tour."
  • "Download the Exclusive Property Brochure."
  • "Contact [Agent Name] for More Information."
  • "Unlock the Door to Unrivaled Luxury."

4. Key Performance Indicators (KPIs)

Monitoring these KPIs will allow for real-time adjustments and evaluation of the marketing strategy's effectiveness.

  • 4.1. Online Engagement:

* Website/Listing Views: Total unique visitors and page views on the dedicated property page and real estate portals.

* Virtual Tour/Video Views: Number of plays and average watch time.

* Social Media Reach & Engagement: Impressions, likes, shares, comments, and click-through rates on paid ads.

* Email Marketing Performance: Open rates, click-through rates to listing details.

  • 4.2. Lead Generation:

* Inquiries/Leads Generated: Number of direct calls, emails, and form submissions received from all channels.

* Lead Quality: Assessment of lead seriousness and qualification (e.g., pre-approved, specific interest).

  • 4.3. Conversion & Sales Process:

* Showings Scheduled: Number of private showings and qualified open house attendees.

* Offer Conversion Rate: Number of offers received relative to showings.

* Time on Market (TOM): Number of days the property is actively listed.

* Sale Price to List Price Ratio: How close the final sale price is to the initial asking price.

  • 4.4. Marketing Spend Efficiency:

* Cost Per Lead (CPL): Total marketing spend divided by the number of leads generated.

* Return on Marketing Investment (ROMI): Revenue generated from the sale relative to marketing costs.


This comprehensive marketing strategy provides a robust framework for effectively promoting [Property Address] and attracting the right buyer. Regular review of KPIs and market feedback will guide ongoing optimization for a successful sale.

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

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+title+"

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

$1

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

$1

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

$1

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

"); h+="

"+hc+"

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