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

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

As a professional AI assistant, I have thoroughly researched the topic of "Performance Review Writer" to lay the groundwork for generating comprehensive and effective performance reviews. This research focuses on the core components and best practices essential for creating detailed, actionable, and fair assessments.


Research Output: Comprehensive Performance Review Framework

This document outlines the foundational elements and best practices for developing high-quality performance reviews, encompassing goal assessment, competency ratings, development planning, and constructive feedback.

1. Introduction to Performance Reviews

A performance review is a formal assessment of an employee's work performance over a specific period. Its primary purposes are to:

  • Evaluate Past Performance: Assess achievements against goals and job responsibilities.
  • Recognize Strengths: Acknowledge and reinforce positive contributions.
  • Identify Areas for Development: Pinpoint specific skills or behaviors that need improvement.
  • Facilitate Growth: Guide employees toward professional development and career advancement.
  • Align Expectations: Ensure employee efforts are aligned with organizational objectives.
  • Inform Decisions: Provide data for compensation adjustments, promotions, and succession planning.

Effective performance reviews are continuous, objective, and forward-looking, serving as a critical tool for employee engagement and organizational success.

2. Key Components of a Comprehensive Performance Review

2.1. Goal Assessment

Objective: To evaluate an employee's progress and success in achieving pre-defined goals set for the review period.

Methodology:

  • SMART Goals: Goals should ideally be Specific, Measurable, Achievable, Relevant, and Time-bound.
  • Tracking: Reference documented goals and regular check-ins.

Evaluation Criteria & Structure:

  • Goal Statement: Clearly state the original goal.
  • Expected Outcome: What success looked like.
  • Actual Outcome/Progress: Describe the results achieved or the progress made. Provide specific data, metrics, or examples.
  • Analysis of Achievement:

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

* Met Expectations: Fully achieved all aspects of the goal, delivered expected results.

* Partially Met Expectations: Made significant progress but did not fully achieve all aspects, or faced unforeseen challenges.

* Did Not Meet Expectations: Little to no progress, or significant deviation from the goal.

  • Contributing Factors: Briefly explain reasons for achievement or non-achievement (e.g., resource constraints, exceptional effort, shifting priorities).
  • Impact: How the achievement (or lack thereof) affected the team, department, or organization.
  • Future Implications: Link to new goals or continued focus areas for the next period.

Actionable Insight: Always back up assessments with concrete examples and data. Avoid vague statements.

2.2. Competency Ratings

Objective: To assess an employee's demonstration of core skills, behaviors, and attributes crucial for their role and the organization's culture.

Definition of Competencies: These are typically defined by the organization and may include:

  • Core Competencies: (e.g., Communication, Teamwork, Adaptability, Problem-Solving, Customer Focus).
  • Leadership Competencies: (e.g., Strategic Thinking, Developing Others, Decision Making, Vision).
  • Technical/Functional Competencies: (e.g., Software Proficiency, Project Management, Data Analysis).

Rating Scales (Examples):

  • 5-Point Scale:

1. Needs Development: Rarely demonstrates the competency; significant improvement required.

2. Developing: Inconsistently demonstrates the competency; requires frequent guidance.

3. Proficient/Meets Expectations: Consistently demonstrates the competency effectively.

4. Strong/Exceeds Expectations: Consistently demonstrates the competency at a high level; often mentors others.

5. Outstanding: Serves as a role model; exceptional demonstration, significantly impacts others.

  • 3-Point Scale:

* Developing: Requires focus and improvement.

* Proficient: Consistently demonstrates required skills.

* Strong: Consistently demonstrates advanced skills.

Structure for Each Competency:

  • Competency Name: (e.g., "Communication")
  • Definition: Brief description of what the competency entails.
  • Rating: Select the appropriate rating based on observation.
  • Supporting Comments/Examples: Provide specific examples of behaviors observed (both positive and areas for improvement) that justify the rating. Use the STAR (Situation, Task, Action, Result) or SBI (Situation, Behavior, Impact) framework for examples.
  • Development Suggestions: Briefly note potential areas for growth within this competency.

Actionable Insight: Focus on observable behaviors, not personality traits. Provide a balance of strengths and areas for improvement.

2.3. Development Plans

Objective: To outline specific, actionable strategies and resources for an employee's professional growth and skill enhancement, aligned with their career aspirations and organizational needs.

