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

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

As step 1 of the "Performance Review Writer" workflow, this research topic focuses on defining the core components, best practices, and structural elements required to generate comprehensive, detailed, and professional performance reviews. This output will serve as the foundational knowledge for subsequent steps in the workflow.


Research Topic: Core Components and Best Practices for Professional Performance Reviews

1. Introduction: Purpose of Performance Reviews

Professional performance reviews are critical tools for employee development, organizational alignment, and effective talent management. They serve multiple purposes:

  • Feedback & Development: Provide employees with structured feedback on their performance, identify strengths, and pinpoint areas for growth.
  • Goal Alignment: Ensure individual contributions align with team and organizational objectives.
  • Performance Measurement: Objectively assess an employee's contributions against defined expectations and competencies.
  • Decision Making: Inform decisions related to promotions, compensation, training needs, and succession planning.
  • Motivation & Engagement: Recognize achievements and foster a sense of purpose and direction.
  • Legal Documentation: Provide a documented record of performance for compliance and potential legal purposes.

2. Key Components of a Comprehensive Performance Review

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

2.1. Employee Information & Review Period

  • Employee Name & Title: Basic identification.
  • Manager Name & Title: Reviewer identification.
  • Department/Team: Organizational context.
  • Review Period: Clearly defined start and end dates (e.g., Annual, Mid-Year, Quarterly).
  • Date of Review: When the review was completed.

2.2. Goal Assessment & Achievement

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

  • Goal Description: Clearly state each specific goal.
  • Expected Outcome: What success looked like.
  • Actual Outcome/Results: Quantifiable achievements and impact.
  • Rating/Status: (e.g., Exceeded Expectations, Met Expectations, Partially Met, Did Not Meet).
  • Manager Comments: Specific feedback on performance against the goal, highlighting successes, challenges, and contributing factors.
  • Employee Comments (Optional but Recommended): Employee's self-reflection on their goal achievement.

2.3. Competency & Skill Ratings

This section assesses the employee's performance against core competencies, values, or job-specific skills relevant to their role and the organization.

  • Competency/Skill Name: (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Technical Skills).
  • Definition/Description: A brief explanation of what the competency entails.
  • Rating Scale: A consistent scale (e.g., 1-5, Needs Development, Meets Expectations, Exceeds Expectations).
  • Manager Comments: Specific examples (positive and negative) illustrating the employee's demonstration of the competency. Focus on behavioral evidence.

2.4. Strengths & Key Accomplishments

Highlight the employee's significant contributions and areas where they consistently excel.

  • Specific Accomplishments: Detail projects, initiatives, or tasks where the employee made a notable positive impact. Use STAR method (Situation, Task, Action, Result) for clarity.
  • Demonstrated Strengths: Identify inherent qualities or skills that contribute to their success (e.g., strong analytical skills, exceptional client management, innovative problem-solving).
  • Impact: Explain the positive outcomes of these strengths and accomplishments on the team or organization.

2.5. Areas for Development & Improvement Opportunities

Identify specific areas where the employee can grow or enhance their performance.

  • Specific Area for Development: Clearly define the area (e.g., "Proactive Communication on Project Delays," "Delegation Skills").
  • Impact of Development Area: Explain how improving in this area will benefit the employee, team, or organization.
  • Behavioral Examples: Provide concrete instances where the development area was observed.
  • Constructive Feedback Framework: Utilize frameworks like SBI (Situation-Behavior-Impact) or STAR to deliver feedback effectively.

2.6. Development Plan & Action Items

This section outlines concrete steps for improvement based on the identified development areas.

  • Development Goal: A specific, measurable, achievable, relevant, and time-bound (SMART) goal for improvement.
  • Action Steps: Specific actions the employee will take (e.g., attend a workshop, shadow a colleague, take on a specific project, seek mentorship).
  • Resources/Support: What resources the company will provide (e.g., training budget, access to courses, mentor assignment).
  • Timeline: Expected completion date for the development goal or specific actions.
  • Measurement/Follow-up: How progress will be tracked and reviewed.

