Employee Handbook Generator
Run ID: 69cd06413e7fb09ff16a73fc2026-04-01HR
PantheraHive BOS
BOS Dashboard

Generate a comprehensive employee handbook with company policies, benefits overview, code of conduct, leave policies, and compliance sections.

Employee Handbook Generator: Detailed Requirements Analysis and Design Specification

This document outlines the detailed requirements, design specifications, wireframe descriptions, color palette, and user experience (UX) recommendations for the "Employee Handbook Generator" application. The goal is to create a robust, intuitive, and professional tool that enables users to generate comprehensive, customized employee handbooks efficiently.


1. Project Overview

The "Employee Handbook Generator" is designed to assist businesses in creating professional, legally compliant, and customized employee handbooks. It will streamline the process of compiling essential company policies, benefits overviews, codes of conduct, leave policies, and compliance sections into a well-structured document, saving time and ensuring consistency.


2. Core Functionality Requirements

The application must support the following core functionalities:

  • Guided Handbook Creation: A step-by-step wizard to guide users through the handbook generation process.
  • Customizable Content Sections: Ability to select, configure, and customize various policy sections (e.g., Company Policies, Code of Conduct, Benefits, Leave Policies, Compliance).
  • Dynamic Content Insertion: Automatically insert company-specific details (name, logo, mission, values) into the handbook template.
  • Policy Templating: Provide a library of pre-written, legally sound policy templates that users can adopt, modify, or replace.
  • Rich Text Editing: Allow users to edit and format policy text within the application for custom sections or modifications to templates.
  • Preview Functionality: Offer a real-time or near real-time preview of the handbook as it's being built.
  • Export Options: Generate the complete handbook in multiple professional formats (e.g., PDF, Microsoft Word (.docx)).
  • Save & Resume: Enable users to save their progress and return to editing a handbook later.
  • User Account Management (Future Consideration): For multiple handbooks or teams, user accounts could be beneficial. (Initial focus on single-use generation).

3. Handbook Content Sections (Output Structure)

The generated employee handbook will typically include, but not be limited to, the following comprehensive sections:

  1. Welcome Message & Introduction:

* Welcome from Leadership

* Purpose of the Handbook

* Acknowledgment of At-Will Employment (where applicable)

  1. Company Overview:

* Company Mission, Vision, and Values

* Company History and Culture

* Organizational Structure (optional)

  1. Employment Basics:

* Equal Employment Opportunity (EEO) Policy

* Non-Discrimination and Anti-Harassment Policy

* Americans with Disabilities Act (ADA) Compliance

* Employment Categories (Full-time, Part-time, Temporary, Contractors)

* Hiring Process & Background Checks

* Orientation & Onboarding

* Confidentiality & Non-Disclosure Agreements

  1. Code of Conduct & Ethics:

* Professionalism & Workplace Behavior

* Conflict of Interest

* Ethics & Integrity

* Anti-Bribery & Corruption

* Drug-Free Workplace Policy

* Workplace Violence Prevention

* Reporting Misconduct (Whistleblower Protection)

  1. Workplace Policies:

* Attendance & Punctuality

* Dress Code

* Workplace Safety & Health (OSHA Compliance)

* Use of Company Property (Computers, Internet, Email, Phones)

* Social Media Policy

* Smoking Policy

* Visitors Policy

* Data Privacy & Security

  1. Compensation & Benefits:

* Pay Periods & Overtime Policy

* Performance Reviews & Salary Adjustments

* Health & Dental Insurance Overview

* Retirement Plans (e.g., 401k)

* Life & Disability Insurance

* Employee Assistance Programs (EAP)

* Other Perks & Benefits (e.g., wellness programs, tuition reimbursement)

  1. Leave Policies:

* Paid Time Off (PTO), Vacation, Sick Leave

* Company Holidays

* Family and Medical Leave Act (FMLA)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Parental Leave

  1. Performance Management & Development:

* Performance Review Process

* Disciplinary Action & Corrective Measures

* Employee Training & Development

  1. Separation of Employment:

* Resignation Procedures

* Termination Policies

* Exit Interviews

* Final Paycheck & Benefits Continuation (COBRA)

* Return of Company Property

  1. Compliance & Legal Disclaimers:

* Disclaimer that the handbook is not a contract

* Right to Modify Policy

* State-Specific Legal Disclosures (if applicable, e.g., California, New York)

  1. Employee Acknowledgment Form:

