Employee Handbook Generator
Run ID: 69cadac974bac0555ea30e2d2026-03-30HR
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

Project Deliverable: Detailed Requirements Analysis & Design Specifications

This document outlines the comprehensive requirements, design specifications, and user experience recommendations for the "Employee Handbook Generator." This analysis serves as the foundational blueprint for developing a robust, intuitive, and professional tool that empowers companies to create tailored employee handbooks efficiently.


1. Introduction & Project Overview

The "Employee Handbook Generator" is designed to streamline the creation of comprehensive employee handbooks, ensuring accuracy, compliance, and ease of customization. This tool will guide users through a structured process to define company policies, benefits, code of conduct, leave policies, and compliance statements, culminating in a professionally formatted, exportable document. This deliverable details the core functional and non-functional requirements, visual design elements, and user experience principles.


2. Detailed Design Specifications (Functional & Content Requirements)

This section details the core functionalities and content modules required for the Employee Handbook Generator.

2.1 Functional Requirements

The system shall:

  • User Authentication & Profile (Optional but Recommended):

* Allow users to create accounts, log in, and manage their company profiles.

* Store company-specific defaults (e.g., company name, logo, industry) for pre-population.

  • Handbook Creation & Management:

* Enable users to start a new handbook from scratch or from a pre-defined template.

* Allow saving of in-progress handbooks, enabling users to resume editing later.

* Support loading and editing of existing handbooks.

* Implement version control for handbooks, allowing users to revert to previous saved states.

  • Section-Based Content Generation:

* Provide a modular interface where users can select, add, remove, and reorder standard handbook sections.

* Offer customizable content fields for each section (e.g., text editors, dropdowns, checkboxes for policy options).

* Include a rich text editor for policy descriptions, allowing formatting (bold, italics, lists, links).

  • Template Library:

* Offer a selection of industry-standard handbook templates (e.g., General Office, Retail, Tech Startup) with pre-filled, editable content.

* Allow users to save their customized handbooks as new templates for future use.

  • Company Branding Integration:

* Enable users to upload their company logo, which will be incorporated into the handbook header/footer.

* Allow users to define primary and secondary brand colors for document styling.

  • Real-time Preview & Review:

* Provide a dynamic preview of the handbook as sections are added and edited.

* Offer a dedicated review mode to scroll through the complete generated handbook before export.

  • Export & Download Options:

* Allow export of the final handbook in multiple formats:

* PDF: High-quality, non-editable format for distribution.

* Microsoft Word (.docx): Editable format for further internal adjustments.

  • Compliance Guidance & Disclaimers:

* Integrate helpful tips and reminders for legal compliance (e.g., state-specific regulations, at-will employment disclaimers).

* Automatically include a general legal disclaimer within the handbook.

  • Search & Navigation:

* Provide a search function within the generated handbook preview.

* Generate an automatic Table of Contents for easy navigation in the final document.

2.2 Content Requirements (Key Handbook Sections)

The generator must support the creation and customization of the following essential employee handbook sections:

  • Welcome & Introduction:

* Welcome message from leadership.

* Company Mission, Vision, and Values.

* Purpose of the handbook and its scope.

  • Employment Basics:

* Employment-at-Will statement.

* Equal Employment Opportunity (EEO) policy.

* Anti-Discrimination and Anti-Harassment policies.

* Hiring and Onboarding procedures.

* Employee Classifications (full-time, part-time, temporary, exempt/non-exempt).

  • Code of Conduct & Ethics:

* Professionalism and workplace behavior.

* Conflict of Interest.

* Confidentiality and Data Security.

* Social Media Policy.

* Drug-Free Workplace.

* Workplace Safety and Health.

* IT and Communications Systems Usage.

  • Compensation & Benefits:

* Pay Periods and Overtime.

* Performance Reviews and Promotions.

* Health, Dental, and Vision Insurance overview.

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

* Paid Time Off (PTO), Vacation, and Sick Leave accrual and usage.

* Company Holidays.

* Other benefits (e.g., life insurance, disability, wellness programs).

  • Leave Policies:

* Family and Medical Leave Act (FMLA).

* Bereavement Leave.