Key Components of a Robust Development Plan:

  • Identified Development Area: Clearly state the specific skill, competency, or knowledge gap to be addressed (e.g., "Improve presentation skills," "Enhance data analysis proficiency"). This should ideally stem from the goal assessment and competency ratings.
  • Specific Learning Objectives: What the employee will learn or be able to do upon completion (e.g., "Be able to deliver a 15-minute presentation to senior leadership with confidence," "Independently analyze large datasets and draw actionable conclusions").
  • Action Steps/Activities: Concrete actions the employee will take. Examples include:

* Formal Training: Courses, workshops, certifications.

* Mentorship/Coaching: Working with a senior colleague or external coach.

* On-the-Job Learning: Taking on new projects, shadowing, cross-functional assignments.

* Self-Study: Books, articles, online tutorials.

* Practice: Deliberate practice of the skill in a safe environment.

  • Resources Needed: Any support, tools, budget, or time off required (e.g., "Access to LinkedIn Learning," "Budget for external conference," "Dedicated time for project X").
  • Timeline: Realistic start and completion dates for each action step.
  • Success Metrics/Measures of Progress: How will success be measured? What indicators will show improvement? (e.g., "Positive feedback from presentation attendees," "Successful completion of data analysis project," "Certification obtained").
  • Review/Follow-up Dates: Schedule check-ins to monitor progress.

Actionable Insight: Development plans should be collaborative, with input from both the employee and manager. They should be realistic and integrated into the employee's regular work.

2.4. Constructive Feedback Frameworks

Objective: To provide feedback that is specific, actionable, and focused on growth, fostering a positive environment for improvement.

Principles of Effective Feedback:

  • Specific: Focus on observable behaviors and concrete situations, not generalizations or personal traits.
  • Timely: Deliver feedback as close to the event as possible to maximize impact.
  • Actionable: Clearly indicate what the employee can do differently in the future.
  • Balanced: Include both positive reinforcement (strengths) and areas for improvement.
  • Forward-Looking: Emphasize future growth and development.
  • Private: Deliver feedback in a one-on-one setting.
  • Two-Way: Allow the employee to respond, ask questions, and share their perspective.

Recommended Frameworks for Delivering Feedback:

  1. SBI (Situation-Behavior-Impact):

* Situation: Describe the specific time and place. "During last week's team meeting..."

* Behavior: Describe the observable action. "...you interrupted Sarah while she was presenting..."

* Impact: Explain the effect of the behavior. "...which made her visibly uncomfortable and disrupted the flow of her presentation."

* Desired Outcome/Suggestion: "In the future, please let colleagues finish their thoughts before interjecting."

  1. STAR (Situation-Task-Action-Result): Primarily used for describing past performance (positive or negative) to provide context.

* Situation: "When we were facing the critical deadline for Project X..."

* Task: "...your task was to finalize the client report."

* Action: "...you proactively stayed late, collaborated with the design team, and double-checked all data."

* Result: "...As a result, we submitted a flawless report ahead of schedule, impressing the client."

  1. "I Like, I Wish, I Wonder" (For collaborative feedback):

* I Like: "I like how you always bring positive energy to our morning stand-ups."

* I Wish: "I wish we could explore more diverse solutions before settling on the first idea."

* I Wonder: "I wonder if there's a way we could streamline the reporting process to save time."

Frameworks to Use with Caution/Avoid:

  • Feedback Sandwich: Starting with positive, inserting negative, ending with positive. Often perceived as insincere and can dilute the constructive message. Better to be direct and balanced.

Actionable Insight: Prioritize clarity and empathy. Frame feedback as an opportunity for growth, not a personal attack.

3. General Principles for Writing Effective Performance Reviews

  • Objectivity & Evidence-Based: Rely on facts, data, and specific examples rather than assumptions, hearsay, or personal biases.
  • Fairness & Consistency: Apply standards consistently across all employees in similar roles.
  • Clarity & Conciseness: Use clear, professional, and unambiguous language. Avoid jargon where possible.
  • Balance: Acknowledge both strengths and areas requiring improvement. A solely negative or positive review is often unhelpful.
  • Forward-Looking Perspective: Emphasize future development and contributions, not just past mistakes.
  • Professional Tone: Maintain a respectful, constructive, and empathetic tone throughout the review.
  • Self-Reflection Integration: Encourage employees to complete a self-assessment first, which can inform the manager's review.
  • Regularity: Performance reviews are most effective when part of an ongoing dialogue, not an annual surprise.

4. Structure of a Typical Performance Review Document

A well-structured performance review document typically includes the following sections:

  1. Employee Information:

* Employee Name, Title, Department

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

* Reviewer Name, Title

* Date of Review Meeting

  1. Overall Performance Summary:

* A concise executive summary of the employee's performance during the period, highlighting key achievements and overall standing.

  1. Goal Achievement Assessment:

* Detailed evaluation for each individual goal, as outlined in Section 2.1.

  1. Competency Assessment:

* Detailed evaluation for each core and role-specific competency, as outlined in Section 2.2.

  1. Key Strengths:

* Highlight 2-3 significant strengths with specific examples, reinforcing positive behaviors and contributions.

  1. Areas for Development/Improvement:

* Identify 2-3 specific areas where the employee needs to grow or improve, linking back to goal assessments or competency ratings.

  1. Development Plan:

* A detailed plan outlining objectives, actions, resources, and timelines for addressing the identified development areas, as outlined in Section 2.3.

  1. Future Goals:

* Outline the key goals and objectives for the employee for the upcoming review period.

  1. **Employee Comments/Self-Assessment
gemini Output

Unlock Peak Performance: Revolutionize Your Reviews with Our AI-Powered Performance Review Writer

Elevate your performance management process from a daunting annual task to a strategic driver of growth and development. Our advanced AI-powered Performance Review Writer is meticulously designed to generate comprehensive, insightful, and actionable performance reviews that empower both managers and employees. Say goodbye to generic feedback and inconsistent evaluations; embrace a future of clarity, fairness, and accelerated professional development.


Why Choose Our AI Performance Review Writer?

In today's dynamic work environment, effective performance reviews are crucial for employee engagement, retention, and organizational success. However, crafting detailed, objective, and growth-oriented reviews can be time-consuming and challenging. Our solution addresses these pain points by:

  • Saving Time & Effort: Automate the drafting process, freeing up valuable time for strategic initiatives.
  • Ensuring Consistency & Fairness: Standardize evaluation criteria and feedback across your organization.
  • Enhancing Feedback Quality: Generate clear, constructive, and actionable feedback that drives improvement.
  • Fostering Employee Growth: Provide personalized development plans tailored to individual needs and career aspirations.
  • Aligning Performance with Business Goals: Connect individual contributions directly to organizational objectives.

Core Components of Your Comprehensive Performance Review

Our AI Performance Review Writer integrates seamlessly into your workflow, providing a robust framework for every aspect of a world-class performance review.

1. Data-Driven Goal Assessments: Quantify Achievement, Identify Gaps

Transform subjective observations into objective evaluations of goal attainment. Our system empowers you to accurately assess employee progress against established objectives, providing a clear picture of successes and areas requiring attention.

  • Smart Goal Integration: Input specific, measurable, achievable, relevant, and time-bound (SMART) goals and track their status.
  • Progress Tracking & Analysis: Evaluate milestones, project completion rates, and key performance indicators (KPIs) against targets.
  • AI-Powered Insights: Receive generated summaries of goal achievement, highlighting where targets were met, exceeded, or missed, along with potential contributing factors.
  • Performance vs. Expectation: Clearly articulate the gap or alignment between actual performance and initial expectations, providing context for feedback.

2. Standardized Competency Ratings: Holistic Skill Evaluation

Gain a consistent and comprehensive understanding of employee competencies across your organization. Our writer facilitates fair and objective ratings of essential skills and behaviors, ensuring a holistic view of each employee's capabilities.

  • Customizable Competency Frameworks: Adapt to your organization's unique values and skill requirements (e.g., communication, teamwork, leadership, problem-solving, adaptability).
  • Scalable Rating Systems: Utilize industry-standard or custom-defined rating scales (e.g., 1-5, Meets/Exceeds Expectations) for consistent evaluation.
  • Behavioral Evidence Integration: Prompt reviewers to provide specific examples and behavioral evidence to support ratings, enhancing objectivity and reducing bias.
  • Strength & Development Area Identification: Automatically highlight an employee's core strengths and pinpoint specific competencies that require further development.

3. Personalized Development Plans: Charting a Course for Growth

Move beyond mere feedback to actionable growth strategies. Our AI crafts tailored development plans that empower employees to build on their strengths and address areas for improvement, fostering continuous learning and career progression.

  • Gap Analysis to Action: Based on goal assessments and competency ratings, the system identifies key development opportunities.
  • Targeted Learning Recommendations: Suggests specific training courses, workshops, certifications, mentorship programs, or experiential learning opportunities.
  • SMART Development Goals: Helps define clear, measurable, and time-bound objectives for personal and professional growth.
  • Resource Allocation & Tracking: Facilitates the outlining of resources needed and a timeline for achieving development milestones.

4. Constructive Feedback Frameworks: Empowering Growth Conversations