2.7. Overall Performance Summary

A concise summary of the employee's performance over the review period.

  • Overall Rating: A final rating (if applicable) that encapsulates the entire review.
  • Key Takeaways: A brief narrative summarizing the employee's overall contributions, strengths, and primary development focus for the next period.
  • Future Focus: High-level expectations or direction for the upcoming review cycle.

2.8. Employee Self-Assessment (Optional but Recommended)

Provides the employee an opportunity to reflect on their own performance, achievements, and development needs prior to the manager's review. This promotes self-awareness and facilitates a more collaborative discussion.

2.9. Employee & Manager Sign-Off

  • Signatures: Confirmation that the review has been discussed and understood (not necessarily agreement with all content).
  • Date: Date of signatures.

3. Best Practices for Writing Professional Performance Reviews

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

  • Be Specific and Evidence-Based: Generalizations are unhelpful. Use concrete examples and data to support all feedback and ratings.
  • Focus on Behaviors and Outcomes: Describe what the employee did or didn't do, and what impact it had, rather than making judgments about their personality.
  • Be Objective and Fair: Avoid personal bias, favoritism, or recency effect (focusing only on recent events). Base feedback on the entire review period.
  • Maintain a Professional and Constructive Tone: Feedback should be direct but respectful, focusing on growth and improvement. Avoid jargon or overly casual language.
  • Balance Strengths and Development Areas: A good review acknowledges achievements and provides actionable areas for growth. Avoid a solely negative or overly positive review.
  • Be Forward-Looking: While assessing past performance, the review should also guide future development and goal setting.
  • Align with Job Descriptions and Organizational Values: Ensure feedback is relevant to the employee's role and the company's culture.
  • Timeliness: Conduct reviews on schedule to ensure feedback is relevant and impactful.
  • Clarity and Conciseness: Write clearly and avoid ambiguity. Get straight to the point without excessive verbosity.
  • Actionable Feedback: Every piece of constructive feedback should ideally be accompanied by a suggestion or plan for improvement.

4. Common Pitfalls to Avoid

  • Vagueness: Lack of specific examples or data.
  • Bias: Personal favoritism, stereotyping, or unconscious bias.
  • Recency Effect: Overemphasizing recent performance (good or bad) while neglecting performance from earlier in the review period.
  • Halo/Horns Effect: Allowing one outstanding or poor trait to overshadow the entire performance review.
  • Lack of Follow-Through: Setting development plans without subsequent check-ins or support.
  • Surprises: No feedback should be entirely new to the employee if ongoing feedback has been provided throughout the year.
  • Focusing on Personality: Critiquing personality traits instead of observable behaviors.

5. Actionable Insights for the "Performance Review Writer" Workflow

Based on this research, the "Performance Review Writer" workflow should be designed to:

  • Prompt for Specific Inputs: Systematically request details for each key component (goals, competencies, achievements, development areas, etc.).
  • Incorporate STAR/SBI Frameworks: Guide users to provide behavioral examples for feedback sections.
  • Suggest Rating Scales: Offer standard rating scales for goals and competencies.
  • Generate SMART Development Plans: Assist in crafting specific, measurable, achievable, relevant, and time-bound development goals and actions.
  • Ensure Balanced Feedback: Encourage the inclusion of both strengths and areas for improvement.
  • Maintain Professional Tone: Automatically adjust language to be constructive, objective, and professional.
  • Structure Output Clearly: Produce reviews with well-defined sections and headings, adhering to a professional template.
  • Provide Prompts for Evidence: Remind users to include data and specific examples to substantiate claims.
  • Offer Customization: Allow for company-specific competencies, values, and rating systems to be integrated.

This comprehensive understanding of performance review components and best practices will inform the subsequent steps in developing a highly effective and professional "Performance Review Writer" workflow.

