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

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

Research Output: Comprehensive Performance Review Components

This document provides a detailed professional research output on the key components of comprehensive performance reviews. This foundational research will inform the subsequent steps of the "Performance Review Writer" workflow, ensuring the generation of thorough, actionable, and fair performance assessments.


1. Goal Assessments

Definition: Goal assessment involves evaluating an employee's progress and achievement against pre-defined objectives or Key Performance Indicators (KPIs) set for a specific review period. These goals should align with the employee's role, team objectives, and overall organizational strategy.

Purpose:

  • Accountability: Provides a clear measure of an employee's contribution and responsibility.
  • Performance Tracking: Monitors progress and identifies areas where an employee may need additional support or resources.
  • Recognition: Highlights successful achievements and contributions.
  • Future Planning: Informs future goal setting and development initiatives.
  • Fairness: Ensures evaluations are based on objective, measurable outcomes rather than subjective impressions.

Key Elements & Best Practices:

  • SMART Goals: Ensure goals are Specific, Measurable, Achievable, Relevant, and Time-bound.
  • Clear Documentation: Both goals and progress updates should be well-documented throughout the review period.
  • Evidence-Based: Assessments must be supported by concrete examples, data, and results. Avoid vague statements.
  • Contextual Factors: Consider any external or internal factors that may have impacted goal achievement (e.g., resource constraints, shifting priorities).
  • Self-Assessment Integration: Encourage employees to provide their own perspective on goal achievement and challenges faced.
  • Quantify Whenever Possible: Use numbers, percentages, or specific metrics to describe outcomes.

Framework for Assessment:

A common framework involves a rating scale combined with qualitative comments:

  • Exceeded Expectations: Consistently delivered results significantly beyond the set goals, demonstrating exceptional initiative and impact.
  • Met Expectations: Fully achieved all core goals and objectives, delivering high-quality results as expected.
  • Partially Met Expectations: Achieved some, but not all, key goals, or achieved them with significant delays or needing considerable support.
  • Did Not Meet Expectations: Failed to achieve critical goals, impacting team or organizational objectives, despite available support.

Actionable Advice for Writing Goal Assessments:

  • Start with a clear statement of the goal.
  • Provide specific examples of actions taken and results achieved.
  • Cite data, metrics, or specific project outcomes.
  • If goals were not met, describe the gap and the impact.
  • Discuss contributing factors (both positive and negative).
  • Look forward: how will this assessment inform future goals?

2. Competency Ratings

Definition: Competency ratings evaluate an employee's demonstration of specific skills, behaviors, and attributes essential for success in their role and aligned with the organization's values and culture. These often include areas like communication, teamwork, problem-solving, leadership, adaptability, and technical proficiency.

Purpose:

  • Skill Identification: Pinpoints an employee's strengths and areas needing development beyond just goal achievement.
  • Role Alignment: Ensures employees possess and utilize the behaviors crucial for their specific position.
  • Cultural Fit: Assesses alignment with organizational values and desired workplace behaviors.
  • Development Planning: Directly feeds into identifying specific areas for training and growth.
  • Talent Management: Supports succession planning, promotions, and identifying high-potential employees.

Key Elements & Best Practices:

  • Defined Competency Model: The organization should have clearly defined competencies with behavioral indicators for each rating level.
  • Behavioral Examples: Ratings must be supported by specific, observable behaviors, not just subjective opinions.
  • Role Relevance: Ensure competencies assessed are relevant to the employee's specific role and level.
  • Consistency: Apply competency definitions and rating standards consistently across all employees.
  • Multiple Data Points: Incorporate observations from various interactions, project work, peer feedback, and self-assessment.

Framework for Rating:

A typical rating scale for competencies includes:

  • Role Model/Exceptional: Consistently demonstrates behaviors that significantly exceed expectations, often influencing and mentoring others.
  • Exceeds Expectations: Consistently demonstrates the competency at a high level, often going above and beyond what is required.
  • Meets Expectations: Consistently demonstrates the competency at the required level for the role.
  • Needs Development: Demonstrates the competency inconsistently or at a level below what is required for the role; requires focused improvement.
  • Not Applicable/Not Observed: (Use sparingly, and only if the competency is truly not relevant or observable within the review period).

