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

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

Step 1 of 3: Analyze Requirements - Employee Handbook Generator

This document outlines the comprehensive requirements analysis for the "Employee Handbook Generator," a tool designed to streamline the creation of professional, compliant, and customized employee handbooks. This analysis covers functional and non-functional specifications, detailed design elements, user experience recommendations, and visual branding guidelines to ensure a robust and user-friendly solution.


1. Project Overview & Scope

The "Employee Handbook Generator" will provide a guided, modular approach for organizations to build a comprehensive employee handbook. It will offer pre-written policy templates, customizable sections, and a structured workflow to ensure all critical components are included, from company culture to compliance.

Key Objectives:

  • Enable quick and efficient handbook creation.
  • Ensure legal compliance with standard labor laws (with disclaimers for legal review).
  • Provide a professional and customizable output.
  • Simplify complex policy writing for HR professionals and business owners.

2. Detailed Design Specifications

2.1. Functional Requirements

The generator will offer the following core functionalities:

  • User Onboarding & Company Profile:

* Initial setup for company name, logo, industry, size, and location(s).

* Ability to save and edit company profile information.

  • Modular Handbook Structure:

* Pre-defined sections for common handbook topics (e.g., Welcome, Code of Conduct, Benefits, Leave Policies, Compliance).

* Ability to add, remove, and reorder sections.

* Option to add custom sections.

  • Policy Template Library:

* Extensive library of pre-written, legally informed policy templates for each section.

* Templates categorized by topic (e.g., Anti-Harassment, PTO, Remote Work, IT Usage).

* Ability to select a template, customize it, or write a policy from scratch.

  • Content Customization:

* Rich Text Editor (WYSIWYG) for all policy content.

* Dynamic fields/placeholders (e.g., [Company Name], [Employee Name], [HR Contact]) that auto-populate from the company profile or user input.

* Checkboxes and dropdowns for common policy variations (e.g., "At-Will Employment" state-specific clauses, different PTO accrual methods).

  • Version Control & Saving:

* Automatic saving of progress.

* Ability to save multiple handbook drafts.

* Version history for published handbooks (optional, for advanced tiers).

  • Preview & Review:

* Real-time preview of the handbook as it's built.

* Dedicated review mode to check for completeness and consistency.

  • Export & Download:

* Export handbook as a professional PDF document.

* Option to export as an editable DOCX file.

* Branding options for the exported document (company logo, colors, fonts).

  • Guidance & Support:

* Contextual help text, tooltips, and explanations for complex policies.

* Legal disclaimers advising users to consult legal counsel.

* Progress tracker for handbook completion.

2.2. Non-Functional Requirements

  • Performance: Fast loading times, responsive UI.
  • Security: Data encryption, secure user authentication (SSO optional).
  • Scalability: Ability to handle increasing user numbers and data.
  • Usability: Intuitive interface, minimal learning curve.
  • Accessibility: WCAG 2.1 AA compliance (e.g., keyboard navigation, screen reader compatibility).
  • Maintainability: Modular code, well-documented.
  • Reliability: High uptime, robust error handling.

3. Wireframe Descriptions

The user flow will guide the user through a logical sequence of steps to build their handbook.

3.1. Dashboard / Home Page

  • Layout: Central content area with quick actions. Left-hand navigation (optional, could be top-level).
  • Elements:

* "Start New Handbook" button.

* "Continue Drafting" section with a list of saved handbooks (Handbook Title, Last Modified Date, Progress Bar).

* "Published Handbooks" section (Handbook Title, Version, Publish Date, Download Link).

* "Company Profile" link/button.

* Optional: "Resource Library" or "Help & Support" links.

  • Purpose: Entry point, quick access to ongoing and completed work.

3.2. Company Profile Setup Page

  • Layout: Form-based, multi-step (if extensive).
  • Elements:

* Input fields for Company Name, Legal Entity, Industry, Number of Employees.

* Address fields (Street, City, State, Zip, Country).

* Upload field for Company Logo.

* Contact information fields (HR Lead Name, Email, Phone).

* "Save & Continue" button.

  • Purpose: Collect essential company-specific data to populate dynamic fields in the handbook.

