Employee Handbook Generator
Run ID: 69cc41646beabe319cec8f562026-03-31HR
PantheraHive BOS
BOS Dashboard

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

As part of the "Employee Handbook Generator" workflow, this deliverable outlines the comprehensive requirements and design specifications for generating a professional, detailed, and user-friendly employee handbook. This analysis ensures the generated output meets high standards for clarity, compliance, and aesthetic appeal.


Employee Handbook Generator: Detailed Requirements Analysis

1. Detailed Design Specifications

The generated Employee Handbook will adhere to the following design and content specifications to ensure a professional, comprehensive, and legally sound document.

1.1. Document Structure & Content

The handbook will be organized into logical, easy-to-navigate sections, ensuring all critical information is presented clearly.

  • Cover Page:

* Company Logo (dynamic input)

* Company Name

* Handbook Title: "Employee Handbook" or "[Company Name] Employee Handbook"

* Effective Date / Version Number

* Confidentiality Statement (optional, configurable)

  • Table of Contents:

* Hierarchical structure with page numbers (for print) and interactive links (for digital).

* Clearly lists all major sections and sub-sections.

  • Welcome Message:

* From CEO/Leadership (template with customizable fields).

* Company Vision, Mission, Values.

* Emphasis on company culture and employee commitment.

  • Company Policies (Core):

* Employment Basics: Employment-at-Will statement (if applicable), Equal Employment Opportunity (EEO), Anti-Discrimination & Harassment, Workplace Safety, Confidentiality & Data Protection, Drug-Free Workplace, Workplace Violence Prevention.

* Work Environment: Attendance & Punctuality, Dress Code, Remote Work Policy (if applicable), Use of Company Property, Internet & Email Usage, Social Media Policy.

* Performance & Development: Performance Reviews, Training & Development, Promotions & Transfers.

  • Benefits Overview:

* Compensation: Pay Periods, Overtime, Deductions.

* Health & Wellness: Medical, Dental, Vision Insurance (summary, refer to detailed plan documents), Employee Assistance Programs (EAP).

* Retirement: 401(k) or other retirement plans (summary, refer to detailed plan documents).

* Other Benefits: Life Insurance, Disability Insurance, Tuition Reimbursement, Employee Discounts.

  • Code of Conduct & Ethics:

* Core Values: Reinforce company values.

* Professionalism: Respect in the Workplace, Conflict of Interest, Gifts & Entertainment.

* Integrity: Reporting Misconduct, Whistleblower Protection, Non-Retaliation Policy.

* Compliance: Adherence to Laws and Regulations.

  • Leave Policies:

* Paid Time Off (PTO): Vacation, Sick Leave, Personal Days (accrual, usage, carryover).

* Holidays: Company-observed holidays.

* Family & Medical Leave: FMLA (if applicable), Parental Leave, Bereavement Leave.

* Other Leaves: Jury Duty, Military Leave, Sabbatical (if applicable).

  • Separation of Employment:

* Voluntary Resignation, Involuntary Termination, Exit Procedures, Final Paycheck, COBRA information.

  • Compliance & Legal Disclaimers:

* Disclaimer: Handbook is not a contract, subject to change.

* Acknowledgement of Receipt: Digital or printable form for employees to sign and acknowledge understanding.

* Legal References: Mention relevant federal and state laws (e.g., FMLA, ADA, FLSA).

  • Glossary of Terms: Definitions of key HR and company-specific terms.
  • Contact Information: HR Department, IT Support, Emergency Contacts.

1.2. Tone and Language

  • Professional & Authoritative: Reflecting the company's seriousness regarding its policies.
  • Clear & Concise: Easy to understand, avoiding excessive jargon. When technical terms are necessary, they should be explained.
  • Accessible: Written in plain language suitable for a diverse workforce.
  • Neutral & Objective: Presenting policies fairly and consistently.
  • Positive & Welcoming: Especially in the introduction and benefits sections, fostering a sense of belonging.

1.3. Formatting and Output

  • Primary Output Format: PDF (printable and digitally distributable).
  • Secondary Output Format (Optional/Future): Web-based HTML for interactive experience.
  • Layout: Clean, modern, and uncluttered design with ample white space.
  • Typography: Readable font choices (e.g., sans-serif for body text like Open Sans, Lato, or Merriweather for headings). Minimum 10pt for body text, 12-14pt for headings.
  • Headers & Footers: Consistent branding (company logo/name), page numbers, effective date.
  • Visual Elements: Use of icons, simple graphics, or charts where appropriate to enhance understanding (e.g., for benefits overview).
  • Customization: Placeholder fields for company-specific details (e.g., CEO name, specific policy parameters, contact information, company logo).

2. Wireframe Descriptions

The following wireframe descriptions outline the typical layout and interactive elements for a generated employee handbook, suitable for both PDF and potential web-based formats.

2.1. Cover Page

  • Header: Large company logo (centered or top-left).
  • Title: Prominent "Employee Handbook" or "[Company Name] Employee Handbook" in a large, clear font.
  • Subtitle/Tagline: Optional, e.g., "Your Guide to [Company Name]".
  • Version/Effective Date: "Effective: [Date]" or "Version: [Number]" at the bottom.
  • Footer: Small copyright notice, company website.

2.2. Table of Contents (ToC) Page

  • Header: "Table of Contents" title.
  • List: A clear, indented list of all major sections and sub-sections.

* 1. Introduction

* 1.1 Welcome Message

* 1.2 Company Mission & Values

