Performance Review Writer
Run ID: 69cb13f042bc43f7e3be734e2026-03-31HR
PantheraHive BOS
BOS Dashboard

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

Performance Review Writer: Comprehensive Research and Framework Development

This document outlines the essential components, best practices, and actionable frameworks required for generating comprehensive, detailed, and professional performance reviews. This research serves as the foundational knowledge base for the "Performance Review Writer" workflow, ensuring all subsequent steps are informed by industry standards and effective methodologies.


1. Introduction to Performance Reviews

A performance review is a formal assessment in which a manager evaluates an employee's work performance, identifies their strengths and weaknesses, offers feedback, and helps them set goals for future development. Its primary objectives include:

  • Performance Evaluation: Objectively assessing an employee's achievement of goals and adherence to company standards.
  • Feedback Delivery: Providing constructive feedback to foster growth and address areas for improvement.
  • Goal Setting: Collaboratively establishing future objectives aligned with individual and organizational success.
  • Development Planning: Identifying training and development needs to enhance skills and career progression.
  • Recognition & Motivation: Acknowledging achievements and motivating employees.
  • Documentation: Creating a formal record for HR purposes (e.g., promotions, compensation adjustments, disciplinary actions).

2. Goal Assessment Framework

Effective performance reviews begin with a clear assessment of previously set goals. This section details how to structure and evaluate goal achievement.

2.1. Goal Types and Definition

  • Quantitative Goals: Measurable targets (e.g., increase sales by 15%, reduce customer complaints by 10%).
  • Qualitative Goals: Focus on quality, process improvement, or skill development (e.g., improve team collaboration, enhance presentation skills).
  • SMART Goals: A widely used framework for defining effective goals:

* Specific: Clearly defined, leaving no room for ambiguity.

* Measurable: Quantifiable criteria for tracking progress.

* Achievable: Realistic and attainable within the given timeframe and resources.

* Relevant: Aligned with broader organizational objectives and the employee's role.

* Time-bound: A defined start and end date for completion.

  • OKRs (Objectives and Key Results): An alternative framework, often used for ambitious goals:

* Objective: A qualitative, aspirational, and time-bound goal.

* Key Results: Quantitative, measurable outcomes that indicate progress towards the objective.

2.2. Assessment Criteria for Goal Achievement

For each goal, the review should assess:

  • Level of Achievement:

* Exceeded Expectations (Significantly surpassed the goal)

* Met Expectations (Fully achieved the goal)

* Partially Met Expectations (Made progress but did not fully achieve)

* Did Not Meet Expectations (Little to no progress towards the goal)

  • Impact: The actual effect of the achievement (or lack thereof) on the team, department, or organization.
  • Contributing Factors: Internal (employee effort, skills) and external (resource availability, market conditions) factors that influenced goal attainment.
  • Lessons Learned: What could be done differently in the future?

2.3. Structure for Goal Assessment

For each goal, provide:

  1. Goal Statement: Reiterate the original goal.
  2. Expected Outcome: What was the target?
  3. Actual Outcome: What was achieved? Provide specific data/examples.
  4. Analysis & Rating: Explain the level of achievement, citing specific examples and data.
  5. Impact: Describe the positive or negative consequences.
  6. Next Steps/Future Goals: How does this inform future objectives?

3. Competency Rating Systems

Competencies describe the knowledge, skills, abilities, and behaviors critical for success in a role and the organization.

3.1. Common Competency Categories

  • Core Competencies: Essential for all employees (e.g., Communication, Teamwork, Integrity, Adaptability).
  • Leadership Competencies: For managers and leaders (e.g., Strategic Thinking, Coaching, Decision Making, Delegation).
  • Role-Specific Competencies: Unique to a particular job function (e.g., Technical Proficiency, Client Management, Data Analysis).

3.2. Rating Scales

A consistent, clear rating scale is crucial for objectivity.

  • 5-Point Scale (Most Common):

* 5 - Exceeds Expectations: Consistently demonstrates exceptional mastery; acts as a role model.

* 4 - Meets All Expectations: Consistently performs at a high level; fully proficient.

* 3 - Meets Most Expectations: Generally performs well; occasional areas for development.

