Performance Review Writer
Run ID: 69cae9c3c8ebe3066ba6f6372026-03-30HR
PantheraHive BOS
BOS Dashboard

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

As a professional "Performance Review Writer," your role is to craft comprehensive, objective, and actionable performance evaluations that serve as critical tools for employee development, organizational alignment, and talent management. This involves synthesizing various data points into a coherent narrative that assesses past performance, identifies strengths, pinpoints areas for growth, and outlines future developmental paths.

Here's a detailed breakdown of the research and foundational knowledge required to excel in this role, structured for clarity and actionability:


1. Understanding the Core Purpose and Value of Performance Reviews

Before writing, it's crucial to grasp why performance reviews are conducted and their multifaceted benefits:

  • Employee Development: Identify skill gaps, provide constructive feedback, and guide employees towards professional growth.
  • Performance Improvement: Reinforce positive behaviors and address areas needing correction to enhance overall productivity and quality of work.
  • Goal Alignment: Ensure individual contributions are aligned with team and organizational objectives.
  • Recognition and Motivation: Acknowledge achievements, motivate employees, and reinforce desired behaviors.
  • Career Planning: Support discussions around career progression, promotions, and succession planning.
  • Compensation and Rewards: Provide a documented basis for salary adjustments, bonuses, and other rewards.
  • Legal Documentation: Create a formal record of performance for HR purposes, including potential disciplinary actions or terminations.
  • Feedback Loop: Offer a structured opportunity for two-way communication between employees and managers.

2. Key Components of a Comprehensive Performance Review

A robust performance review typically includes several critical sections, each serving a distinct purpose:

2.1. Goal Assessments

This section evaluates an employee's performance against pre-defined objectives, typically set at the beginning of the review period.

  • Assessment Criteria:

* SMART Goals: Evaluate against Specific, Measurable, Achievable, Relevant, and Time-bound goals.

* KPIs (Key Performance Indicators): Assess performance against quantitative metrics (e.g., sales targets, project completion rates, customer satisfaction scores).

* Qualitative Objectives: Evaluate progress on less quantifiable goals (e.g., improving team collaboration, developing new skills).

  • Writing Best Practices:

* Quantify Achievements: Use numbers and data whenever possible to demonstrate success (e.g., "Exceeded sales target by 15%," "Reduced project delivery time by 10%").

* Explain Deviations: If goals were not met, provide context, challenges faced, and lessons learned.

* Impact Analysis: Describe the broader impact of the employee's achievements or challenges on the team, department, or organization.

* Future Goals: Briefly touch upon how current performance informs future goal setting.

2.2. Competency Ratings

Competencies are the skills, knowledge, and behaviors employees need to perform their job effectively and align with organizational values.

  • Common Competencies Examples:

* Communication: Verbal, written, listening.

* Teamwork & Collaboration: Working effectively with others.

* Problem-Solving & Decision Making: Analyzing issues, finding solutions.

* Leadership & Influence: Guiding, motivating, delegating.

* Adaptability & Flexibility: Responding to change.

* Technical Skills: Job-specific expertise.

* Initiative & Proactiveness: Taking ownership, anticipating needs.

* Customer Focus: Prioritizing client needs (internal/external).

  • Rating Scales:

* Typically uses a scale (e.g., 1-5, Needs Development to Exceeds Expectations).

* Each rating level should have clear behavioral definitions.

  • Writing Best Practices:

* Behavioral Examples: Provide specific, observable examples of how the employee demonstrated (or failed to demonstrate) each competency. Avoid vague statements.

* STAR Method: Utilize the Situation, Task, Action, Result framework to structure examples (e.g., "S: During the Q3 project, T: the task was to integrate a new software, A: John proactively researched solutions and collaborated with IT, R: resulting in a seamless integration ahead of schedule.").

* Consistency: Apply the rating scale and competency definitions consistently across all reviews.

2.3. Development Plans

This forward-looking section outlines specific actions to enhance an employee's skills and career trajectory.

  • Components of a Development Plan:

* Identified Growth Areas: Directly link to areas for improvement identified in goal assessments and competency ratings.

* Specific Development Activities: Suggest concrete steps (e.g., "Attend Project Management Professional (PMP) certification course," "Shadow Sarah in the marketing department," "Lead the next cross-functional team meeting," "Complete LinkedIn Learning course on Advanced Excel").

* Resources Needed: Identify tools, training, or mentorship required.

* Timeline: Set realistic deadlines for completing development activities.

* Success Metrics: Define how progress and success will be measured.

