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

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

As a professional AI assistant, I have thoroughly researched the topic of "Performance Review Writer" to lay the groundwork for generating comprehensive, detailed, and professional performance reviews. This initial research identifies the core components, best practices, and critical considerations for an effective performance review process.


Performance Review Writer: Research & Foundational Principles

This document outlines the essential elements and best practices for generating comprehensive performance reviews, focusing on goal assessment, competency ratings, development plans, and constructive feedback.

1. Core Components of a Comprehensive Performance Review

A robust performance review typically includes the following sections to provide a holistic view of an employee's performance and development.

  • Employee Information: Basic details (name, title, department, review period, reviewer name).
  • Overall Performance Summary: A high-level overview of the employee's performance during the review period.
  • Goal Achievement Assessment: Evaluation of progress and outcomes against pre-defined goals.
  • Competency/Skill Assessment: Ratings and commentary on key job-related skills and behaviors.
  • Strengths & Accomplishments: Recognition of areas where the employee excelled.
  • Areas for Development & Improvement: Identification of specific areas requiring growth.
  • Development Plan: Actionable steps for professional growth and skill enhancement.
  • Constructive Feedback: Specific, actionable feedback aimed at improvement.
  • Employee Comments: Section for the employee to provide their perspective.
  • Signatures: Acknowledgment by employee and manager.

2. Goal Achievement Assessment

Evaluating goal achievement requires a structured approach to measure progress and outcomes effectively.

  • SMART Goal Framework: Goals should be Specific, Measurable, Achievable, Relevant, and Time-bound.
  • Performance Metrics (KPIs): Clearly defined Key Performance Indicators or targets associated with each goal.
  • Assessment Scale:

* Exceeded Expectations: Consistently surpassed targets, delivered exceptional results.

* Met Expectations: Achieved all targets, delivered expected results.

* Partially Met Expectations: Made progress but fell short of some targets, requiring further effort.

* Did Not Meet Expectations: Failed to meet most or all targets, significant improvement needed.

  • Evidence-Based Commentary: Provide specific examples and data points to support the assessment for each goal.
  • Impact Analysis: Discuss the positive or negative impact of goal achievement (or lack thereof) on the team, department, or organization.
  • Contextual Factors: Acknowledge any internal or external factors that influenced goal achievement (e.g., resource constraints, market changes).

3. Competency/Skill Assessment

Competency assessment evaluates an employee's proficiency in job-relevant skills and behaviors, often using a standardized rating scale.

  • Common Competency Categories:

* Technical Skills: Job-specific knowledge and abilities (e.g., coding, financial analysis, project management).

* Soft Skills: Interpersonal and personal attributes (e.g., communication, teamwork, problem-solving, adaptability, leadership, initiative, customer focus).

  • Rating Scales (Example 1-5 Scale):

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

* 4 - Meets All Expectations: Consistently demonstrates proficiency; fully effective in this area.

* 3 - Meets Most Expectations: Generally demonstrates proficiency, but with occasional areas for improvement.

* 2 - Needs Development: Requires significant development to meet expectations; inconsistent demonstration of proficiency.

* 1 - Does Not Meet Expectations: Rarely or never demonstrates proficiency; significant concerns in this area.

  • Behavioral Indicators: For each competency, list specific observable behaviors that exemplify different levels of performance. This ensures consistency and objectivity.
  • Specific Examples: Provide concrete examples of how the employee demonstrated (or did not demonstrate) each competency during the review period.

4. Development Plans

A development plan outlines actionable steps for an employee's professional growth and skill enhancement, aligning with both individual aspirations and organizational needs.

  • SMART Development Goals: Clearly defined goals for skill improvement or new skill acquisition.

Example:* "Complete the 'Advanced Project Management' certification by Q3 to enhance large-scale project leadership skills."

  • Actionable Steps: Specific activities to achieve development goals.

Examples:* Online courses, workshops, mentorship, cross-functional projects, job shadowing, reading relevant books/articles, seeking feedback.

  • Resources Required: Identify necessary resources (e.g., training budget, time allocation, access to experts).
  • Timeline: Establish realistic deadlines for each development activity.
  • Support & Accountability: Define how the manager will support the employee and how progress will be tracked.
  • Alignment: Ensure development goals align with career aspirations, current role requirements, and future organizational needs.