* Space for employee signature confirming receipt and understanding.


4. Design Specifications

4.1 User Interface (UI) Elements

  • Layout: Clean, modern, and spacious two-column or three-column layout for wizard steps, allowing for content and a progress sidebar.
  • Typography:

* Headings: A clear, professional sans-serif font (e.g., Montserrat, Open Sans, Lato) for headings and titles.

* Body Text: A highly readable sans-serif font (e.g., Roboto, Noto Sans, Source Sans Pro) for body text within the UI and generated handbook.

* Font Sizes: Varied sizes for hierarchy (e.g., H1: 28px, H2: 22px, H3: 18px, Body: 16px).

  • Input Fields: Standardized text inputs, text areas, dropdowns, radio buttons, and checkboxes. Clear labels and placeholder text.
  • Buttons: Primary action buttons (e.g., "Next," "Generate Handbook") should be prominent. Secondary buttons (e.g., "Back," "Save Draft") should be distinct but less emphasized.
  • Navigation: Clear progress indicator for the multi-step wizard.
  • Icons: Use a consistent set of professional, minimalist icons (e.g., Font Awesome, Material Icons) for clarity and visual appeal.
  • Feedback Mechanisms: Toast notifications for success/error messages, loading spinners for background processes.

4.2 Responsive Design

The application must be fully responsive, providing an optimal viewing and interaction experience across various devices:

  • Desktop: Full-width layout, multi-column presentation.
  • Tablet: Stacked columns, optimized touch targets.
  • Mobile: Single-column, streamlined interface with collapsible sections where appropriate.

4.3 Accessibility (WCAG 2.1 AA Compliance)

  • Color Contrast: Ensure sufficient contrast between text and background colors.
  • Keyboard Navigation: All interactive elements must be navigable and operable via keyboard.
  • Screen Reader Compatibility: Use semantic HTML and ARIA attributes for screen reader users.
  • Focus Indicators: Clearly visible focus states for interactive elements.
  • Alt Text: Provide descriptive alt text for all images and functional icons.

4.4 Branding Integration

  • Logo Upload: Prominent area for users to upload their company logo, which will appear in the generated handbook and potentially in the application's header.
  • Customizable Theme (Future): Option to adapt primary/accent colors based on company branding.

5. Wireframe Descriptions

The user flow will follow a multi-step wizard.

5.1 Step 1: Welcome & Getting Started

  • Layout: Centered content with a strong call to action.
  • Elements:

* Header: Application title "Employee Handbook Generator".

* Main Content: A concise introduction to the tool's benefits.

* Button: "Get Started" (Primary action).

* Optional: Link to "Load Saved Draft."

5.2 Step 2: Company Information

  • Layout: Form-based input with a clear progress indicator sidebar.
  • Elements:

* Progress Indicator (Left Sidebar): "1. Company Info > 2. Policies > 3. Benefits > 4. Review > 5. Generate." Current step highlighted.

* Main Content (Right Panel):

* Heading: "Tell Us About Your Company"

* Input Fields: Company Name, Industry, Company Size (dropdown), Website URL (optional).

* File Upload: "Upload Company Logo" (preview thumbnail after upload).

* Text Area: "Company Mission/Vision/Values" (optional).

* Buttons: "Back," "Next" (Primary action), "Save Draft."

5.3 Step 3: Policy Selection & Configuration

  • Layout: Complex form with categorized sections, checkboxes, and text areas.
  • Elements:

* Progress Indicator (Left Sidebar): Updated.

* Main Content (Right Panel):

* Heading: "Select & Customize Policies"

* Section Categories: Collapsible or tabbed sections for "Employment Basics," "Code of Conduct," "Workplace Policies," etc.

* Policy List: Within each category, a list of standard policy templates.

* Checkboxes: To include/exclude a policy.

* Expandable Text Areas: For each selected policy, a rich text editor to view and modify the template text.

* Button: "Add Custom Policy" (opens a modal or new text area).

* Contextual Help: Tooltips next to policy titles explaining their purpose.

* Buttons: "Back," "Next" (Primary action), "Save Draft."

5.4 Step 4: Benefits & Leave Configuration

  • Layout: Similar to policy configuration, but focused on numerical and descriptive inputs.
  • Elements:

* Progress Indicator (Left Sidebar): Updated.

* Main Content (Right Panel):

