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

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

As a professional AI assistant, I have researched and compiled comprehensive guidance for writing effective performance reviews. This deliverable focuses on best practices, key components, and actionable frameworks to ensure your performance reviews are detailed, constructive, and impactful.


Comprehensive Guide for Performance Review Writers

Performance reviews are critical tools for employee development, engagement, and organizational success. They provide a structured opportunity to assess past performance, recognize achievements, identify areas for growth, and align individual contributions with strategic business objectives. This guide outlines the essential components and best practices for crafting professional, insightful, and actionable performance reviews.

1. Introduction: The Purpose of a Performance Review

A performance review serves multiple vital functions:

  • Evaluation: Assessing an employee's performance against predefined goals, job responsibilities, and company competencies.
  • Feedback: Providing specific, actionable feedback on strengths and areas for improvement.
  • Development: Identifying opportunities for growth, learning, and career progression.
  • Recognition: Acknowledging achievements and contributions.
  • Alignment: Ensuring individual efforts support broader organizational goals.
  • Documentation: Creating a formal record of performance for HR and legal purposes.

An effective performance review fosters a dialogue, motivates employees, and strengthens the manager-employee relationship.

2. Core Components of a Performance Review

A robust performance review typically includes the following key sections:

2.1. Goal Assessment

This section evaluates the employee's progress and achievement against their pre-established goals (e.g., SMART goals: Specific, Measurable, Achievable, Relevant, Time-bound).

  • Approach:

* Quantify where possible: Use metrics, percentages, or specific outcomes.

* Contextualize: Explain any external factors or internal challenges that impacted goal achievement.

* Analyze deviations: If a goal was not met, discuss the reasons and lessons learned.

* Acknowledge overachievement: Highlight instances where goals were exceeded.

  • Actionable Tips:

* For each goal, state the goal, the expected outcome, and the actual outcome.

* Provide specific examples of actions taken or results achieved.

Example Statement: "Goal: Increase customer satisfaction scores by 10% in Q2. Assessment:* Achieved an 8% increase, moving from 75% to 83%. While slightly below target, this was a significant improvement, driven by the successful implementation of the new feedback survey and prompt follow-up by the team."

Example Statement: "Goal: Launch Project X by June 30th. Assessment:* Project X was successfully launched on June 25th, five days ahead of schedule, demonstrating exceptional project management and cross-functional collaboration."

2.2. Competency Ratings

This section assesses the employee's proficiency in core competencies relevant to their role and the organization's values (e.g., communication, teamwork, problem-solving, leadership, adaptability, innovation, initiative).

  • Approach:

* Define competencies: Clearly state what each competency entails.

* Use a consistent rating scale: (e.g., Needs Development, Meets Expectations, Exceeds Expectations, Outstanding).

* Provide behavioral examples: Justify each rating with specific instances of observable behavior. Avoid vague statements.

  • Actionable Tips:

* Align competencies with job descriptions and company values.

* For each competency, provide a rating and 1-2 specific examples.

Example (Communication - Exceeds Expectations):* "[Employee Name] consistently articulates complex ideas clearly in both written and verbal formats. For instance, their presentation to the executive team on the Q3 strategy was exceptionally well-received, leading to immediate approval for the proposed initiatives."

Example (Problem-Solving - Needs Development):* "While [Employee Name] identifies issues effectively, there's an opportunity to develop their ability to independently propose and implement solutions. For example, during the recent system outage, they escalated the issue quickly but waited for explicit instructions rather than suggesting initial troubleshooting steps."

2.3. Development Plans

This section outlines specific, actionable steps for the employee's professional growth and skill enhancement, based on the goal assessment and competency ratings.

  • Approach:

* Focus on 1-3 key areas: Overloading with too many development areas can be demotivating.

* Make it actionable: Each development area should have concrete steps, not just broad goals.

* Include resources: Suggest specific training, mentorship, stretch assignments, readings, or projects.

* Set timelines: Establish realistic deadlines for completing development activities.

* Align with career aspirations: Where possible, link development to the employee's career goals.

  • Actionable Tips:

* Clearly state the development area, the desired outcome, and specific actions.

Example (Development Area: Strategic Thinking):*

* Desired Outcome: Develop ability to anticipate future challenges and opportunities, and formulate long-term plans.

* Action Steps:

1. Complete the "Strategic Planning for Leaders" online course by the end of Q3.

2. Shadow [Manager Name] during two strategic planning meetings in Q4 to observe decision-making processes.

3. Lead the development of the 2025 departmental roadmap, presenting initial findings by year-end.

* Support: Access to online course, mentorship from [Manager Name].

2.4. Constructive Feedback Frameworks

Delivering constructive feedback effectively is crucial for development. Use structured frameworks to ensure feedback is clear, objective, and actionable.

  • Approach:

* SBI (Situation-Behavior-Impact) Framework:

* Situation: Describe the specific context or event.

* Behavior: Describe the specific, observable action or behavior of the employee.

* Impact: Explain the effect of that behavior on others, the team, or the business.