Actionable Advice for Writing Competency Assessments:

  • For each competency, state the rating clearly.
  • Provide 1-3 specific behavioral examples that justify the rating.
  • Use action verbs to describe behaviors (e.g., "proactively sought," "effectively communicated," "resolved conflicts").
  • If "Needs Development," clearly describe the gap in behavior and its impact.
  • Avoid generic statements like "good communicator" without supporting evidence.

3. Development Plans

Definition: A development plan is a structured, individualized strategy outlining specific actions an employee will take to enhance their skills, address identified weaknesses, and achieve career growth within the organization. It's a forward-looking component designed to foster continuous learning and improvement.

Purpose:

  • Employee Growth: Provides a roadmap for skill enhancement and career progression.
  • Performance Improvement: Directly addresses areas identified in goal and competency assessments.
  • Engagement & Retention: Demonstrates organizational investment in an employee's future, boosting motivation and loyalty.
  • Talent Pipeline: Builds internal capabilities and prepares employees for future roles.
  • Alignment: Ensures individual development aligns with organizational needs and strategic objectives.

Key Elements & Best Practices:

  • Collaborative Creation: Developed jointly by the employee and manager to ensure buy-in and relevance.
  • SMART Development Goals: Similar to performance goals, development goals should be Specific, Measurable, Achievable, Relevant, and Time-bound.
  • Action-Oriented: Clearly define specific activities or steps the employee will take.
  • Diverse Methods: Include a variety of development methods (e.g., formal training, mentorship, stretch assignments, self-study, shadowing, conferences).
  • Defined Resources: Identify what resources (time, budget, tools, mentors) are needed and available.
  • Success Metrics: How will progress and successful completion of the development plan be measured?
  • Regular Check-ins: Establish a schedule for reviewing progress on the development plan.

Framework for a Development Plan:

| Development Goal | Rationale (Link to Competency/Goal Gap) | Action Steps | Resources Needed | Timeline | Success Metrics/Desired Outcome |

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

| Example: Improve presentation skills | Feedback indicated lack of clarity and engagement during team presentations. | 1. Complete "Effective Public Speaking" online course. 2. Present at 2 weekly team meetings. 3. Seek peer feedback after each presentation. | Access to LinkedIn Learning, Manager feedback, 1 hour/week dedicated time. | Q3 (July-Sept) | Receive "Meets/Exceeds Expectations" on presentation skills in Q4 review. Increased audience engagement. |

| Example: Enhance project management proficiency | Struggled with scope creep and timeline adherence on Project X. | 1. Shadow [Senior PM Name] on Project Y. 2. Read "Project Management for Dummies." 3. Lead a small internal project from start to finish. | [Senior PM Name]'s time, book budget, opportunity for small project. | Q4 (Oct-Dec) | Successfully complete small project on time and within scope. Positive feedback from stakeholders. |

Actionable Advice for Writing Development Plans:

  • Ensure development goals are directly linked to specific performance or competency gaps identified in the review.
  • Make sure the actions are concrete and measurable.
  • Clearly state who is responsible for each action (employee, manager, HR).
  • Set realistic timelines and commit to providing necessary support.
  • Emphasize that this is a living document, subject to review and adjustment.

4. Constructive Feedback Frameworks

Definition: Constructive feedback frameworks are structured approaches for delivering feedback that is specific, actionable, and aimed at improvement, while maintaining a supportive and professional tone. The goal is to guide an employee towards better performance or behavior without demotivating them.

Purpose:

  • Guide Improvement: Provides clear direction on how to enhance performance or correct undesirable behaviors.
  • Reinforce Positive Behavior: Acknowledges and encourages effective actions, fostering a positive work environment.
  • Address Performance Gaps: Offers a structured way to discuss areas needing attention.
  • Foster Open Communication: Encourages dialogue and mutual understanding between employee and manager.
  • Development Tool: Helps employees learn and grow from their experiences.

Key Elements & Best Practices:

  • Timely: Deliver feedback as close to the event as possible.
  • Specific: Focus on observable behaviors and their impact, not generalizations or personality traits.
  • Objective: Base feedback on facts and evidence, not assumptions.
  • Balanced: Include both strengths and areas for improvement.
  • Future-Oriented: Focus on what the employee can do differently moving forward.
  • Two-Way Conversation: Allow the employee to respond, ask questions, and share their perspective.
  • Private Setting: Deliver feedback one-on-one in a confidential environment.