* Heading: "Configure Benefits & Leave"

* Section Categories: "Compensation," "Health & Wellness," "Paid Time Off," "Leave of Absence."

* Input Fields/Text Areas:

* For compensation: Pay cycle frequency (dropdown), Overtime rules (text area).

* For health benefits: Checkboxes for types (Medical, Dental, Vision), input fields for provider names, brief descriptions.

* For PTO: Number of vacation days, sick days, holidays; accrual rules (text area).

* For FMLA/other leaves: Checkboxes to include, brief descriptive text areas.

* Buttons: "Back," "Next" (Primary action), "Save Draft."

5.5 Step 5: Review & Generate

  • Layout: Full-width preview area with export options.
  • Elements:

* Progress Indicator (Left Sidebar): Updated.

* Main Content (Right Panel):

* Heading: "Review Your Handbook"

* Handbook Preview: An embedded viewer displaying the generated handbook content in a scrollable format.

* Inline Editing (Optional, advanced): Clickable sections in the preview to jump back to the relevant configuration step for quick edits.

* Export Options:

* Buttons: "Download PDF" (Primary action), "Download DOCX."

* Optional: "Email Handbook."

* Buttons: "Back," "Finish / Generate New Handbook."


6. Color Palette

A professional, clean, and trustworthy color palette is essential.

  • Primary Brand Color: A medium to dark blue or green, conveying trust, professionalism, and stability.

Suggestion:* #1A535C (Dark Teal) or #2C5F2D (Forest Green)

  • Secondary Accent Color: A complementary, slightly brighter color for highlights, active states, and calls to action.

Suggestion:* #4ECDC4 (Light Teal) or #97BC62 (Lime Green)

  • Neutral Backgrounds: Light, subtle grays to provide a clean canvas and visual separation.

Suggestion:* #F8F8F8 (Off-White) for main content areas, #EFEFEF for secondary backgrounds/sidebars.

  • Text Colors:

Primary Text: Dark gray for readability. Suggestion:* #333333

Secondary Text/Labels: Medium gray. Suggestion:* #666666

  • Error/Warning Colors: Standard red/orange for clear feedback.

Suggestion:* #E74C3C (Red)


7. User Experience (UX) Recommendations

  • Step-by-Step Wizard with Clear Progress: Implement a multi-step wizard with a highly visible progress indicator (e.g., a numbered sidebar or top bar) to guide users through the handbook creation process. This reduces cognitive load and provides a sense of accomplishment.
  • Contextual Help & Tooltips: Provide inline help, tooltips, or small info icons next to policy options or input fields. These should explain the purpose of a policy, offer examples, or clarify legal implications where appropriate, without overwhelming the user.
  • Pre-filled Templates & Defaults: Start with a robust library of pre-written, legally vetted policy templates. Default options should be selected based on common best practices, allowing users to quickly deselect or modify rather than starting from scratch.
  • Real-time or Near Real-time Preview: Integrate a dynamic preview pane that updates as users make selections and input information. This allows users to see the impact of their choices immediately, fostering confidence and reducing errors.
  • Save & Resume Functionality: Allow users to save their progress at any point and return to their draft later. This is crucial for long, detailed processes like handbook generation.
  • Clear Error Handling & Validation: Provide immediate and actionable feedback for invalid inputs or missing required information. Error messages should be clear, concise, and suggest a solution.
  • Intuitive Content Organization: Group related policies logically into clear categories. Use collapsible sections or tabs to manage complexity and prevent information overload on
gemini Output

Employee Handbook: Your Guide to Success at [Company Name]

Welcome to Our Team!

On behalf of the entire leadership team, welcome to [Company Name]! We are thrilled to have you join our growing family. This handbook serves as your comprehensive guide to our company culture, policies, benefits, and expectations. It's designed to help you understand what it means to be a part of [Company Name] and to provide you with the resources you need to thrive in your role.

At [Company Name], we believe that our greatest asset is our people. We are committed to fostering an inclusive, respectful, and dynamic environment where every employee can contribute their unique talents and feel valued. Your success is our success, and we are excited to embark on this journey with you.

Please take the time to read through this handbook carefully. It contains important information that will help you integrate smoothly into our team and understand the framework within which we operate. Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources Department.

Welcome aboard! We look forward to achieving great things together.

Sincerely,

[CEO/Founder Name]

CEO, [Company Name]