* Alignment: Ensure the development plan aligns with the employee's career aspirations and the organization's strategic needs.

  • Writing Best Practices:

* Collaborative Tone: Frame it as a partnership for growth, not a directive.

* Prioritization: Focus on 1-3 key development areas to avoid overwhelming the employee.

* Action-Oriented: Use verbs that denote action and progress.

2.4. Constructive Feedback Frameworks

Effective feedback is crucial for guiding improvement without demotivating the employee.

  • Key Principles of Constructive Feedback:

* Specific: Refer to particular incidents or behaviors.

* Timely: Ideally, feedback should be given close to the event, but a review summarizes it.

* Actionable: Focus on behaviors the employee can change.

* Balanced: Incorporate positive feedback alongside areas for improvement.

* Objective: Stick to facts and observations, not personal opinions.

* Forward-Looking: Emphasize solutions and future growth.

  • Frameworks to Utilize:

* SBI (Situation-Behavior-Impact):

* Situation: "During the last client presentation..."

* Behavior: "...you interrupted the client three times..."

* Impact: "...which made them seem disengaged and we lost momentum in the discussion."

* Recommendation: "In the future, allow the client to finish their thoughts before responding to ensure full understanding."

* Feedback Sandwich (Use with Caution): While sometimes used (positive-negative-positive), it can dilute the message or make the positive feedback seem insincere. Focus more on direct, balanced feedback.

* Focus on Strengths First: Begin by highlighting significant accomplishments and positive contributions to build rapport and receptiveness.

  • Writing Best Practices:

* "I" Statements: Frame feedback from the manager's perspective (e.g., "I observed..." rather than "You always...").

* Avoid Absolutes: Words like "always" or "never" are rarely accurate and can sound accusatory.

* Solutions-Oriented: For every area of improvement, suggest potential solutions or resources.

* Empathetic Tone: Maintain a professional and supportive tone throughout.

3. Best Practices for Writing Effective Performance Reviews

Beyond the structural components, the overall approach to writing significantly impacts the review's effectiveness.

  • Evidence-Based: Always support assessments with concrete examples, data, and observations. Avoid generalizations or hearsay.
  • Objectivity and Fairness: Mitigate bias (recency, halo/horn effect, leniency/severity). Review the entire period.
  • Clarity and Conciseness: Use clear, professional language. Avoid jargon where possible. Get straight to the point without being blunt.
  • Consistency: Maintain a consistent tone, language, and evaluation standard across all reviews.
  • Review for Accuracy: Double-check all facts, dates, and figures.
  • Professional Tone: Maintain a respectful, constructive, and encouraging tone. The goal is to develop, not demoralize.
  • No Surprises: The performance review should summarize ongoing feedback. No major issues should be raised for the first time in the review document.
  • Forward-Looking: Emphasize future growth, goals, and contributions rather than dwelling solely on past shortcomings.

4. Data and Information Gathering for Review Writers

To write a comprehensive review, you'll need to gather and synthesize information from various sources:

  • Employee Self-Assessment: Provides the employee's perspective on their performance, achievements, and development needs.
  • Manager's Notes and Observations: Regular documentation of performance throughout the review period.
  • 360-Degree Feedback: Input from peers, direct reports, and even clients can provide a holistic view.
  • Project Documentation: Project plans, status reports, outcome analyses.
  • Key Performance Indicators (KPIs) & Metrics: Sales figures, customer satisfaction scores, project completion rates, efficiency metrics.
  • Previous Performance Reviews: To track progress on past goals and development plans.
  • Job Description: To ensure alignment between performance and role expectations.

5. Common Pitfalls to Avoid

  • Recency Bias: Over-emphasizing recent performance (positive or negative) over the entire review period.
  • Leniency or Severity Bias: Being consistently too easy or too harsh on all employees.
  • Halo/Horn Effect: Allowing one outstanding (or poor) trait to overshadow all other aspects of performance.
  • Lack of Specificity: Using vague statements that don't provide actionable insights.
  • Personal Bias: Letting personal feelings or relationships influence the evaluation.
  • Surprises: Presenting new, critical feedback that hasn't been discussed with the employee previously.
  • Focusing Only on Weaknesses: Neglecting to acknowledge strengths and accomplishments.
  • Grammar and Spelling Errors: Undermines professionalism and credibility.

By thoroughly researching and applying these principles, a "Performance Review Writer" can produce documents that are not just administrative requirements, but powerful tools for fostering employee growth, enhancing organizational performance, and building a culture of continuous improvement.

gemini Output