3.3. Handbook Structure & Navigation Page (Section Management)

  • Layout: Left sidebar with a list of handbook sections. Main content area for section details or drag-and-drop reordering.
  • Elements:

* List of standard handbook sections (e.g., Welcome, Code of Conduct, Compensation).

* "Add Custom Section" button.

* Drag-and-drop handles for reordering sections.

* "Delete Section" icon for custom sections.

* Progress bar indicating handbook completion.

* "Next Section" / "Previous Section" navigation.

  • Purpose: Define the overall structure and flow of the handbook.

3.4. Section Detail Page (Policy Editor)

  • Layout: Left sidebar for section navigation, main content area for policy editing.
  • Elements:

* Section Title: Editable.

* Policy Template Selector: Dropdown or radio buttons to choose from available templates (e.g., "Standard PTO Policy," "Accrual-Based PTO Policy").

* Rich Text Editor (WYSIWYG):

* Standard formatting options (bold, italic, underline, lists, headings).

* Option to insert dynamic fields (e.g., [Company Name], [HR Contact]).

* Highlighting of areas requiring user input or review.

* Contextual Help/Guidance: Tooltips, info icons with legal considerations or best practices.

* Customization Options: Checkboxes, dropdowns, input fields for specific policy nuances (e.g., "Probationary Period Length").

* "Save Section" / "Mark as Complete" button.

  • Purpose: Write, edit, and customize individual policies within each handbook section.

3.5. Handbook Preview Page

  • Layout: Full-page display of the generated handbook content, mimicking the final PDF/DOCX output.
  • Elements:

* Header with company logo and handbook title.

* Table of Contents (clickable links).

* Scrollable content area displaying all selected and customized policies.

* "Edit Handbook" button (to return to editing).

* "Download Options" button.

  • Purpose: Allow users to review the complete handbook before finalization.

3.6. Download & Export Page

  • Layout: Simple form with options.
  • Elements:

* Download as PDF button.

* Download as DOCX button.

* Optional: "Publish to Web" link (for internal company portals).

* Optional: Branding options (e.g., "Include Company Logo on Cover," "Apply Custom Theme Color").

* Legal disclaimer reminder.

  • Purpose: Provide various output formats for the completed handbook.

4. Color Palettes

A professional, trustworthy, and approachable aesthetic is crucial for an HR-related tool.

4.1. Primary Palette (Core Brand Colors)

  • Deep Teal / Navy Blue: #004D40 (Deep Teal) or #1A237E (Dark Blue)

Usage:* Headers, primary buttons, main navigation accents.

Rationale:* Conveys professionalism, trust, stability, and sophistication.

  • Muted Grey / Off-White: #F5F5F5 (Off-White) or #E0E0E0 (Light Grey)

Usage:* Backgrounds, card elements, secondary text.

Rationale:* Provides a clean, modern, and spacious feel, enhancing readability.

4.2. Secondary Palette (Accent & UI Elements)

  • Soft Gold / Light Orange: #FFB300 (Amber) or #FF8F00 (Orange 700)

Usage:* Call-to-action buttons, progress indicators, interactive elements, highlights.

Rationale:* Adds warmth, energy, and draws attention without being overpowering.

  • Subtle Green: #4CAF50 (Green)

Usage:* Success messages, completion indicators.

Rationale:* Positive feedback.

  • Soft Red: #F44336 (Red)

Usage:* Error messages, deletion warnings.

Rationale:* Alerts and warnings.

4.3. Typography

  • Headings: Montserrat or Lato (clean, modern sans-serif).
  • Body Text: Open Sans or Roboto (highly readable, professional sans-serif).
  • Font Sizes: Clear hierarchy (e.g., H1: 2.5em, H2: 1.8em, Body: 1em, Small text: 0.8em).

5. User Experience (UX) Recommendations

5.1. Clarity & Guidance

  • Onboarding Tour: A brief, interactive tour for first-time users explaining the workflow.
  • Contextual Help: Use tooltips (? icons) next to complex fields or policy options to provide instant explanations, best practices, and legal considerations (with disclaimers).
  • Examples: Provide example text within policy templates to guide users on what information to include.
  • Progress Indicators: A clear visual progress bar or checklist showing how much of the handbook is completed.