Disclaimer: This Employee Handbook is designed to provide general information and guidance regarding the policies, procedures, and benefits of [Company Name]. It is not an employment contract and does not create any contractual rights or obligations between [Company Name] and its employees. [Company Name] reserves the right to modify, amend, or revoke any of its policies, procedures, or benefits at any time, with or without notice, at its sole discretion, except as provided by law. This handbook supersedes all prior handbooks, policies, and statements, whether written or oral. For specific details on benefits, please refer to the official plan documents, which govern in all cases. This document should be reviewed by legal counsel to ensure compliance with all applicable federal, state, and local laws.


1. Our Mission, Vision & Values: The Heart of [Company Name]

1.1 Our Mission

To [State your company's core purpose and what it aims to achieve for its customers/community].

1.2 Our Vision

To [Describe the future state you aspire to create or be recognized for].

1.3 Our Core Values

These values are the guiding principles that define our culture and how we interact with each other, our customers, and our partners.

  • Integrity: We act with honesty and strong moral principles in all our dealings.
  • Innovation: We embrace creativity, continuous improvement, and forward-thinking solutions.
  • Collaboration: We believe in the power of teamwork, open communication, and mutual respect.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Excellence: We strive for the highest quality in our work and commit to continuous learning and development.
  • Diversity & Inclusion: We value unique perspectives and foster an environment where everyone feels welcome and empowered.

2. Code of Conduct: Professionalism & Respect

Our Code of Conduct outlines the standards of behavior and ethics expected from every employee. Adhering to these principles ensures a positive, productive, and respectful workplace for all.

2.1 Professionalism & Ethical Conduct

Employees are expected to conduct themselves professionally and ethically in all work-related activities. This includes:

  • Honesty & Integrity: Always act truthfully and with strong moral principles.
  • Respect: Treat all colleagues, customers, partners, and stakeholders with dignity and respect, regardless of their background, position, or beliefs.
  • Accountability: Take responsibility for your actions and commitments.
  • Compliance: Adhere to all company policies, procedures, and applicable laws and regulations.

2.2 Anti-Harassment & Non-Discrimination Policy

[Company Name] is committed to providing a workplace free from harassment and discrimination. We strictly prohibit any form of harassment or discrimination based on race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, veteran status, or any other characteristic protected by law.

  • Prohibited Conduct: Includes unwelcome verbal, physical, or visual conduct that creates an intimidating, hostile, or offensive work environment.
  • Reporting Procedure: Any employee who experiences or witnesses harassment or discrimination should immediately report it to their manager, the HR Department, or any member of the leadership team. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports a concern in good faith is strictly prohibited.

2.3 Conflict of Interest

Employees must avoid situations where their personal interests conflict with the best interests of [Company Name]. This includes, but is not limited to:

  • Engaging in outside employment or activities that compete with [Company Name].
  • Using company resources, property, or information for personal gain.
  • Accepting gifts, favors, or entertainment from clients, vendors, or competitors that could influence business decisions.
  • Employees must disclose any potential conflicts of interest to their manager and HR Department.

2.4 Confidentiality & Proprietary Information

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its customers, and partners. This includes, but is not limited to, business plans, financial data, client lists, marketing strategies, product designs, software code, and employee records.

  • Protection of Information: Employees must maintain the strict confidentiality of all such information during and after their employment.
  • Non-Disclosure: Do not disclose, copy, or use confidential information for any purpose other than for the benefit of [Company Name].
  • Data Security: Follow all established procedures for securing physical and electronic confidential information.

2.5 Workplace Conduct & Communication

  • Professional Demeanor: Maintain a professional and courteous demeanor in all interactions.
  • Constructive Feedback: Provide and accept feedback in a constructive and respectful manner.
  • Teamwork: Collaborate effectively with colleagues to achieve shared goals.
  • Open Communication: We encourage open and honest communication, and employees are encouraged to raise concerns or suggestions.

3. Employment Policies

This section outlines key policies related to your employment at [Company Name].

3.1 Employment At-Will

Employment with [Company Name] is "at-will." This means that either you or [Company Name] may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable laws. Nothing in this handbook is intended to create a contract of employment or to change the at-will nature of the employment relationship.

3.2 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing equal employment opportunities to all individuals regardless of race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other characteristic protected by law. We prohibit discrimination and harassment in all aspects of employment, including recruitment, hiring, promotions, compensation, training, and termination.

3.3 Recruitment & Hiring

Our hiring process is designed to attract and select the most qualified candidates based on skills, experience, and cultural fit. All hiring decisions are made in compliance with EEO principles.

3.4 Onboarding & Orientation

New employees will undergo an onboarding process designed to help you integrate into our team, understand your role, and become familiar with our systems and culture. This includes orientation sessions, training, and introductions to key team members.

3.5 Performance Management & Development

We believe in continuous growth and development. Our performance management process includes:

  • Goal Setting: Collaborative setting of clear, measurable goals.
  • Regular Feedback: Ongoing discussions with your manager about performance and development.
  • Performance Reviews: Annual (or semi-annual) formal reviews to assess performance, identify strengths, and areas for improvement.
  • Development Opportunities: Access to training, workshops, and resources to enhance skills and career progression.

3.6 Disciplinary Action

[Company Name] maintains a fair and consistent approach to disciplinary action. While the "at-will" nature of employment remains, disciplinary actions may be taken for violations of company policy, poor performance, or misconduct. Actions may range from verbal warnings to immediate termination, depending on the severity and frequency of the issue.

3.7 Termination of Employment

Employment may be terminated by either the employee or [Company Name]. Employees are requested to provide at least two weeks' written notice for voluntary resignation. [Company Name] will handle all terminations in accordance with applicable laws and company policy, including final pay, benefits, and return of company property.

3.8 Work Hours & Attendance

  • Standard Workday: Our standard work hours are [e.g., 9:00 AM to 5:00 PM, Monday through Friday]. Specific schedules may vary by department or role.
  • Punctuality & Attendance: Regular and punctual attendance is essential. Employees are expected to be at their workstations and ready to begin work at their scheduled start time.
  • Absence Notification: If you are unable to report to work due to illness or unforeseen circumstances, you must notify your manager as early as possible, ideally before your scheduled start time.
  • Overtime: Non-exempt employees will be paid overtime in accordance with federal and state laws for hours worked over [e.g., 40] in a workweek. All overtime must be pre-approved by your manager.

3.9 Remote Work Policy (If Applicable)

[Company Name] supports a flexible work environment where appropriate. Remote work arrangements must be approved by management and HR, and are subject to the terms outlined in a separate Remote Work Agreement. Employees working remotely are expected to maintain productivity, communication, and adherence to all company policies.

3.10 Dress Code

Our dress code is [e.g., business casual]. We expect employees to dress professionally and appropriately for their role and the work environment. Attire should be neat, clean, and well-maintained. Specific guidelines may be provided by department managers.


4. Compensation & Benefits Overview

[Company Name] is committed to providing a competitive compensation and benefits package designed to support the well-being and financial security of our employees.

4.1 Compensation

  • Pay Periods: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday/15th and last day of the month].
  • Direct Deposit: Direct deposit is mandatory for all employees.
  • Paycheck Deductions: Legally required deductions (e.g., federal, state, local taxes, Social Security, Medicare) will be made from your paycheck. Other deductions (e.g., health insurance premiums, 401k contributions) will be made as authorized by you.
  • Overtime: Non-exempt employees are eligible for overtime pay as per Section 3.8.
  • Performance-Based Pay: Our compensation structure may include opportunities for performance-based bonuses or merit increases, tied to individual and company performance.