gemini Output

Unleash Performance Potential: Your Intelligent Performance Review Writer

Elevate your team's growth and drive organizational success with our advanced AI-powered Performance Review Writer. Designed for precision, fairness, and development, this tool transforms the often-daunting task of performance reviews into a strategic advantage, empowering managers to provide impactful, actionable feedback that inspires excellence.


The Challenge of Performance Reviews

Crafting comprehensive, insightful, and equitable performance reviews is a critical yet time-consuming task for every manager and HR professional. It requires meticulous attention to detail, objective assessment, and a forward-looking perspective to foster employee growth. Our Performance Review Writer is built to address these challenges head-on, delivering high-quality reviews that are consistent, fair, and focused on development.


What Our Performance Review Writer Delivers

Our AI-driven solution generates detailed, professional performance reviews tailored to your organizational needs, ensuring every review is a powerful tool for engagement and improvement. Each generated review includes:

  • Comprehensive Goal Assessments: Objective evaluation of achievements against set objectives.
  • Insightful Competency Ratings: Structured assessment of key skills and behaviors.
  • Actionable Development Plans: Clear pathways for growth and skill enhancement.
  • Constructive Feedback Frameworks: Guided feedback designed for positive impact and motivation.
  • Overall Performance Summaries: Concise overviews for quick understanding and strategic planning.

Core Components of Your AI-Generated Performance Review

Each review is meticulously structured to provide a holistic view of employee performance and potential.

1. Detailed Goal Assessment

Our system analyzes employee contributions against predefined goals and KPIs, providing a clear picture of success and areas for improvement.

  • Progress Against Objectives: Quantifiable assessment of how well the employee met their specific, measurable, achievable, relevant, and time-bound (SMART) goals.
  • Impact and Contribution: Evaluation of the quality and significance of the employee's work and its impact on team and organizational objectives.
  • Challenges and Mitigations: Identification of obstacles encountered and the employee's approach to overcoming them, showcasing problem-solving skills and resilience.
  • Future Goal Alignment: Recommendations for aligning future goals with strategic priorities and individual development.

2. Insightful Competency Ratings

We provide structured ratings and narrative feedback across a spectrum of essential competencies, ensuring a balanced view of both what was achieved and how it was achieved.

  • Behavioral Indicators: Specific examples and observations tied to core competencies (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Innovation).
  • Rating Scale Application: Consistent application of your chosen rating scale (e.g., Needs Development, Meets Expectations, Exceeds Expectations) with clear justifications.
  • Strengths Identification: Highlighting areas where the employee consistently excels, providing positive reinforcement and opportunities for leveraging these strengths.
  • Development Areas: Pinpointing specific competencies that require further development, with evidence-based observations.

3. Actionable Development Plans

Beyond assessment, our tool crafts personalized development plans designed to foster continuous learning and career progression.

  • Specific Skill Development: Identification of particular skills or knowledge gaps to address.
  • Recommended Learning Resources: Suggestions for courses, workshops, certifications, or on-the-job training opportunities.
  • Mentorship/Coaching Opportunities: Recommendations for internal or external mentorship to guide growth.
  • Experiential Learning: Proposals for stretch assignments, cross-functional projects, or leadership opportunities to apply new skills.
  • Timelines and Milestones: Suggested timelines and measurable milestones to track progress and accountability.

4. Constructive Feedback Frameworks

Our system generates feedback that is not only critical but also encouraging and growth-oriented, adhering to best practices for effective communication.

  • STAR Method Integration: Feedback structured using the Situation, Task, Action, Result (STAR) method for clarity and specificity.
  • Balanced Perspective: Ensures feedback includes both positive reinforcement and areas for improvement, maintaining motivation.
  • Impact-Focused Language: Frames feedback in terms of its impact on team, projects, and organizational goals, rather than personal attributes.
  • Forward-Looking Suggestions: Provides concrete suggestions for improvement and future actions, rather than dwelling solely on past performance.
  • Manager Guidance Notes: Optional prompts and tips for managers on how to deliver the feedback effectively during the review meeting.