5.2. Ease of Use & Efficiency

  • Intuitive Navigation: Consistent placement of navigation elements (e.g., "Next," "Previous," "Save").
  • Drag-and-Drop: Enable drag-and-drop functionality for reordering sections and potentially policies within sections.
  • Smart Defaults: Pre-select common or recommended policy options where applicable, allowing users to override.
  • Auto-Save: Implement auto-save functionality to prevent data loss.
  • Dynamic Placeholders: Clearly highlight and explain how dynamic fields (e.g., [Company Name]) work, ensuring they are easily identifiable in the editor.

5.3. Feedback & Assurance

  • Real-time Preview: Ensure the preview updates dynamically as changes are made, providing immediate visual feedback.
  • Success Messages: Clear, non-intrusive notifications for successful saves, section completions, or downloads.
  • Error Handling: Specific and actionable error messages for invalid inputs or failed operations.
  • Legal Disclaimers: Prominently display disclaimers advising users to consult legal professionals for final review, especially for state-specific or complex policies.

5.4. Customization & Flexibility

  • Rich Text Editor: Provide a full-featured WYSIWYG editor that supports common formatting, image insertion (for logos), and table creation.
  • Template Variety: Offer a diverse range of policy templates to cater to different industries and company sizes.
  • Branding Options: Allow users to upload their company logo, select primary brand colors for the handbook output, and choose from a selection of professional fonts for the final document.

5.5. Accessibility & Responsiveness

  • WCAG Compliance: Design with accessibility in mind, ensuring proper alt text for images, keyboard navigation, sufficient color contrast, and clear focus states.
  • Responsive Design: The generator interface should be fully responsive and optimized for use on various devices (desktop, tablet, mobile), although the primary use case is expected to be desktop.

This detailed analysis provides a robust foundation for the development of the Employee Handbook Generator, ensuring it meets user needs for functionality, usability, and professional output. The next steps will involve translating these requirements into detailed technical specifications and commencing the development phase.

gemini Output

This output delivers a comprehensive, detailed, and professional Employee Handbook content, ready for publishing. It includes all requested sections: company policies, benefits overview, code of conduct, leave policies, and compliance, structured with clear markdown headers and engaging language.


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

Welcome to the Team!

Welcome to [Company Name]! We are thrilled to have you join our growing team. This Employee Handbook is designed to be your essential guide, providing you with important information about our company culture, policies, benefits, and expectations. It reflects our commitment to fostering a positive, productive, and inclusive work environment where everyone can thrive.

At [Company Name], we believe that our success is built on the talent, dedication, and collaboration of our employees. This handbook outlines the principles that guide our interactions, the standards we uphold, and the resources available to support your journey with us.

Please take the time to read through this handbook carefully. It is a living document, and while it covers a wide range of topics, it cannot anticipate every situation. We encourage you to reach out to your manager or the HR Department if you have any questions or require clarification on any policy.

We are excited about your contributions and look forward to achieving great things together!

Sincerely,

The Leadership Team at [Company Name]

Table of Contents

  1. Our Company: Mission, Vision, Values

* Our Story and Purpose

* What We Stand For

  1. Employment Basics

* Equal Employment Opportunity

* At-Will Employment Statement

* Employment Classifications

* Onboarding and Performance Management

* Promotions, Transfers, and Separations

  1. Workplace Conduct & Expectations (Code of Conduct)

* Professionalism and Respect

* Anti-Harassment and Anti-Discrimination Policy

* Workplace Violence Prevention

* Drug and Alcohol-Free Workplace

* Attendance and Punctuality

* Dress Code

* Use of Company Property and Resources

* Confidentiality and Data Security

* Social Media Policy

* Conflict of Interest and Ethics

  1. Compensation & Benefits Overview

* Compensation Philosophy

* Pay Periods and Direct Deposit

* Overtime Policy

* Health and Wellness Benefits

* Retirement Plans

* Life, Disability, and Other Insurances

* Employee Assistance Program (EAP)

* Additional Perks and Development

  1. Leave Policies

* Paid Time Off (PTO) / Vacation

* Sick Leave

* Company Holidays

* Bereavement Leave

* Jury Duty Leave