Turn difficult conversations into opportunities for positive change. Our writer integrates best-practice feedback methodologies to ensure that all feedback is impactful, respectful, and future-focused.

  • Situation-Behavior-Impact (SBI) Model: Structures feedback by detailing the specific situation, observed behavior, and its impact, making it clear and objective.
  • STAR Method for Achievements & Challenges: Guides reviewers to articulate accomplishments and areas for improvement using the Situation, Task, Action, Result framework.
  • Future-Oriented Language: Promotes forward-looking suggestions and coaching instead of dwelling on past mistakes, fostering a growth mindset.
  • Balanced Feedback Approach: Ensures a healthy balance between recognizing achievements and providing constructive criticism, maintaining motivation and engagement.
  • Actionable Recommendations: Provides concrete steps and suggestions for employees to implement based on the feedback received.

Key Benefits for Your Organization

  • Enhanced Manager Efficiency: Drastically reduces the time spent drafting reviews, allowing managers to focus on coaching and team leadership.
  • Improved Employee Engagement: Employees receive clear, fair, and actionable feedback, leading to higher motivation and a sense of value.
  • Strategic Workforce Development: Proactively identifies skill gaps and builds a more capable, future-ready workforce.
  • Compliance & Consistency: Ensures reviews adhere to organizational standards and legal requirements, reducing potential liabilities.
  • Data-Driven Decision Making: Provides insights into overall team and individual performance trends, informing talent management strategies.

Ready to Transform Your Performance Reviews?

Stop dreading performance review season and start leveraging it as a powerful tool for organizational success. Our AI-powered Performance Review Writer is your partner in building a high-performance culture rooted in clear communication, continuous development, and fair evaluation.

Elevate your team's potential. Drive unparalleled growth.

[Get Started Today & Request a Demo]

gemini Output

Performance Review Writer: Comprehensive Output Deliverable

This document outlines the detailed, professional output generated by the "Performance Review Writer" workflow. Our aim is to provide a structured, actionable, and comprehensive performance review framework that supports fair evaluation, fosters employee development, and aligns individual contributions with organizational goals.


1. Introduction: The Professional Performance Review Framework

The "Performance Review Writer" is designed to produce a complete and nuanced assessment of an employee's performance over a specified period. It integrates various critical components, ensuring a holistic view of an individual's contributions, growth, and potential. Each review is meticulously structured to provide clear insights for both the employee and the manager, facilitating productive discussions and strategic development planning.


2. Core Components of a Generated Performance Review

Each performance review generated will adhere to the following comprehensive structure, ensuring all critical aspects of an employee's performance are addressed:

2.1. Employee & Review Period Information

  • Employee Name: [Placeholder for Employee Name]
  • Employee ID: [Placeholder for Employee ID]
  • Job Title: [Placeholder for Job Title]
  • Department: [Placeholder for Department]
  • Manager Name: [Placeholder for Manager Name]
  • Review Period: [Start Date] – [End Date]
  • Date of Review: [Date]

2.2. Overall Performance Summary & Rating

A concise, executive summary of the employee's performance during the review period, highlighting key themes and overall contribution.

  • Overall Performance Summary: A paragraph summarizing the employee's general performance, key strengths, and areas for focus.
  • Overall Performance Rating:

* Rating Scale: (e.g., Exceeds Expectations, Meets Expectations, Partially Meets Expectations, Needs Development)

* Selected Rating: [Placeholder for Overall Rating]

2.3. Goal Assessment & Achievement

Detailed evaluation of progress and achievement against pre-defined individual goals.

  • For Each Goal:

* Goal Description: Clear statement of the goal.

* Target/Metric: Specific, measurable target associated with the goal.

* Actual Result/Achievement: Documented outcome or progress made.

* Analysis & Impact: Discussion of factors contributing to success or challenges encountered, and the impact of the achievement (or lack thereof) on team/organizational objectives.

* Goal Rating: (e.g., Fully Achieved, Substantially Achieved, Partially Achieved, Not Achieved)

2.4. Competency Ratings & Behavioral Feedback

Assessment of key competencies and behavioral indicators relevant to the role and organizational values.

  • For Each Core Competency (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Technical Proficiency, Innovation):

* Competency Definition: Brief explanation of the competency.

* Rating Scale: (e.g., 5-point scale: Novice, Developing, Proficient, Advanced, Expert)

* Selected Rating: [Placeholder for Competency Rating]

* Behavioral Examples & Feedback:

* Strengths: Specific instances or patterns of behavior demonstrating the competency effectively.

