Performance Review Writer
Run ID: 69cd15503e7fb09ff16a7cc02026-04-01HR
PantheraHive BOS
BOS Dashboard

Generate comprehensive performance reviews with goal assessments, competency ratings, development plans, and constructive feedback frameworks.

As part of the "Performance Review Writer" workflow, this output details the comprehensive research conducted on best practices and essential components for generating high-quality, professional performance reviews. This foundational research ensures that subsequent steps in the workflow are built upon a robust understanding of effective performance management.


Research Output: Components and Best Practices for Professional Performance Reviews

This research provides a detailed framework for constructing comprehensive performance reviews, covering key sections, effective feedback methodologies, and strategic considerations for employee development.

1. Purpose of Performance Reviews

Performance reviews serve multiple critical functions within an organization:

  • Employee Development: Identify strengths and areas for growth, fostering continuous learning.
  • Performance Improvement: Provide constructive feedback to correct underperformance and enhance productivity.
  • Goal Alignment: Ensure individual contributions align with team and organizational objectives.
  • Recognition and Motivation: Acknowledge achievements and motivate employees.
  • Compensation & Promotion Decisions: Provide documented justification for salary adjustments, bonuses, and career advancement.
  • Legal Documentation: Create a formal record of performance over time.
  • Communication & Engagement: Facilitate open dialogue between managers and employees.

2. Essential Components of a Comprehensive Performance Review

A robust performance review typically includes the following sections:

2.1. Employee & Review Period Information

  • Employee Details: Name, Job Title, Department, Employee ID.
  • Manager Details: Name, Job Title.
  • Review Period: Start Date, End Date (e.g., Annual, Mid-Year, Quarterly).
  • Date of Review: Date the review is conducted.

2.2. Overall Summary / Executive Summary

  • A concise overview of the employee's performance during the review period.
  • Highlights key achievements, overall performance level, and major development themes.
  • Sets the tone for the entire review.

2.3. Goal Assessment & Achievement

  • Specific Goals Reviewed: List each primary goal set at the beginning of the review period.
  • Goal Description: Clearly state the objective (preferably SMART: Specific, Measurable, Achievable, Relevant, Time-bound).
  • Actual Results/Outcomes: Detail the employee's achievement against each goal.
  • Challenges/Contributing Factors: Describe any obstacles encountered or external factors influencing goal attainment.
  • Rating/Assessment: Assign a rating for each goal (e.g., Exceeded, Met, Partially Met, Not Met).
  • Manager Comments: Provide specific examples and context for the assessment.

2.4. Competency & Skill Ratings

  • List of Core Competencies: Identify key behaviors, skills, and values critical for the role and organization (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Customer Focus, Technical Skills).
  • Behavioral Indicators: For each competency, describe specific, observable behaviors that demonstrate proficiency at different levels.
  • Rating Scale: Utilize a consistent scale (e.g., 1-5, Needs Development to Exceeds Expectations).

Example Scale:*

* 1 - Needs Development: Requires significant improvement and guidance.

* 2 - Developing: Shows some proficiency but inconsistent application; requires continued coaching.

* 3 - Meets Expectations: Consistently demonstrates required behaviors; performs role effectively.

* 4 - Exceeds Expectations: Consistently performs above what is required; takes initiative; positive impact.

* 5 - Role Model/Outstanding: Sets a benchmark for others; exceptional performance and impact.

  • Manager Comments & Examples: Provide specific, factual examples for each competency rating, illustrating how the employee demonstrated the behavior (or lacked it).

2.5. Strengths & Key Achievements

  • Specific Strengths: Highlight areas where the employee consistently performs well or adds significant value.
  • Impact: Explain the positive impact of these strengths on the team, projects, or organization.
  • Examples: Provide concrete examples supporting each strength.

2.6. Areas for Development & Improvement

  • Specific Areas: Identify 1-3 key areas where the employee needs to develop or improve to enhance performance or prepare for future roles.
  • Impact of Development: Explain how improvement in these areas will benefit the employee and the organization.
  • Examples: Provide concrete examples illustrating instances where development is needed.

2.7. Development Plan

  • Actionable Steps: Outline specific, measurable actions the employee will take to address development areas.
  • Resources: Identify resources available (e.g., training courses, mentoring, coaching, books, online modules, project assignments).
  • Timeline: Establish realistic deadlines for completing development activities.
  • Support: Define how the manager will support the employee's development.