* Jury Duty Leave.

* Military Leave.

* Personal Leave of Absence.

  • Workplace Policies:

* Attendance and Punctuality.

* Dress Code.

* Remote Work Policy (if applicable).

* Smoking Policy.

* Workplace Violence Prevention.

* Emergency Procedures.

  • Performance Management & Disciplinary Actions:

* Performance review process.

* Disciplinary procedures.

* Grievance procedure.

  • Separation of Employment:

* Resignation procedures.

* Termination policies (voluntary and involuntary).

* Exit interviews.

  • Compliance & Legal Disclaimers:

* Disclaimer regarding the handbook as a guide, not a contract.

* Acknowledgement of at-will employment (if applicable).

* Compliance with ADA, FLSA, etc.

  • Employee Acknowledgment Form:

* A customizable section for employees to sign, acknowledging receipt and understanding of the handbook.


3. Wireframe Descriptions (Key Screens)

The user interface will be designed for clarity, ease of use, and a logical flow.

3.1 Dashboard / Home Screen

  • Layout: Centralized "Start New Handbook" button, "Load Existing Handbook" option, and a list of recently worked-on handbooks.
  • Elements:

* Header with logo and user account options.

* Primary call-to-action button: "Create New Handbook."

* Section for "My Handbooks" (list with status, last modified date, and actions like "Edit," "Preview," "Download").

* Optional: "Browse Templates" link.

3.2 Company Information Setup

  • Layout: Form-based input with clear labels.
  • Elements:

* Company Name (text input).

* Company Logo Upload (file input with preview).

* Industry (dropdown).

* Number of Employees (slider/dropdown).

* Company Address (text inputs).

* "Next" / "Save & Continue" button.

* Progress indicator (e.g., Step 1 of X).

3.3 Handbook Section Configuration (Main Editor)

  • Layout: Split-screen or multi-panel approach. Left panel for section navigation, right panel for content editing and preview.
  • Elements:

* Left Panel (Section Navigator):

* List of available handbook sections (e.g., "Welcome," "Code of Conduct," "Leave Policies").

* Checkboxes or toggles to include/exclude sections.

* Drag-and-drop functionality to reorder sections.

* "Add Custom Section" button.

* Progress bar/indicator for overall handbook completion.

* Right Panel (Content Editor):

* Title of the currently selected section.

* Rich text editor for general policy text.

* Specific input fields for structured data within policies (e.g., dropdowns for leave days, checkboxes for policy options, date pickers).

* Contextual help tips and compliance notes.

* "Save Section" / "Update Policy" button.

* "Preview Handbook" button.

3.4 Policy Detail Editor (Example: Leave Policy)

  • Layout: Dedicated form for detailed policy configuration, potentially within a modal or as a sub-view of the main editor.
  • Elements:

* Policy Title (e.g., "Vacation Leave Policy").

* General Description (rich text editor).

* Specific parameters:

* Accrual Rate (e.g., "X days per year," "X hours per pay period").

* Eligibility (e.g., "After X months of employment").

* Carryover Policy (dropdown: "Yes/No," "Max X days").

* Payout on Termination (checkbox).

* Attachment upload for specific forms (optional).

* "Save Policy" / "Back to Sections" buttons.

3.5 Handbook Preview & Export

  • Layout: Full-screen view of the generated handbook, mimicking the final document.
  • Elements:

* Full scrollable preview of the handbook content.

* Table of Contents on the left (clickable for quick navigation).

* Header with company logo and handbook title.

* "Edit Handbook" button to return to the editor.

* "Download PDF" button.

* "Download Word (.docx)" button.

* Optional: "Share" button (e.g., via link, email).


4. Color Palettes

The color palette will prioritize professionalism, readability, and brand neutrality, allowing client branding to take center stage.

4.1 Primary Palette: Professional & Trustworthy

This palette emphasizes clarity and corporate appeal.

  • Primary Accent: #0056B3 (Deep Blue) - Represents trust, stability, and professionalism. Used for primary buttons, active states, and key highlights.
  • Secondary Accent: #28A745 (Success Green) - Used for positive confirmations, success messages, and secondary calls to action.
  • Neutral Dark: #343A40 (Charcoal Gray) - For primary text, headers, and strong outlines. Ensures high readability.
  • Neutral Light: #F8F9FA (Off-White) - For backgrounds, panel fills, providing a clean, spacious feel.
  • Text/Subtle: #6C757D (Medium Gray) - For secondary text, labels, and disabled states.