5. Constructive Feedback Frameworks

Delivering feedback effectively is crucial for employee growth. Constructive feedback should be specific, actionable, and delivered in a supportive manner.

  • STAR Method:

* Situation: Describe the context.

* Task: Explain the task that was involved.

* Action: Detail the action the employee took.

* Result: Explain the outcome of the action.

Example:* "During the Q2 client presentation (Situation), when you were presenting the new marketing strategy (Task), you spoke very quickly and didn't pause for questions (Action). As a result, several clients looked confused, and we had to spend extra time clarifying points afterwards (Result)."

  • SBI (Situation-Behavior-Impact) Method:

* Situation: When and where it happened.

* Behavior: What the person said or did.

* Impact: The effect of the behavior on you or others.

Example:* "In yesterday's team meeting (Situation), when you interrupted Sarah while she was explaining her proposal (Behavior), it made her visibly uncomfortable, and she seemed less engaged for the rest of the discussion (Impact)."

  • Key Principles for Delivering Feedback:

* Specific: Focus on observable behaviors, not general traits.

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

* Actionable: Suggest specific ways the employee can improve.

* Balanced: Include both positive reinforcement and areas for improvement.

* Forward-Looking: Emphasize future growth and development.

* Objective: Base feedback on facts and observations, not personal opinions.

* Private: Deliver sensitive feedback in a one-on-one setting.

6. Overall Structure and Flow of the Review

A logical flow ensures clarity and readability.

  1. Introduction: Sets the stage, states the review period.
  2. Summary: Provides a concise overview of overall performance.
  3. Performance Details:

* Goal Achievement (with specific examples and ratings)

* Competency Assessment (with specific examples and ratings)

  1. Strengths & Accomplishments: A dedicated section for recognition.
  2. Areas for Development: Clearly stated improvement areas based on assessments.
  3. Development Plan: Outlines the path forward.
  4. Manager Comments: Final thoughts and encouragement from the reviewer.
  5. Employee Comments: Space for the employee's self-reflection and feedback on the review.
  6. Signatures: Formal acknowledgment.

7. Key Considerations for Review Writing

  • Fairness & Objectivity: Base all assessments on observable behaviors and objective data, avoiding personal bias (e.g., recency bias, halo/horn effect).
  • Legal Compliance: Ensure reviews are free from discriminatory language and are consistent with company policies and labor laws. Document performance issues thoroughly.
  • Consistency: Apply review standards consistently across all employees and departments.
  • Tone: Maintain a professional, constructive, and supportive tone throughout. Focus on growth rather than blame.
  • Frequency: Typically annual, but mid-year check-ins or quarterly reviews can provide more timely feedback and support.
  • Confidentiality: Treat all performance review information with the utmost confidentiality.

This research provides a comprehensive foundation for developing a robust "Performance Review Writer" workflow, ensuring that all generated reviews are professional, actionable, and contribute effectively to employee development and organizational success.

gemini Output

Elevate Your Workforce: Unlock Potential with Our Advanced Performance Review Writer

Streamline Your Performance Management with Precision and Insight

In today's dynamic professional landscape, effective performance reviews are more than just an annual formality—they are a crucial driver of employee growth, engagement, and organizational success. Our Performance Review Writer is meticulously designed to transform this critical process from a daunting task into a strategic opportunity.

Say goodbye to generic templates and time-consuming drafting. Our sophisticated AI-powered tool empowers managers and HR professionals to generate comprehensive, detailed, and actionable performance reviews that truly resonate and inspire.


Key Features Designed for Excellence

Our Performance Review Writer integrates essential components to ensure every review is thorough, fair, and forward-looking:

  • 🎯 Goal Assessment & Achievement Tracking:

* Detailed Evaluation: Seamlessly assess an employee's progress and achievements against their pre-defined objectives and KPIs.

* Quantifiable Results: Highlight specific successes with data-driven insights and identify areas where targets were met or exceeded.