Example:* "During the team meeting last Tuesday (Situation), when you interrupted Sarah while she was presenting her findings (Behavior), it made her visibly uncomfortable and disrupted the flow of information for the rest of the team (Impact)."

* "Feedforward" Approach:

Focus on future actions rather than dwelling on past mistakes. Shift the conversation to what the employee can* do differently going forward.

Example (following the SBI example above):* "Moving forward, I'd encourage you to allow colleagues to complete their thoughts before interjecting. This will ensure everyone feels heard and contributes to a more collaborative discussion."

  • Key Principles for Delivering Feedback:

* Be Specific: Vague feedback is unhelpful.

* Be Timely: Deliver feedback as close to the event as possible.

* Be Objective: Focus on observable behaviors and facts, not interpretations or personal opinions.

* Be Balanced: Include positive feedback alongside constructive feedback.

* Be Actionable: Ensure the employee understands what they need to do differently.

* Deliver Privately: Constructive feedback should always be given in a one-on-one setting.

3. General Best Practices for Writing Performance Reviews

  • Gather Data & Prepare Thoroughly: Collect information from various sources: self-assessments, 360-degree feedback, project reports, performance metrics, previous reviews, and your own observations.
  • Focus on Behaviors, Not Personality: Critique what the employee did or said, not who they are. Avoid judgmental language.
  • Provide Specific Examples: Always back up your assessments with concrete examples. The more specific, the more credible and helpful the feedback.
  • Balance Strengths and Areas for Improvement: Start with strengths, transition to areas for development, and end on a positive, forward-looking note. This structure helps maintain morale and encourages receptiveness.
  • Maintain a Professional and Objective Tone: Avoid emotional language, jargon, or slang. Use clear, concise, and professional language.
  • Look Forward, Not Just Backward: While assessing past performance, emphasize future growth, development, and contributions.
  • Encourage Self-Reflection: Prompt the employee to share their perspective on their performance, achievements, and development needs.
  • Be Consistent: Apply performance standards consistently across all employees in similar roles.
  • Review for Clarity and Impact: Before finalizing, read through the review to ensure it's clear, unambiguous, and provides a fair and accurate representation of the employee's performance.

4. Actionable Sentence Starters & Phrases

  • For Strengths/Achievements:

* "[Employee Name] consistently demonstrates strong skills in..."

* "A key strength for [Employee Name] is their ability to..."

* "They excel at [specific task/skill], as evidenced by..."

* "Their proactive approach to [situation] resulted in [positive outcome]."

* "We recognize [Employee Name]'s exceptional contribution to [project/initiative], which led to [measurable result]."

  • For Areas for Development/Constructive Feedback:

* "To further enhance their effectiveness, [Employee Name] could focus on developing..."

* "An area for growth identified is [skill/behavior]. Specifically, [Employee Name] could work on [actionable step]."

* "Opportunities exist to strengthen their skills in [area], particularly by [specific action]."

* "We observed that [specific behavior] during [situation], which had an impact on [team/project/outcome]. Moving forward, consider [alternative behavior]."

* "Improving [skill] would significantly benefit [Employee Name]'s role and future growth."

  • For Goal Achievement:

* "[Employee Name] successfully achieved [X goal] by [Y action/result]."

* "Progress towards [X goal] was [fully met/partially met/not met] due to [reasons], with significant learnings in [area]."

* "While the target for [goal] was not fully reached, [Employee Name] made substantial progress in [related area]."

  • For Development Plans:

* "Recommended action: [Specific training/project/mentorship]."

* "By [Date], [Employee Name] will complete [specific learning activity]."

* "To support this development, [Manager Name] will [provide resources/mentorship/guidance]."

5. Conclusion

Writing effective performance reviews requires thoughtful preparation, objective assessment, and a commitment to employee growth. By adhering to these guidelines and utilizing structured frameworks, you can create performance reviews that are not only comprehensive and professional but also serve as powerful catalysts for individual and organizational development. Remember, the ultimate goal is to foster a culture of continuous improvement and help every employee reach their full potential.

gemini Output

Unlock Peak Performance: Introducing the AI-Powered Performance Review Writer

Streamline Your Review Process, Elevate Your Team's Potential

In today's dynamic work environment, effective performance reviews are more than just an annual formality—they are a critical tool for employee growth, engagement, and organizational success. Yet, crafting comprehensive, fair, and actionable reviews can be a time-consuming and challenging task for managers.

PantheraHive's AI-Powered Performance Review Writer is engineered to transform this process. Leveraging advanced AI, our solution generates detailed, professional, and personalized performance reviews that empower both managers and employees, fostering a culture of continuous improvement and achievement.


Key Features & Benefits: What Our Performance Review Writer Delivers

Our sophisticated AI crafts reviews that are not only thorough but also strategically designed to drive performance and development.

1. Precise Goal Assessments & Achievement Tracking

  • Detailed Analysis: Automatically assesses employee performance against predefined goals, KPIs, and objectives.
  • Quantifiable Results: Provides clear, data-backed insights into goal attainment, highlighting successes and areas needing further focus.
  • Contextual Feedback: Integrates qualitative observations with quantitative metrics to give a holistic view of goal progress.