4.2 Benefits Overview

[Company Name] offers a comprehensive benefits package. Detailed information regarding eligibility, coverage, and enrollment procedures for each benefit can be obtained from the HR Department and official plan documents.

  • Health Insurance:

* Medical: Comprehensive medical plans to cover healthcare needs.

* Dental: Coverage for preventative, basic, and major dental services.

* Vision: Plans to cover eye exams, glasses, and contact lenses.

  • Retirement Plans:

* 401(k) Plan: [Company Name] offers a 401(k) retirement savings plan, allowing employees to save for retirement on a pre-tax or Roth basis. [Company Name] may offer a matching contribution program.

  • Life & Disability Insurance:

* Basic Life Insurance: Company-paid life insurance coverage.

* Optional Life Insurance: Opportunity to purchase additional coverage for yourself and dependents.

* Short-Term Disability (STD): Provides income protection during temporary periods of inability to work due to illness or injury.

* Long-Term Disability (LTD): Provides income protection for extended periods of disability.

  • Employee Assistance Program (EAP): A confidential resource offering free counseling and support services for a wide range of personal and work-related issues.
  • Wellness Programs: Initiatives and resources to promote employee health and well-being.
  • Other Perks & Benefits:

* Professional Development: Opportunities for training, conferences, and certifications.