* 2 - Partially Meets Expectations: Needs significant development in this area; inconsistent performance.

* 1 - Does Not Meet Expectations: Rarely or never demonstrates the competency; requires immediate improvement.

  • Behavioral Anchored Rating Scales (BARS): Provides specific behavioral examples for each rating level, reducing subjectivity.

3.3. Structure for Competency Assessment

For each competency, provide:

  1. Competency Name: (e.g., Communication, Problem Solving, Adaptability)
  2. Definition: A brief explanation of what the competency entails.
  3. Rating: Assign a score based on the chosen scale.
  4. Supporting Evidence/Examples: Provide 2-3 specific behavioral examples (positive and negative) that justify the rating. Use the STAR method (Situation, Task, Action, Result) for clarity.
  5. Impact: Explain how the employee's demonstration of this competency affects their performance and the team/organization.
  6. Development Needs: Identify specific areas within the competency for improvement.

4. Development Plans

A robust development plan outlines actionable steps for an employee's professional growth.

4.1. Key Elements of a Development Plan

  • Area for Development: Specific skill or competency identified for improvement (e.g., "Public Speaking," "Project Management," "Strategic Planning").
  • Objective: What specific outcome is expected from this development (e.g., "Deliver engaging presentations to senior leadership," "Successfully lead cross-functional projects from inception to completion").
  • Action Steps: Concrete, measurable activities the employee will undertake. These should be SMART.

Examples:*

* Attend "Advanced Presentation Skills" workshop by [Date].

