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

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

As part of the "Performance Review Writer" workflow, this initial research phase focuses on establishing a comprehensive understanding of what constitutes an effective, professional performance review. This foundational knowledge will guide the subsequent steps in generating detailed, actionable, and fair performance assessments.


Research Output: Foundations for a Comprehensive Performance Review Writer

1. Introduction: Purpose of Performance Reviews

Performance reviews are critical tools for employee development, organizational growth, and talent management. Beyond mere assessment, they serve as a structured opportunity to:

  • Communicate Expectations: Clarify roles, responsibilities, and performance standards.
  • Provide Feedback: Offer constructive insights on strengths and areas for improvement.
  • Recognize Achievements: Acknowledge and reward employee contributions.
  • Facilitate Development: Identify training needs and career growth opportunities.
  • Align Goals: Connect individual performance with team and organizational objectives.
  • Support HR Decisions: Provide data for promotions, compensation adjustments, and succession planning.

An effective performance review is a two-way conversation, fostering engagement and a continuous improvement mindset.

2. Core Components of a Comprehensive Performance Review

A robust performance review typically includes the following sections, ensuring a holistic assessment:

2.1. Employee Information & Review Period

  • Employee Name: Full legal name.
  • Job Title: Current official title.
  • Department/Team: Organizational unit.
  • Manager/Reviewer Name: Name and title of the person conducting the review.
  • Review Period: Start and end dates covered by the review.
  • Date of Review: Date the review is completed.

2.2. Goal Achievement & Key Performance Indicators (KPIs) Assessment

  • Objective: Evaluate progress and outcomes against pre-defined goals and KPIs set for the review period.
  • Content:

* List each specific goal/KPI.

* Describe the expected outcome.

* Detail actual results achieved.

* Provide context and contributing factors (both successes and challenges).

* Rating: (e.g., Exceeded Expectations, Met Expectations, Partially Met Expectations, Did Not Meet Expectations).

* Comments: Specific examples and data supporting the rating.

2.3. Competency & Skill Assessment

  • Objective: Assess the employee's proficiency in core competencies and job-specific skills relevant to their role and the organization's values.
  • Content:

* List relevant competencies (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Technical Skills, Customer Focus).

* Provide a definition or behavioral indicators for each competency.

* Rating: (e.g., Strongly Exceeds Expectations, Exceeds Expectations, Meets Expectations, Needs Development, Not Applicable).

* Comments: Specific examples of behaviors demonstrated (or not demonstrated) that support the rating.

2.4. Strengths & Key Contributions

  • Objective: Highlight the employee's most significant positive attributes, accomplishments, and value-added contributions during the review period.
  • Content:

* Identify 2-3 specific strengths.

* Provide concrete examples of how these strengths were demonstrated and their positive impact.

* Mention notable achievements, projects, or initiatives where the employee excelled.

2.5. Areas for Development & Improvement

  • Objective: Identify specific areas where the employee can enhance their performance, skills, or behaviors to meet or exceed expectations.
  • Content:

* Identify 1-2 specific areas requiring development.

* Clearly describe the specific behavior or skill that needs improvement.

* Explain the impact of not addressing this area (e.g., on team, project, personal growth).

* Crucially, frame these as opportunities for growth, not just weaknesses.

2.6. Development Plan & Action Items

  • Objective: Outline a clear, actionable plan to address the identified areas for development.
  • Content:

* Specific Actions: What steps will the employee take? (e.g., training courses, mentorship, stretch assignments, reading material, practice specific behaviors).

* Support from Manager/Organization: What resources or support will be provided?

* Target Dates: Realistic timelines for completion of actions.

* Expected Outcomes: How will success be measured? What will improved performance look like?

2.7. Overall Performance Summary & Rating

  • Objective: Provide a concise summary of the employee's overall performance during the review period, integrating all assessed areas.
  • Content:

* A brief narrative summarizing key achievements, areas of excellence, and significant areas for focus.

* An overall performance rating (e.g., Outstanding, Exceeds Expectations, Meets Expectations, Needs Improvement, Unsatisfactory). This rating should align with the detailed assessments.

2.8. Employee Comments & Acknowledgment

  • Objective: Provide an opportunity for the employee to review the assessment, offer their perspective, and add comments.
  • Content:

* Space for employee's written feedback, agreements, disagreements, or additional context.

* Signatures of both employee and manager to acknowledge the discussion.

3. Key Principles and Best Practices for Effective Performance Reviews