2.8. Constructive Feedback Framework

  • STAR Method (Situation, Task, Action, Result):

* Situation: Describe the specific context or background.

* Task: Explain the goal or objective the employee was trying to achieve.

* Action: Detail the specific actions the employee took.

* Result: Describe the outcome of those actions (positive or negative).

Application:* This method is crucial for providing specific, behavioral, and impactful feedback for both strengths and areas for improvement.

2.9. Employee Comments / Self-Assessment

  • Reflective Input: Space for the employee to provide their own perspective on their performance, achievements, challenges, and development goals.
  • Dialogue: Encourages self-reflection and fosters a two-way conversation.

2.10. Manager Comments & Sign-off

  • Final Review: Overall concluding remarks from the manager.
  • Acknowledgement: Signatures from both the employee and manager, indicating that the review has been discussed.
  • Next Steps: Confirm follow-up actions and dates.

3. Best Practices for Writing Effective Performance Reviews

  • Be Specific and Factual: Avoid generalizations. Use concrete examples and data to support all assessments and feedback.
  • Focus on Behaviors, Not Personality: Critique actions and their impact, not inherent traits.
  • Maintain Objectivity: Base feedback on observable behaviors and measurable results, not personal biases.
  • Balance Feedback: Include both positive reinforcement (strengths and achievements) and constructive feedback (areas for development). The "feedback sandwich" (positive, negative, positive) can be useful but should be used carefully to ensure the constructive message is clear.
  • Be Forward-Looking: Emphasize growth and future development rather than dwelling solely on past mistakes. Connect feedback to future goals and career progression.
  • Ensure Timeliness: Deliver reviews regularly and on schedule, aligning with the review period. Late feedback loses its impact.
  • Align with Company Values & Goals: Ensure performance is evaluated against organizational objectives and cultural values.
  • Use Clear, Professional Language: Avoid jargon, slang, or overly casual language. Maintain a respectful and professional tone.
  • Proofread Carefully: Eliminate any grammatical errors or typos.
  • Legal Considerations: Ensure all feedback is fair, non-discriminatory, and accurately documented. Avoid language that could be misinterpreted or used for wrongful termination claims.
  • Actionability: Every piece of feedback, especially constructive feedback, should lead to a clear, actionable step for improvement.

4. Methodologies for Constructive Feedback Delivery

Beyond the STAR method, consider these principles for delivering feedback:

  • SBI (Situation-Behavior-Impact): Similar to STAR, focusing on the immediate impact of a behavior.

* "When you did X (behavior) in Y (situation), it resulted in Z (impact)."

  • Ask for Self-Reflection First: Before providing feedback, ask the employee for their perspective on a situation or their performance. "How do you think that meeting went?"
  • Focus on the "Why": Explain the rationale behind the feedback and its connection to larger goals or team success.
  • Collaborative Approach: Frame development discussions as a partnership, seeking employee input on solutions and next steps.

This research forms the basis for developing a robust "Performance Review Writer" tool, ensuring that all generated reviews are comprehensive, actionable, and aligned with best practices in performance management.

gemini Output

Unlock Peak Performance: The Ultimate AI-Powered Performance Review Writer

Transform your performance management with intelligence, consistency, and actionable insights.

Navigating the complexities of performance reviews can be time-consuming, subjective, and often stressful for both managers and employees. Crafting detailed, fair, and growth-oriented feedback demands significant effort and expertise. What if you could streamline this entire process, ensuring every review is comprehensive, objective, and a catalyst for professional development?

Introducing our AI-Powered Performance Review Writer – your intelligent solution for generating high-quality, impactful performance reviews with unprecedented efficiency and precision. Designed to empower HR professionals and managers, this tool transforms the laborious review cycle into a strategic opportunity for growth and engagement.


Key Features: Intelligent Review Generation at Your Fingertips

Our AI-Powered Performance Review Writer is engineered to deliver a holistic view of employee performance, integrating critical components into a seamless, professional document.

  • Comprehensive Review Generation:

* Produce full-spectrum performance reviews that cover all essential aspects of an employee's contribution, including responsibilities, achievements, challenges, and future objectives.

* Leverage AI to synthesize disparate data points into coherent, well-structured narratives that are both professional and personalized.

* Ensure consistency in language, tone, and evaluation criteria across all reviews, promoting fairness and reducing unconscious bias.

  • Goal Assessment & Progress Tracking:

* Automate the evaluation of employee progress against pre-defined SMART goals and KPIs.

* Generate specific, data-backed assessments on goal attainment, highlighting successes and areas where further focus is needed.

* Provide clear summaries of contributions to team and organizational objectives, connecting individual efforts to broader strategic outcomes.

  • Competency Rating & Behavioral Analysis:

* Assess core competencies and job-specific skills with objective, AI-driven ratings.

* Identify strengths and areas for development based on observable behaviors and performance indicators.

* Integrate company values and cultural fit into the assessment, offering a 360-degree view of an employee's impact.

  • Personalized Development Plans:

* Automatically generate actionable development plans tailored to individual employee needs and career aspirations.

* Suggest specific training modules, skill-building activities, mentorship opportunities, and resources to foster continuous learning and growth.

* Outline clear steps, timelines, and measurable outcomes for each development objective, ensuring a roadmap for progress.

  • Constructive Feedback Frameworks:

* Craft balanced feedback that is both appreciative of achievements and clear on areas requiring improvement.

* Utilize structured frameworks (e.g., STAR method, SBI model) to ensure feedback is specific, objective, and actionable.

* Provide guidance on delivering feedback effectively, fostering a positive environment for discussion and development rather than defensiveness.


Why Choose Our AI Performance Review Writer?

  • Save Time & Resources: Drastically reduce the hours spent drafting reviews, allowing managers to focus more on coaching and strategic initiatives.
  • Enhance Objectivity & Fairness: Minimize bias with AI-driven analysis, ensuring evaluations are based on performance data and consistent criteria.
  • Boost Employee Engagement: Foster a culture of continuous improvement with personalized development plans and clear, actionable feedback.
  • Improve Review Quality: Elevate the professionalism and comprehensiveness of every review, making them more impactful and valuable.
  • Drive Strategic Growth: Align individual performance with organizational goals, identifying talent strengths and development needs across your workforce.

Ready to Revolutionize Your Performance Reviews?

Stop dreading performance review season and start embracing it as an opportunity for growth and success. Our AI-Powered Performance Review Writer is designed to empower your organization to build a high-performing, engaged, and continuously developing workforce.

Experience the future of performance management today.


Call to Action:

[Request a Free Demo] | [Learn More About Our Features] | [Contact Our Sales Team]


gemini Output

As a professional Performance Review Writer, this output provides a comprehensive, detailed, and actionable framework for generating effective performance reviews. It integrates goal assessments, competency ratings, development plans, and constructive feedback methodologies, ensuring a holistic and professional evaluation process.


Professional Performance Review Framework

This framework is designed to guide managers in creating thorough, fair, and impactful performance reviews. Each section includes guidelines and examples to ensure clarity and actionable insights.


1. Employee and Review Period Information

  • Employee Name: \[Employee's Full Name]
  • Job Title: \[Employee's Job Title]
  • Department: \[Employee's Department]
  • Review Period: \[Start Date] – \[End Date]
  • Review Date: \[Date of Review]
  • Reviewer Name: \[Manager's Full Name]
  • Reviewer Job Title: \[Manager's Job Title]

2. Overall Performance Summary

  • Purpose: Provide a high-level overview of the employee's performance during the review period. This should be a concise summary that sets the tone for the detailed sections that follow.
  • Guidance: Briefly highlight key achievements and areas for growth.
  • Example:

> "\[Employee Name] has demonstrated strong dedication and made significant contributions to the \[Project/Team Name] during this review period. They consistently exceeded expectations in \[Specific Area, e.g., client communication] and successfully delivered on \[Key Objective]. While their technical skills are exceptional, there is an opportunity to further develop their \[Area for Growth, e.g., proactive problem-solving] to enhance overall team efficiency."


3. Goal Assessment

  • Purpose: Evaluate the employee's progress and achievement against their previously established SMART (Specific, Measurable, Achievable, Relevant, Time-bound) goals.
  • Guidance: For each goal, state the goal, assess its achievement level, and provide specific context or examples.
  • Rating Scale:

* Exceeded: Significantly surpassed expectations.

* Achieved: Fully met all expectations.

* Partially Achieved: Made progress but did not fully meet all expectations.

* Not Achieved: Did not meet the goal.

* N/A: Goal was changed or became irrelevant.

| Goal Description (SMART Goal) | Achievement Level | Comments / Specific Examples

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