* Shadow [Colleague's Name] on client calls twice a month for the next quarter.

* Complete online course "Project Management Fundamentals" by [Date].

* Seek feedback after every presentation from [Mentor/Manager].

* Lead a small internal project by [Date].

  • Resources/Support: What resources will be provided or are available (e.g., training budget, mentor, online courses, books, time allocation)?
  • Timeline: Specific deadlines for completing action steps and achieving the objective.
  • Metrics for Success: How will progress and successful completion be measured? (e.g., "Positive feedback from 80% of audience," "Project delivered on time and within budget," "Manager observation of improved confidence").
  • Manager/Employee Responsibilities: Clear roles for both parties in supporting and driving the plan.

4.2. Structure for Development Plan Section

  1. Summary of Development Needs: Briefly summarize key areas identified in goal and competency assessments.
  2. Individual Development Plan (IDP) Table:

| Development Area | Objective (SMART) | Action Steps | Resources/Support | Timeline | Success Metrics |

| :--------------- | :---------------- | :----------- | :---------------- | :------- | :-------------- |

| Public Speaking | Deliver engaging presentations to senior leadership with confidence by Q4. | 1. Attend "Presentation Mastery" workshop (Sept).<br>2. Practice 3 presentations with peer feedback (Oct-Nov).<br>3. Present at monthly team meeting (Dec). | Training budget, peer support, manager coaching, LinkedIn Learning course. | Q3-Q4 | Positive feedback from 80% of audience; manager observation of increased confidence. |

| ... | ... | ... | ... | ... | ... |


5. Constructive Feedback Frameworks

Delivering feedback effectively is crucial for development. This section outlines structured approaches.

5.1. Principles of Constructive Feedback

  • Specific: Focus on observable behaviors, not generalizations or personality traits.
  • Timely: Delivered as close to the event as possible.
  • Actionable: Provides clear suggestions for improvement.
  • Balanced: Includes both positive reinforcement and areas for growth.
  • Impact-focused: Explains the effect of the behavior.
  • Private: Delivered in a one-on-one setting.

5.2. Recommended Feedback Frameworks

  • STAR Method (Situation, Task, Action, Result): Excellent for describing specific events and their outcomes.

* Situation: Describe the context or background.

* Task: Explain the goal or task that was involved.

* Action: Detail the specific actions the employee took.

* Result: Explain the outcome of those actions.

Example (Positive):* "In the recent Q3 project presentation (Situation), your task was to present the new market strategy to the executive team (Task). You clearly articulated the key points and confidently answered all questions, even the challenging ones (Action). As a result, the executives approved the strategy with enthusiasm, praising your clarity and command of the material (Result)."

Example (Constructive):* "During the client meeting last Tuesday (Situation), when we were discussing the budget adjustments (Task), you interrupted the client twice before they finished speaking (Action). This made the client visibly uncomfortable and slowed down the negotiation process (Result). In the future, please ensure the client has finished speaking before offering your input to maintain professionalism and build rapport."

  • SBI (Situation-Behavior-Impact) Framework: Similar to STAR, but emphasizes the impact more directly.

* Situation: When and where the behavior occurred.

* Behavior: The specific, observable action or statement.

* Impact: The consequence of the behavior on you, others, or the business.

Example (Constructive):* "In the team meeting yesterday (Situation), when John was presenting his proposal, you were checking your phone multiple times (Behavior). I noticed John seemed distracted, and it conveyed a lack of engagement from your side, which could demine team morale (Impact)."

  • Pendleton's Rules for Feedback: A collaborative approach, encouraging self-reflection.

1. What was good? (Employee's perspective)

2. What was good? (Manager's perspective)

3. What could be improved? (Employee's perspective)

4. What could be improved? (Manager's perspective, with suggestions)

5.3. Structure for Feedback Section

  1. Overall Performance Summary: A concise narrative summarizing the employee's general performance, highlighting key strengths and areas for growth.
  2. Specific Strengths: Detail 2-3 key strengths, providing STAR/SBI examples.
  3. Areas for Development/Constructive Feedback: Detail 2-3 areas for improvement, using STAR/SBI examples and focusing on actionable behaviors. Frame these as opportunities for growth.
  4. Forward-Looking Statement: A positive closing statement affirming belief in the employee's potential and commitment to support their growth.

6. Best Practices for Writing Performance Reviews

To ensure reviews are impactful, fair, and professional:

  • Be Specific and Objective: Avoid vague statements or personal opinions. Back all assessments with concrete examples, data, and observations.
  • Focus on Behaviors, Not Traits: Describe what the employee does, not who they are. (e.g., instead of "She is unmotivated," say "She missed three project deadlines this quarter and submitted incomplete work twice.")
  • Maintain a Professional Tone: Use respectful, constructive language. Avoid jargon where possible.
  • Balance Positive and Constructive Feedback: Ensure employees feel recognized for their contributions while also understanding areas for growth.
  • Be Forward-Looking: Emphasize future development and opportunities, not just past performance.
  • Review for Bias: Check for unconscious biases (e.g., recency bias, halo/horn effect, gender bias, leniency/severity bias). Ensure consistent application of standards across all employees.
  • Proofread Carefully: Errors undermine professionalism.
  • Align with Job Description and Company Values: Ensure assessments are relevant to the role and organizational culture.
  • Employee Self-Assessment Integration: Encourage employees to complete a self-assessment first, providing valuable context and fostering a more collaborative discussion.

7. Key Challenges and How to Address Them

| Challenge | How to Address

gemini Output

Elevate Your Team's Growth: Introducing the Performance Review Writer

Transform Performance Management from a Chore to a Catalyst

Performance reviews are the cornerstone of employee development and organizational success. Yet, crafting comprehensive, fair, and impactful reviews can be a time-consuming and often daunting task for managers. From accurately assessing goal achievement to formulating actionable development plans and delivering constructive feedback, the process demands precision, empathy, and a deep understanding of each team member's unique journey.

PantheraHive's Performance Review Writer is engineered to revolutionize this crucial process. We provide managers, HR professionals, and business leaders with an intelligent, intuitive platform to generate detailed, professional, and highly effective performance reviews that truly drive growth and engagement.

The Challenge: Beyond the Checkbox

Traditional performance review processes often fall short, leading to:

  • Inconsistent Feedback: Varying quality and focus across reviews.
  • Time Drain: Managers spending countless hours drafting and refining.
  • Lack of Actionability: Reviews that don't translate into tangible development.
  • Subjectivity & Bias: Potential for personal opinions to overshadow objective performance.
  • Missed Opportunities: Failing to identify and nurture high potential or address underperformance effectively.

Our Solution: The Performance Review Writer — Your Partner in People Development

The Performance Review Writer is more than just a template generator; it's a strategic tool designed to produce holistic and insightful performance evaluations. We empower you to create reviews that are:

  • Comprehensive: Covering all critical aspects of an employee's performance.
  • Objective: Based on data, observable behaviors, and measurable outcomes.
  • Actionable: Providing clear pathways for improvement and growth.
  • Consistent: Ensuring fairness and alignment with organizational standards.
  • Time-Efficient: Dramatically reducing the effort required to produce high-quality reviews.

Key Features & Benefits: Driving Excellence in Every Review

Our Performance Review Writer is built with a powerful suite of features to ensure every assessment is thorough, fair, and forward-looking.

1. Robust Goal Assessment & Achievement Analysis

Headline: Quantify Success, Identify Gaps: Precise Goal Achievement Evaluation

Body Text:

Move beyond vague statements with a structured approach to evaluating goal attainment. Our system allows you to:

  • Track Progress Against KPIs: Input specific Key Performance Indicators (KPIs) and objectives set for the review period.
  • Assess Impact & Outcomes: Evaluate not just whether a goal was met, but the quality of the outcome and its impact on team and organizational objectives.
  • Identify Contributing Factors: Analyze successes and challenges, considering external factors, resource availability, and individual effort.
  • Generate Data-Driven Summaries: Receive clear, concise summaries of goal achievement, highlighting areas of excellence and opportunities for improvement.

Benefits:

  • Ensures objective evaluation of performance against agreed-upon targets.
  • Provides a clear understanding of what was accomplished and where focus is needed.
  • Facilitates meaningful discussions grounded in results.

2. Competency-Based Rating System

Headline: Standardized & Objective: Evaluate Core Competencies with Precision

Body Text:

Foster a culture of clarity and fairness with a standardized competency framework. Our writer enables you to:

  • Define Core Competencies: Incorporate your organization's specific competencies (e.g., leadership, communication, problem-solving, collaboration, innovation).
  • Utilize Scaled Rating Systems: Employ customizable rating scales (e.g., "Exceeds Expectations," "Meets Expectations," "Needs Development") with clear behavioral indicators for each level.
  • Provide Evidenced-Based Justification: Prompt for specific examples and instances that support each competency rating, reducing subjectivity.
  • Highlight Strengths & Growth Areas: Automatically identify an employee's top competencies and those requiring further development.

Benefits:

  • Ensures consistent evaluation criteria across the organization.
  • Provides clear expectations for behavior and performance.
  • Helps identify skill gaps at individual and team levels.

3. Personalized Development Plans

Headline: Charting the Future: Actionable Plans for Continuous Growth

Body Text:

Transform review feedback into a roadmap for future success. Our tool helps you craft development plans that are truly personalized and effective:

  • Link to Performance Gaps: Automatically generate development suggestions based on identified areas for improvement in goal achievement and competency ratings.
  • Suggest Targeted Actions: Propose specific learning activities, training programs, mentorship opportunities, or stretch assignments.
  • Set SMART Goals: Guide the creation of Specific, Measurable, Achievable, Relevant, and Time-bound development goals.
  • Outline Resources & Support: Include recommendations for resources, tools, and managerial support needed for successful execution.

Benefits:

  • Empowers employees to take ownership of their professional growth.
  • Ensures development efforts are aligned with individual and organizational needs.
  • Fosters a culture of continuous learning and improvement.

4. Constructive Feedback Frameworks

Headline: Deliver Impactful Feedback: Guiding Growth with Clarity and Empathy

Body Text:

The art of delivering feedback is critical. Our writer integrates best practices to ensure feedback is always constructive, balanced, and motivating:

  • STAR Method Integration: Guide managers to provide feedback using the Situation, Task, Action, Result (STAR) method for clear, specific examples.
  • Balanced Feedback Structure: Encourage a mix of recognition for achievements and opportunities for improvement, framed positively.
  • Forward-Looking Language: Promote language that focuses on future actions and solutions rather than past failures.
  • Suggested Phrasing & Tone: Offer prompts and examples to help managers articulate feedback effectively and empathetically.
  • Action-Oriented Recommendations: Ensure every piece of feedback is tied to a tangible next step or a learning opportunity.

Benefits:

  • Improves the quality and effectiveness of feedback conversations.
  • Reduces defensiveness and promotes open dialogue.
  • Ensures feedback is understood, accepted, and acted upon.

Who Benefits from the Performance Review Writer?

  • HR Professionals: Standardize processes, ensure compliance, and reduce administrative burden.
  • Team Managers & Leaders: Save time, improve review quality, and become more effective coaches.
  • Employees: Receive clear, actionable feedback that genuinely supports their career development.
  • Organizations: Foster a high-performance culture, improve employee retention, and drive strategic growth.

Ready to Transform Your Performance Reviews?

Stop dreading performance review season and start empowering your team with truly impactful feedback. The Performance Review Writer by PantheraHive is your strategic partner in building a high-performing, engaged, and continuously developing workforce.

Discover how our intelligent solution can streamline your process, enhance feedback quality, and unlock your team's full potential.

Call to Action:

[Request a Free Demo Today] | [Learn More About Our HR Solutions] | [Contact Our Sales Team]

gemini Output

Performance Review Writer: Comprehensive Output Framework

This deliverable provides a robust framework and detailed template for generating comprehensive, professional performance reviews. Designed to streamline the review process, this system ensures consistency, objectivity, and actionable insights across your organization.

1. Introduction and Purpose

The "Performance Review Writer" workflow is engineered to produce high-quality performance reviews by integrating goal assessments, competency ratings, individualized development plans, and a structured approach to constructive feedback. This output serves as a sophisticated tool to:

  • Standardize Reviews: Ensure a consistent evaluation methodology across all employees.
  • Enhance Objectivity: Reduce bias through structured assessments and data-driven insights.
  • Promote Development: Clearly identify strengths and areas for growth, fostering continuous improvement.
  • Improve Efficiency: Automate the drafting process, saving valuable managerial time.
  • Drive Accountability: Link performance directly to organizational goals and individual contributions.

2. Core Components of a Generated Performance Review

Each performance review generated through this system will meticulously cover the following critical areas:

2.1. Goal Assessments

  • Detailed Review of Objectives: Each pre-defined goal for the review period will be assessed individually.
  • Achievement Level: A clear rating (e.g., Exceeds Expectations, Meets Expectations, Partially Meets Expectations, Does Not Meet Expectations) will be provided for each goal.
  • Contextual Commentary: Specific examples, challenges encountered, successes achieved, and contributing factors will be elaborated to support the rating.
  • Quantifiable Results: Emphasis on metrics and data where available to demonstrate impact.
  • Future Goal Alignment: Discussion on how current performance relates to upcoming objectives and strategic priorities.

2.2. Competency Ratings

  • Organizational Competency Framework: Assessment against predefined core competencies relevant to the role and organization (e.g., Communication, Leadership, Problem-Solving, Teamwork, Adaptability, Innovation, Customer Focus).
  • Behavioral Indicators: Specific examples of behaviors demonstrated by the employee that support the given competency rating.
  • Rating Scale: A clear scale will be used (e.g., Expert, Proficient, Developing, Needs Improvement) with definitions to ensure clarity.
  • Impact Analysis: Explanation of how the employee's demonstration of competencies impacts team performance and business outcomes.

2.3. Development Plans

  • Identified Growth Areas: Based on the goal assessments and competency ratings, specific areas where the employee can enhance their skills or knowledge will be highlighted.
  • Actionable Development Activities: Concrete, measurable, and time-bound steps will be outlined, such as:

* Specific training courses or workshops.

* Mentorship opportunities.

* Cross-functional project assignments.

* Self-study resources (books, online courses).

* Shadowing experiences.

  • Required Resources: Identification of any tools, budget, or support needed for successful execution of the development plan.
  • Success Metrics: How progress and successful completion of development activities will be measured and evaluated.

2.4. Constructive Feedback Frameworks

  • Balanced Feedback Approach: Reviews will incorporate a balanced perspective, highlighting both significant strengths and areas requiring improvement.
  • STAR Method Integration: Feedback will often utilize the Situation, Task, Action, Result (STAR) method to provide concrete and contextual examples.
  • Future-Oriented Feedback: Focus on behaviors and actions that can be changed or improved, rather than solely on past events.
  • Actionability: Feedback will be framed to be immediately actionable, linking directly to the development plan.
  • Recognition and Reinforcement: Dedicated sections for acknowledging outstanding contributions and positive behaviors.

3. Standard Structure of a Generated Performance Review

The generated performance review will follow a clear, professional, and easy-to-navigate structure:

  1. Employee Information:

* Employee Name

* Job Title

* Department/Team

* Review Period

* Reviewer Name & Title

* Date of Review

  1. Overall Performance Summary:

* A concise, high-level statement summarizing the employee's overall performance during the review period.

* Highlights key achievements and overarching areas for development.

  1. Section 1: Goal Achievement & Performance Against Objectives:

* Detailed breakdown of each goal, its status, and supporting commentary.

Example Sub-sections:* Goal 1: [Description], Status: [Rating], Comments: [Detailed explanation].

  1. Section 2: Competency Assessment:

* Evaluation of each core competency with specific examples and ratings.

Example Sub-sections:* Competency: [Name], Rating: [Scale], Behavioral Examples: [Specific instances].

  1. Section 3: Strengths, Achievements, and Contributions:

* Recognition of specific accomplishments, positive attributes, and value added to the team/organization.

* Examples of initiative, collaboration, problem-solving, etc.

  1. Section 4: Areas for Development & Constructive Feedback:

* Clear identification of areas where improvement is needed.

* Specific, actionable feedback aligned with the constructive feedback frameworks.

  1. Section 5: Development Plan:

* A structured outline of actionable steps for professional growth, including activities, timelines, and resources.

  1. Section 6: Future Goals & Expectations:

* Discussion of upcoming goals and performance expectations for the next review cycle.

* Alignment with career aspirations and organizational strategy.

  1. Employee Comments (Optional):

* A dedicated space for the employee to provide their perspective, comments, or disagreements with the review.

  1. Signatures:

* Space for Employee, Manager, and HR (if applicable) signatures to acknowledge review discussion.

4. Key Features and Benefits

  • Efficiency & Time-Saving: Drastically reduces the time managers spend drafting reviews, allowing them to focus on feedback and development discussions.
  • Consistency & Fairness: Ensures all employees are evaluated using the same criteria and standards, promoting a fair and equitable review process.
  • Data-Driven Insights: Leverages input data to generate specific, evidence-based feedback, moving beyond generic statements.
  • Actionable Development: Provides concrete steps for improvement, fostering employee growth and skill enhancement.
  • Customizable: The framework is adaptable to various roles, departments, and organizational cultures, ensuring relevance.
  • Comprehensive Coverage: Addresses all essential aspects of performance, from goal attainment to professional development.

5. Customization and Best Practices

To maximize the effectiveness of the generated performance reviews:

  • Provide Detailed Input: The quality of the output directly correlates with the specificity and accuracy of the input data (e.g., job descriptions, previous goals, project outcomes, specific incidents, peer feedback).
  • Review and Personalize: AI-generated content serves as an excellent draft. Managers must review, edit, and personalize the content to reflect their unique relationship with the employee and specific nuances not captured in the initial input.
  • Integrate with Existing Systems: Consider how this output can be integrated into your HRIS or performance management software for seamless record-keeping.
  • Train Managers: Provide guidance to managers on how to effectively deliver the feedback contained in these reviews, focusing on constructive dialogue and future-oriented coaching.
  • Iterative Improvement: Gather feedback on the generated reviews to continuously refine the input parameters and output quality.

6. Actionable Next Steps

To generate your first comprehensive performance review, please provide the following details for the employee being reviewed:

  1. Employee Name and Job Title
  2. Review Period (Start Date - End Date)
  3. Key Goals for the Review Period:

* For each goal: Description, Target/Metric, Actual Result, and any relevant context or obstacles.

  1. Relevant Organizational Competencies:

* For each competency: Provide specific examples of behaviors demonstrated (both positive and areas for improvement).

  1. Specific Achievements or Major Contributions:

* Highlight any significant projects, successes, or initiatives.

  1. Areas for Development/Specific Incidents Requiring Feedback:

* Provide concrete examples (using STAR method if possible) of situations where performance could be improved.

  1. Previous Development Plan Status (if applicable):

* How did the employee progress on prior development goals?

Once this information is provided, the "Performance Review Writer" will generate a detailed, professional draft for your review and personalization.

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