* 2. Company Policies

* 2.1 Employment Basics

* 2.2 Workplace Conduct

* ...

  • Page Numbers: Right-aligned page numbers for each entry.
  • Interactive Links (Digital): Each ToC entry will be a clickable link, navigating directly to the corresponding section.

2.3. Section Introduction Page

  • Header: Large, bold section title (e.g., "2. Company Policies").
  • Brief Introduction: A concise paragraph summarizing what the section covers.
  • Sub-sections List: A list of policies covered within this section, potentially with brief descriptions.
  • Navigation (Digital): Sidebar navigation showing current section and sub-sections, breadcrumbs.

2.4. Policy Detail Page (Standard Content Page)

  • Header: Clear policy title (e.g., "2.1.1 Anti-Discrimination & Harassment Policy").
  • Policy Statement: A concise opening statement.
  • Detailed Explanation:

* Bulleted or numbered lists for key points, procedures, or examples.

* Clear paragraphs explaining the policy's scope, definitions, and employee responsibilities.

* Call-out Boxes: For important notes, legal disclaimers, or "Who to Contact" information.

  • Examples/Scenarios: Where applicable, to illustrate policy application.
  • Reporting Procedures: Clear steps on how to report violations or seek clarification.
  • Footer: Page number, company name/logo.
  • Navigation (Digital): Prev/Next buttons for policy navigation, search bar.

2.5. Benefits Overview Page

  • Header: "Benefits Overview."
  • Sub-sections: Clearly delineated sections for different benefit types (e.g., "Health & Wellness," "Retirement," "Time Off").
  • Summary Information: Bullet points or short paragraphs summarizing each benefit.
  • "Learn More" Links: For digital versions, links to external detailed plan documents or internal HR portals. For print, explicit instructions on where to find more information (e.g., "See HR for details").
  • Contact Information: Specific contacts for benefits questions.

2.6. Acknowledgement of Receipt Page

  • Header: "Employee Acknowledgment."
  • Statement: Clear statement confirming the employee has received, read, and understood the handbook and agrees to abide by its policies.
  • Signature Line: "Employee Signature," "Printed Name," "Date."
  • Instructions: "Please sign and return this page to Human Resources."
  • Digital Version: Checkbox for agreement, digital signature field, and submit button.

3. Color Palettes

The color palette for the generated handbook will prioritize professionalism, readability, and brand adaptability.

  • Primary Palette (Brand Integration):

