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

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

Step 1 of 3: Research Topic - Performance Review Writer

Overview of a Performance Review Writer

A "Performance Review Writer" refers to a system, tool, or methodology designed to assist HR professionals, managers, and employees in generating comprehensive, objective, and actionable performance reviews. Its primary goal is to streamline the often time-consuming and challenging process of articulating an individual's performance over a specific period, ensuring consistency, fairness, and alignment with organizational goals. This involves synthesizing data, assessing against defined criteria, and formulating constructive feedback and future development plans.

Core Components of a Comprehensive Performance Review

A well-structured performance review, facilitated by a dedicated writer, typically includes the following critical sections:

  • Employee Information:

* Employee Name, Title, Department

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

* Review Date

* Reviewer Name, Title

  • Summary of Overall Performance:

* A concise statement summarizing the employee's general performance level (e.g., Exceeds Expectations, Meets Expectations, Needs Improvement).

* Highlighting key strengths and areas for immediate focus.

  • Goal Assessments:

* Specific Goals: List each pre-defined goal set for the review period (e.g., SMART goals).

* Actual Achievements/Results: Detail the outcomes and deliverables associated with each goal.

* Measurement/Metrics: Quantify achievement wherever possible (e.g., "Increased sales by 15%", "Completed 95% of assigned projects on time").

* Analysis: Provide context for achievement or non-achievement, including contributing factors or obstacles.

* Rating: Assign a rating for each goal (e.g., Fully Achieved, Partially Achieved, Not Achieved).

  • Competency Ratings & Behavioral Assessments:

* Defined Competencies: List core competencies relevant to the role and organization (e.g., Communication, Teamwork, Problem-Solving, Leadership, Adaptability, Technical Skills).

* Behavioral Indicators: For each competency, describe specific behaviors observed that demonstrate proficiency or areas for improvement.

* Rating: Assign a rating for each competency based on observed behaviors (e.g., Exemplary, Proficient, Developing, Below Expectations).

* Examples: Provide concrete examples of behaviors to support the rating.

  • Strengths & Accomplishments:

* Identify key areas where the employee consistently excels.

* Provide specific examples of achievements, contributions, and positive impact during the review period.

* Acknowledge significant successes and initiatives.

  • Areas for Development & Improvement:

* Identify specific areas where the employee can enhance their skills, knowledge, or behaviors.

* Frame feedback constructively, focusing on growth opportunities rather gthan shortcomings.

* Provide concrete examples of instances where improvement is needed.

  • Development Plan:

* Specific Development Goals: Outline 1-3 actionable goals for the next review period, often stemming from areas for improvement.

* Action Steps: Detail how these goals will be achieved (e.g., training courses, mentorship, stretch assignments, self-study, shadowing).

* Resources/Support: Identify resources available to the employee (e.g., budget for courses, mentor assignment, time allocation).

* Timeline: Set realistic deadlines for development activities.

* Expected Outcomes: Describe how success will be measured.

  • Constructive Feedback Framework:

* STAR Method (Situation, Task, Action, Result): Often used to structure feedback, providing specific context for observations.

* SBI Model (Situation, Behavior, Impact): Another effective framework for delivering clear and impactful feedback.

* Future-Oriented: Feedback should guide future behavior, not just dwell on past events.

* Balanced: Incorporate both positive reinforcement and areas for growth.

* Specific & Objective: Avoid generalizations and focus on observable actions and their impact.

  • Employee Comments:

* Space for the employee to provide their perspective on the review, agree or disagree with assessments, and add any relevant comments.

  • Signatures:

* Employee, Manager, and potentially HR representative signatures, acknowledging discussion and receipt of the review.

Best Practices for Effective Performance Review Writing

  • Objectivity and Evidence-Based: Base all assessments and feedback on observable behaviors, measurable results, and specific examples, not on personal opinions or assumptions.
  • Regular Feedback Integration: Performance reviews should summarize ongoing feedback discussions, not be the first time an employee hears about their performance.
  • Alignment with Role & Company Values: Ensure goals, competencies, and feedback are directly relevant to the employee's job description and the organization's core values.
  • Forward-Looking: Emphasize future development, growth, and how the employee can contribute more effectively.
  • Clarity and Conciseness: Use clear, professional language. Avoid jargon where possible.
  • Balance: Provide a fair balance of strengths and areas for development.
  • Actionable Feedback: Ensure feedback is specific enough for the employee to understand what they need to do differently or continue doing.
  • Consistency: Apply review standards consistently across all employees in similar roles.
  • Legal Compliance: Be mindful of anti-discrimination laws and ensure reviews are fair and non-biased.