Elevate Your Team's Potential: Introducing the PantheraHive Performance Review Writer

Unlock unparalleled clarity, fairness, and growth with our advanced Performance Review Writer. Transform the often-daunting task of performance evaluations into a strategic opportunity for development and recognition.

Are you looking to streamline your performance review process, ensure consistency, and empower your employees with actionable insights? The PantheraHive Performance Review Writer is meticulously designed to generate comprehensive, professional, and impactful performance reviews that drive engagement and foster continuous improvement. Say goodbye to generic templates and inconsistent feedback – and welcome a new era of strategic talent management.


Key Features & Benefits: Crafting Excellence in Every Review

Our Performance Review Writer is built upon pillars of best practice, ensuring every review is thorough, fair, and forward-looking.

1. Precision Goal Assessments: Quantify Achievements, Inspire Future Success

Headline: Go Beyond "Met Expectations" – Quantify Success with Data-Driven Goal Assessments.

Body Text:

Accurately assessing an employee's progress against their set goals is critical for effective performance management. Our tool allows you to input specific objectives, track progress, and generate detailed assessments that highlight achievements, identify areas for improvement, and provide a clear roadmap for future goal setting.

  • Objective Measurement: Evaluate quantitative and qualitative goals with structured scoring and commentary.
  • Progress Tracking: Document milestones, challenges, and successes throughout the review period.
  • Future Goal Alignment: Seamlessly link past performance to future objectives, ensuring continuity and strategic alignment.
  • Impactful Narratives: Generate professional summaries that articulate the employee's contributions and impact on organizational objectives.

2. Insightful Competency Ratings: Define & Develop Core Skills

Headline: Uncover Strengths & Pinpoint Growth Areas with Robust Competency Ratings.

Body Text:

Competencies are the bedrock of high performance. Our Performance Review Writer provides a structured framework to evaluate critical skills and behaviors essential for success in specific roles and the organization as a whole. Move beyond subjective opinions to provide objective, evidence-based feedback.

  • Customizable Competency Frameworks: Adapt to your organization's unique values and skill sets (e.g., leadership, teamwork, problem-solving, communication).
  • Behavioral Indicators: Leverage pre-defined or custom behavioral indicators to ensure consistent and fair evaluation across the team.
  • Rating Scales & Justification: Utilize clear rating scales complemented by sections for specific examples and evidence, substantiating each rating.
  • Skill Gap Analysis: Automatically highlight areas where competencies need development, informing targeted training initiatives.

3. Actionable Development Plans: Chart a Course for Continuous Growth

Headline: Empower Your Team: Create Personalized, Impactful Development Plans.

Body Text:

A performance review isn't complete without a clear path forward. Our tool helps you co-create meaningful and actionable development plans that address identified growth areas and leverage existing strengths. Turn feedback into tangible steps for professional advancement.

  • Targeted Learning Objectives: Define specific, measurable, achievable, relevant, and time-bound (SMART) goals for development.
  • Resource Integration: Suggest relevant training courses, mentorship opportunities, projects, or self-study resources.
  • Timeline & Milestones: Establish clear timelines and milestones to track progress and accountability for development activities.
  • Manager & Employee Buy-in: Facilitate a collaborative process that encourages employee ownership of their growth journey.

4. Constructive Feedback Frameworks: Foster Growth, Not Resentment

Headline: Deliver Feedback That Builds, Not Breaks: Our Framework for Constructive Dialogue.

Body Text:

The art of delivering feedback is crucial. Our Performance Review Writer integrates best-practice constructive feedback frameworks, ensuring that every message is clear, balanced, and focused on growth. Eliminate ambiguity and foster a positive feedback culture.

  • Situation-Behavior-Impact (SBI) Model: Guide reviewers in structuring feedback with specific examples that illustrate the situation, the observed behavior, and its impact.
  • Balanced Perspective: Ensure reviews include both recognition of strengths and areas for improvement, maintaining a positive and motivating tone.
  • Forward-Looking Orientation: Frame feedback around future actions and desired outcomes rather than dwelling on past mistakes.
  • Guidance for Difficult Conversations: Provide prompts and language suggestions to help managers navigate sensitive topics with empathy and professionalism.

Why Choose the PantheraHive Performance Review Writer?

  • Consistency & Fairness: Standardize your review process, ensuring equitable evaluations across the board.
  • Time-Saving Efficiency: Reduce the administrative burden on managers, allowing them to focus on coaching and development.
  • Enhanced Professionalism: Generate polished, well-structured reviews that reflect positively on your organization.
  • Data-Driven Insights: Leverage structured data to identify trends, pinpoint skill gaps, and inform talent strategies.
  • Employee Engagement: Empower employees with clear expectations, meaningful feedback, and a defined path for growth.