* Family and Medical Leave Act (FMLA)

* Other Leaves of Absence

  1. Workplace Safety & Security

* Safety Procedures and Training

* Emergency Preparedness

* Accident Reporting

* Workplace Security

  1. Compliance & Legal Information

* Americans with Disabilities Act (ADA)

* Whistleblower Policy

* Data Privacy and Protection

* Handbook Disclaimer

* Acknowledgement of Receipt


1. Our Company: Mission, Vision, Values

Our Story and Purpose

[Company Name] was founded in [Year] with a vision to [briefly state founding vision or purpose]. Since then, we have grown into [describe current status, e.g., "a leader in the [industry] sector," or "a dynamic and innovative company committed to..."]. Our journey is defined by [mention 1-2 key achievements or defining characteristics].

What We Stand For

Our Mission: To [Insert Company Mission Statement - e.g., "innovate solutions that empower our customers and enrich the lives of our employees."].

Our Vision: To [Insert Company Vision Statement - e.g., "be the most trusted and respected partner in the [industry] globally."].

Our Core Values: These values are the foundation of our culture and guide our decisions and actions every day.

  • Integrity: We act with honesty, transparency, and ethical conduct in all our dealings.
  • Innovation: We embrace creativity, continuous learning, and forward-thinking to drive progress.
  • Collaboration: We foster a supportive environment where teamwork and mutual respect lead to shared success.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Excellence: We strive for the highest quality in everything we do, consistently seeking improvement.
  • [Add other relevant company values]

2. Employment Basics

Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse and inclusive workplace where all employees and applicants are treated with dignity and respect. We recruit, employ, train, compensate, and promote without regard to race, religion, color, national origin, age, sex, gender, sexual orientation, gender identity, marital status, disability, veteran status, or any other protected characteristic as required by applicable law. This commitment extends to all employment practices, including hiring, promotions, transfers, compensation, benefits, training, and terminations.

At-Will Employment Statement