* Core Brand Color 1: (e.g., Deep Blue #003366) - Used for major headings, company logo, key accents. Conveys trust, stability, professionalism.

* Core Brand Color 2: (e.g., Light Blue #6699CC) - For sub-headings, links (digital), or highlight boxes. Provides visual hierarchy and dynamism.

  • Secondary/Accent Palette:

* Accent Color: (e.g., Teal #008080 or Orange #FF8C00) - Used sparingly for call-to-action buttons (digital), icons, or important notice boxes. Adds emphasis without overwhelming.

* Neutral Accent: (e.g., Dark Grey #333333 or Charcoal #4A4A4A) - For body text, secondary information, and subtle borders. Ensures high readability.

  • Background & Text:

* Background: White (#FFFFFF) or Off-White (#F8F8F8) - Maximizes readability and provides a clean canvas.

* Body Text: Black (#000000) or Very Dark Grey (#222222) - Essential for high contrast and readability.

  • Accessibility Considerations:

* All color combinations will meet WCAG 2.1 AA contrast ratio standards (at least 4.5:1 for normal text, 3:1 for large text).

* Avoid relying solely on color to convey information; use text labels or icons in conjunction.

4. UX Recommendations

User Experience (UX) is paramount for an employee handbook to ensure it is not only comprehensive but also genuinely useful and accessible to all employees.

4.1. Clarity and Simplicity

  • Plain Language: Avoid legalistic jargon where possible. If legal terms are necessary, provide clear explanations or a glossary.
  • Concise Content: Break down complex policies into shorter paragraphs and bullet points.
  • Visual Cues: Use icons, consistent formatting, and bolding to highlight key information and improve scannability.
  • Consistent Structure: Maintain a uniform layout for all policy pages to reduce cognitive load.

4.2. Navigability

  • Interactive Table of Contents: For digital versions, clickable links to every section.
  • Search Functionality (Digital): A robust search bar allowing employees to quickly find specific policies or keywords.
  • Internal Links: Cross-reference related policies within the handbook (e.g., "For more on leave policies, see Section 5.0").
  • Clear Headings: Use descriptive and consistent heading styles (H1, H2, H3) to create a clear hierarchy.
  • Breadcrumbs (Digital): To show the user's current location within the handbook structure (e.g., Home > Company Policies > Leave Policies).

4.3. Readability

  • Optimal Font Choice: Select highly readable sans-serif fonts for body text and legible serif or sans-serif fonts for headings.
  • Appropriate Font Size: Ensure body text is at least 10pt (print) or 16px (digital) to accommodate various vision needs.
  • Line Spacing & Paragraph Length: Use generous line spacing (1.5x) and keep paragraphs short to prevent eye strain.
  • Ample White Space: Provide sufficient margins and padding around text and elements to reduce visual clutter.
  • High Contrast: Ensure text colors have sufficient contrast against background colors.

4.4. Accessibility

  • WCAG Compliance: Adhere to Web Content Accessibility Guidelines (WCAG) 2.1 standards for digital versions.
  • Alternative Text: Provide alt text for any images or complex graphics.
  • Keyboard Navigation (Digital): Ensure all interactive elements are navigable via keyboard.
  • Semantic HTML (Digital): Use proper heading tags, list tags, and landmark roles for screen reader compatibility.
  • Print-Friendly Design: Ensure the PDF is well-formatted for printing, with reasonable margins and page breaks.

4.5. Customization & Maintainability

  • Templated Approach: The generator will use a robust template allowing easy insertion of company-specific information (logo, policies, contact details).
  • Version Control: Include clear version numbers and effective dates to manage updates.
  • Easy Updates: Design the underlying system to allow for quick and efficient policy revisions and re-generation of the handbook.

4.6. Feedback and Acknowledgment

  • Clear Call-to-Action: For digital handbooks, a prominent "Acknowledge Receipt" button.
  • Feedback Mechanism (Optional): A channel for employees to ask questions or provide feedback on the handbook's content or clarity.
  • Digital Signature: Integrate with e-signature
gemini Output

Employee Handbook: [Your Company Name]

Welcome to [Your Company Name]!

We are thrilled to welcome you to the [Your Company Name] team! This handbook is designed to be your essential guide, providing a clear understanding of our company culture, policies, procedures, and the benefits available to you as an valued member of our organization.

At [Your Company Name], we believe that our success is built upon the collective talent, dedication, and collaboration of our employees. We are committed to fostering a positive, productive, and inclusive work environment where everyone feels respected, valued, and empowered to contribute their best.

Please take the time to read through this handbook carefully. It outlines important information that will help you navigate your journey with us, understand your rights and responsibilities, and ensure a harmonious and compliant workplace for all.

Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources department.

We look forward to a successful and rewarding future together!

Sincerely,

The Leadership Team at [Your Company Name]


1. About Our Company

Our Mission

[Your Company Name] is dedicated to [State your company's core purpose and what it strives to achieve for its customers, community, or industry. E.g., "revolutionizing sustainable energy solutions by providing innovative, accessible, and reliable products that empower a greener future."].

Our Vision

To be [Describe the future state your company aspires to reach. E.g., "the global leader in renewable energy technology, recognized for our commitment to excellence, environmental stewardship, and employee well-being."].

Our Core Values

These values are the foundation of our culture and guide our decisions and actions every day:

  • Integrity: We uphold the highest standards of honesty and ethical conduct in all our dealings.
  • Innovation: We embrace creativity and continuously seek new and better ways to solve challenges.
  • Collaboration: We believe in the power of teamwork and mutual support to achieve common goals.
  • Excellence: We are committed to delivering outstanding quality in our work and services.
  • Respect: We treat everyone with dignity, valuing diverse perspectives and contributions.
  • Customer Focus: We prioritize understanding and exceeding the expectations of our clients.

2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Your Company Name] is an equal opportunity employer. We are committed to a policy of non-discrimination and equal opportunity for all qualified applicants and employees, regardless of race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other characteristic protected by applicable law. This commitment extends to all aspects of employment, including recruitment, hiring, promotions, transfers, compensation, training, benefits, and termination.

2.2 Employment-at-Will

Employment with [Your Company Name] is "at-will." This means that either you or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable law. This "at-will" status cannot be modified by any oral or implied agreement.

2.3 Onboarding and Orientation

All new employees will participate in an onboarding and orientation program designed to introduce you to our company culture, policies, procedures, and your specific role. This ensures a smooth transition and helps you integrate effectively into our team.

2.4 Probationary Period

New employees typically undergo a probationary period of [e.g., 90 days] from their date of hire. During this period, both the employee and the company evaluate the suitability of the employment relationship. Successful completion of the probationary period does not guarantee continued employment but signifies that the employee has met initial performance and conduct expectations. The at-will nature of employment remains unchanged.


3. Workplace Conduct & Expectations

3.1 Code of Conduct

Our Code of Conduct outlines the ethical principles and professional standards we expect from every employee. It is essential that all employees understand and adhere to these guidelines to maintain a respectful, productive, and compliant workplace.

  • Professionalism: Always conduct yourself in a professional manner, both internally and when representing [Your Company Name] externally.
  • Respect and Courtesy: Treat colleagues, customers, partners, and vendors with respect, dignity, and courtesy.
  • Integrity and Honesty: Be truthful and transparent in all business dealings and communications. Avoid conflicts of interest.
  • Compliance with Laws: Adhere to all applicable local, state, and federal laws and regulations.
  • Company Property: Use company property, including equipment, vehicles, and facilities, responsibly and only for authorized business purposes.
  • Confidentiality: Protect confidential company information and customer data. (See Section 9.1)

3.2 Anti-Harassment and Anti-Discrimination Policy

[Your Company Name] is committed to providing a work environment free from harassment and discrimination based on any protected characteristic. We prohibit any form of harassment, whether verbal, physical, or visual, that creates an intimidating, hostile, or offensive work environment. This includes sexual harassment. Any employee who believes they have been subjected to harassment or discrimination, or has witnessed such behavior, is encouraged to report it immediately to their manager or HR. All complaints will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone reporting harassment or discrimination in good faith is strictly prohibited.

3.3 Workplace Safety

The safety and well-being of our employees are paramount. We are committed to providing a safe working environment and expect all employees to adhere to safety rules and procedures.

  • Report any unsafe conditions, hazards, or accidents immediately to your supervisor.
  • Follow all safety guidelines and use personal protective equipment (PPE) as required.
  • Participate in mandatory safety training programs.
  • Do not operate machinery or equipment without proper authorization and training.

3.4 Drug-Free Workplace Policy

[Your Company Name] is committed to maintaining a drug-free and alcohol-free workplace to ensure the safety, health, and productivity of all employees. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Employees under the influence of drugs or alcohol at work will be subject to disciplinary action, up to and including termination.

3.5 Information Technology and Data Security

Our IT systems and data are critical assets. Employees are responsible for:

  • Using company IT resources (computers, networks, software, email) primarily for business purposes.
  • Protecting login credentials and not sharing them with others.
  • Adhering to data security protocols, including password policies and secure handling of sensitive information.
  • Reporting any suspected security breaches or unauthorized access immediately to IT or HR.
  • Refraining from installing unauthorized software or accessing prohibited websites.

4. Compensation & Benefits

4.1 Pay Periods and Payment

Employees are paid [e.g., bi-weekly/semi-monthly] on [specific days, e.g., the 15th and the last day of the month]. Pay is disbursed via [e.g., direct deposit]. All employees are encouraged to enroll in direct deposit. If you have questions about your pay, please contact the Payroll department.

4.2 Overtime Compensation

Non-exempt employees are eligible for overtime pay at a rate of one and a half times their regular hourly rate for all hours worked in excess of [e.g., 40 hours] in a workweek, as per federal and state laws. All overtime must be pre-approved by your supervisor. Exempt employees are not eligible for overtime pay.

4.3 Performance Reviews

Regular performance reviews are conducted [e.g., annually/semi-annually] to provide feedback, recognize achievements, identify areas for development, and discuss career growth opportunities. These reviews are a two-way conversation between employees and their managers.

4.4 Health and Wellness Benefits

[Your Company Name] offers a comprehensive benefits package designed to support the health and well-being of our employees and their families. Eligibility requirements apply.

  • Medical Insurance: [Briefly describe, e.g., "Multiple plan options, including PPO and HMO, with employer contribution."].
  • Dental Insurance: [Briefly describe, e.g., "Coverage for preventative, basic, and major services."].
  • Vision Insurance: [Briefly describe, e.g., "Coverage for eye exams, glasses, and contact lenses."].
  • Employee Assistance Program (EAP): [Briefly describe, e.g., "Confidential counseling and referral services for personal and work-related issues."].

4.5 Retirement Plans

  • 401(k) Plan: [Your Company Name] offers a 401(k) retirement savings plan, allowing employees to save for retirement on a pre-tax basis. The company offers a [e.g., matching contribution of 100% on the first 3% of salary deferred, and 50% on the next 2%]. Eligibility and vesting schedules apply.

4.6 Other Benefits

  • Life Insurance: [Briefly describe, e.g., "Employer-paid basic life insurance coverage."].
  • Disability Insurance: [Briefly describe, e.g., "Short-term and long-term disability options to protect your income."].
  • Professional Development: [Briefly describe, e.g., "Opportunities for training, workshops, and tuition reimbursement for career growth."].
  • Employee Discounts: [Briefly describe, e.g., "Access to various discounts on products and services."].

Detailed information regarding eligibility, enrollment, and specific plan documents for all benefits is available from the HR department.


5. Leave Policies

5.1 Vacation Leave (Paid Time Off - PTO)

[Your Company Name] provides paid vacation leave to allow employees time for rest, recreation, and personal pursuits.

  • Accrual: Employees begin accruing PTO from their first day of employment. [Specify accrual rate, e.g., "Full-time employees accrue X hours per pay period, up to a maximum of Y hours per year."].
  • Usage: PTO requests should be submitted to your supervisor at least [e.g., two weeks] in advance for approval.
  • Carryover: [Specify carryover policy, e.g., "Up to X hours of unused PTO may be carried over to the next calendar year. Any remaining hours above the carryover limit will be forfeited."].
  • Payout: [Specify payout policy, e.g., "Unused accrued PTO will be paid out upon termination of employment, in accordance with state law."].

5.2 Sick Leave

Paid sick leave is provided for employees to address their own health needs, care for sick family members, or attend medical appointments.

  • Accrual: [Specify accrual rate, e.g., "Full-time employees accrue X hours of sick leave per pay period, up to a maximum of Y hours per year."].
  • Usage: Employees must notify their supervisor as soon as possible when taking sick leave, preferably before the start of their workday. Medical documentation may be required for absences exceeding [e.g., three consecutive days].
  • Carryover: [Specify carryover policy, e.g., "Up to X hours of unused sick leave may be carried over to the next calendar year."].
  • Payout: Unused sick leave is not paid out upon termination of employment.

5.3 Parental Leave

[Your Company Name] offers paid and/or unpaid parental leave for the birth or adoption of a child, in accordance with applicable federal and state laws (e.g., FMLA). Eligible employees may take up to [e.g., 12 weeks] of leave. Specific details regarding eligibility, duration, and pay will be provided by HR.

5.4 Bereavement Leave

Employees may take up to [e.g., three to five] days of paid bereavement leave for the death of an immediate family member (spouse, child, parent, sibling, grandparent, grandchild). Additional unpaid leave may be granted at the discretion of management.

5.5 Jury Duty

Employees summoned for jury duty will receive their regular pay for scheduled workdays while serving, for a maximum of [e.g., five days]. Employees must provide a copy of their jury summons to their supervisor and HR as soon as possible.

5.6 Military Leave

Employees who are members of the uniformed services will be granted leave for military service in accordance with the Uniformed Services Employment and Reemployment Rights Act (USERRA) and other applicable laws.

5.7 Unpaid Leave of Absence

In certain circumstances, and at the company's discretion, an unpaid leave of absence may be granted for personal reasons after all available paid leave has been exhausted. Requests for unpaid leave must be submitted in writing to your supervisor and HR for approval.


6. Workplace Policies & Procedures

6.1 Attendance and Punctuality

Consistent attendance and punctuality are essential for effective teamwork and productivity. Employees are expected to be at their workstations, ready to work, at their scheduled start time. If you anticipate being late or absent, you must notify your supervisor as soon as possible, preferably before your scheduled start time. Unapproved absences or excessive tardiness may result in disciplinary action.

6.2 Dress Code

[Your Company Name] expects employees to present a professional image appropriate for our work environment. Our dress code is [e.g., "business casual"]. This generally includes neat, clean, and well-maintained attire. Certain roles may require specific uniforms or safety gear. Your manager will provide guidance on appropriate attire for your department.

6.3 Remote Work Policy

[Your Company Name] supports remote work arrangements for eligible positions, where appropriate and beneficial to both the employee and the company.

  • Eligibility: Remote work eligibility is determined by job function, performance, and management approval.
  • Agreement: A formal remote work agreement must be signed by the employee and manager, outlining expectations, work hours, communication protocols, and equipment responsibilities.
  • Work Environment: Remote employees are responsible for maintaining a safe and productive home workspace.
  • Company Equipment: Company-provided equipment used for remote work remains the property of [Your Company Name].

6.4 Expense Reimbursement

Employees incurring business-related expenses (e.g., travel, meals, supplies) on behalf of [Your Company Name] are eligible for reimbursement. All expenses must be pre-approved by a manager, supported by original receipts, and submitted through the designated expense reporting system within [e.g., 30 days] of the expense being incurred. Specific guidelines and limits are detailed in the company's Expense Reimbursement Policy.

6.5 Employee Records and Data Privacy

It is the employee's responsibility to keep their personal information on file with HR up-to-date (e.g., address, phone number, emergency contacts, marital status, beneficiaries). This ensures accurate payroll, benefits, and communication. [Your Company Name] maintains employee records confidentially and in accordance with all applicable privacy laws. Access to these records is restricted to authorized personnel.


7. Disciplinary Actions & Grievance Procedures

7.1 Disciplinary Actions

[Your Company Name] maintains a progressive disciplinary policy to address performance or conduct issues. The goal is to correct unacceptable behavior and promote consistent standards. Disciplinary actions may include, but are not limited to:

  • Verbal warning
  • Written warning
  • Performance Improvement Plan (PIP)
  • Suspension (with or without pay)
  • Demotion
  • Termination of employment

The specific action taken will depend on the severity of the offense, prior disciplinary history, and other relevant factors. The company reserves the right to skip steps in the progressive disciplinary process based on the nature of the infraction.

7.2 Grievance Procedure

Employees who have a work-related concern, complaint, or grievance are encouraged to bring it to the attention of management promptly.

  1. Step 1: Discuss with Supervisor: The employee should first attempt to resolve the issue by discussing it with their immediate supervisor.
  2. Step 2: Contact HR: If the issue is not resolved with the supervisor, or if the complaint involves the supervisor, the employee should contact the Human Resources department.
  3. Step 3: Senior Management: If the issue remains unresolved after engaging with HR, HR may escalate the matter to senior management for further review.

All complaints will be handled with discretion and investigated thoroughly. Retaliation against any employee for raising a concern in good faith is strictly prohibited.


8. Compliance & Legal

8.1 Confidentiality and Non-Disclosure

Employees are entrusted with confidential and proprietary information belonging to [Your Company Name], its customers, and partners. This includes, but is not limited to, trade secrets, financial data, customer lists, product designs, marketing strategies, and employee information. Employees must:

  • Maintain strict confidentiality of all such information.
gemini Output

This document provides a comprehensive, detailed, and professional Employee Handbook template for [Company Name]. This output is designed to be a thorough foundation, covering essential company policies, benefits, code of conduct, leave policies, and compliance sections.

Important Note: This handbook is a template and must be thoroughly reviewed, customized, and approved by [Company Name]'s legal counsel and leadership to ensure compliance with all applicable federal, state, and local laws, and to accurately reflect specific company practices and benefits. Placeholders [ ] indicate areas requiring company-specific information.


Employee Handbook: [Company Name]

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 organization. This handbook is designed to be a comprehensive guide to our company's mission, values, policies, procedures, and the benefits available to you as an employee.

At [Company Name], we believe that our employees are our most valuable asset. We are committed to fostering a supportive, inclusive, and productive work environment where everyone can thrive and contribute to our collective success. We encourage you to read this handbook carefully, as it contains important information about your employment, rights, and responsibilities.

Should you have any questions about the contents of this handbook, please do not hesitate to contact [HR Department/Manager Name].

Welcome aboard! We look forward to a successful future together.

Sincerely,

The Leadership Team

[Company Name]


Table of Contents

  1. Introduction

* Welcome Message

* Purpose of the Handbook

* Handbook Acknowledgment & Disclaimer

  1. Our Company Culture

* Mission, Vision, and Values

* Company History and Overview

* Organizational Structure

  1. Employment Basics

* Employment-at-Will Statement

* Equal Employment Opportunity (EEO)

* Anti-Discrimination and Anti-Harassment Policy

* Workplace Safety and Health

* Drug and Alcohol-Free Workplace Policy

* Background Checks and Onboarding

* Confidentiality and Non-Disclosure

* Employee Records and Privacy

  1. Code of Conduct and Ethics

* General Expectations

* Professionalism and Respect

* Conflict of Interest

* Data Security and Privacy

* Use of Company Property and Resources

* Social Media Policy

* Reporting Misconduct / Whistleblower Policy

* Workplace Violence Prevention

  1. Compensation and Benefits Overview

* Pay Periods and Direct Deposit

* Overtime Policy

* Performance Reviews and Salary Adjustments

* Health and Wellness Benefits (Medical, Dental, Vision)

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

* Life and Disability Insurance

* Employee Assistance Program (EAP)

* Other Benefits (e.g., Wellness Programs, Tuition Reimbursement)

  1. Leave Policies

* Paid Time Off (PTO) / Vacation Policy

* Sick Leave Policy

* Company Holidays

* Family and Medical Leave Act (FMLA)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Other Leaves (e.g., Voting Leave)

  1. Workplace Policies and Procedures

* Work Hours and Attendance

* Remote Work Policy (if applicable)

* Dress Code

* Communication Guidelines

* Performance Management and Disciplinary Action

* Termination of Employment

* Exit Procedures

  1. Compliance and Legal Notices

* Americans with Disabilities Act (ADA)

* Workers' Compensation

* COBRA (Consolidated Omnibus Budget Reconciliation Act)

* HIPAA (Health Insurance Portability and Accountability Act)

* OSHA (Occupational Safety and Health Administration)

* Sexual Harassment Prevention (Detailed)

* At-Will Employment Disclaimer

* Immigration Law Compliance (I-9)

* Fair Labor Standards Act (FLSA)

  1. Acknowledgement Form

1. Introduction

Welcome Message

(See above)

Purpose of the Handbook

This handbook serves as a guide for all employees of [Company Name], outlining the policies, procedures, and benefits that govern our workplace. It is designed to provide clarity on our expectations, your rights, and the resources available to you. This handbook supersedes all previous oral or written policies, procedures, and statements.

Handbook Acknowledgment & Disclaimer

This handbook is a summary of [Company Name]'s current policies, benefits, and procedures. It is not an employment contract, and nothing in this handbook should be construed as creating a contract of employment between [Company Name] and any employee. [Company Name] reserves the right to modify, revoke, suspend, terminate, or change any or all policies, procedures, and benefits described in this handbook, in whole or in part, at any time, with or without notice, subject to applicable legal requirements. Any such changes will be communicated to employees.

Employees are responsible for familiarizing themselves with the contents of this handbook and adhering to the policies outlined herein.

2. Our Company Culture

Mission, Vision, and Values

  • Mission: [Company Mission Statement - e.g., To innovate sustainable solutions that empower our clients and enrich our communities.]
  • Vision: [Company Vision Statement - e.g., To be the leading provider of eco-friendly technology, recognized for our integrity and impact.]
  • Values:

* Integrity: Upholding honesty and strong moral principles in all our actions.

* Innovation: Continuously seeking new and better ways to achieve our goals.

* Collaboration: Working together, supporting each other, and fostering a spirit of teamwork.

* Excellence: Striving for the highest quality in our work and services.

* Respect: Valuing diversity, treating everyone with dignity, and fostering an inclusive environment.

* [Add/Modify other core values relevant to your company]

Company History and Overview

[Brief paragraph about the company's founding, key milestones, and what it does.]

Organizational Structure

[Brief overview of the company's organizational structure, e.g., "We operate with a flat organizational structure designed to foster collaboration and quick decision-making." Or "Our structure is departmentalized with clear reporting lines, designed to ensure accountability and expertise."]

3. Employment Basics

Employment-at-Will Statement

Employment with [Company Name] is "at-will." This means that either the employee 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, or in any company document, shall be construed to create a contract of employment for a definite term.

Equal Employment Opportunity (EEO)

[Company Name] is an equal opportunity employer and is 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, gender identity, and sexual orientation), national origin, age, disability, marital status, veteran status, genetic information, or any other characteristic protected by law. This policy applies to all terms and conditions of employment, including recruitment, hiring, placement, promotion, termination, layoff, recall, transfer, leaves of absence, compensation, and training.

Anti-Discrimination and Anti-Harassment Policy

[Company Name] is committed to maintaining a work environment free from discrimination and harassment. Harassment, whether verbal, physical, or visual, based on any protected characteristic (e.g., race, color, religion, sex, national origin, age, disability, etc.) is strictly prohibited. This includes unwelcome conduct that creates an intimidating, hostile, or offensive work environment. Any employee who believes they have been subjected to discrimination or harassment, or who witnesses such conduct, should report it immediately to [HR Department/Manager Name]. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken. Retaliation against any employee for making a good-faith complaint or participating in an investigation is also strictly prohibited.

Workplace Safety and Health

[Company Name] is committed to providing a safe and healthy work environment for all employees. We comply with all applicable safety and health regulations, including those mandated by OSHA.

  • Employee Responsibilities: All employees are responsible for following safety rules and procedures, using personal protective equipment (PPE) when required, and immediately reporting any unsafe conditions, hazards, or work-related injuries/illnesses to [Supervisor/HR/Safety Officer].
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and emergency contact information. In case of an emergency, follow established procedures and directions from [Emergency Coordinator/Supervisor].
  • First Aid: [Specify location of first aid kits and trained personnel, if any.]

Drug and Alcohol-Free Workplace Policy

[Company Name] is committed to maintaining a safe, healthy, and productive work environment. The use, possession, sale, transfer, or being under the influence of illegal drugs, unauthorized controlled substances, or alcohol on company premises, during work hours, or while conducting company business is strictly prohibited. Employees are expected to report to work fit for duty and free from the influence of any substance that could impair their performance or endanger themselves or others. Violation of this policy will result in disciplinary action, up to and including termination of employment. [Company Name] reserves the right to conduct drug and alcohol testing as permitted by law.

Background Checks and Onboarding

All new hires are subject to background checks, reference checks, and verification of eligibility to work in the United States, as permitted by law. The onboarding process includes completion of all necessary paperwork, orientation to company policies and procedures, and introduction to your team and responsibilities.

Confidentiality and Non-Disclosure

Employees may have access to confidential and proprietary information, including but not limited to trade secrets, customer lists, financial data, product development, marketing strategies, and employee data. Employees are required to maintain the strictest confidentiality of such information both during and after their employment. Unauthorized disclosure of confidential information is strictly prohibited and may result in disciplinary action, up to and including termination, and legal action. Employees may be required to sign a separate Confidentiality and Non-Disclosure Agreement.

Employee Records and Privacy

[Company Name] maintains employee records containing personal and employment-related information. These records are confidential and accessible only to authorized personnel on a need-to-know basis. Employees have the right to review their personnel file [e.g., annually, upon request] in the presence of [HR Department/Manager Name]. Please notify [HR Department] promptly of any changes to your personal information (e.g., address, phone number, emergency contacts, marital status, beneficiaries).

4. Code of Conduct and Ethics

General Expectations

Employees are expected to act with integrity, honesty, and professionalism in all business dealings, both internally and externally. This includes adherence to all company policies, procedures, and applicable laws.

Professionalism and Respect

  • Respectful Workplace: Treat all colleagues, customers, vendors, and partners with respect, dignity, and courtesy.
  • Professional Demeanor: Maintain a professional demeanor and conduct in all work-related interactions.
  • Constructive Feedback: Provide and receive feedback constructively, focusing on performance and behavior, not personal attacks.
  • Teamwork: Collaborate effectively with team members and support a positive work environment.

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 the company, accepting gifts or favors that could influence business decisions, or using company resources for personal gain. Any potential conflict of interest must be disclosed immediately to [Supervisor/HR Department].

Data Security and Privacy

Protecting [Company Name]'s data and the privacy of our customers and employees is paramount. Employees are responsible for:

  • Safeguarding company data, systems, and equipment.
  • Using strong, unique passwords and not sharing them.
  • Adhering to data access and usage policies.
  • Reporting any suspected data breaches or security incidents immediately to [IT Department/Security Officer].
  • Complying with all data privacy regulations (e.g., GDPR, CCPA, HIPAA where applicable).

Use of Company Property and Resources

Company property, including equipment, vehicles, software, and intellectual property, is provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, is not excessive, and does not violate any company policies or laws. Employees are responsible for the proper care and security of all company property assigned to them. Misuse, theft, or unauthorized removal of company property is prohibited and will result in disciplinary action.

Social Media Policy

Employees are expected to exercise good judgment and maintain professionalism when using social media, both for personal and business purposes.

  • Do not post confidential or proprietary company information.
  • Do not disparage [Company Name], its employees, customers, or partners.
  • Be mindful that anything posted online can be widely disseminated and reflect on [Company Name].
  • Clearly state that your views are your own and not those of [Company Name] when discussing work-related topics on personal social media accounts.
  • Harassment, bullying, or discriminatory content on social media, even if outside of work hours, that impacts the workplace or company reputation, is a violation of this policy.

Reporting Misconduct / Whistleblower Policy

[Company Name] encourages employees to report any suspected violations of law, company policy, or ethical misconduct without fear of retaliation. If you witness or suspect such misconduct, you should report it to your [Supervisor, HR Department, or designated confidential reporting channel (e.g., ethics hotline if available)]. All reports will be handled with discretion and investigated thoroughly. [Company Name] prohibits retaliation against any employee who, in good faith, reports a concern or participates in an investigation.

Workplace Violence Prevention

[Company Name] is committed to providing a workplace free from violence, threats, and intimidation. Any act or threat of violence, including verbal threats, physical assaults, or property damage, is strictly prohibited. Employees who witness or receive threats of violence should report them immediately to [Supervisor/HR Department/Security]. Appropriate action will be taken to ensure the safety of

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
\n\n\n"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n
\n )\n}\nexport default App\n"); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e}\n.app{min-height:100vh;display:flex;flex-direction:column}\n.app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px}\nh1{font-size:2.5rem;font-weight:700}\n"); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\n## Open in IDE\nOpen the project folder in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "type": "module",\n "scripts": {\n "dev": "vite",\n "build": "vue-tsc -b && vite build",\n "preview": "vite preview"\n },\n "dependencies": {\n "vue": "^3.5.13",\n "vue-router": "^4.4.5",\n "pinia": "^2.3.0",\n "axios": "^1.7.9"\n },\n "devDependencies": {\n "@vitejs/plugin-vue": "^5.2.1",\n "typescript": "~5.7.3",\n "vite": "^6.0.5",\n "vue-tsc": "^2.2.0"\n }\n}\n'); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport { resolve } from 'path'\n\nexport default defineConfig({\n plugins: [vue()],\n resolve: { alias: { '@': resolve(__dirname,'src') } }\n})\n"); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]}\n'); zip.file(folder+"tsconfig.app.json",'{\n "compilerOptions":{\n "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"],\n "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true,\n "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue",\n "strict":true,"paths":{"@/*":["./src/*"]}\n },\n "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"]\n}\n'); zip.file(folder+"env.d.ts","/// \n"); zip.file(folder+"index.html","\n\n\n \n \n "+slugTitle(pn)+"\n\n\n
\n \n\n\n"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './assets/main.css'\n\nconst app = createApp(App)\napp.use(createPinia())\napp.mount('#app')\n"); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue","\n\n\n\n\n"); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547}\n"); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\nOpen in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "scripts": {\n "ng": "ng",\n "start": "ng serve",\n "build": "ng build",\n "test": "ng test"\n },\n "dependencies": {\n "@angular/animations": "^19.0.0",\n "@angular/common": "^19.0.0",\n "@angular/compiler": "^19.0.0",\n "@angular/core": "^19.0.0",\n "@angular/forms": "^19.0.0",\n "@angular/platform-browser": "^19.0.0",\n "@angular/platform-browser-dynamic": "^19.0.0",\n "@angular/router": "^19.0.0",\n "rxjs": "~7.8.0",\n "tslib": "^2.3.0",\n "zone.js": "~0.15.0"\n },\n "devDependencies": {\n "@angular-devkit/build-angular": "^19.0.0",\n "@angular/cli": "^19.0.0",\n "@angular/compiler-cli": "^19.0.0",\n "typescript": "~5.6.0"\n }\n}\n'); zip.file(folder+"angular.json",'{\n "$schema": "./node_modules/@angular/cli/lib/config/schema.json",\n "version": 1,\n "newProjectRoot": "projects",\n "projects": {\n "'+pn+'": {\n "projectType": "application",\n "root": "",\n "sourceRoot": "src",\n "prefix": "app",\n "architect": {\n "build": {\n "builder": "@angular-devkit/build-angular:application",\n "options": {\n "outputPath": "dist/'+pn+'",\n "index": "src/index.html",\n "browser": "src/main.ts",\n "tsConfig": "tsconfig.app.json",\n "styles": ["src/styles.css"],\n "scripts": []\n }\n },\n "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"}\n }\n }\n }\n}\n'); zip.file(folder+"tsconfig.json",'{\n "compileOnSave": false,\n "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]},\n "references":[{"path":"./tsconfig.app.json"}]\n}\n'); zip.file(folder+"tsconfig.app.json",'{\n "extends":"./tsconfig.json",\n "compilerOptions":{"outDir":"./dist/out-tsc","types":[]},\n "files":["src/main.ts"],\n "include":["src/**/*.d.ts"]\n}\n'); zip.file(folder+"src/index.html","\n\n\n \n "+slugTitle(pn)+"\n \n \n \n\n\n \n\n\n"); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser';\nimport { appConfig } from './app/app.config';\nimport { AppComponent } from './app/app.component';\n\nbootstrapApplication(AppComponent, appConfig)\n .catch(err => console.error(err));\n"); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; }\n"); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n standalone: true,\n imports: [RouterOutlet],\n templateUrl: './app.component.html',\n styleUrl: './app.component.css'\n})\nexport class AppComponent {\n title = '"+pn+"';\n}\n"); zip.file(folder+"src/app/app.component.html","
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n \n
\n"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1}\n"); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { routes } from './app.routes';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n};\n"); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router';\n\nexport const routes: Routes = [];\n"); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nng serve\n# or: npm start\n\`\`\`\n\n## Build\n\`\`\`bash\nng build\n\`\`\`\n\nOpen in VS Code with Angular Language Service extension.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n.angular/\n"); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join("\n"):"# add dependencies here\n"; zip.file(folder+"main.py",src||"# "+title+"\n# Generated by PantheraHive BOS\n\nprint(title+\" loaded\")\n"); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n\`\`\`\n\n## Run\n\`\`\`bash\npython main.py\n\`\`\`\n"); zip.file(folder+".gitignore",".venv/\n__pycache__/\n*.pyc\n.env\n.DS_Store\n"); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+"\n"; zip.file(folder+"package.json",pkgJson); var fallback="const express=require(\"express\");\nconst app=express();\napp.use(express.json());\n\napp.get(\"/\",(req,res)=>{\n res.json({message:\""+title+" API\"});\n});\n\nconst PORT=process.env.PORT||3000;\napp.listen(PORT,()=>console.log(\"Server on port \"+PORT));\n"; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000\n"); zip.file(folder+".gitignore","node_modules/\n.env\n.DS_Store\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\n\`\`\`\n\n## Run\n\`\`\`bash\nnpm run dev\n\`\`\`\n"); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:"\n\n\n\n\n"+title+"\n\n\n\n"+code+"\n\n\n\n"; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */\n*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e}\n"); zip.file(folder+"script.js","/* "+title+" — scripts */\n"); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Open\nDouble-click \`index.html\` in your browser.\n\nOr serve locally:\n\`\`\`bash\nnpx serve .\n# or\npython3 -m http.server 3000\n\`\`\`\n"); zip.file(folder+".gitignore",".DS_Store\nnode_modules/\n.env\n"); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/\.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/\*\*(.+?)\*\*/g,"$1"); hc=hc.replace(/\n{2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\nFiles:\n- "+app+".md (Markdown)\n- "+app+".html (styled HTML)\n"); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); } function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}