* Tuition Reimbursement: Support for continuing education that benefits both the employee and the company.

* Commuter Benefits: Pre-tax benefits for public transportation or parking.

* [Add any other company-specific perks, e.g., gym memberships, employee discounts, free snacks].

Action Required: Please contact the HR Department for detailed benefit plan summaries, enrollment forms, and eligibility requirements.


5. Leave Policies

[Company Name] provides various leave options to support employees through personal and family needs.

5.1 Paid Time Off (PTO)

[Company Name] offers a combined Paid Time Off (PTO) policy, allowing employees flexibility for vacation, personal appointments, and minor illnesses.

  • Accrual: PTO accrues on a [e.g., bi-weekly/monthly] basis, starting from your date of hire.
  • Usage: Employees may begin using accrued PTO after [
gemini Output

The following comprehensive Employee Handbook has been generated to provide a foundational document for your organization. This output is designed to be detailed, professional, and actionable, serving as a robust starting point.

IMPORTANT NOTE: This generated handbook is a template and contains general best practices. It is crucial to replace all bracketed placeholders [ ] with your company-specific information. Before implementation, this entire document MUST be reviewed and customized by your legal counsel and HR professionals to ensure compliance with all applicable federal, state, and local laws, and to align with your specific company culture and operational requirements.


[Company Name] Employee Handbook

Effective Date: [Date]

Welcome to [Company Name]!

On behalf of the entire team, welcome to [Company Name]! We are thrilled to have you join our growing family. This handbook serves as a guide to our company's policies, procedures, benefits, and expectations. It is designed to help you understand our workplace culture, your role within it, and the resources available to you.

At [Company Name], we believe that our success is built upon the collective strength of our employees. We are committed to fostering a supportive, inclusive, and dynamic environment where everyone can thrive, contribute their best work, and grow professionally.

Please take the time to read this handbook thoroughly. Understanding and adhering to these policies is a condition of your employment and will help ensure a positive and productive experience for everyone. If you have any questions, please do not hesitate to reach out to your manager or the HR Department.

We look forward to a successful future together!

Sincerely,

[CEO/Leadership Team Name(s)]


1. About [Company Name]

1.1 Our Mission

[Company Name]'s mission is to [State your company's core purpose and what it aims to achieve, e.g., "innovate sustainable solutions for global energy needs," "provide unparalleled customer service in the tech industry," etc.].

1.2 Our Vision