2. Comprehensive Competency Ratings & Skill Evaluation

  • Standardized Frameworks: Evaluates employees across core competencies relevant to their role and organizational values (e.g., leadership, teamwork, problem-solving, communication).
  • Behavioral Indicators: Identifies specific behaviors that demonstrate proficiency (or areas for improvement) within each competency.
  • Consistent Application: Ensures fairness and consistency in ratings across the organization, reducing bias and promoting objective assessment.

3. Strategic Development Plans

  • Personalized Growth Paths: Generates actionable development plans tailored to individual employee needs and career aspirations.
  • Skill Gap Identification: Pinpoints specific skills or knowledge areas that require development to enhance performance and career progression.
  • Resource Recommendations: Suggests relevant training programs, mentorship opportunities, courses, or projects to support the development plan.

4. Constructive Feedback Frameworks

  • Balanced Perspective: Delivers feedback that is both appreciative of strengths and constructive in addressing areas for improvement.
  • Actionable Insights: Frames feedback in a way that is easy to understand, specific, and directly actionable, providing clear next steps.
  • Forward-Looking: Focuses on future growth and potential, creating a positive and motivating tone for the employee.
  • STAR Method Integration: Can be configured to generate feedback using the Situation, Task, Action, Result (STAR) method for impactful and evidence-based reviews.

Why Choose PantheraHive's Performance Review Writer?

  • Time-Saving Efficiency: Drastically reduces the time managers spend drafting reviews, allowing them to focus on coaching and strategic initiatives.
  • Enhanced Quality & Consistency: Ensures every review is comprehensive, professional, and adheres to organizational standards, elevating the overall quality of your performance management process.
  • Fairness & Objectivity: Minimizes unconscious bias by applying consistent evaluation criteria and data-driven insights.
  • Employee Empowerment: Provides employees with clear, actionable feedback and development paths, fostering a sense of purpose and growth.
  • Scalability: Effortlessly supports organizations of all sizes, from small teams to large enterprises, ensuring a robust review process for everyone.

How It Works: Your Path to Smarter Reviews

  1. Input Employee Data: Provide key information such as goals, project performance, manager observations, and self-assessments.
  2. AI Generates Draft: Our AI processes the input, applying your chosen frameworks and criteria to generate a comprehensive draft review.
  3. Review & Refine: Managers easily review the AI-generated content, make any necessary human-centric adjustments, and finalize the review.
  4. Deliver & Develop: Present a professional, insightful, and actionable performance review that inspires growth and achievement.

Ready to Transform Your Performance Management?

Stop spending countless hours on review writing and start investing that time back into your team. Our AI-Powered Performance Review Writer is designed to make your performance management process more efficient, effective, and impactful.

Unlock the power of intelligent performance reviews today.

[Request a Demo](https://pantherahive.com/demo) | [Learn More About Our HR Solutions](https://pantherahive.com/hr-solutions) | [Contact Sales](https://pantherahive.com/contact)

gemini Output

Comprehensive Performance Review Template: Polished & Formatted Output

This document presents a comprehensive, detailed, and professionally formatted performance review template, generated by the "Performance Review Writer" workflow. It integrates goal assessments, competency ratings, development plans, and a structured constructive feedback framework to provide a holistic and actionable evaluation of employee performance.


Performance Review for [Employee Name]

Review Period: [Start Date] – [End Date]

Date of Review: [Date]

Employee Information:

  • Employee Name: [Employee Name]
  • Job Title: [Job Title]
  • Department: [Department Name]
  • Employee ID: [Employee ID]
  • Manager Name: [Manager Name]

1. Overall Performance Summary

[Employee Name] has demonstrated [e.g., strong performance, consistent growth, exceptional contributions] during this review period. [He/She/They] consistently [e.g., met expectations in key areas, exceeded targets in X and Y, showed significant improvement in Z]. This review will detail specific achievements, areas of strength, and opportunities for further development to support continued professional growth.


2. Goal Achievement & Assessment

This section evaluates the achievement of pre-defined goals for the review period. Each goal is assessed against its target, actual outcome, and overall impact.

| Goal Number | Specific Goal (SMART) | Target Outcome | Actual Outcome | Assessment (Met/Exceeded/Partially Met/Not Met) | Manager Comments ---

Rating Scale:

  • 5 - Exceeds Expectations: Consistently exceeds the highest expectations.
  • 4 - Exceeds Some Expectations: Consistently meets and often exceeds expectations.
  • 3 - Meets Expectations: Consistently meets all job requirements and expectations.
  • 2 - Partially Meets Expectations: Meets some expectations but requires improvement in others.
  • 1 - Does Not Meet Expectations: Does not meet basic job requirements and expectations.

3. Competency Assessment & Ratings

This section evaluates performance against core competencies essential for the role and company culture.

| Competency | Rating | Specific Examples & Evidence

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