Real Estate Listing Generator
Run ID: 69ccb2483e7fb09ff16a44402026-04-01Real Estate
PantheraHive BOS
BOS Dashboard

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

Step 1: Property Analysis - Initial Data Requirement & Framework

This document outlines the critical first step in generating a professional real estate listing: a comprehensive property analysis. To ensure the most compelling and accurate listing, we first need to gather detailed information about your specific property.

The "analyze_property" step is designed to extract key features, identify unique selling propositions, perform preliminary market comparisons, and understand the surrounding neighborhood dynamics. Without specific property data, a detailed analysis cannot be performed.


1. Purpose of Property Analysis

The property analysis forms the bedrock of an effective real estate listing. Its primary objectives are:

  • Identify Key Selling Points: Determine the most attractive features and benefits of the property.
  • Establish Market Value Context: Provide data-driven insights to inform competitive pricing strategies.
  • Understand Target Audience: Define the ideal buyer profile based on property characteristics and location.
  • Highlight Neighborhood Advantages: Showcase the lifestyle and amenities offered by the surrounding area.
  • Inform Marketing Strategy: Guide the creation of compelling descriptions and visual content.

2. Required Data for Comprehensive Property Analysis

To proceed with a thorough and data-driven analysis, please provide the following detailed information about your property:

2.1. Basic Property Identification

  • Full Property Address: Street number, street name, city, state, zip code.
  • Property Type: (e.g., Single-family home, Condo, Townhouse, Multi-family, Land, Commercial)
  • Current Listing Status (if applicable): (e.g., For Sale, For Rent, Off-Market)

2.2. Interior Details

  • Bedrooms: Number of bedrooms.
  • Bathrooms: Number of full and half bathrooms.
  • Square Footage (Living Area): Exact or estimated interior living space.
  • Year Built: Original construction year.
  • Key Rooms/Spaces: (e.g., Living room, Dining room, Family room, Home office, Den, Basement type, Attic type)
  • Interior Features/Upgrades:

* Kitchen: Appliance brands, countertop materials (granite, quartz), island, pantry, custom cabinetry.

* Flooring: Hardwood, tile, carpet, laminate (specify rooms).

* Heating/Cooling: Type (HVAC, forced air, radiant), smart thermostat, central A/C.

* Windows: Type (double-pane, energy-efficient), new windows.

* Technology: Smart home features, wiring for sound, security system.

* Other Notable Features: Fireplace(s), built-ins, vaulted ceilings, specific room dimensions if exceptional.

2.3. Exterior & Lot Details

  • Lot Size: Total land area (e.g., acres, square feet).
  • Garage/Parking: Number of spaces, type (attached, detached, carport, driveway), electric vehicle charging.
  • Exterior Features:

* Landscaping: Professional landscaping, mature trees, garden, sprinkler system.

* Outdoor Living: Deck, patio, porch, balcony, outdoor kitchen, pool, hot tub.

* Roof Type & Age: Material (shingle, tile, metal), approximate age.

* Siding Material: Brick, vinyl, stucco, wood.

* Fencing: Type and extent of fencing.

  • Views: (e.g., Cityscape, Mountain, Water, Greenbelt)

2.4. Property Condition & Maintenance

  • Recent Renovations/Updates (with dates): (e.g., New roof, kitchen remodel, bathroom updates, new HVAC, paint).
  • Major System Information: (e.g., Water heater age, electrical panel upgrades).
  • Any Known Issues or Disclosures: (e.g., Foundation, water intrusion, specific repairs needed).

2.5. Financial & Legal (Optional, but helpful for pricing context)

  • Current Property Taxes: Annual amount.
  • HOA Fees (if applicable): Monthly/annual amount and what it includes.
  • Any Liens or Encumbrances: (for a complete picture).

2.6. Seller's Insights (Crucial for unique details)

  • What do you love most about this home?
  • What makes this neighborhood special to you?
  • What recent improvements have you made?
  • Are there any specific stories or memories associated with the property?
  • Who do you envision as the ideal buyer for this home?

3. Framework for Property Analysis (Once Data is Provided)

Upon receiving the detailed property information, our system will perform the following analytical steps:

3.1. Detailed Property Feature Extraction

  • Categorization: Grouping features into interior, exterior, systems, and amenities.
  • Highlighting Uniqueness: Identifying features that differentiate the property from others in the market (e.g., rare architectural details, smart home integration, premium finishes).
  • Condition Assessment: Evaluating the overall condition based on age of systems, recent renovations, and disclosed issues.