Our vision is to [Describe your company's desired future state or long-term aspiration, e.g., "be the leading provider of eco-friendly products," "create a world where technology empowers every individual," etc.].

1.3 Our Values

Our core values guide our actions and decisions, shaping our culture and how we interact with each other, our customers, and our community. We are committed to:

  • Integrity: Acting with honesty and strong moral principles.
  • Innovation: Constantly seeking new and better ways to do things.
  • Collaboration: Working together effectively to achieve common goals.
  • Excellence: Striving for the highest quality in everything we do.
  • Respect: Valuing diversity and treating everyone with dignity.
  • Customer Focus: Prioritizing the needs and satisfaction of our customers.
  • [Add other specific values relevant to your company]

2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex (including pregnancy and gender identity), national origin, age, disability, marital status, sexual orientation, veteran status, genetic information, or any other characteristic protected by federal, state, or local law. We encourage applicants and employees of all backgrounds to apply and thrive with us.

2.2 At-Will Employment (If Applicable - Consult Legal Counsel)

Employment with [Company Name] is "at-will." This means that either you or the Company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable law. No statement in this handbook, or in any other Company document, shall be construed as creating an employment contract, express or implied, or guaranteeing employment for any definite term. This at-will relationship may only be modified by a written agreement signed by the CEO of [Company Name].

2.3 Employment Classifications

To clarify employment status and eligibility for benefits, employees are generally classified as:

  • Full-Time Exempt: Typically salaried employees who meet specific criteria under the Fair Labor Standards Act (FLSA) for exemption from overtime pay. Eligible for all company benefits.
  • Full-Time Non-Exempt: Typically hourly employees who are eligible for overtime pay for hours worked over 40 in a workweek. Eligible for all company benefits.
  • Part-Time Exempt: Salaried employees working regularly scheduled hours less than full-time, who meet FLSA exemption criteria. Eligibility for benefits may vary; consult HR.
  • Part-Time Non-Exempt: Hourly employees working regularly scheduled hours less than full-time, eligible for overtime pay. Eligibility for benefits may vary; consult HR.
  • Temporary: Employees hired for a specific project or limited duration. Eligibility for benefits varies and will be communicated at the time of hire.
  • Intern: Individuals gaining supervised practical experience, often for academic credit. Eligibility for benefits varies.
  • Contractor/Consultant: Individuals or entities providing services under a contract, not considered employees. Not eligible for company benefits.

2.4 New Hire Onboarding & Orientation

All new employees will participate in an onboarding program designed to introduce them to [Company Name]'s culture, policies, procedures, and their specific job responsibilities. This process ensures a smooth transition and provides essential information to help you succeed.

2.5 Background Checks

As a condition of employment, and where permitted by law, [Company Name] may conduct background checks, including but not limited to criminal history, education verification, employment verification, and drug screening. Employment offers are contingent upon satisfactory results of these checks.

2.6 Immigration Law Compliance (I-9)

[Company Name] complies with the Immigration Reform and Control Act of 1986. All new employees must complete Section 1 of the Form I-9 on their first day of employment and present original, acceptable documentation verifying their identity and eligibility to work in the United States within three business days of their start date.

2.7 Personnel Records

Maintaining accurate personnel records is essential. Employees are responsible for notifying the HR Department promptly of any changes to their personal information, including:

  • Name
  • Address
  • Phone number
  • Emergency contact information
  • Marital status
  • Number of dependents (for tax and benefits purposes)
  • Beneficiary designations
  • Educational qualifications or professional licenses

Personnel files are confidential. Employees may review their personnel file by scheduling an appointment with the HR Department.


3. Workplace Conduct & Expectations (Code of Conduct)

3.1 Professionalism

Employees are expected to conduct themselves in a professional manner at all times, both internally and externally. This includes demonstrating respect for colleagues, clients, and partners, maintaining a positive attitude, and communicating effectively.

3.2 Harassment and Discrimination Policy

[Company Name] is committed to providing a workplace free from all forms of harassment and discrimination. This policy prohibits harassment and discrimination based on any protected characteristic, including race, color, religion, sex (including pregnancy, sexual orientation, and gender identity), national origin, age, disability, genetic information, or veteran status.

  • Prohibited Conduct: Harassment includes unwelcome conduct that is based on a protected characteristic, which may include offensive jokes, slurs, epithets or name calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance.
  • Sexual Harassment: Sexual harassment includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature.
  • Reporting Procedure: Any employee who believes they have been subjected to harassment or discrimination, or who witnesses such conduct, is obligated to report it immediately to their manager, the HR Department, or any member of the leadership team. All reports will be investigated promptly, thoroughly, and confidentially to the extent possible.
  • No Retaliation: [Company Name] strictly prohibits retaliation against any employee for making a good-faith report of harassment or discrimination, participating in an investigation, or opposing discriminatory practices.

3.3 Workplace Violence Prevention

[Company Name] is committed to providing a safe work environment. Acts or threats of violence, including verbal threats, intimidation, physical assaults, or property damage, will not be tolerated. Employees who engage in such behavior will face disciplinary action, up to and including termination, and may be subject to legal prosecution. Any concerns about potential violence should be reported immediately to a manager or HR.

3.4 Drug and Alcohol Policy

To ensure a safe and productive work environment, [Company Name] maintains a drug and alcohol-free workplace.

  • Prohibited Conduct: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol on Company premises, during work hours, or while conducting Company business is strictly prohibited.
  • Impairment: Employees are prohibited from working while under the influence of alcohol or illegal drugs, or while impaired by prescription or over-the-counter medication to an extent that affects their ability to perform their job duties safely and effectively.
  • Testing: [Company Name] reserves the right to conduct drug and alcohol testing where permitted by law, including pre-employment, reasonable suspicion, post-accident, and random testing.
  • Support: Employees struggling with substance abuse are encouraged to seek assistance through the Employee Assistance Program (EAP) or other available resources.

3.5 Confidentiality and Data Security

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its clients, and partners. This includes, but is not limited to, trade secrets, financial data, customer lists, product designs, marketing strategies, personnel information, and intellectual property.

  • Obligation: Employees must maintain the strictest confidentiality of all such information during and after their employment.
  • Data Protection: Employees must adhere to all company policies and procedures regarding data security, including password protection, secure storage of documents, and proper handling of electronic information.
  • Unauthorized Disclosure: Unauthorized disclosure or use of confidential information is a serious offense that will result in disciplinary action, up to and including termination, and potential legal action.

3.6 Conflict of Interest

Employees must avoid situations where their personal interests conflict, or appear to conflict, with the interests of [Company Name]. This includes, but is not limited to:

  • Engaging in outside employment or business activities that compete with [Company Name].
  • Accepting gifts, favors, or entertainment of substantial value from current or prospective vendors, customers, or competitors.
  • Using Company property, resources, or confidential information for personal gain.
  • Having a financial interest in a competitor, vendor, or customer that could influence business decisions.

Employees must disclose any potential conflicts of interest to their manager or HR Department for review and approval.

3.7 Dress Code

Employees are expected to dress in a manner that is professional, appropriate for their job duties, and respectful of colleagues and clients.

  • General Guideline: Business casual attire is generally appropriate for most office environments. Specific departments or roles (e.g., client-facing, manufacturing) may have more specific requirements.
  • Safety: Certain roles may require specific safety attire or protective equipment, which must be worn as directed.
  • Personal Hygiene: Good personal hygiene is expected from all employees.
  • Questions: If you have questions about appropriate dress, please consult your manager or HR.

3.8 Social Media Policy

This policy applies to all employees who use social media, both for personal and professional purposes, in a way that relates to or impacts [Company Name].

  • Professionalism: When discussing [Company Name] or related topics, employees must maintain professionalism, accuracy, and respect.
  • Confidentiality: Do not disclose confidential or proprietary company information, trade secrets, or client data on social media.
  • Respect: Do not post content that is harassing, discriminatory, defamatory, or otherwise violates company policies or legal standards.
  • Brand Reputation: Be mindful that your online activities can reflect on [Company Name]'s reputation.
  • Disclaimer: If you identify yourself as a [Company Name] employee on social media, you should include a disclaimer that your views are your own and do not necessarily represent those of [Company Name].

3.9 Use of Company Property and Systems

Company property, including computers, software, networks, internet access, email systems, phones, vehicles, tools, and equipment, is provided for business use.

  • Appropriate Use: Limited and occasional personal use is generally permitted, provided it does not interfere with work duties, violate company policies, or incur significant cost to the company.
  • No Expectation of Privacy: Employees should have no expectation of privacy when using company systems or equipment. [Company Name] reserves the right to monitor, access, and disclose information transmitted or stored on its systems, where permitted by law, for legitimate business purposes.
  • Security: Employees are responsible for safeguarding company property assigned to them and for reporting any loss, damage, or malfunction immediately.
  • Software Licensing: Only licensed and approved software may be installed and used on company systems.

3.10 Visitor Policy

For security and safety reasons, all visitors to [Company Name] premises must:

  • Sign in at the reception desk.
  • Be issued a visitor's badge.
  • Be escorted by a [Company Name] employee at all times.
  • Visitors should not be left unattended in restricted areas.

3.11 Smoking Policy

[Company Name] is committed to providing a healthy work environment. Smoking (including e-cigarettes and vaping) is prohibited inside all company buildings, vehicles, and within [Number] feet of building entrances, windows, and ventilation systems. Designated smoking areas, if any, will be clearly marked.

3.12 Gambling Policy

Gambling on company premises, during work hours, or using company resources is strictly prohibited. This includes, but is not limited to, sports pools, card games, or online gambling.


4. Compensation & Benefits Overview

4.1 Pay Periods and Direct Deposit

  • Pay Period: Employees are paid [Weekly/Bi-weekly/Semi-monthly] on [Day of week/Date]. The pay period typically covers [Start Date] to [End Date].
  • Direct Deposit: All employees are required to enroll in direct deposit. Pay stubs are available electronically via [Payroll Portal Name].

4.2 Overtime Policy (For Non-Exempt Employees)

Non-exempt employees are eligible for overtime pay at a rate of one and one-half (1.5) times their regular hourly rate for all hours worked in excess of 40 in a single workweek. All overtime must be pre-approved by a manager. Working unauthorized overtime may result in disciplinary action.

4.3 Performance Reviews and

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