* Gap Analysis: Clearly articulate instances where goals were not fully achieved, providing context and actionable paths for improvement.

  • 🌟 Competency Ratings & Behavioral Analysis:

* Standardized Frameworks: Utilize robust, customizable competency models to evaluate critical skills, behaviors, and values relevant to the role and organizational culture.

* Consistent Scoring: Ensure fairness and reduce bias with structured rating scales and descriptive examples for each competency.

* Skill Development Insights: Pinpoint strengths to leverage and areas requiring further development, aligning with career progression.

  • 📈 Personalized Development Plans:

* Actionable Growth Paths: Go beyond mere evaluation by automatically generating tailored development plans.

* Targeted Recommendations: Suggest specific training courses, mentorship opportunities, skill-building exercises, and project assignments.

* Future-Oriented Objectives: Help employees set clear, measurable, and achievable goals for their professional growth in the upcoming review period.

  • 🗣️ Constructive Feedback Frameworks:

* Balanced & Impactful Feedback: Guide managers in delivering feedback that is both appreciative of contributions and candid about areas for improvement.

* Specific Examples: Encourage the use of concrete examples and scenarios to illustrate feedback, making it more digestible and actionable.

* Growth-Oriented Language: Promote a positive and supportive tone, framing challenges as opportunities for learning and development.


Why Choose Our Performance Review Writer?

  • Time-Saving Efficiency: Drastically reduce the hours spent on drafting reviews, allowing managers to focus more on coaching and development.
  • Enhanced Consistency & Fairness: Standardize the review process across your organization, ensuring equitable evaluations and reducing unconscious bias.
  • Improved Employee Engagement: Deliver clear, constructive, and forward-looking feedback that motivates employees and fosters a culture of continuous improvement.
  • Strategic HR Insights: Gain valuable data on workforce performance, identifying trends, training needs, and high-potential individuals.
  • Professional & Polished Output: Generate articulate, well-structured, and grammatically perfect reviews ready for immediate use.

Transform Your Performance Management Today!

Ready to revolutionize how you conduct performance reviews? Empower your managers, engage your employees, and drive unparalleled organizational growth with our intelligent Performance Review Writer.

Get Started Now and Experience the Future of Performance Management!

gemini Output

Professional Performance Review Framework

This document provides a comprehensive, polished, and professionally formatted framework for conducting detailed performance reviews. It integrates goal assessments, competency ratings, development plans, and a structure for delivering constructive feedback, ensuring a thorough and actionable review process. This framework is designed to be easily adaptable and fillable for individual employee performance reviews.