Benefits of Utilizing a "Performance Review Writer" System

  • Standardization & Consistency: Ensures all reviews follow a uniform structure and assessment criteria, reducing bias and promoting fairness.
  • Time Efficiency: Automates repetitive aspects of review writing, allowing managers to focus on personalized insights and discussions.
  • Improved Quality & Objectivity: Provides prompts, templates, and best practice guidelines to enhance the quality, clarity, and objectivity of feedback.
  • Data-Driven Insights: Can integrate with HRIS or performance management systems to pull relevant data (e.g., goal tracking, project completion rates).
  • Enhanced Employee Development: Facilitates the creation of robust development plans linked to organizational objectives and individual growth.
  • Legal Defensibility: Well-documented, consistent, and objective reviews provide a stronger legal defense in case of performance-related disputes.
  • Reduced Managerial Burden: Simplifies the often daunting task of writing reviews, making it less stressful for managers.

By systematically addressing these components and adhering to best practices, a "Performance Review Writer" can significantly enhance the effectiveness and impact of performance management processes within an organization.

gemini Output

Elevate Your Workforce with AI-Powered Performance Reviews

Transform your performance management process from a daunting task into a strategic advantage.

In today's dynamic work environment, effective performance reviews are crucial for employee growth, engagement, and overall organizational success. Yet, crafting comprehensive, fair, and actionable reviews can be incredibly time-consuming and challenging. Our AI-Powered Performance Review Writer is designed to revolutionize this process, providing you with detailed, professional, and insightful evaluations that drive tangible results.


Unlock the Power of Precision Performance Management

Our advanced AI solution goes beyond basic templates, generating truly comprehensive performance reviews tailored to your specific needs. Say goodbye to generic feedback and hello to deeply analytical, growth-oriented assessments that empower your team and elevate your business.


Key Features & What You'll Receive:

Each performance review generated by our system is meticulously crafted, incorporating critical elements that ensure a holistic and impactful evaluation.

1. Goal Assessment & Achievement Analysis

  • Clear Objective Evaluation: Detailed assessment of individual goals, KPIs, and project milestones.
  • Progress Tracking & Commentary: Specific insights into progress, challenges encountered, and strategies for overcoming obstacles.
  • Outcome Measurement: Quantifiable analysis of results achieved against set targets, highlighting successes and areas needing further attention.
  • Future Goal Alignment: Recommendations for aligning future goals with organizational objectives and individual development paths.

2. Competency & Skill Rating

  • Core Competency Assessment: Evaluation across predefined organizational competencies (e.g., communication, teamwork, problem-solving, leadership, adaptability).
  • Skill Proficiency Levels: Rating of specific job-related skills, identifying strengths and areas for upskilling or reskilling.
  • Behavioral Examples: Inclusion of concrete examples to support competency ratings, providing context and clarity.
  • Growth Trajectory: Analysis of competency development over the review period, noting improvements and consistent excellence.

3. Personalized Development Plans

  • Actionable Growth Strategies: Tailored recommendations for skill enhancement, professional development courses, workshops, and certifications.
  • Mentorship & Coaching Opportunities: Identification of potential mentorship pairings or coaching needs to foster specific skill sets.
  • Experiential Learning Suggestions: Proposals for stretch assignments, cross-functional projects, or leadership opportunities to apply new skills.
  • Timeline & Resources: Outlines suggested timelines and resources available to support the employee's development journey.

4. Constructive Feedback Frameworks

  • Balanced Perspective: Feedback structured to highlight both strengths and areas for improvement, ensuring a fair and motivating review.
  • Specific & Actionable Advice: Rather than vague statements, our system provides precise, actionable feedback that employees can immediately implement.
  • Impact-Oriented Language: Focus on the impact of behaviors and performance on team and organizational goals.
  • Forward-Looking Guidance: Guidance on how to leverage strengths and address development areas to achieve future success.
  • Positive Reinforcement: Emphasizes achievements and positive contributions to boost morale and engagement.

Benefits of Our AI-Powered Performance Review Writer:

  • Save Time & Resources: Drastically reduce the hours spent drafting reviews, allowing HR and managers to focus on strategic initiatives.
  • Ensure Consistency & Fairness: Standardize your review process, minimizing bias and ensuring equitable evaluations across the organization.
  • Boost Employee Engagement: Deliver clear, constructive, and personalized feedback that motivates employees and fosters a culture of continuous improvement.
  • Drive Organizational Performance: Align individual performance with business objectives, leading to a more productive and high-achieving workforce.
  • Enhance Data-Driven Decisions: Gain deeper insights into workforce capabilities and development needs to inform talent management strategies.

Ready to Streamline Your Performance Reviews?