Common Frameworks for Delivering Constructive Feedback:

  1. STAR Method (Situation, Task, Action, Result):

* S - Situation: Describe the context or situation. (e.g., "During our team meeting on Tuesday...")

* T - Task: Explain the task or objective at hand. (e.g., "...when we were discussing the Q3 budget proposal...")

* A - Action: Describe the specific action the employee took. (e.g., "...you interrupted Sarah multiple times while she was presenting her figures...")

* R - Result: Explain the impact or result of that action. (e.g., "...which made it difficult for her to complete her thought and led to some confusion among team members.")

* Next Steps/Suggestion: (Optional, but recommended) "In the future, please allow colleagues to finish their thoughts before interjecting."

  1. SBI (Situation, Behavior, Impact):

* S - Situation: When and where the behavior occurred. (e.g., "In the client meeting yesterday...")

* B - Behavior: The specific action the employee took. (e.g., "...you took the initiative to present the alternative solution when the client raised concerns...")

* I - Impact: The effect of that behavior. (e.g., "...which really helped calm their anxieties and ultimately secured the deal.")

* Next Steps/Suggestion: (Optional) "That was excellent problem-solving; keep up that proactive approach."

  1. FEED (Focus, Example, Effect, Do):

* F - Focus: State the specific behavior you want to discuss. (e.g., "I want to talk about your communication style in client emails.")

* E - Example: Provide a specific instance. (e.g., "For example, in the email to XYZ Corp last week regarding the project delay...")

* E - Effect: Explain the impact of that behavior. (e.g., "...the tone came across as quite abrupt and didn't clearly outline the steps we're taking to mitigate the issue, which could potentially damage our client relationship.")

* D - Do: Suggest what the employee can do differently. (e.g., "Next time, consider starting with empathy, clearly stating the problem, and then immediately following with actionable solutions and a positive outlook.")

  1. Pendleton's Rules for Feedback: This framework emphasizes employee self-reflection first.

* Step 1: Ask the employee what they did well/what they are proud of.

* Step 2: Provide your perspective on what they did well.

* Step 3: Ask the employee what they would do differently next time/what they could improve.

* Step 4: Provide your perspective on what could be improved.