1. Employee and Review Details

  • Employee Name: [Employee Full Name]
  • Employee ID: [Employee ID Number]
  • Job Title: [Employee's Current Job Title]
  • Department: [Employee's Department]
  • Manager/Reviewer Name: [Manager/Reviewer Full Name]
  • Review Period: [Start Date] – [End Date]
  • Date of Review: [Date of Review Meeting]

2. Overall Performance Summary

Provide a holistic assessment of the employee's performance during the review period, highlighting key achievements and overarching areas for development. This section should set the tone for the detailed review that follows.

[Write a concise, objective summary of the employee's overall performance. Example: "During this review period, [Employee Name] consistently demonstrated strong analytical skills and made significant contributions to the [Project Name] project, exceeding expectations in data analysis. While achieving key project milestones, opportunities exist to further enhance proactive communication with cross-functional teams."]


3. Goal Assessment

This section evaluates the employee's progress against their established goals for the review period. Each goal should be assessed individually, noting status, specific contributions, and any factors impacting achievement.

Rating Scale for Goals:

  • Exceeded: Significantly surpassed expectations and targets.
  • Achieved: Met or fully accomplished all stated objectives.
  • Partially Achieved: Made progress towards the goal but did not fully meet all objectives.
  • Not Achieved: Did not meet the goal or made minimal progress.

Goal 1: [Specific Goal Title/Description]

  • Target Date: [Target Completion Date]
  • Status: [Exceeded / Achieved / Partially Achieved / Not Achieved]
  • Manager Comments:

* [Describe specific actions taken by the employee to achieve the goal.]

* [Quantify achievements where possible (e.g., "Increased customer satisfaction by 15%").]

* [Explain any challenges encountered and how they were addressed.]

* [Provide specific examples demonstrating the level of achievement.]

  • Impact: [Describe the positive impact of achieving/exceeding this goal on the team, department, or company.]

Goal 2: [Specific Goal Title/Description]

  • Target Date: [Target Completion Date]
  • Status: [Exceeded / Achieved / Partially Achieved / Not Achieved]
  • Manager Comments:

* [Describe specific actions taken by the employee to achieve the goal.]

* [Quantify achievements where possible.]

* [Explain any challenges encountered and how they were addressed.]

* [Provide specific examples demonstrating the level of achievement.]

  • Impact: [Describe the positive impact of achieving/exceeding this goal on the team, department, or company.]

(Add more Goal sections as needed)


4. Competency Ratings

This section assesses the employee's performance against key professional competencies relevant to their role and the organization's values. Provide specific examples to support each rating.

Rating Scale for Competencies:

  • 1 - Needs Development: Requires significant improvement to meet expectations.
  • 2 - Meets Expectations: Consistently demonstrates the competency at the required level.
  • 3 - Exceeds Expectations: Often performs above the required level, demonstrating strong proficiency.
  • 4 - Outstanding: Consistently performs at an exceptional level, serving as a role model.

4.1. Communication

  • Ability to convey information clearly and effectively, both verbally and in writing; active listening.
  • Rating: [1 / 2 / 3 / 4]
  • Manager Comments & Examples:

* [Specific example of effective communication: "During the Q3 project update, [Employee Name] clearly articulated the project's progress and potential risks to senior leadership, ensuring all stakeholders were well-informed."]

* [Specific example for development: "To enhance communication, [Employee Name] could proactively provide updates on task blockers rather than waiting for inquiries, especially during critical project phases."]


4.2. Teamwork & Collaboration

  • Works effectively with others, contributes to a positive team environment, shares knowledge.
  • Rating: [1 / 2 / 3 / 4]
  • Manager Comments & Examples:

* [Specific example of strong teamwork: "When the X team was understaffed, [Employee Name] volunteered to assist with Y tasks, demonstrating excellent cross-functional collaboration and commitment to team success."]

* [Specific example for development: "Consider actively seeking diverse perspectives from team members during brainstorming sessions to foster broader inclusion and innovation."]


4.3. Problem-Solving & Decision-Making

  • Identifies issues, analyzes situations, develops practical solutions, makes sound judgments.
  • Rating: [1 / 2 / 3 / 4]
  • Manager Comments & Examples:

* [Specific example of effective problem-solving: "When faced with the unexpected system outage, [Employee Name] quickly identified the root cause and implemented a temporary fix, minimizing downtime and business impact."]

* [Specific example for development: "Encourage a more structured approach to problem analysis by documenting potential solutions and their pros/cons before making a final recommendation."]


4.4. Adaptability & Innovation

  • Embraces change, adjusts to new priorities, seeks out new ideas and approaches.
  • Rating: [1 / 2 / 3 / 4]
  • Manager Comments & Examples:

* [Specific example of adaptability: "Despite the sudden shift in project scope, [Employee Name] quickly re-prioritized tasks and adapted their workflow to meet the new requirements without compromising quality."]

* [Specific example for development: "Explore opportunities to propose novel solutions or process improvements, even for routine tasks, to foster a culture of continuous innovation."]


4.5. Technical / Job-Specific Skills

  • Proficiency in the tools, technologies, and methods required for the role.
  • Rating: [1 / 2 / 3 / 4]
  • Manager Comments & Examples:

* [Specific example of strong technical skills: "[Employee Name]'s expertise in [Software/Tool] was critical in optimizing the data processing pipeline, leading to a 20% efficiency gain."]

* [Specific example for development: "To stay current with industry trends, consider completing the advanced certification in [Specific Technology] by next quarter."]


(Add more Competency sections as needed, e.g., Leadership, Customer Focus, Accountability, Strategic Thinking, etc.)


5. Strengths and Areas for Development

This section summarizes the employee's key strengths and identifies specific areas where growth and improvement are encouraged. Provide concrete examples for both.

5.1. Key Strengths

  • [Strength 1]: [Specific example demonstrating this strength. E.g., "Highly detail-oriented: [Employee Name] identified a critical error in the financial report that saved the company significant potential losses."]
  • [Strength 2]: [Specific example demonstrating this strength. E.g., "Strong work ethic: Consistently goes above and beyond to complete tasks, often staying late to ensure deadlines are met, as seen during the recent product launch."]
  • [Strength 3]: [Specific example demonstrating this strength.]

5.2. Areas for Development

  • [Area 1]: [Specific example demonstrating this area for development. E.g., "Proactive Communication: At times, [Employee Name] waits to be prompted for updates on blockers rather than initiating communication with stakeholders, which can cause delays."]
  • [Area 2]: [Specific example demonstrating this area for development. E.g., "Delegation: Tends to take on too many tasks personally rather than delegating, which can lead to workload imbalance and missed opportunities for team development."]
  • [Area 3]: [Specific example demonstrating this area for development.]

6. Development Plan

Outline specific, actionable steps the employee will take to address identified development areas and further enhance their skills. This plan should be collaborative and forward-looking.

| Development Area | Specific Actions (SMART) | Resources/Support Needed (e.g., training, mentor, project) | Target Completion Date | Success Metrics / How Success Will Be Measured |

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

| Proactive Comm. | Schedule weekly 15-min check-ins with key stakeholders. | Manager guidance, template for status updates | [MM/DD/YYYY] | 3+ proactive updates per week; reduced inquiries |

| Delegation | Identify 2 tasks per month for delegation; review with manager. | Mentorship from [Senior Colleague], Delegation workshop | [MM/DD/YYYY] | Successful delegation of 4 tasks in next quarter |

| [Area 3] | [Specific action] | [Resource/Support] | [MM/DD/YYYY] | [Success Metric] |


7. Constructive Feedback Framework (General Principles for Discussion)

The preceding sections provide structured feedback. During the review discussion, remember to apply these principles for effective, constructive communication:

  • Be Specific and Factual: Refer to observable behaviors and specific situations, using the STAR method (Situation, Task, Action, Result) where possible. Avoid generalizations or subjective interpretations.

Example:* Instead of "You're not a team player," say, "During the [Project Name] meeting on [Date], when [Situation], your action of [Action] resulted in [Result], which impacted the team's ability to [Task]."

  • Focus on Impact: Explain the consequences of the employee's actions or behaviors on team goals, projects, or company outcomes.
  • Offer Solutions and Support: Frame feedback as opportunities for growth and provide actionable suggestions for improvement, along with the necessary resources or support.
  • Maintain a Positive and Respectful Tone: Ensure the conversation is collaborative and focused on professional development, not criticism.
  • Encourage Dialogue: Create an open environment for the employee to share their perspective, ask questions, and contribute to their development plan.
  • Future-Oriented: Emphasize how changes in behavior or skill development will benefit the employee's career growth and future contributions to the organization.

8. Employee Comments

This section allows the employee to provide their perspective on their performance, the review itself, and their development plan.

[Employee's written comments and reflections]


9. Signatures

By signing below, the employee and manager acknowledge that this review has been discussed. A signature does not necessarily imply agreement with every statement but confirms participation in the review process.


Employee Signature: _________________________________________

Date: [MM/DD/YYYY]

Manager Signature: _________________________________________

Date: [MM/DD/YYYY]


10. Next Steps and Follow-up

  • Next Check-in Date: [MM/DD/YYYY] (e.g., 30, 60, or 90 days post-review)
  • Key Discussion Points for Follow-up: [e.g., Progress on development plan actions, impact of new skills, review of specific project milestones]
  • Additional Notes: [Any other agreed-upon actions or considerations]
performance_review_writer.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

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

"+slugTitle(pn)+"

Built with PantheraHive BOS

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

"+title+"

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

$1

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

$1

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

$1

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

"); h+="

"+hc+"

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