Ready to Transform Your Performance Reviews?

Stop dreading performance review season and start leveraging it as a powerful tool for organizational success. The PantheraHive Performance Review Writer is your partner in building a high-performing, engaged workforce.

Call to Action:

[Start Crafting Your First Professional Review Today!]

[Request a Personalized Demo]

[Learn More About Our HR Solutions]

gemini Output

Comprehensive Performance Review Writer Framework

This framework provides a structured, detailed, and professional approach to generating performance reviews. It integrates goal assessments, competency ratings, development plans, and a constructive feedback framework to ensure a holistic and actionable evaluation process.


1. Introduction & Purpose

The Performance Review Writer Framework is designed to facilitate fair, objective, and growth-oriented performance evaluations. Its primary goals are to:

  • Assess individual contributions against established goals and organizational competencies.
  • Identify strengths and areas for development.
  • Foster professional growth through tailored development plans.
  • Provide clear, actionable feedback to improve future performance.
  • Document performance for career progression and organizational planning.

2. Core Components of a Performance Review

Each performance review should include the following foundational elements:

  • Employee Information:

* Employee Name:

* Job Title:

* Department/Team:

* Manager Name:

* Review Period: (e.g., January 1, 2023 - December 31, 2023)

* Date of Review:


3. Goal Assessment & Achievement Module

This section evaluates the employee's performance against pre-defined individual and team goals for the review period.

For Each Goal, Include:

  • Goal Description:

Example:* "Increase customer satisfaction (CSAT) scores for assigned accounts by 10% by Q4."

  • Key Performance Indicator (KPI)/Target:

Example:* "Achieve an average CSAT score of 85% across all accounts."

  • Actual Outcome/Result:

Example:* "Achieved an average CSAT score of 88% by Q4, exceeding the target."

  • Assessment (Select One):

* [ ] Exceeded Expectations

* [ ] Met Expectations

* [ ] Partially Met Expectations

* [ ] Did Not Meet Expectations

  • Detailed Commentary & Analysis:

* Provide specific examples, data, and context. Explain contributing factors (both positive and negative).

Example:* "John consistently engaged with key customers, proactively addressing concerns and implementing feedback loops. His initiative in creating a quarterly customer newsletter significantly contributed to improved communication and satisfaction. While one account saw a slight dip due to a product bug, John's swift resolution efforts mitigated further impact."

  • Impact on Business/Team:

Example:* "This achievement directly led to a 5% increase in customer retention within John's portfolio, contributing positively to overall departmental revenue goals."


4. Core Competency Evaluation Module

This section assesses the employee's demonstration of essential skills and behaviors critical for success in their role and within the organization.

Rating Scale Definition:

  • 5 - Exceeds Expectations: Consistently demonstrates the competency at an exemplary level, often serving as a role model.
  • 4 - Meets and Often Exceeds Expectations: Consistently demonstrates the competency, often going above and beyond requirements.
  • 3 - Meets Expectations: Consistently demonstrates the competency at the required level for the role.
  • 2 - Needs Development: Demonstrates the competency inconsistently or at a level below expectations, requiring improvement.
  • 1 - Does Not Meet Expectations: Rarely or never demonstrates the competency, significantly impacting performance.

Competencies (Customize as needed):

  • Communication: (Verbal, Written, Listening, Presentation)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Teamwork & Collaboration: (Cooperation, Conflict Resolution, Support)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Problem-Solving & Decision Making: (Analysis, Innovation, Judgment)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Adaptability & Flexibility: (Response to Change, Learning Agility)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Initiative & Proactivity: (Self-Starter, Forward-Thinking)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Technical Proficiency/Job Knowledge: (Role-Specific Skills, Expertise)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Customer Focus (Internal/External): (Service Orientation, Responsiveness)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:

  • Leadership/Mentorship (if applicable): (Guidance, Influence, Development of Others)

* Rating: [ ] 1 [ ] 2 [ ] 3 [ ] 4 [ ] 5

* Evidence/Examples:

* Areas for Development:


5. Professional Development Plan Module

This section outlines specific, actionable steps for the employee's growth, linking directly to identified development areas from the competency evaluation and future career aspirations.

For Each Development Area, Include:

  • Development Goal/Area:

Example:* "Improve public speaking and presentation skills."

  • Specific Actions/Learning Activities:

Example:*