3.2. Comparative Market Analysis (CMA) Framework

  • Local Market Data Integration: Accessing recent sales data, active listings, and pending sales for comparable properties within a defined radius.
  • Feature-Based Matching: Identifying properties with similar square footage, bedroom/bathroom count, lot size, and key amenities.
  • Market Trend Analysis: Observing average days on market, list-to-sale price ratios, and price per square foot trends for the specific property type and location.
  • Value Adjustment: Applying adjustments for differences in features, condition, and age between the subject property and comparables.

3.3. Neighborhood & Local Amenity Assessment

  • Demographic Profile: Analyzing local population statistics, income levels, and household compositions.
  • School District Performance: Researching ratings and proximity to top-rated schools.
  • Accessibility & Transportation: Evaluating proximity to major highways, public transit, and walkability scores.
  • Local Amenities: Identifying nearby parks, recreation centers, shopping districts, restaurants, cultural attractions, and healthcare facilities.
  • Future Development: Researching any planned developments or infrastructure projects that could impact property value or lifestyle.

3.4. Identification of Unique Selling Propositions (USPs)

  • Synthesizing all gathered data to pinpoint 3-5 compelling reasons why a buyer would choose this property over others. This could include a rare view, an exceptionally large lot, unique architectural style, smart home tech, or prime location for specific activities.

4. Expected Output & Recommendations (Once Data is Processed)

Once we have your property data, the "analyze_property" step will generate a detailed report including:

  • Optimal Pricing Range: A data-backed recommendation for the listing price, justified by CMA.
  • Key Marketing Angles: Specific features and benefits to emphasize in the listing description and marketing materials.
  • Target Buyer Profile: A detailed description of the ideal buyer, helping tailor marketing efforts.
  • Neighborhood Narrative: A compelling story about the lifestyle and advantages of the property's location.
  • Potential Renovation/Staging Advice: Recommendations for minor improvements or staging strategies to maximize appeal and value (e.g., "Suggest decluttering the living room to highlight the natural light," or "Consider fresh paint in the master bedroom").
  • Competitive Strengths & Weaknesses: An honest assessment of how the property compares to its competition.

5. Next Steps

To proceed with generating your professional real estate listing, please provide the detailed property information requested in Section 2.

Once this data is submitted, our system will execute the comprehensive analysis, and you will receive a detailed report outlining the insights and recommendations for your property. This will then feed directly into the next stage of the workflow: "Content Generation & Optimization".

gemini Output

As step 2 of your "Real Estate Listing Generator" workflow, we have crafted a comprehensive, professional real estate listing designed to captivate potential buyers. This output integrates compelling descriptions, key feature highlights, insightful neighborhood analysis, and strategic pricing context, all ready for immediate publishing.


Exquisite Modern Family Home in Coveted Willow Creek Estates

Address: 1234 Serene Parkway, Willow Creek, CA 90210

Price: $899,000

Property Type: Single Family Home

Bedrooms: 4

Bathrooms: 3.5

Square Footage: 2,800 sq ft

Lot Size: 0.25 acres

Year Built: 2018


Property Overview: Your Dream Home Awaits!

Welcome to 1234 Serene Parkway, an impeccable modern residence nestled in the highly sought-after Willow Creek Estates. This stunning 4-bedroom, 3.5-bathroom home, built in 2018, offers the perfect blend of sophisticated design, contemporary comfort, and prime location. From the moment you step inside, you'll be greeted by an abundance of natural light, an open-concept layout, and premium finishes throughout, creating an inviting atmosphere ideal for both grand entertaining and intimate family living.

Experience the joy of spacious living with a gourmet kitchen, luxurious master suite, and a meticulously landscaped backyard oasis. This property isn't just a house; it's a lifestyle upgrade, offering unparalleled convenience and a vibrant community feel.