Stop struggling with manual review processes and embrace the future of performance management. Our AI-powered solution is your partner in building a high-performing, engaged, and continuously developing workforce.

Don't let another review cycle be a burden. Empower your team and your organization with intelligent, comprehensive performance insights.


Get Started Today!

Discover how our AI-Powered Performance Review Writer can transform your HR operations.

  • [Request a Free Demo](your-demo-link-here)
  • [Learn More About Our Features](your-features-link-here)
  • [Contact Our Sales Team](your-contact-link-here)

Invest in a smarter way to manage performance. Your team will thank you.

gemini Output

Performance Review Writer: Comprehensive Output Deliverable

This document outlines the detailed professional output generated by the "Performance Review Writer" solution. Our aim is to provide a robust, structured, and actionable framework for creating high-quality performance reviews that drive employee growth and organizational success.


1. Introduction: The Performance Review Writer Solution

The Performance Review Writer is an advanced AI-powered tool designed to streamline and enhance the process of drafting comprehensive employee performance reviews. It moves beyond generic templates, leveraging specific inputs to generate personalized, insightful, and actionable feedback. This solution ensures consistency, fairness, and a focus on both past achievements and future development, significantly reducing the time and effort required from managers while improving the quality and impact of reviews.

2. Core Components of a Generated Performance Review

Each performance review generated by this solution will be meticulously structured to include the following essential sections:

2.1. Employee Information & Review Period

  • 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: [e.g., January 1, 2023 – December 31, 2023]
  • Date of Review: [Placeholder for Current Date]

2.2. Executive Summary / Overall Performance Assessment

A concise paragraph summarizing the employee's overall performance during the review period. This section provides a snapshot of key strengths, areas for improvement, and general trajectory.

  • Example Output: "Throughout the review period, [Employee Name] consistently demonstrated strong analytical skills and a proactive approach to problem-solving. They successfully met or exceeded most key objectives, particularly excelling in [specific area]. While overall performance was commendable, opportunities exist for further development in [specific area, e.g., cross-functional collaboration] to enhance their impact."

2.3. Goal Assessments & Achievements

This section meticulously reviews each pre-defined goal or objective set for the employee, assessing their progress and outcomes.

  • Goal 1: [Specific Goal Description, e.g., "Increase customer satisfaction by 10%"]

* Target: [e.g., 10% increase in CSAT score]

* Actual Result: [e.g., 8% increase in CSAT score]

* Assessment: [Employee Name] made significant strides towards this goal, contributing to an 8% increase in CSAT score through [specific actions, e.g., implementing a new feedback loop and training support staff]. While slightly below target, the effort and positive impact are highly valued.

* Supporting Evidence/Context: [e.g., Customer survey data Q3-Q4, positive feedback from key accounts.]

  • Goal 2: [Specific Goal Description]

* Target: ...

* Actual Result: ...

* Assessment: ...

* Supporting Evidence/Context: ...

  • (Repeat for all relevant goals)

2.4. Competency Ratings & Behavioral Feedback

Assessment of core competencies relevant to the role and organizational values, accompanied by specific behavioral examples. Each competency will be rated on a predefined scale (e.g., Needs Development, Meets Expectations, Exceeds Expectations, Outstanding).

  • Competency: Problem-Solving & Innovation

* Rating: Exceeds Expectations

* Feedback: [Employee Name] consistently demonstrates exceptional problem-solving abilities, often identifying root causes and proposing innovative solutions that have led to tangible improvements. For instance, their initiative in [specific project/situation] resulted in [positive outcome]. They proactively seek out challenges and think critically.

  • Competency: Teamwork & Collaboration

* Rating: Meets Expectations

* Feedback: [Employee Name] is a reliable team member who contributes effectively to group projects. They collaborate well with immediate team members. To further enhance their impact, consider opportunities to proactively engage with cross-functional teams and share insights more broadly, as observed during [specific instance].

  • Competency: Communication

* Rating: Needs Development

* Feedback: While [Employee Name]'s written communication is clear, opportunities exist to refine verbal communication in formal settings. During team presentations, there were instances where messages could be more concise and structured. Focusing on active listening and asking clarifying questions in meetings would also be beneficial.

  • (Repeat for all relevant competencies)

2.5. Development Plan & Growth Opportunities

A forward-looking section outlining specific, actionable steps for the employee's professional growth.

  • Area for Development 1: [e.g., Project Management Skills]

* Rationale: To prepare for future leadership opportunities and enhance efficiency in managing complex initiatives.

* Action Steps:

* Enroll in "Advanced Project Management" online course by [Date].

* Shadow [Senior Manager Name] on the [Specific Project] for 1 month, focusing on planning and risk management.