Employment with [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 changed by any oral or written statement, express or implied, unless a written agreement to that effect is signed by an authorized executive of [Company Name].

Employment Classifications

To clarify employment status and eligibility for benefits, [Company Name] classifies employees as follows:

  • Full-Time Exempt: Employees who regularly work 40 hours or more per week, hold a professional, administrative, or executive position, and are exempt from overtime pay regulations under the Fair Labor Standards Act (FLSA).
  • Full-Time Non-Exempt: Employees who regularly work 40 hours or more per week and are eligible for overtime pay for hours worked over 40 in a workweek, as required by the FLSA.
  • Part-Time Exempt: Employees who work less than 40 hours per week, hold an exempt position, and are not eligible for overtime.
  • Part-Time Non-Exempt: Employees who work less than 40 hours per week and are eligible for overtime pay for hours worked over 40 in a workweek (if applicable by state law or company policy for part-time employees).
  • Temporary: Employees hired for a specific project or limited duration. They may be full-time or part-time and may or may not be eligible for certain company benefits, as outlined at the time of hire.
  • Intern: Individuals gaining supervised practical experience, typically for a limited duration. Eligibility for benefits will be specified upon engagement.

Onboarding and Performance Management

Onboarding: Your first few weeks are crucial for your success. Our comprehensive onboarding program is designed to integrate you smoothly into the team, introduce you to our culture, and provide the tools and information you need to excel in your role.

Performance Management: We are committed to your professional growth. Our performance management process includes:

  • Goal Setting: Collaboratively setting clear, measurable goals.
  • Regular Feedback: Ongoing discussions with your manager to provide constructive feedback and support.
  • Performance Reviews: Formal reviews conducted [e.g., annually, semi-annually] to assess performance, discuss career development, and recognize achievements.
  • Professional Development: Opportunities for training, skill enhancement, and career advancement.

Promotions, Transfers, and Separations

Promotions and Transfers: [Company Name] encourages internal growth and development. Employees may be considered for promotions or transfers based on performance, skills, experience, and business needs. Opportunities are often posted internally.

Resignation: If you choose to resign, we request a minimum of two weeks' written notice to your manager and the HR Department. This allows for an orderly transition and knowledge transfer.

Termination: Employment may be terminated by [Company Name] for various reasons, including but not limited to performance issues, policy violations, or business needs, consistent with our at-will employment policy and applicable laws.


3. Workplace Conduct & Expectations (Code of Conduct)

Our Code of Conduct outlines the ethical and behavioral standards we expect from every employee. Adhering to these principles ensures a respectful, safe, and productive workplace for all.

Professionalism and Respect

All employees are expected to treat colleagues, customers, partners, and the public with respect, courtesy, and professionalism. This includes:

  • Communicating clearly and constructively.
  • Listening attentively and considering diverse perspectives.
  • Avoiding gossip, rumors, and disrespectful language.
  • Resolving conflicts maturely and respectfully.

Anti-Harassment and Anti-Discrimination Policy

[Company Name] has a zero-tolerance policy for harassment and discrimination of any kind. This includes, but is not limited to, harassment based on race, religion, color, national origin, age, sex, gender, sexual orientation, gender identity, marital status, disability, veteran status, or any other protected characteristic.

Harassment includes unwelcome conduct that is offensive, intimidating, hostile, or interferes with an individual's work performance. This can be verbal, physical, or visual.

Sexual Harassment includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical conduct of a sexual nature.

Reporting Procedure: If you experience or witness harassment or discrimination, you must report it immediately to your manager, the HR Department, or any member of the leadership team. All reports will be investigated promptly and thoroughly, with confidentiality maintained to the extent possible. Retaliation against anyone who reports a concern or participates in an investigation is strictly prohibited and will result in disciplinary action, up to and including termination.

Workplace Violence Prevention

[Company Name] is committed to providing a safe work environment free from violence. Threats, intimidation, or acts of violence are strictly prohibited. Any employee who engages in such behavior will face disciplinary action, up to and including termination, and may be reported to law enforcement. Report any threats or violent incidents immediately to your manager or HR.

Drug and Alcohol-Free Workplace

To ensure a safe and productive environment, [Company Name] maintains a drug and alcohol-free workplace. The use, possession, distribution, or being under the influence of illegal drugs or alcohol on company premises or during work hours is strictly prohibited. Employees may be subject to drug and alcohol testing under certain circumstances, consistent with applicable laws.

Attendance and Punctuality

Consistent attendance and punctuality are essential for effective teamwork and business operations.

  • Employees are expected to arrive on time and be ready to work at the start of their scheduled shift.
  • If you are unable to come to work or will be late, you must notify your manager as soon as possible, ideally before your scheduled start time, following departmental procedures.
  • Excessive absenteeism or tardiness may result in disciplinary action.

Dress Code

Employees are expected to dress in a professional and appropriate manner for the workplace. The dress code for [Company Name] is [e.g., business casual, professional, smart casual]. Specific guidelines:

  • [e.g., Clean, neat, and well-maintained clothing.]
  • [e.g., Avoid overly casual attire such as ripped jeans, tank tops, flip-flops.]
  • [e.g., Consider safety requirements for certain roles or areas.]
  • If you are unsure about appropriate attire, please consult your manager or HR.

Use of Company Property and Resources

Company property, including equipment, vehicles, software, and electronic systems (computers, internet, email), is provided for business use.

  • Incidental personal use of company resources is permitted, provided it does not interfere with work responsibilities, violate company policies, or incur significant costs to the company.
  • Employees should have no expectation of privacy when using company-owned equipment or systems. The company reserves the right to monitor and access all data and communications on its systems.
  • All company property must be treated with care and returned upon separation of employment.

Confidentiality and Data Security

Employees are entrusted with confidential and proprietary information, including business strategies, financial data, customer lists, employee records, and trade secrets.

  • You are required to protect this information and not disclose it to unauthorized individuals or use it for personal gain.
  • All employees must adhere to company data security policies, including strong password practices, safeguarding sensitive documents, and reporting any suspected data breaches immediately.
  • Your confidentiality obligations continue even after your employment with [Company Name] ends.

Social Media Policy

While we respect your right to personal expression, your online activities can reflect on [Company Name].

  • When identifying yourself as an employee of [Company Name] on social media, ensure your posts are respectful, professional, and do not disclose confidential company information.
  • Do not post discriminatory, harassing, or defamatory content related to [Company Name], its employees, customers, or partners.
  • Be mindful that even personal posts can be seen by others and potentially impact your professional standing.

Conflict of Interest and Ethics

Employees must avoid situations where their personal interests conflict with the interests of [Company Name].

  • Do not engage in outside activities that could create a conflict of interest or compromise your ability to perform your job duties impartially.
  • Report any potential or actual conflicts of interest to your manager or HR immediately.
  • Employees must not accept gifts, favors, or entertainment that could be perceived as influencing business decisions, beyond customary business courtesies.

4. Compensation & Benefits Overview

[Company Name] is committed to providing a competitive compensation and benefits package designed to attract, motivate, and retain talented employees.

Compensation Philosophy

Our compensation philosophy is to offer fair and competitive pay that rewards performance, experience, and contributions to the company's success, while also aligning with industry standards.

Pay Periods and Direct Deposit

  • Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Fridays, the 15th and last day of the month].
  • Direct deposit is mandatory for all employees. Please ensure your banking information is up-to-date with the HR Department.
  • Pay stubs are accessible via [e.g., our HRIS portal, email].