5. Overall Performance Summary & Recommendations

A concise yet comprehensive summary synthesizes all aspects of the review, providing a clear overview and strategic recommendations.

  • Key Takeaways: A summary of the employee's overall performance, highlighting major achievements and primary development areas.
  • Future Outlook: Recommendations for the employee's next steps, potential career pathing, and how they can continue to contribute to the organization's success.
  • Managerial Recommendations: Actionable advice for the manager on how to best support the employee's ongoing development and performance.

Why Choose Our Performance Review Writer?

  • Consistency & Fairness: Standardize your review process, reducing bias and ensuring all employees receive equitable and objective feedback.
  • Time-Saving Efficiency: Drastically cut down the time managers spend writing reviews, allowing them to focus more on coaching and strategic initiatives.
  • Enhanced Quality: Generate high-quality, professional, and insightful reviews that are clear, actionable, and impactful.
  • Development-Focused: Shift the focus from mere evaluation to meaningful growth, fostering a culture of continuous improvement.
  • Scalable Solution: Easily manage performance reviews across small teams or large enterprises with consistent quality.

Ready to Transform Your Performance Reviews?

Stop struggling with blank pages and inconsistent feedback. Empower your managers and accelerate your team's growth with our intelligent Performance Review Writer.

Contact us today for a personalized demonstration and discover how effortless and effective performance reviews can be!

gemini Output

Performance Review Writer: Comprehensive Output Deliverable

This document provides a comprehensive framework and template for generating detailed, professional performance reviews. It integrates goal assessments, competency ratings, development plans, and a structured approach to constructive feedback, ensuring a thorough and actionable evaluation process.


1. Introduction: Purpose of This Framework

This framework is designed to facilitate a consistent, fair, and effective performance review process. It ensures that reviews are not just administrative tasks but powerful tools for employee growth, development, and alignment with organizational goals. By using this structured approach, managers can provide clear feedback, recognize achievements, identify areas for improvement, and collaboratively build development plans.


2. Core Components of a Comprehensive Performance Review

Our framework ensures each performance review covers the following essential areas:

  • Employee & Review Period Details: Basic administrative information.
  • Overall Performance Summary: A high-level qualitative assessment.
  • Goal Achievement Assessment: Detailed evaluation against predefined objectives.
  • Competency Assessment: Rating against core organizational and role-specific competencies.
  • Strengths & Accomplishments: Recognition of key contributions and areas of excellence.
  • Areas for Development & Improvement: Identification of specific growth opportunities.
  • Development Plan: Actionable steps for professional growth.
  • Overall Rating: A summarized performance level.
  • Employee Comments & Signatures: Ensuring a collaborative and acknowledged process.

3. Detailed Performance Review Template

Below is a structured template to guide the generation of each performance review.

Performance Review for [Employee Name]

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

Date of Review: [Date]

Employee Information:

  • Name: [Employee Name]
  • Title: [Employee Title]
  • Department: [Department]
  • Manager: [Manager's Name]
  • Date of Hire: [Date]

Part A: Overall Performance Summary

Provide a concise qualitative summary of the employee's performance during the review period, highlighting key themes and overall contribution.

Summary: [e.g., "[Employee Name] consistently demonstrated strong performance in their role as [Employee Title] during this review period. They excelled in [specific area] and made significant contributions to [project/team goal]. While generally meeting expectations, there are opportunities for growth in [specific area for development]."]


Part B: Goal Achievement Assessment

Assess the employee's performance against their predefined goals for the review period. For each goal, provide specific details on the outcome and a clear achievement rating.

| Goal/Objective (SMART) | Desired Outcome / Success Metrics | Actual Outcome / Results Achieved | Achievement Rating

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