To ensure reviews are fair, motivating, and effective, the following principles should be adhered to:

  • Specificity and Evidence-Based: All feedback, positive or negative, must be supported by concrete examples, observable behaviors, and data (e.g., "You consistently missed project deadlines, specifically on projects X and Y, impacting team delivery by Z days" rather than "You are often late").
  • Objectivity and Fairness: Avoid personal biases. Focus on job-related behaviors and outcomes, not personality traits. Apply consistent standards across all employees.
  • Forward-Looking and Development-Oriented: While reflecting on the past, the primary goal is to foster future growth. Emphasize learning and improvement.
  • Balance: Acknowledge strengths and contributions before discussing areas for improvement. A 3:1 ratio of positive to constructive feedback is often recommended.
  • Timeliness: Reviews should cover a specific period and be delivered promptly after that period concludes to maintain relevance.
  • Clarity and Conciseness: Use clear, professional language. Avoid jargon or overly complex sentences.
  • Actionability: Feedback and development plans must be actionable, providing clear steps the employee can take.
  • Alignment: Ensure reviews align with company values, strategic goals, and the employee's job description.

4. Framework for Constructive Feedback

Delivering constructive feedback effectively is crucial for development. Follow the "SBI" model (Situation, Behavior, Impact):

  • Situation: Describe when and where the behavior occurred. (e.g., "During the team meeting on Tuesday...")
  • Behavior: Describe the specific, observable action or behavior. (e.g., "...you interrupted Sarah twice while she was presenting...")
  • Impact: Explain the effect of the behavior. (e.g., "...which made it difficult for her to articulate her points and for the team to follow her presentation.")

This should be followed by a discussion on desired behavior and a plan for improvement.

5. Considerations for Development Planning

An effective development plan is SMART:

  • Specific: Clearly defined actions.
  • Measurable: Quantifiable outcomes or progress indicators.
  • Achievable: Realistic given resources and time.
  • Relevant: Aligned with job needs and career goals.
  • Time-bound: Has a clear start and end date.

6. Common Pitfalls to Avoid

  • The Recency Effect: Over-emphasizing recent performance over the entire review period.
  • Leniency/Strictness Bias: Being too easy or too harsh on all employees.
  • Halo/Horn Effect: Allowing one outstanding (or poor) trait to overshadow all other performance aspects.
  • Central Tendency: Rating everyone as "average" to avoid conflict.
  • Lack of Preparation: Rushing the review process without sufficient data or examples.
  • Focusing on Personality: Critiquing personality traits instead of observable job behaviors.
  • Surprise Feedback: Delivering negative feedback for the first time during the review; ongoing feedback is key.

7. Conclusion and Next Steps

This comprehensive research provides the foundational knowledge required to generate high-quality performance reviews. The subsequent steps in the "Performance Review Writer" workflow will leverage this understanding to:

  1. Develop AI Prompts and Templates: Create structured prompts that guide the AI in generating content for each section of the performance review based on user input (e.g., employee name, goals, observed behaviors).
  2. Integrate Best Practices: Ensure the generated reviews adhere to principles of specificity, objectivity, forward-looking orientation, and actionable feedback.
  3. Facilitate Customization: Allow users to input specific details, examples, and company-specific competencies to tailor the reviews.

This initial research ensures that the "Performance Review Writer" tool will produce outputs that are not only detailed and professional but also aligned with best practices for effective talent management and employee development.

gemini Output

We're thrilled to present the PantheraHive Performance Review Framework, a comprehensive and meticulously designed system engineered to foster employee growth, enhance productivity, and align individual contributions with organizational objectives. This framework moves beyond traditional evaluations, offering a holistic view of performance, potential, and professional development.


Elevating Performance: A Strategic Approach to Employee Development

In today's dynamic professional landscape, effective performance management is more than just an annual check-in; it's a continuous journey of growth, feedback, and strategic alignment. Our "Performance Review Writer" delivers a robust, detailed, and actionable framework designed to empower both managers and employees, transforming reviews into powerful tools for development and success.

This comprehensive template provides a structured approach to assessing goal achievement, evaluating core competencies, outlining clear development pathways, and delivering impactful, constructive feedback. It’s built to ensure clarity, fairness, and a forward-looking perspective, driving sustained excellence across your organization.


Comprehensive Performance Review Template

Employee Name: [Employee Name]

Employee ID: [Employee ID]

Position Title: [Position Title]

Department: [Department]

Manager Name: [Manager Name]

Review Period: [Start Date][End Date]

Date of Review: [Date]


Overall Performance Summary