* "Attend 'Effective Presentation Skills' workshop (external or internal)."

* "Volunteer to lead team meetings or present project updates quarterly."

* "Seek feedback from manager/peers after each presentation."

* "Practice using a virtual presentation tool."

  • Resources Needed/Support:

Example:* "Training budget for workshop, mentor support from Senior Manager Sarah Lee, access to presentation software tutorials."

  • Target Completion Date:

Example:* "Workshop completed by Q2; lead 2 presentations by Q4."

  • Success Metrics/How Progress Will Be Measured:

Example:* "Feedback scores from peers/manager on presentation effectiveness, successful delivery of 2 quarterly presentations, increased confidence demonstrated in team discussions."


6. Constructive Feedback & Future Focus Framework

This section provides a structured approach for delivering balanced feedback, emphasizing both strengths and areas for improvement, with a forward-looking perspective.

A. Strengths & Key Contributions:

  • Highlight 2-3 significant strengths and positive impacts demonstrated during the review period.
  • Example: "Sarah consistently demonstrates exceptional analytical skills, which were critical in identifying the root cause of the recent system outage. Her ability to quickly synthesize complex data saved the team significant time and resources."

B. Areas for Improvement (Using the SBI+N Framework):

When delivering feedback on areas for improvement, use the Situation-Behavior-Impact-Next Steps (SBI+N) framework for clarity and actionability.

  • Situation: Describe the specific context or time.

Example:* "During the Q3 project planning meeting..."

  • Behavior: Describe the specific, observable action or behavior (avoid judgments).

Example:* "...you interrupted colleagues several times before they finished speaking..."

  • Impact: Explain the effect of the behavior on others, the team, or the project.

Example:* "...which led to some team members feeling unheard and slowed down the collaborative decision-making process."

  • Next Steps/Future Focus: Discuss desired future behavior, expectations, or solutions collaboratively.

Example:* "In future discussions, please allow others to complete their thoughts before contributing. Practicing active listening will help ensure all perspectives are considered, leading to more inclusive and efficient outcomes. How can I support you in this?"

C. Guidelines for Delivering Feedback:

  • Be Specific and Factual: Ground feedback in observable behaviors and objective data.
  • Focus on Behavior, Not Personality: Critique actions, not the person.
  • Be Timely: Provide feedback as close to the event as possible.
  • Be Balanced: Include both positive reinforcement and areas for growth.
  • Collaborate on Solutions: Involve the employee in identifying solutions and next steps.
  • Maintain a Growth Mindset: Frame feedback as an opportunity for development, not criticism.

7. Overall Performance Rating & Summary

  • Overall Performance Rating (Select One):

* [ ] Exceeds Expectations

* [ ] Meets and Often Exceeds Expectations

* [ ] Meets Expectations

* [ ] Needs Development

* [ ] Does Not Meet Expectations

  • Overall Summary Statement:

* Provide a concise paragraph summarizing the employee's performance over the review period, highlighting key strengths, primary achievements, and overarching development areas. This should align with the overall rating.

Example:* "Jane had an outstanding year, consistently exceeding her sales targets and demonstrating exceptional leadership in mentoring junior team members. Her proactive approach to client engagement significantly contributed to our Q4 revenue growth. While her analytical report-writing skills are strong, focusing on improving her presentation delivery will further enhance her impact in client-facing roles."


8. Employee Comments & Signatures

  • Employee Comments:

Space for employee to provide their perspective, agree/disagree with assessments, and add any relevant information.*

  • Employee Signature: _________________________ Date: ___________
  • Manager Signature: __________________________ Date: ___________
  • HR Representative Signature (if applicable): _______________ Date: ___________

9. Best Practices for Managers

  • Preparation is Key: Review all documentation (previous reviews, 1:1 notes, project feedback, goal tracking) before writing.
  • Schedule Ample Time: Allocate sufficient time for writing the review and conducting the discussion.
  • Conduct In-Person (or Video Call): Whenever possible, deliver the review verbally to allow for discussion, clarification, and empathy.
  • Maintain a Constructive Tone: Focus on development and future growth, even when discussing areas for improvement.
  • Encourage Dialogue: Make the review a two-way conversation, inviting the employee's perspective and self-reflection.
  • Set Clear Expectations: Conclude with clear next steps, agreed-upon development actions, and follow-up plans.
  • Follow Up: Regularly check in on development goals and provide ongoing feedback throughout the next review cycle.
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
\n\n\n"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+title+"

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

$1

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

$1

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

$1

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

"); h+="

"+hc+"

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