Actionable Advice for Writing Feedback:

  • Choose the framework that best suits the situation and your comfort level.
  • Always start with a clear, factual description of the situation and behavior.
  • Explicitly state the impact of the behavior (on team
gemini Output

Elevate Your Performance Reviews: Intelligent Writing for Impactful Feedback

Transform your performance management process from a time-consuming chore into a strategic driver of growth and engagement.

In today's dynamic work environment, effective performance reviews are crucial for employee development, retention, and overall organizational success. Yet, drafting comprehensive, fair, and actionable reviews can be a significant challenge, often consuming valuable management time and sometimes lacking consistency.

Our Performance Review Writer leverages advanced AI to revolutionize how you conduct performance evaluations. This powerful tool generates detailed, professional, and personalized reviews that not only assess past performance but also strategically guide future development. Say goodbye to generic templates and inconsistent feedback, and embrace a streamlined, objective, and highly effective review process.


What You Get: Comprehensive & Actionable Performance Reviews

Our AI-powered Performance Review Writer delivers meticulously crafted evaluations, ensuring every aspect of an employee's contribution and potential is thoroughly addressed.

1. Precision Goal Assessments

Receive a structured and objective evaluation of an employee's performance against predefined Key Performance Indicators (KPIs) and strategic objectives.

  • Detailed Achievement Analysis: The system analyzes progress, identifies areas of exceptional contribution, and pinpoints where additional focus or support may be required.
  • Quantifiable Results & Examples: Each assessment includes specific examples and quantifiable results where available, ensuring a clear and objective review of goal attainment.
  • Performance Tiers: Clearly categorizes performance relative to goals (e.g., Exceeds Expectations, Meets Expectations, Needs Improvement) with supporting rationale.

2. Objective Competency Ratings

Gain a robust framework for evaluating an employee's proficiency across essential organizational competencies, ensuring fairness and consistency across your workforce.

  • Standardized Evaluation: Assesses critical skills and behaviors (e.g., leadership, communication, problem-solving, collaboration, innovation) using a consistent rating scale.
  • Behavioral Examples: Generates detailed narratives that highlight strengths with specific behavioral examples and identifies areas for development based on observable actions.
  • Gap Identification: Clearly outlines where an employee excels and where there are opportunities to build skills, aligning with company values and job requirements.

3. Personalized Development Plans

Beyond assessment, our writer crafts actionable, individualized development plans designed to foster continuous growth and career advancement.

  • Tailored Growth Strategies: Plans are personalized to the employee's current role, career aspirations, and identified areas for growth, ensuring relevance and engagement.
  • Specific Recommendations: Includes concrete suggestions for skill enhancement, relevant training courses, mentorship opportunities, and experiential learning projects.
  • Goal-Oriented Pathways: Empowers employees with a clear roadmap for professional advancement, linking development activities directly to performance improvement and future roles.

4. Constructive Feedback Frameworks

Integrate best practices for delivering impactful and motivating feedback that drives positive behavioral change and performance improvements.

  • Specific, Balanced, Actionable: Ensures feedback is always clear, balanced (highlighting both strengths and areas for improvement), actionable, and forward-looking.
  • Supportive & Motivational Tone: Generates feedback framed in a supportive manner, designed to motivate employees rather than demotivate, fostering a culture of continuous learning.
  • Best Practice Adherence: Incorporates established feedback methodologies (e.g., principles of STAR method where applicable) to maximize effectiveness and clarity.
  • Future-Oriented Guidance: Focuses on what can be done differently or better moving forward, providing clear guidance for sustained improvement.

Key Benefits for Your Organization

  • Save Time & Resources: Drastically reduce the time managers spend drafting reviews, allowing them to focus on leadership and strategic initiatives.
  • Ensure Consistency & Fairness: Standardize language, evaluation criteria, and feedback structures across all departments, promoting equity and reducing bias.
  • Boost Employee Engagement: Provide clear, actionable, and personalized feedback that employees value, leading to greater motivation and commitment.
  • Enhance Manager Effectiveness: Equip your managers with high-quality, professional reviews that facilitate more productive and meaningful performance conversations.
  • Drive Strategic Development: Align individual development with organizational goals, fostering a high-performance culture focused on continuous improvement.
  • Mitigate Risk: Ensure reviews are comprehensive, well-documented, and professionally written, supporting HR compliance and best practices.

Ready to Transform Your Performance Review Process?

Stop dreading performance review season and start leveraging it as a powerful tool for talent development and organizational success. Our Performance Review Writer is designed to empower your managers, engage your employees, and elevate your entire performance management strategy.

Experience the future of performance evaluations today.

[Contact Us to Learn More & Request a Demo]

gemini Output

As part of the "Performance Review Writer" workflow, this deliverable provides a comprehensive, detailed, and professionally formatted performance review template, complete with goal assessments, competency ratings, development plans, and a constructive feedback framework. This output is designed to be directly actionable, serving as a robust foundation for conducting thorough and impactful performance evaluations.


Comprehensive Performance Review Template

This document outlines a structured approach to performance evaluation, ensuring clarity, fairness, and a focus on both past achievements and future development.

Review Period: [Start Date] – [End Date]

Date of Review: [Current Date]


1. Employee Information

  • Employee Name: [Employee's Full Name]
  • Employee ID: [Employee ID Number]
  • Job Title: [Employee's Job Title]
  • Department: [Department Name]
  • Manager Name: [Manager's Full Name]
  • Date of Hire: [Employee's Start Date]

2. Overall Performance Summary

  • Manager's Executive Summary:

* [Provide a concise overview of the employee's performance during the review period. Highlight key strengths, significant contributions, and any overarching themes. This section should offer a high-level perspective before diving into specifics.]

Example: "Sarah has consistently demonstrated exceptional dedication and a proactive approach to her responsibilities this period. Her leadership in the 'Project Phoenix' initiative was instrumental in its successful launch, exceeding initial targets. While her technical skills are strong, she is encouraged to further develop her cross-functional communication skills to enhance team collaboration."*


3. Goal Assessment

This section evaluates the employee's progress and achievement against their pre-defined goals for the review period.

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

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