* Lead a smaller, self-contained project with mentorship from [Manager Name] by [Date].

* Resources: [e.g., LinkedIn Learning, internal mentorship program, PMBOK Guide]

* Timeline: [e.g., Q2-Q3 next year]

  • Area for Development 2: [e.g., Strategic Thinking]

* Rationale: To contribute more effectively to long-term departmental planning and vision.

* Action Steps:

* Participate in monthly strategic planning meetings, preparing a brief analysis of market trends relevant to [Product/Service].

* Read "Good Strategy/Bad Strategy" by Richard Rumelt.

* Present a strategic recommendation for [specific challenge] to the management team by [Date].

* Resources: [e.g., Industry reports, recommended books, internal strategy documents]

* Timeline: [e.g., Q3-Q4 next year]

2.6. Constructive Feedback Framework (Summary & Recommendations)

This section synthesizes feedback into actionable recommendations, emphasizing a balanced approach of reinforcing strengths and addressing areas for improvement.

  • Key Strengths to Leverage:

* [Employee Name]'s exceptional analytical capabilities and proactive problem-solving should be further utilized in [specific types of projects/initiatives].

* Their dedication to [specific value/area] sets a high standard for the team.

  • Key Areas for Improvement & Recommendations:

* To enhance their leadership potential, focus on developing cross-functional communication and influence skills through [specific training/experience].

* Consider opportunities to take on more ownership in strategic planning discussions to broaden their impact beyond day-to-day operations.

  • Manager’s Overall Comments: [Manager's personal concluding remarks, e.g., "I am confident that [Employee Name] will continue to grow and contribute significantly to our team. I look forward to supporting their development in the coming year."]

2.7. Employee Comments & Signature Block

  • Employee Comments: (Space for employee to provide their perspective and feedback on the review)
  • Employee Signature: _________________________ Date: ___________
  • Manager Signature: _________________________ Date: ___________
  • HR Representative (Optional) Signature: __________ Date: ___________

3. Input Requirements for Generation

To produce such detailed and personalized reviews, the Performance Review Writer requires the following inputs:

  • Employee Details: Name, Job Title, Department, Start Date.
  • Review Period: Start and End Dates.
  • Pre-defined Goals/Objectives: List of SMART (Specific, Measurable, Achievable, Relevant, Time-bound) goals set for the employee, including targets.
  • Performance Data/Observations:

* Quantitative data (e.g., sales figures, project completion rates, customer satisfaction scores).

* Qualitative observations (e.g., specific instances of collaboration, problem-solving, communication strengths or weaknesses, feedback from peers/stakeholders).

* Self-assessment from the employee (if available).

  • Competency Framework: List of organizational competencies relevant to the role, along with their definitions and behavioral indicators.
  • Development Aspirations (Optional): Employee's expressed career goals or areas they wish to develop.

4. Benefits of Using the Performance Review Writer

  • Consistency & Fairness: Ensures a standardized approach to reviews across the organization, reducing bias.
  • Time Efficiency: Significantly reduces the time managers spend drafting reviews, allowing them to focus on coaching and development.
  • Enhanced Quality: Generates well-articulated, comprehensive, and objective feedback, improving the impact of reviews.
  • Actionable Insights: Focuses on specific behaviors and measurable outcomes, leading to more effective development plans.
  • Improved Employee Engagement: Clear, constructive feedback fosters a culture of growth and transparency.
  • Alignment with Organizational Goals: Reviews are structured to reinforce company values and strategic objectives.

5. Customization and Integration

The Performance Review Writer is designed for flexibility:

  • Template Customization: The structure and specific sections of the review can be tailored to align with existing organizational performance management frameworks.
  • Competency Library Integration: Easily integrate with an organization's proprietary competency models and rating scales.
  • Data Source Integration: Potential for integration with HRIS, project management tools, and other data sources to pull relevant performance metrics automatically (subject to technical feasibility and data privacy).
  • Tone & Language Adjustments: Output can be refined for specific industry jargon, cultural nuances, or desired tone (e.g., highly formal, encouraging).

6. Next Steps

To proceed with leveraging the Performance Review Writer solution, we recommend the following:

  1. Input Data Collection: Gather all necessary employee details, goal data, and performance observations for a pilot group of employees.
  2. Competency Framework Review: Confirm or define the core competencies and their associated rating scales.
  3. Customization Workshop: Conduct a session to tailor the review template and output preferences to your organization's specific needs.
  4. Pilot Program Launch: Implement the solution with a small group of managers and employees to gather feedback and refine the process.

This comprehensive output ensures that every performance review serves as a powerful tool for individual growth and organizational excellence.

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