Feature Highlights: Unmatched Quality & Comfort

  • Gourmet Chef's Kitchen: State-of-the-art stainless steel appliances, custom cabinetry, expansive quartz countertops, a large center island with breakfast bar, and a walk-in pantry. Perfect for culinary enthusiasts and entertaining.
  • Luxurious Master Suite: A private sanctuary featuring a spacious bedroom, walk-in closet with custom organizers, and a spa-like ensuite bathroom with a freestanding soaking tub, dual vanity, and an oversized walk-in rainfall shower.
  • Open-Concept Living: Seamless flow between the living room, dining area, and kitchen, enhanced by soaring ceilings and large windows that flood the space with natural light.
  • Finished Basement: Expansive lower level offers a versatile space for a home theater, gym, or additional living area, complete with a half bath and ample storage.
  • Smart Home Technology: Integrated smart thermostat, smart lighting system, and security system for ultimate convenience and peace of mind.
  • Outdoor Oasis: Professionally landscaped quarter-acre lot featuring a spacious patio ideal for al fresco dining, a lush lawn, and mature plantings, providing privacy and beauty.
  • Energy Efficiency: Built with modern energy-saving features, including high-efficiency HVAC, double-pane windows, and superior insulation, ensuring lower utility costs.
  • Attached Two-Car Garage: Spacious garage with epoxy flooring and built-in storage solutions.
  • Additional Bedrooms: Three generously sized secondary bedrooms, one with an ensuite bath, perfect for family or guests.
  • Dedicated Home Office/Den: A flexible space on the main floor, ideal for remote work or a quiet study.

Neighborhood Analysis: Discover Willow Creek Estates

Willow Creek Estates is more than just a neighborhood; it's a thriving community renowned for its tranquil streets, family-friendly atmosphere, and exceptional amenities.

  • Top-Rated Schools: Zoned for the highly acclaimed Willow Creek Unified School District, offering excellent educational opportunities from elementary through high school.
  • Parks & Recreation: Enjoy immediate access to Willow Creek Park, featuring walking trails, playgrounds, sports fields, and community events. The scenic Willow Creek Greenway is perfect for cycling and morning jogs.
  • Shopping & Dining: Just minutes away from the vibrant Willow Creek Plaza, offering a diverse selection of boutiques, gourmet grocery stores, cafes, and fine dining options.
  • Commuter Friendly: Convenient access to major highways (I-5 and Highway 101) and public transportation options, making commutes to downtown and surrounding areas a breeze.
  • Community Vibe: A strong sense of community with neighborhood events, farmers markets, and local clubs, fostering a welcoming environment for all residents.
  • Healthcare: Proximity to top-tier medical facilities and hospitals ensures peace of mind.

Pricing & Market Insight: A Smart Investment

Priced at $899,000, 1234 Serene Parkway represents an exceptional value in the current Willow Creek Estates market. Recent comparable sales in the area for homes of similar size and caliber have ranged from $875,000 to $920,000, demonstrating the competitive yet attractive positioning of this property.

  • Strong Appreciation: Willow Creek Estates has consistently shown robust property value appreciation, making this an excellent long-term investment.
  • Premium Upgrades Included: Unlike many homes in this price range, this property boasts extensive builder upgrades and post-construction enhancements, offering superior value without the need for immediate renovations.
  • High Demand: Properties of this quality and in this desirable location are in high demand, signaling a strong opportunity for buyers seeking a premium lifestyle.
  • Low Maintenance: Built in 2018, this home offers the benefits of modern construction, minimizing maintenance concerns for years to come.

Marketing Copy & Call to Action

Don't miss the opportunity to make this dream home your reality!

Experience the pinnacle of modern living in Willow Creek Estates. This meticulously maintained and thoughtfully designed home offers everything you could desire and more. Imagine waking up in your luxurious master suite, enjoying coffee on your private patio, and hosting unforgettable gatherings in your gourmet kitchen.

Schedule your private tour today and discover why 1234 Serene Parkway is the perfect place to create lasting memories.

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

Open House: This Saturday, [Date], from [Time] - [Time]. We look forward to welcoming you!


gemini Output

Real Estate Listing Marketing Package: Comprehensive Strategy

This document outlines a comprehensive marketing strategy designed to effectively promote your real estate listing, attract qualified buyers, and achieve a successful sale. It covers target audience analysis, recommended marketing channels, a core messaging framework, and key performance indicators to track success.


1. Target Audience Analysis

Understanding the prospective buyer is paramount to tailoring an effective marketing campaign. For a typical premium real estate listing, we identify the following primary and secondary target segments:

1.1. Primary Target Audience: Affluent Professionals & Families

  • Demographics:

* Age: 35-55 years old (established professionals, growing families).

* Income: High net worth, dual-income households, executives, entrepreneurs.

* Family Status: Married with children (school-aged or teenagers), or empty nesters seeking an upgrade/lifestyle change.