Provide a high-level summary of the employee's performance during the review period, highlighting key strengths, significant achievements, and primary areas for development. This section should offer a concise overview before diving into the details.

[Manager's Summary Text]


Section 1: Strategic Impact & Goal Attainment

This section evaluates the employee's success in achieving pre-defined goals and objectives, assessing both the outcomes and the impact on team and organizational success.

Rating Scale for Goal Attainment:

  • 5 - Exceeds Expectations: Consistently achieved and often surpassed all objectives, demonstrating exceptional initiative and impact.
  • 4 - Meets All Expectations: Consistently achieved all objectives, delivering high-quality results.
  • 3 - Partially Meets Expectations: Achieved some objectives but fell short on others; requires some improvement.
  • 2 - Needs Improvement: Failed to meet most objectives; significant improvement required.
  • 1 - Does Not Meet Expectations: Consistently failed to meet objectives; performance is a serious concern.

Goal 1: [Goal Description/Title]

  • Target/Objective: [Specific, Measurable, Achievable, Relevant, Time-bound (SMART) objective]
  • Actual Outcome & Impact: [Describe the actual results achieved and their impact on the team/organization.]
  • Challenges Faced: [Any obstacles encountered and how they were addressed.]
  • Manager Rating: [Select 1-5]
  • Manager Comments: [Detailed feedback on goal achievement, including specific examples and data points.]

Goal 2: [Goal Description/Title]

  • Target/Objective: [SMART objective]
  • Actual Outcome & Impact: [Describe the actual results achieved and their impact.]
  • Challenges Faced: [Any obstacles encountered and how they were addressed.]
  • Manager Rating: [Select 1-5]
  • Manager Comments: [Detailed feedback on goal achievement.]

Add additional goal sections as needed.


Section 2: Cultivating Excellence: Competency Assessment

This section evaluates the employee's performance against core competencies essential for their role and the organization's success.

Rating Scale for Competencies:

  • 5 - Role Model: Consistently demonstrates exceptional proficiency, setting a standard for others.
  • 4 - Proficient: Consistently meets and often exceeds expectations in this competency.
  • 3 - Developing: Generally meets expectations but has areas for further development.
  • 2 - Needs Development: Requires significant improvement to meet expectations in this competency.
  • 1 - Not Demonstrating: Consistently fails to meet expectations; requires immediate attention.

1. Communication

  • Ability to convey information clearly, listen effectively, and engage in constructive dialogue.
  • Manager Rating: [Select 1-5]
  • Specific Examples/Observations: [Provide instances where the employee demonstrated strong or weak communication.]

2. Teamwork & Collaboration

  • Ability to work effectively with colleagues, contribute to team goals, and build positive relationships.
  • Manager Rating: [Select 1-5]
  • Specific Examples/Observations: [Provide instances of collaboration, conflict resolution, or contribution to team success.]

3. Problem-Solving & Decision-Making

  • Ability to identify issues, analyze situations, develop solutions, and make sound decisions.
  • Manager Rating: [Select 1-5]
  • Specific Examples/Observations: [Provide examples of challenges faced and how the employee approached them.]

4. Adaptability & Innovation

  • Ability to adjust to change, learn new skills, embrace new ideas, and contribute creative solutions.
  • Manager Rating: [Select 1-5]
  • Specific Examples/Observations: [Provide examples of adapting to new processes, technologies, or market changes.]

5. Technical Skills / Job Knowledge

  • Proficiency in the specific tools, technologies, and knowledge required for the role.
  • Manager Rating: [Select 1-5]
  • Specific Examples/Observations: [Provide examples of expertise demonstrated or areas needing skill enhancement.]

Add additional relevant competencies as needed (e.g., Leadership, Customer Focus, Accountability, Initiative).


Section 3: Pathway to Potential: Development Planning

This section outlines the employee's strengths and identifies areas for future growth, establishing a clear development plan for the upcoming period.

1. Key Strengths

  • What are the employee's most significant strengths and how do they contribute to success?
  • [List 2-3 key strengths with examples]

2. Areas for Development

  • What specific skills or competencies could be enhanced to improve performance or prepare for future roles?
  • [List 1-2 primary areas for development]

3. Development Goals

  • Specific, measurable goals for professional growth, linked to identified areas for development.
  • Development Goal 1: [e.g., "Improve public speaking skills to confidently present project updates to senior leadership."]
  • Development Goal 2: [e.g., "Deepen understanding of advanced data analytics tools to enhance reporting efficiency."]

4. Action Plan & Resources

  • What specific actions will be taken to achieve the development goals, and what resources will be provided?
  • Action Plan for Goal 1:

* [e.g., Enroll in "Effective Presentation Skills" workshop by Q3.]

* [e.g., Seek opportunities to present at team meetings weekly.]

* Resources: [e.g., Training budget, mentorship from Manager X]

  • Action Plan for Goal 2:

* [e.g., Complete online course "Advanced Data Analytics" by Q4.]

* [e.g., Apply new skills to current project reports under guidance.]

* Resources: [e.g., Access to online learning platform, dedicated time for learning]

5. Target Completion Date: [Date]


Section 4: Constructive Dialogue & Forward Momentum

This section provides a space for open communication, allowing both the manager and employee to share perspectives and align on future direction.

1. Manager's Constructive Feedback

  • Provide specific, actionable feedback on areas for improvement. Focus on behaviors and impact, not personal traits. Frame feedback in a supportive, forward-looking manner.
  • [Manager's detailed feedback, including specific examples and suggestions for improvement.]

2. Employee's Self-Assessment & Comments

  • What does the employee believe are their biggest accomplishments and challenges during this period? What are their career aspirations?
  • [Employee's written comments on their performance, achievements, challenges, and future goals.]

3. Employee's Aspirations & Career Path

  • Discussion points regarding the employee's long-term career goals within the organization and how the company can support their journey.
  • [Discussion summary and agreed-upon next steps for career development.]

Section 5: Holistic Review & Strategic Recommendations

Overall Performance Rating:

  • Exceeds Expectations: Consistently surpasses all performance standards and contributes significantly to organizational success.
  • Meets All Expectations: Fully meets and often exceeds all performance standards, consistently delivering high-quality work.
  • Partially Meets Expectations: Meets some performance standards but falls short in other key areas, requiring improvement.
  • Needs Improvement: Consistently fails to meet performance standards in critical areas; significant intervention required.
  • Does Not Meet Expectations: Performance is consistently below acceptable standards and does not meet job requirements.

Overall Rating: [Select One]

Key Takeaways & Recommendations for the Next Period:

  • Summarize the most important points from the review and outline key recommendations for the employee's continued success and development in the upcoming review cycle.
  • [Manager's final summary and recommendations]

Signatures & Acknowledgment

By signing below, the employee acknowledges receipt and discussion of this performance review. This signature does not necessarily imply agreement with the entire content of the review.

Employee Signature: _________________________

Date: _________________________

Manager Signature: _________________________

Date: _________________________

HR Representative Signature (Optional): _________________________

Date: _________________________


Ready to Transform Your Performance Reviews?

This detailed framework provides the foundation for meaningful, impactful performance discussions. By leveraging this structure, you can cultivate a culture of continuous improvement, clear communication, and elevated employee engagement.

Unlock the full potential of your team today!


gemini Output

This document provides a comprehensive, detailed, and professional framework for generating performance reviews. It outlines the essential components, recommended structures, and best practices to ensure reviews are thorough, fair, actionable, and contribute effectively to employee development and organizational goals.


1. Performance Review Template Structure

This section details the standard components of a professional performance review, complete with prompts and examples for each.

1.1. Employee & Review Period Information

  • Employee Name: [First Name Last Name]
  • Employee ID: [ID Number]
  • Job Title: [Job Title]
  • Department: [Department Name]
  • Manager Name: [Manager's First Name Last Name]
  • Review Period: [Start Date] – [End Date]
  • Date of Review: [Date]

1.2. Overall Performance Summary

A concise paragraph summarizing the employee's overall performance during the review period. Highlight key achievements, general standing, and overall contribution.

  • Prompt: "Provide a high-level overview of [Employee Name]'s performance, noting their most significant contributions, general trajectory, and alignment with company values during the review period."
  • Example: "During this review period, [Employee Name] consistently demonstrated strong analytical skills and a proactive approach to problem-solving. They were a key contributor to the successful launch of Project Alpha, exceeding initial expectations. While their technical expertise is commendable, there is an opportunity to enhance cross-functional communication."

1.3. Goal Achievement Assessment

For each pre-defined goal from the review period, provide a detailed assessment.

| Goal Description | Target/Metric | Actual Outcome | Assessment & Evidence | Impact |

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

| Goal 1: Reduce average customer response time. | Decrease average response time by 15% (from 48h to 41h). | Achieved a 20% reduction, bringing average time to 38h. | Exceeded Expectations. [Employee Name] implemented a new ticketing prioritization system and trained junior team members, resulting in faster resolution times. Data shows a consistent improvement trend, with 85% of tickets now resolved within 24 hours, compared to 60% previously. | Significantly improved customer satisfaction scores (up 10%) and reduced backlog by 25%. This directly contributed to positive customer feedback and strengthened client relationships. |

| Goal 2: Complete 'Project Beta' on schedule. | Deliver all project milestones by [Date]. | All milestones delivered, 2 weeks ahead of schedule. | Exceeded Expectations. [Employee Name] took initiative to streamline the workflow by introducing agile methodologies, which significantly accelerated progress. Their proactive risk management prevented potential delays, and they effectively coordinated contributions from multiple stakeholders. | The early completion of Project Beta allowed for earlier market entry, providing a competitive advantage and generating revenue sooner than projected. It also freed up team resources for other critical initiatives, demonstrating excellent project management and strategic thinking. |

| Goal 3: Attend 2 professional development courses. | Complete 'Advanced Data Analytics' and 'Leadership Fundamentals' courses. | Completed 'Advanced Data Analytics'. Did not complete 'Leadership Fundamentals'. | Partially Met Expectations. [Employee Name] successfully completed the analytics course and applied new skills to improve reporting efficiency. However, they were unable to attend the leadership course due to conflicting project deadlines. | The acquired analytics skills have already led to more insightful reports. Missing the leadership course means a continued need for development in team guidance and delegation, which will be addressed in the development plan. |

1.4. Competency & Skill Evaluation

Evaluate the employee against a set of core competencies relevant to their role and the company culture.

Rating Scale:

  • 5 - Exceeds Expectations: Consistently performs significantly above the required standard; serves as a role model; exceptional contribution.
  • 4 - Meets Expectations: Consistently performs at or above the required standard; strong contributor; reliable and effective.
  • 3 - Partially Meets Expectations: Meets some, but not all, aspects of the standard; requires development in specific areas to reach full potential.
  • 2 - Needs Improvement: Frequently falls short of the required standard; significant development needed; performance negatively impacts team/results.
  • 1 - Does Not Meet Expectations: Consistently fails to meet basic requirements; urgent intervention and support needed; severe impact on team/results.

| Competency | Rating | Specific Examples / Comments |

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

| Job Knowledge & Expertise | 5 | Demonstrates an exceptional depth of knowledge in [specific area, e.g., market analysis techniques] and is frequently sought out by peers for guidance. Proactively stays updated on industry trends and applies new insights to their work, as evidenced by their proposal for the new AI-driven reporting tool. |

| Quality of Work | 4 | Produces high-quality, accurate, and thorough work products consistently. Reports are well-researched and presented clearly. On one occasion, a minor error was found in a presentation, but it was quickly corrected. Overall, output is reliable and meets all professional standards. |

| Productivity & Efficiency | 4 | Effectively manages multiple priorities and consistently meets deadlines. [Employee Name] optimized their workflow for data processing, reducing turnaround time by 15%. Occasionally, they take on too many tasks, leading to slight delays, but generally manages workload very well. |

| Communication (Written & Verbal) | 3 | Communicates clearly in written reports and emails. However, verbal communication in team meetings can sometimes lack conciseness, leading to longer discussions than necessary. There's an opportunity to improve active listening skills and to structure verbal arguments more effectively to convey points succinctly. |

| Teamwork & Collaboration | 4 | Actively collaborates with team members, offering support and sharing knowledge. Played a crucial role in fostering a positive team environment during the high-pressure Project Alpha. Occasionally, could be more proactive in seeking input from other departments to ensure broader alignment on cross-functional initiatives. |

| Initiative & Proactiveness | 5 | Consistently identifies opportunities for improvement and takes action without being prompted. Spearheaded the initiative to automate the monthly reporting process, saving the team an estimated 10 hours per month. Always looking for ways to add value and drive innovation. |

| Problem-Solving & Decision-Making | 4 | Demonstrates strong analytical skills to identify root causes of problems and proposes well-reasoned solutions. Made a critical decision during a system outage that minimized downtime and data loss. Could benefit from involving a wider range of stakeholders in complex decision-making processes to gain diverse perspectives. |

| Adaptability & Flexibility | 4 | Adapts well to changing priorities and new technologies. Quickly learned the new CRM system and effectively trained peers. Showed flexibility when the scope of Project Alpha changed mid-way, adjusting plans efficiently. |

| Leadership (if applicable) | 3 | While [Employee Name] shows potential in guiding others and has informally mentored junior colleagues effectively, there is room for growth in formal delegation and providing constructive feedback to peers. Opportunities to lead small project groups would further develop these skills. |

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