Overtime Policy

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 over 40 in a single workweek, as required by the FLSA. All overtime must be pre-approved by your manager. Working unauthorized overtime may result in disciplinary action. Exempt employees are not eligible for overtime pay.

Health and Wellness Benefits

[Company Name] offers a comprehensive suite of health and wellness benefits to eligible employees:

  • Medical Insurance: [Briefly describe, e.g., "Choice of PPO and HMO plans with employer contribution."].
  • Dental Insurance: [Briefly describe, e.g., "Coverage for preventative, basic,
gemini Output

This output delivers a comprehensive, detailed, and professional Employee Handbook, ready for review and customization by the customer. It covers all specified sections: company policies, benefits overview, code of conduct, leave policies, and compliance, structured with clear markdown headers and bullet points.


Employee Handbook: Navigating Our Shared Journey at [Company Name]

I. Welcome & Introduction

Welcome Message from Leadership

Dear [Company Name] Team Member,

Welcome to [Company Name]! We are thrilled to have you join our team and contribute to our mission of [briefly state company mission/vision]. Our success is built upon the dedication, talent, and passion of individuals like you.

This Employee Handbook is designed to be a valuable resource, providing you with essential information about our culture, policies, benefits, and expectations. It reflects our commitment to fostering a positive, productive, and respectful work environment where everyone can thrive.

We believe in open communication, mutual respect, and continuous growth. We encourage you to familiarize yourself with the contents of this handbook and to reach out to your manager or HR department if you have any questions.

Thank you for choosing to be a part of [Company Name]. We look forward to achieving great things together!

Sincerely,

[Leadership Name/Title]

[Company Name]

Our Mission, Vision, and Values

  • Our Mission: [Insert Company Mission Statement - e.g., "To innovate sustainable solutions that empower communities worldwide."]
  • Our Vision: [Insert Company Vision Statement - e.g., "To be the global leader in eco-friendly technology, inspiring a healthier planet."]
  • Our Values: These core values guide our decisions, actions, and interactions:

* Integrity: We act with honesty and transparency in all we do.

* Innovation: We embrace creativity and continuously seek better ways.

* Collaboration: We achieve more by working together and supporting each other.

* Excellence: We strive for the highest quality in our work and service.

* Respect: We value diversity and treat everyone with dignity.

Purpose of This Handbook

This handbook serves as a guide for all employees of [Company Name]. It outlines our employment policies, procedures, benefits, and workplace expectations. Its purpose is to:

  • Provide a clear understanding of your rights and responsibilities as an employee.
  • Communicate [Company Name]'s commitment to a fair, safe, and productive workplace.
  • Ensure consistency and fairness in the application of our policies.
  • Serve as a reference for common questions regarding employment at [Company Name].

Who This Handbook Applies To

This handbook applies to all employees of [Company Name], regardless of employment classification (e.g., full-time, part-time, temporary, exempt, non-exempt), unless specifically stated otherwise within a particular policy.

II. Employment Basics

Employment-at-Will Disclaimer

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 law. No statement in this handbook, or any other document, creates an express or implied contract of employment between you and [Company Name] for any specific term or under any specific conditions.

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 legally protected status.

Recruitment and Hiring

[Company Name] is committed to attracting and hiring the most qualified individuals. Our recruitment process is fair, transparent, and compliant with all applicable laws. All offers of employment are contingent upon successful completion of background checks, reference checks, and verification of eligibility to work in the United States, as required.

Onboarding and Orientation

New employees will participate in an onboarding and orientation program designed to introduce them to [Company Name]'s culture, policies, systems, and their team. This process ensures a smooth transition and provides the necessary tools and information for success.

Employment Classifications

Employees are classified based on their work status and eligibility for benefits:

  • Full-Time Exempt: Typically salaried, not eligible for overtime.
  • Full-Time Non-Exempt: Typically hourly, eligible for overtime.
  • Part-Time Exempt: Salaried, working fewer than [e.g., 40] hours per week, not eligible for overtime.
  • Part-Time Non-Exempt: Hourly, working fewer than [e.g., 40] hours per week, eligible for overtime for hours worked over 40 in a workweek.
  • Temporary: Employed for a specific project or limited duration.
  • Intern: Individuals gaining supervised practical experience.
  • Contractor: Independent professionals providing services under a contract, not considered employees.

Work Hours and Attendance

  • Standard Work Hours: The standard workweek for full-time employees is [e.g., 40] hours, typically [e.g., Monday through Friday, 9:00 AM to 5:00 PM]. Specific department schedules may vary.
  • Punctuality: Employees are expected to be punctual and ready to work at their scheduled start time.
  • Absence Reporting: If you are unable to report to work due to illness or other unforeseen circumstances, you must notify your manager as early as possible, ideally at least [e.g., one hour] before your scheduled start time. Follow departmental procedures for reporting absences.
  • Breaks: Non-exempt employees are provided with [e.g., a 30-minute unpaid lunch break] for shifts over [e.g., 5] hours and [e.g., two 15-minute paid rest breaks] for full-day shifts.

Performance Management and Reviews

[Company Name] is dedicated to fostering employee growth and development.

  • Performance Reviews: Regular performance reviews are conducted [e.g., annually] to provide feedback, recognize achievements, identify areas for development, and align individual goals with company objectives.
  • Probationary Period: New employees typically undergo a probationary period of [e.g., 90] days, during which performance and suitability for the role are closely evaluated. Employment may be terminated at any time during or after this period.

Employee Records and Privacy

  • Maintaining Records: It is the employee's responsibility to notify HR promptly of any changes to personal information (e.g., address, phone number, emergency contacts, marital status, dependents, beneficiaries).
  • Privacy: [Company Name] respects employee privacy but reserves the right to access and monitor company property, systems, and communications as outlined in relevant policies (e.g., IT Systems Policy).

Resignation and Termination

  • Resignation: Employees are requested to provide at least [e.g., two weeks'] written notice to their manager and HR when resigning.
  • Termination: Employment may be terminated by [Company Name] for various reasons, including but not limited to performance issues, policy violations, or business necessity.
  • Final Paycheck: Final paychecks will be issued in accordance with state and federal laws.
  • Return of Company Property: Upon termination, employees must return all company property (e.g., laptops, phones, keys, badges) on or before their last day of employment.

III. Compensation and Benefits Overview

Compensation Philosophy

[Company Name] is committed to providing fair and competitive compensation that attracts, motivates, and retains high-performing employees. Our compensation structure considers market data, individual performance, and internal equity.

Pay Periods and Direct Deposit

  • Pay Period: Employees are paid [e.g., bi-weekly] on [e.g., Friday].
  • Direct Deposit: Direct deposit is mandatory for all employees, ensuring timely and secure payment.

Overtime (Non-Exempt Employees)

Non-exempt employees are eligible for overtime pay at a rate of one and one-half times their regular hourly rate for all hours worked over [e.g., 40] in a workweek, in accordance with federal and state laws. All overtime must be pre-approved by a manager.

Health and Wellness Benefits

[Company Name] offers a comprehensive benefits package to eligible employees, typically beginning on the first day of the month following [e.g., 30 days] of employment.

  • Medical Insurance: [Briefly describe, e.g., "Choice of PPO and HMO plans 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."].
  • Life Insurance: [Briefly describe, e.g., "Employer-paid basic life insurance, with options for supplemental coverage."].
  • Short-Term Disability (STD): [Briefly describe, e.g., "Provides income replacement for non-work-related illness or injury."].
  • Long-Term Disability (LTD): [Briefly describe, e.g., "Provides income replacement for extended periods of disability."].
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues.

Retirement Plans

  • 401(k) Plan: Eligible employees can participate in our 401(k) retirement savings plan, including [Company Name] matching contributions after [e.g., one year] of service and [e.g., 1,000] hours worked. Details on vesting schedules are available from HR.

Paid Time Off (PTO) - General

[Company Name] provides a combined Paid Time Off (PTO) bank for vacation, personal time, and minor illnesses. This allows employees flexibility in managing their time off. (Detailed PTO policy under Leave Policies).

Other Benefits/Perks

  • Professional Development: Opportunities for training, workshops, and tuition reimbursement for approved courses.
  • Commuter Benefits: Pre-tax options for transit and parking expenses.
  • Employee Recognition Programs: Programs to acknowledge outstanding contributions.
  • Wellness Programs: Initiatives to promote employee health and well-being.
  • Company Holidays: [List specific company holidays, e.g., "New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Day after Thanksgiving, Christmas Day, and [Number] floating holidays."].

IV. Leave Policies

Paid Time Off (PTO)

  • Accrual: Full-time employees accrue PTO at a rate of [e.g., X hours] per pay period, up to a maximum of [e.g., Y hours] per year. Part-time employees accrue PTO on a prorated basis.
  • Usage: PTO can be used for vacation, personal appointments, or minor illness.
  • Requesting PTO: All PTO requests must be submitted to your manager at least [e.g., two weeks] in advance, whenever possible, and are subject to management approval based on business needs.
  • Carryover: Employees may carry over up to [e.g., Z hours] of unused PTO into the next calendar year. Any unused PTO exceeding this limit will be forfeited at year-end.
  • Payout: Unused PTO is generally not paid out upon termination of employment, unless required by state law.

Sick Leave

  • Purpose: Separate from general PTO, specific sick leave may be provided for extended illness or care for a family member, as required by state or local law.
  • Accrual/Grant: [Specify, e.g., "Employees are granted X hours of sick leave annually" or "accrue sick leave at Y rate."]
  • Usage: For employee's own illness, injury, or medical appointment, or to care for an eligible family member.
  • Doctor's Note: A doctor's note may be required for absences exceeding [e.g., three consecutive days].

Bereavement Leave

[Company Name] provides paid bereavement leave to allow employees time to grieve and attend to affairs related to the death of a close family member.

  • Eligibility: Up to [e.g., five] days for immediate family (spouse, child, parent, sibling) and up to [e.g., three] days for extended family (grandparent, grandchild, in-laws).
  • Request: Employees should notify their manager and HR as soon as possible.

Jury Duty Leave

Employees summoned for jury duty will receive [e.g., up to five days] of paid leave. Employees are expected to return to work if dismissed early from jury duty. Proof of jury service is required.

Family and Medical Leave Act (FMLA)

[Company Name] complies with the Family and Medical Leave Act (FMLA), which provides eligible employees with up to 12 weeks of unpaid, job-protected leave per year for specific family and medical reasons, including:

  • Birth and care of a newborn child.
  • Placement with the employee of a child for adoption or foster care.
  • Care for an immediate family member (spouse, child, parent) with a serious health condition.
  • Employee's own serious health condition.
  • Qualifying exigency leave for a family member's military service.
  • Up to 26 weeks of military caregiver leave for a covered service member with a serious injury or illness.

Eligibility requirements apply. Employees should contact HR for detailed information and to request FMLA leave.

Military Leave

Employees who are members of the U.S. uniformed services are granted leave for military service in accordance with the Uniformed Services Employment and Reemployment Rights Act (USERRA). Employees must provide advance notice of military service whenever possible.

Other Leaves

  • Voting Leave: Employees may take reasonable time off to vote if their work schedule prevents them from voting outside of working hours,
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);}});}