* Areas for Improvement: Specific instances or patterns where the competency could be strengthened, providing concrete examples.

2.5. Strengths & Key Achievements

A dedicated section highlighting the employee's primary strengths and most significant accomplishments during the review period.

  • Key Strengths:

* [Example: "Exceptional analytical skills, consistently providing data-driven insights."]

* [Example: "Proactive approach to problem-solving, often anticipating issues before they escalate."]

  • Major Achievements:

* [Example: "Successfully led Project X, resulting in a 15% increase in efficiency."]

* [Example: "Developed and implemented a new training module, improving team onboarding time by 20%."]

* [Example: "Consistently exceeded sales targets by an average of 10% each quarter."]

2.6. Areas for Development & Constructive Feedback Framework

Identifies specific areas where the employee can grow and improve, accompanied by constructive feedback designed to guide development.

  • For Each Area for Development (2-3 key areas recommended):

* Specific Behavior/Situation: Clearly describe the observed behavior or situation needing improvement.

* Impact: Explain the negative impact of this behavior on the employee, team, or organization.

* Desired Outcome: Describe the preferred behavior or outcome.

* Actionable Suggestion: Provide concrete, actionable steps or strategies the employee can take to improve.

Example:*

Area:* "Time Management and Prioritization"

Behavior:* "On several occasions, deadlines for critical tasks (e.g., Q3 report, client proposal) were missed or required last-minute intervention."

Impact:* "This led to increased stress for the team, delayed client communication, and negatively impacted overall project timelines."

Desired Outcome:* "We need to ensure all deadlines are met consistently, with sufficient time for review and quality assurance."

Suggestion:* "Implement a robust task management system, regularly review priorities with your manager, and proactively communicate potential delays well in advance."

2.7. Development Plan & Future Goals

A forward-looking section outlining specific plans for professional growth and future contributions.

  • Development Goals (SMART Goals):

* Goal 1: [Specific, Measurable, Achievable, Relevant, Time-bound]

* Action Steps: [e.g., "Enroll in 'Advanced Data Analytics' course," "Seek mentorship from Senior Analyst," "Lead a small-scale data project."]

* Resources Needed: [e.g., "Training budget," "Mentor time," "Access to new software."]

* Target Completion Date: [Date]

* Goal 2: [Specific, Measurable, Achievable, Relevant, Time-bound]

* Action Steps: [...]

* Resources Needed: [...]

* Target Completion Date: [...]

  • Future Business Goals: How the employee's contributions will align with upcoming team/organizational objectives.

2.8. Employee Comments (Optional)

  • Employee's Self-Assessment/Comments: [Space for employee to provide their perspective, agree/disagree with feedback, or add further context.]

2.9. Signatures

  • Employee Signature: ___________________________ Date: ___________
  • Manager Signature: ___________________________ Date: ___________
  • HR Representative (Optional): ___________________________ Date: ___________

3. Formatting & Professionalism Standards

The generated output will adhere to the highest standards of professionalism and readability:

  • Clear Headings & Subheadings: Consistent use of markdown headers (##, ###) for logical flow and easy navigation.
  • Bullet Points & Numbered Lists: Employed for clarity, conciseness, and scannability, particularly for goals, achievements, and action items.
  • Professional Tone: Language will be objective, constructive, and respectful, maintaining confidentiality and fairness.
  • Standardized Layout: Consistent structure across all generated reviews for uniformity and ease of comparison (where appropriate and anonymized).
  • Action-Oriented Language: Feedback and development plans will use active voice and focus on observable behaviors and measurable outcomes.
  • Error-Free Content: Rigorous attention to grammar, spelling, and punctuation.

4. Actionable Insights & Use Cases for the Customer

This comprehensive performance review output serves multiple critical functions:

  • Structured Employee Feedback: Provides a clear, detailed document for managers to deliver effective and constructive feedback.
  • Performance Tracking: Offers a historical record of employee performance, growth, and goal achievement over time.
  • Development Planning: Facilitates the creation of targeted development plans that foster skill enhancement and career progression.
  • Compensation & Promotion Decisions: Supplies objective data to support fair and transparent decisions regarding salary adjustments, bonuses, and promotions.
  • Talent Management: Aids HR and leadership in identifying high-potential employees, addressing performance gaps, and strategic workforce planning.
  • Legal Documentation: Serves as formal documentation for performance discussions and decisions, ensuring compliance and transparency.

This detailed framework ensures that every performance review generated by the "Performance Review Writer" is a valuable, professional, and actionable tool for driving individual and organizational success.

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