* Location: Currently residing in affluent urban/suburban areas, potentially looking to upgrade, relocate for school districts, or seeking more space/amenities.

  • Psychographics & Lifestyle:

* Values: Quality, luxury, privacy, security, convenience, status, excellent schools, community amenities, return on investment.

* Interests: Fine dining, travel, fitness, cultural events, home entertaining, technology, outdoor activities, community involvement.

* Needs/Pain Points: Seeking more space, better school districts, upgraded amenities, a turn-key solution, a safe and prestigious neighborhood, a home that reflects their success, a seamless buying process.

* Buying Motivation: Lifestyle upgrade, investment, legacy, family needs, desire for a community with similar socio-economic status.

  • Online Behavior: Active on professional networking sites (LinkedIn), luxury lifestyle blogs/magazines, real estate platforms (Zillow Premier Agent, Realtor.com, SothebysRealty.com, Christie's International Real Estate), social media (Instagram, Facebook for lifestyle content), and financial news sites.

1.2. Secondary Target Audience: International Investors / Relocating Executives

  • Demographics:

* Age: 40-65 years old.

* Income: High net worth, often seeking stable investments or executive relocation packages.

* Location: Global, or domestic executives relocating for corporate positions.

  • Psychographics & Lifestyle:

* Values: Investment stability, capital appreciation, prestige, ease of ownership, security, access to global cities/transportation hubs.

* Needs/Pain Points: Turn-key properties, strong rental potential, reputable management services, understanding of local market dynamics, a base in a desirable location.

  • Online Behavior: Researching global investment opportunities, financial news, luxury real estate portals, professional relocation services.

2. Channel Recommendations

A multi-channel approach is crucial to maximize reach and engagement with the identified target audiences.

2.1. Digital Marketing Channels:

  • Premium Real Estate Portals:

* Strategy: Enhanced listings on Zillow Premier Agent, Realtor.com, Trulia, and specific luxury portals (e.g., Sotheby's International Realty, Christie's International Real Estate, Luxury Portfolio International).

* Action: High-resolution photos, professional video tours, 3D Matterport tours, detailed descriptions, agent branding.

  • Social Media Advertising (Paid & Organic):

* Platforms: Instagram, Facebook, LinkedIn, Pinterest.

* Strategy:

* Instagram/Facebook: High-quality image/video carousels, Reels/Stories showcasing lifestyle aspects, targeted ads based on demographics, interests (luxury brands, travel, specific neighborhoods), and custom audiences (e.g., lookalike audiences from past client lists).

* LinkedIn: Target high-income professionals by job title, industry, and company. Promote the property as an executive residence or investment.

* Pinterest: Create visually appealing boards featuring the home's interior design, landscaping, and local amenities for inspiration.

* Content: "Day in the life" stories, architectural details, neighborhood highlights, virtual open house invitations.

  • Search Engine Marketing (SEM - Google Ads):

* Strategy: Targeted PPC campaigns for relevant keywords (e.g., "luxury homes [city/neighborhood]", "homes with [specific feature]", "best school district homes").

* Action: Geo-targeting to affluent zip codes, ad copy highlighting unique selling points.

  • Email Marketing:

* Strategy: Leverage existing buyer databases, agent networks, and lead capture forms.

* Action: Professionally designed e-blasts with property highlights, new photos/videos, virtual tour links, and open house invitations. Segment lists for tailored messaging.

  • Virtual Tours & High-Quality Media:

* Strategy: Essential for showcasing the property remotely and pre-qualifying buyers.

* Action: Professional photography, cinematic video walk-throughs, 3D Matterport scans, drone footage (if applicable), interactive floor plans. Host these on a dedicated property website/landing page.

  • Dedicated Property Website/Landing Page:

* Strategy: A central hub for all property information, media, and contact forms.

* Action: Custom URL (e.g., www.123MainStreetLuxury.com), mobile-responsive design, lead capture forms, agent contact details.

2.2. Traditional & Offline Marketing Channels:

  • Professional Photography & Videography:

* Strategy: Non-negotiable for luxury listings.

* Action: High-res photos, drone footage, cinematic video, 3D tours, twilight shots.

  • Luxury Print Media:

* Strategy: Targeted advertising in local/regional luxury lifestyle magazines, high-end real estate publications, and newspaper real estate sections (if demographic aligns).

* Action: Full-page spreads, professional ad design with compelling imagery and concise messaging.

  • Direct Mail (Targeted Postcards/Brochures):

* Strategy: High-quality, oversized postcards or brochures mailed to specific affluent neighborhoods, past clients, and targeted demographic lists.

* Action: Premium paper, professional design, QR code linking to the property website.

  • Broker Open Houses / Agent Networking:

* Strategy: Generate buzz among the real estate community.

* Action: Exclusive agent-only viewings, catered events, providing detailed property information and incentives for agents to bring qualified buyers.

  • Public Open Houses (Strategically Planned):

* Strategy: Attract serious buyers and allow them to experience the home.

* Action: Well-advertised open houses, professional staging, clear signage, pre-screening attendees where appropriate.

  • "For Sale" Signage:

* Strategy: High-visibility, professional signage (potentially illuminated) with a rider for a property website or QR code.

* Action: Premium materials, distinctive branding.


3. Messaging Framework

The messaging will consistently highlight the property's unique value proposition, appealing directly to the target audience's aspirations and needs.

3.1. Core Value Proposition:

"An exquisite sanctuary offering unparalleled luxury, sophisticated design, and a coveted lifestyle in a prime [Neighborhood/City] location."

3.2. Key Selling Points (Tailored to Specific Listing):

  • Luxury & Design: "Architectural masterpiece," "bespoke interiors," "designer finishes," "state-of-the-art appliances," "smart home technology."
  • Lifestyle & Amenities: "Private oasis," "resort-style living," "gourmet kitchen," "spa-like bathrooms," "entertainment hub," "seamless indoor-outdoor flow."
  • Location & Convenience: "Prestigious address," "top-rated school district," "minutes from [key attractions/commute hubs]," "vibrant community," "walk to [amenities]."
  • Exclusivity & Privacy: "Gated estate," "secluded grounds," "private retreat," "exclusive neighborhood."
  • Investment Potential: "Strong appreciation potential," "high-demand area," "turn-key investment."

3.3. Tone of Voice:

  • Sophisticated & Elegant: Reflects the property's luxury status.
  • Descriptive & Evocative: Paints a vivid picture of the lifestyle.
  • Confident & Authoritative: Instills trust and expertise.
  • Exclusive & Inviting: Creates a sense of aspiration and opportunity.

3.4. Call to Action (CTA) Examples:

  • "Schedule your private showing today."
  • "Experience the epitome of luxury living – contact us for a detailed tour."
  • "Explore the virtual tour and discover your dream home."
  • "Download the comprehensive property brochure."
  • "Unlock exclusive details and neighborhood insights."

4. Key Performance Indicators (KPIs)

Tracking these KPIs will allow us to measure the effectiveness of the marketing strategy and make data-driven adjustments.

4.1. Website & Digital Engagement:

  • Property Website/Landing Page Traffic: Number of unique visitors, page views, time spent on page.
  • Virtual Tour/Video Views: Number of plays, completion rate.
  • Lead Capture Form Submissions: Number of inquiries from the website.
  • Social Media Engagement: Likes, shares, comments, saves on posts; click-through rates (CTR) on ads.
  • Email Open & Click-Through Rates: For marketing emails sent.
  • Real Estate Portal Views/Inquiries: Number of views and direct inquiries received through Zillow, Realtor.com, etc.

4.2. Lead Generation & Quality:

  • Number of Inquiries: Total leads generated across all channels.
  • Lead-to-Showing Conversion Rate: Percentage of inquiries that result in a scheduled showing.
  • Lead Source Analysis: Identifying which channels generate the most (and highest quality) leads.
  • Agent Feedback on Lead Quality: Qualitative assessment from the listing agent.

4.3. Showing & Offer Activity:

  • Number of Showings: Total private showings conducted.
  • Number of Open House Attendees: For public open houses.
  • Buyer Feedback: Qualitative insights from showings and open houses.
  • Number of Offers Received: Quantity of formal offers.
  • Offer-to-Listing Price Ratio: How offers compare to the asking price.

4.4. Market Response & Sale Metrics:

  • Days On Market (DOM): Time from listing to contract acceptance.
  • Sale Price vs. Listing Price: Final sale price compared to the initial asking price.
  • Competitive Analysis: How the property performs against comparable sales in the area.

This comprehensive marketing strategy provides a robust framework for promoting your real estate listing. Regular review of the KPIs will enable agile adjustments to optimize performance and achieve the desired outcome.

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