4.2 Alternative Palette: Modern & Approachable

This palette offers a slightly softer, more contemporary feel while maintaining professionalism.

  • Primary Accent: #6F42C1 (Deep Violet) - Represents innovation, creativity, and distinction. Used for primary buttons, active states.
  • Secondary Accent: #17A2B8 (Teal) - Used for informational elements, secondary calls to action.
  • Neutral Dark: #212529 (Near Black) - For primary text, headers.
  • Neutral Light: #E9ECEF (Light Gray) - For backgrounds, subtle division.
  • Text/Subtle: #495057 (Dark Gray) - For secondary text, labels.

Accessibility Note: All chosen colors will be tested to ensure sufficient contrast ratios (WCAG 2.1 AA standard) for text and interactive elements, guaranteeing accessibility for all users.


5. UX Recommendations

User experience is paramount for a tool handling sensitive and important documents like employee handbooks.

  • Guided Workflow: Implement a clear, step-by-step process with progress indicators (e.g., "Step 1 of 5: Company Info"). This reduces cognitive load and provides a sense of accomplishment.
  • Intuitive Navigation: Use a persistent sidebar or top navigation for moving between major sections of the generator (e.g., "Setup," "Sections," "Preview," "Export"). Within the editor, allow easy movement between handbook sections.
  • Contextual Help & Tooltips: Provide "i" icons or hover-over tooltips next to complex fields or policy options, offering explanations, best practices, or legal considerations.
  • "Smart Defaults" & Pre-population: Pre-fill fields with common industry standards or information provided during initial setup (e.g., company name, logo), reducing manual input.
  • Real-time Feedback & Validation: Provide instant validation for form fields (e.g., "Company Name is required") and flag incomplete sections in the navigation.
  • Save & Resume Functionality: Automatically save user progress periodically and provide prominent "Save Draft" options, preventing data loss.
  • Drag-and-Drop Reordering: Allow users to easily reorder sections within the handbook for maximum flexibility.
  • "What You See Is What You Get" (WYSIWYG) Preview: Ensure the preview closely reflects the final exported document, including branding, formatting, and layout.
  • Clear Call-to-Actions (CTAs): Use distinct button styles and clear labels for primary actions (e.g., "Add Policy," "Save
gemini Output

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

Welcome to [Your Company Name]!

We are thrilled to welcome you to the [Your Company Name] team! This Employee Handbook is designed to be your comprehensive guide to our company culture, policies, benefits, and expectations. It serves as a vital resource for all employees, outlining the principles that govern our workplace and ensure a fair, respectful, and productive environment for everyone.

At [Your Company Name], we believe our employees are our greatest asset. We are committed to fostering a workplace where you can thrive, grow, and contribute your best work. This handbook will help you understand your rights and responsibilities, navigate our internal processes, and embrace the values that make [Your Company Name] a truly special place to work.

Please take the time to read this handbook carefully. If you have any questions, your manager or the HR department is always available to provide clarification.

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

Sincerely,

The Leadership Team at [Your Company Name]


1. About Our Company

Our Vision, Mission, and Values

At [Your Company Name], we are driven by a clear purpose and a strong set of values that guide everything we do.

  • Our Vision: [Placeholder: Insert your company's Vision Statement here. Example: To be the leading innovator in our industry, creating unparalleled value for our customers and stakeholders.]
  • Our Mission: [Placeholder: Insert your company's Mission Statement here. Example: To empower our clients through cutting-edge solutions, exceptional service, and a commitment to sustainable growth.]
  • Our Core Values: These values are the foundation of our culture and define how we interact with each other, our customers, and our community.

* Integrity: We act with honesty and strong moral principles.

* Innovation: We embrace creativity and constantly seek better ways to do things.

* Collaboration: We believe in teamwork and collective success.

* Excellence: We strive for the highest quality in all our endeavors.

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

* Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.

Our Commitment to You

[Your Company Name] is committed to creating a supportive and inclusive work environment where every employee feels valued, respected, and empowered to reach their full potential. We promise to:

  • Provide clear expectations and opportunities for growth.
  • Foster open communication and feedback.
  • Maintain a safe and healthy workplace.
  • Offer competitive compensation and benefits.
  • Support work-life balance and personal development.

2. Employment Basics

This section outlines the fundamental aspects of your employment with [Your Company Name].

2.1 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. No representative of [Your Company Name], other than the President or CEO in a signed written agreement, has the authority to enter into an employment contract for any specified period of time or to make any agreement contrary to the foregoing.

2.2 Equal Employment Opportunity (EEO)

[Your Company Name] is an Equal Opportunity Employer. We are committed to providing equal employment opportunities to all individuals without regard to race, color, religion, sex, national origin, age, disability, veteran status, sexual orientation, gender identity or expression, or any other characteristic protected by applicable law. This commitment extends to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

2.3 Non-Discrimination and Anti-Harassment Policy

[Your Company Name] maintains a strict policy against discrimination and harassment of any kind. Harassment, whether verbal, physical, or visual, based on any protected characteristic, is strictly prohibited. This includes sexual harassment. Any employee who believes they have been subjected to or witnessed discrimination or harassment should report it immediately to their manager or the HR department. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken. Retaliation against anyone who reports discrimination or harassment or participates in an investigation is also strictly prohibited.

2.4 Workplace Violence Prevention

[Your Company Name] is committed to providing a safe workplace free from violence, threats, intimidation, and any form of disruptive behavior. Acts or threats of violence, implied or direct, will not be tolerated. Employees who observe or experience any violent or threatening behavior must report it immediately to their manager or the HR department.

2.5 Drug-Free Workplace

[Your Company Name] is committed to maintaining a safe, healthy, and productive work environment. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Violation of this policy may result in disciplinary action, up to and including termination of employment.


3. Code of Conduct & Ethics

Our Code of Conduct outlines the ethical principles and professional standards we expect from all employees.

3.1 Professionalism and Respect

All employees are expected to conduct themselves professionally and treat colleagues, customers, partners, and the public with respect and courtesy. This includes maintaining appropriate behavior, communication, and attire suitable for our work environment.

3.2 Confidentiality and Data Security

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

  • Protect all confidential information from unauthorized disclosure.
  • Not use confidential information for personal gain or outside interests.
  • Adhere to all data security policies and procedures, including password protection, secure handling of digital and physical documents, and proper use of company systems.
  • Confidentiality obligations continue even after employment with [Your Company Name] ends.

3.3 Conflicts of Interest

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

  • Engaging in outside employment or business activities that compete with the company.
  • Accepting gifts, favors, or entertainment of significant value from clients, vendors, or competitors that could influence business decisions.
  • Using company resources, property, or confidential information for personal gain.
  • Any potential conflict of interest must be disclosed to your manager or HR immediately.

3.4 Anti-Bribery and Corruption

[Your Company Name] has a zero-tolerance policy for bribery and corruption. Employees must never offer, give, solicit, or accept bribes, kickbacks, or any other improper payments or inducements, directly or indirectly, in connection with company business.

3.5 Use of Company Property

Company property, including equipment, vehicles, software, and supplies, is provided for business use. While incidental personal use may be permitted if it does not interfere with work duties or violate other policies, employees must:

  • Treat company property with care and respect.
  • Not use company property for illegal or unethical activities.
  • Not remove company property from the premises without authorization.
  • Be aware that company property, including electronic communications and data, is subject to monitoring by [Your Company Name].

3.6 Social Media Policy

Employees are free to express themselves on social media in their personal lives. However, when identifying as an employee of [Your Company Name] or discussing company-related matters, employees must:

  • Exercise good judgment and maintain professionalism.
  • Not disclose confidential or proprietary company information.
  • Not post content that is harassing, discriminatory, defamatory, or violates company policies.
  • Be aware that their online conduct can reflect on [Your Company Name].

4. Workplace Policies

This section details policies governing daily operations and employee conduct within the workplace.

4.1 Work Hours and Attendance

  • Standard Work Hours: Our standard workweek is [Placeholder: e.g., 40 hours, Monday through Friday, 9:00 AM to 5:00 PM]. Specific work schedules may vary by department or role.
  • Punctuality: Employees are expected to be punctual and ready to begin work at their scheduled start time.
  • Absences and Tardiness: If you anticipate being late or absent, you must notify your manager as soon as possible, ideally [Placeholder: e.g., at least one hour before your scheduled start time]. Unreported absences or excessive tardiness may result in disciplinary action.
  • Overtime: Non-exempt employees are eligible for overtime pay at [Placeholder: e.g., 1.5 times their regular rate] for hours worked beyond [Placeholder: e.g., 40 hours in a workweek]. All overtime must be pre-approved by your manager.

4.2 Lunch and Rest Breaks

  • Lunch Breaks: Employees working [Placeholder: e.g., more than 5 hours] are typically provided an unpaid lunch break of [Placeholder: e.g., 30 to 60 minutes].
  • Rest Breaks: Paid rest breaks of [Placeholder: e.g., 15 minutes] may be provided for every [Placeholder: e.g., 4 hours] worked, depending on applicable state laws and company policy. Specific break schedules should be coordinated with your manager.

4.3 Dress Code

[Your Company Name] promotes a professional yet comfortable work environment. Employees are expected to dress in a manner appropriate for their role and the general business setting.

  • Business Casual: Our general dress code is business casual. This includes [Placeholder: e.g., collared shirts, blouses, sweaters, slacks, skirts, dresses, and appropriate footwear].
  • Professional Attire: Certain roles or external meetings may require more formal business attire. Your manager will advise you if this is necessary.
  • Inappropriate Attire: Examples of inappropriate attire include [Placeholder: e.g., t-shirts with offensive graphics, ripped jeans, flip-flops, excessively revealing clothing, workout wear, etc.].
  • Please consult your manager if you have questions about appropriate attire.

4.4 Internet, Email, and Communication Systems Usage

Company-provided communication systems, including internet access, email, instant messaging, and telephones, are primarily for business use.

  • Acceptable Use: Incidental personal use is permitted as long as it does not interfere with job duties, consume excessive resources, or violate any company policies.
  • Prohibited Use: These systems must not be used for illegal activities, transmitting offensive or inappropriate material, engaging in commercial activities unrelated to the company, or violating copyright laws.
  • Monitoring: Employees should have no expectation of privacy when using company communication systems. [Your Company Name] reserves the right to monitor, access, and disclose information transmitted or stored on its systems, consistent with applicable law.

4.5 Safety and Health

The safety and well-being of our employees are paramount.

  • Safety Procedures: All employees are responsible for adhering to established safety procedures and guidelines.
  • Reporting Hazards: Immediately report any unsafe conditions, incidents, accidents, or injuries to your manager or HR.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and evacuation plans.
  • First Aid: [Placeholder: Describe first aid resources and procedures, e.g., "First aid kits are located at [locations], and trained first aid responders are available."].

4.6 Smoking Policy

[Your Company Name] is committed to providing a healthy and safe environment. Smoking, including e-cigarettes and vaping, is prohibited inside all company buildings and within [Placeholder: e.g., 25 feet] of building entrances, windows, and ventilation systems. Designated smoking areas, if any, will be clearly marked.

4.7 Remote Work Policy (If Applicable)

[Placeholder: If your company offers remote work, include a policy here. Otherwise, delete this section.]

[Your Company Name] supports flexible work arrangements where appropriate and beneficial to both the employee and the company.

  • Eligibility: Eligibility for remote work is determined by job function, performance, and manager approval.
  • Expectations: Remote employees are expected to maintain the same level of productivity, communication, and adherence to company policies as in-office employees.
  • Equipment & Environment: Employees must ensure they have a suitable, safe, and secure remote workspace with reliable internet access. Company-provided equipment must be used appropriately and protected.
  • Communication: Regular communication with managers and team members is crucial.
  • Refer to the full Remote Work Policy document for detailed guidelines and requirements.

5. Compensation & Benefits Overview

This section provides a general overview of the compensation and benefits programs offered by [Your Company Name]. Detailed information will be provided during onboarding and through official benefit plan documents.

5.1 Pay Periods and Direct Deposit

  • Pay Schedule: Employees are paid [Placeholder: e.g., bi-weekly, semi-monthly] on [Placeholder: specify day of the week/month].
  • Direct Deposit: Direct deposit is mandatory for all employees. Your net pay will be electronically deposited into your designated bank account(s). You can update your direct deposit information through [Placeholder: e.g., our HRIS portal, by contacting HR].

5.2 Overtime Policy

Non-exempt employees are eligible for overtime pay for hours worked beyond [Placeholder: e.g., 40 hours in a workweek] at a rate of [Placeholder: e.g., one and one-half (1.5) times] their regular hourly rate. All overtime must be pre-approved by your manager. Exempt employees are paid a salary and are not eligible for overtime.

5.3 Benefits Overview

[Your Company Name] offers a comprehensive benefits package designed to support the health, financial well-being, and work-life balance of our employees and their families.

  • Health Insurance: Medical, Dental, and Vision coverage options. [Placeholder: Briefly mention key features, e.g., "Multiple plans to choose from, including PPO and HMO options, with employer contribution."]
  • **
gemini Output

This comprehensive employee handbook serves as a foundational document for your organization, outlining essential policies, benefits, code of conduct, leave procedures, and compliance guidelines. It is designed to provide clarity, foster a positive work environment, and ensure consistent understanding of expectations and rights for all employees.


Employee Handbook: [Your Company Name]

Effective Date: [Date]

Welcome Message from Leadership

Dear Valued Team Member,

On behalf of the entire leadership team, I extend a warm welcome to you! Whether you are a new hire or a long-standing member of our team, we are thrilled to have you contribute your talents and dedication to [Your Company Name].

At [Your Company Name], we are committed to [mention core company mission/vision, e.g., "innovation, excellence, and creating a positive impact on our customers/community"]. We believe that our success is directly tied to the collective efforts, diverse perspectives, and unwavering commitment of our employees. This handbook is designed to be a valuable resource, providing you with a clear understanding of our company’s policies, benefits, expectations, and the values that guide us.

We encourage you to read this handbook carefully and refer to it whenever you have questions. It outlines our commitment to fostering a fair, respectful, and productive workplace where everyone can thrive. Should you have any questions that are not addressed here, please do not hesitate to reach out to your manager or the Human Resources department.

Thank you for being a part of the [Your Company Name] family. We look forward to achieving great things together!

Sincerely,

[CEO/President Name]

[Title]


Section 1: Introduction

1.1 Purpose of This Handbook

This Employee Handbook serves as a guide for all employees of [Your Company Name]. It outlines our company's policies, procedures, benefits, and expectations for workplace conduct. Its purpose is to ensure a clear understanding of your rights and responsibilities, promote a fair and consistent work environment, and help you integrate smoothly into our company culture.

1.2 Our Vision, Mission, and Values

  • Vision: [Your Company's Vision Statement - e.g., To be the leading innovator in our industry, transforming how people...]
  • Mission: [Your Company's Mission Statement - e.g., To deliver exceptional products/services that empower our customers by...]
  • Core Values:

* Integrity: We act with honesty and strong moral principles in everything we do.

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

* Collaboration: We believe in teamwork and mutual respect to achieve shared goals.

* Innovation: We embrace creativity and new ideas to drive progress.

* Customer Focus: We prioritize understanding and meeting the needs of our customers.

* [Add other relevant values]

1.3 Employment-at-Will Statement

Employment with [Your Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable law. No statement in this handbook, or in any other company document, or made verbally by a company representative, should be construed as creating an express or implied contract of employment for a definite duration.

1.4 Handbook Revisions and Disclaimer

This handbook is a summary of policies, procedures, and benefits and is not intended to be a contract of employment. [Your Company Name] reserves the right to revise, modify, delete, or add to any policies, procedures, or benefits described in this handbook at any time, with or without notice, except for the employment-at-will policy. Employees will be informed of significant changes as they occur. The most current version of the handbook will always supersede any prior versions.


Section 2: General Employment Policies

2.1 Equal Employment Opportunity (EEO)

[Your 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 and gender identity), national origin, age, disability, marital status, sexual orientation, genetic information, veteran status, or any other legally protected status.

2.2 Anti-Harassment and Anti-Discrimination Policy

[Your Company Name] prohibits harassment and discrimination of any kind, including sexual harassment. This policy applies to all employees, applicants, interns, and contractors. Harassment can include offensive verbal comments, physical intimidation, or visual displays that create a hostile work environment. Any employee who believes they have been subjected to harassment or discrimination, or who witnesses such behavior, should immediately report it to their manager, Human Resources, or another member of leadership. All complaints will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports harassment or discrimination, or participates in an investigation, is strictly prohibited.

2.3 Workplace Safety and Health

The safety and health of our employees are paramount. [Your Company Name] is committed to providing a safe and healthy work environment and expects all employees to comply with safety rules and procedures.

  • Report all accidents, injuries, or unsafe conditions immediately to your supervisor or HR.
  • Do not operate equipment for which you are not trained or authorized.
  • Follow all safety guidelines and use personal protective equipment (PPE) as required.
  • Participate in safety training sessions.

2.4 Drug-Free Workplace Policy

[Your Company Name] is committed to maintaining a drug-free and alcohol-free workplace to ensure the safety and productivity of all employees. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol on company premises, while on company business, or in company vehicles is strictly prohibited. Violation of this policy will result in disciplinary action, up to and including termination of employment.

2.5 Confidentiality and Data Protection

Employees may have access to confidential and proprietary information, including but not limited to, client lists, financial data, trade secrets, product designs, marketing strategies, and employee records. Employees are required to protect this information and not disclose it to unauthorized individuals or use it for personal gain. This obligation continues even after employment ends. Unauthorized disclosure may result in disciplinary action, legal action, and termination of employment.

2.6 Social Media Policy

Employees are expected to use good judgment and common sense when using social media, especially when discussing company-related matters.

  • Do not post confidential or proprietary company information.
  • Do not make disparaging or harassing comments about the company, colleagues, clients, or competitors.
  • Be mindful that even personal posts can reflect on the company.
  • If you identify yourself as a [Your Company Name] employee on social media, ensure your posts are consistent with our company values and professional standards.

2.7 Workplace Conduct (General)

Employees are expected to conduct themselves professionally and respectfully at all times. This includes:

  • Treating colleagues, clients, and visitors with courtesy and respect.
  • Maintaining a positive and collaborative attitude.
  • Avoiding disruptive or inappropriate behavior.
  • Adhering to company policies and procedures.

2.8 Attendance and Punctuality

Reliable attendance and punctuality are essential for the efficient operation of [Your Company Name].

  • Employees are expected to report to work on time and as scheduled.
  • If you anticipate being late or absent, you must notify your supervisor as soon as possible, and generally no later than [e.g., 30 minutes] before your scheduled start time.
  • Excessive absenteeism or tardiness may result in disciplinary action.

2.9 Performance Management and Reviews

[Your Company Name] is committed to helping employees grow and succeed.

  • Regular performance reviews will be conducted [e.g., annually, semi-annually] to discuss performance, provide feedback, set goals, and identify development opportunities.
  • Ongoing feedback and coaching are encouraged between managers and employees.
  • A probationary period of [e.g., 90 days] may apply to new hires, during which performance will be closely monitored.

2.10 Disciplinary Action

[Your Company Name] maintains a policy of progressive discipline designed to address performance or conduct issues fairly and consistently. Disciplinary actions may include, but are not limited to, verbal warnings, written warnings, performance improvement plans, suspension without pay, and termination of employment. The specific action taken will depend on the severity and frequency of the infraction.

2.11 Termination of Employment

Employment with [Your Company Name] may be terminated by either the employee or the company.

  • Employee Resignation: Employees are requested to provide at least [e.g., two weeks'] written notice to their supervisor and HR.
  • Company Initiated Termination: Termination may occur for various reasons, including but not limited to, poor performance, policy violations, misconduct, or business reasons (e.g., restructuring, layoff).
  • Upon termination, employees will receive their final paycheck, including any accrued and unused vacation time (where legally required), and information regarding benefits continuation (e.g., COBRA).

Section 3: Compensation & Benefits

3.1 Compensation Philosophy

[Your Company Name] is committed to providing competitive compensation that attracts, motivates, and retains high-performing employees. Our compensation structure is designed to be fair, consistent, and aligned with market rates and individual contributions.

3.2 Pay Periods and Methods

  • Pay Period: Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday] for the period ending [e.g., the previous Sunday].
  • Pay Method: All employees are paid via direct deposit. It is your responsibility to ensure your banking information is current with HR.

3.3 Overtime Policy

Non-exempt employees are eligible for overtime pay at a rate of one and one-half times their regular rate of pay for all hours worked over 40 in a workweek, as defined by the Fair Labor Standards Act (FLSA). All overtime must be pre-approved by your supervisor. Exempt employees are not eligible for overtime pay.

3.4 Benefits Overview

[Your Company Name] offers a comprehensive benefits package designed to support the health, financial well-being, and work-life balance of our employees. Detailed information about eligibility, enrollment, and specific plan provisions is available from the HR department.

  • Health Insurance: Medical, prescription drug, dental, and vision coverage options.
  • Life and Disability Insurance: Company-paid basic life insurance, with options for supplemental coverage. Short-term and long-term disability insurance.
  • Retirement Plans: [e.g., 401(k) plan] with employer matching contributions (subject to vesting schedule).
  • Employee Assistance Program (EAP): Confidential counseling and support services for personal and work-related issues.
  • Professional Development: Opportunities for training, workshops, and educational assistance to support career growth.
  • Wellness Programs: [e.g., fitness challenges, health screenings, gym membership discounts].
  • Other Benefits: [e.g., commuter benefits, employee discounts, tuition reimbursement – list as applicable].

Section 4: Leave Policies

4.1 Paid Time Off (PTO) / Vacation Policy

[Your Company Name] provides PTO for rest, relaxation, and personal appointments.

  • Accrual: PTO is accrued on a [e.g., bi-weekly, monthly] basis, starting from your date of hire.
  • Usage: Employees may begin using accrued PTO after [e.g., 90 days] of employment. All PTO requests must be submitted to your supervisor for approval in advance, typically [e.g., two weeks] prior to the requested leave date.
  • Maximum Accrual/Carryover: [e.g., Employees can accrue up to X hours of PTO. Up to Y hours of unused PTO may be carried over into the next calendar year, with any excess forfeited.]
  • Payout upon Termination: [e.g., Accrued and unused PTO will be paid out upon termination of employment, in accordance with state law.]

4.2 Sick Leave Policy

[Your Company Name] provides paid sick leave for illness, injury, medical appointments, or to care for sick family members.

  • Accrual: Sick leave accrues at a rate of [e.g., 1 hour for every 30 hours worked, up to a maximum of 40 hours per year].
  • Usage: Employees may begin using accrued sick leave after [e.g., 90 days] of employment.
  • Doctor's Note: A doctor's note may be required for absences exceeding [e.g., three consecutive days].
  • Payout: Unused sick leave is generally not paid out upon termination of employment.

4.3 Company Holidays

[Your Company Name] observes the following paid holidays:

  • New Year's Day
  • Memorial Day
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • Day after Thanksgiving
  • Christmas Day
  • [Add any other company-specific holidays, e.g., MLK Day, Veteran's Day, Floating Holiday]

If a holiday falls on a weekend, it will be observed on the preceding Friday or following Monday, as determined by the company.

4.4 Family and Medical Leave Act (FMLA)

Eligible employees may take up to 12 weeks of unpaid, job-protected leave per 12-month period for specified 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 exigencies arising out of a family member's military deployment.

Eligibility requirements apply. Employees seeking FMLA leave should contact HR for detailed information and application procedures.

4.5 Bereavement Leave

Employees may take up to [e.g., three (3)] paid days of bereavement leave in the event of the death of an immediate family member (spouse, child, parent, sibling, grandparent, grandchild, or equivalent in-law relation). Additional unpaid leave may be granted at the discretion of management.

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