Employee Handbook Generator
Run ID: 69cc4f688f41b62a970c281b2026-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" tool. The objective is to design a robust, user-friendly application that enables businesses to efficiently create, customize, and generate professional employee handbooks. This analysis covers functional and non-functional specifications, user interface design (wireframes), visual aesthetics (color palettes), and overall user experience recommendations.


1. Detailed Design Specifications

1.1. Functional Requirements

The Employee Handbook Generator will provide the following core functionalities:

  • User Authentication & Profile Management:

* Secure user registration and login (email/password, SSO options).

* User profile management (company name, contact info).

* Ability to save and manage multiple handbook projects/drafts.

  • Handbook Project Creation & Management:

* Initiate a new handbook project from scratch or using a pre-defined template.

* Ability to duplicate existing handbooks for quick iteration.

* Version control for handbooks (saving revisions).

  • Intuitive Content Configuration Interface:

* Section-Based Navigation: A clear, step-by-step or sidebar navigation for configuring each handbook section (e.g., Company Overview, Policies, Benefits, Code of Conduct, Leave, Compliance).

* Dynamic Input Fields:

* Text Areas: For free-form text input (e.g., Company Mission, specific policy details) with rich text editing capabilities (bold, italics, lists, links).

* Dropdowns/Radio Buttons: For selecting pre-defined options (e.g., "At-Will Employment State," "PTO Accrual Method").

* Checkboxes: To enable/disable specific sub-policies or clauses within a section.

* Date Pickers: For effective dates of policies.

* File Uploads: For company logo and any supplementary documents to be embedded or linked.

* Pre-populated Templates & Suggestions: Offer industry-standard policy templates and suggested wording for various sections, allowing users to customize or adopt them directly.

* Guidance & Contextual Help: Tooltips, informational icons, and inline explanations to clarify policy implications and required inputs.

* Branding Customization: Upload company logo, select brand colors for the generated handbook's header/footer/accents.

  • Real-time Preview Functionality:

* An integrated viewer to see how the handbook content will appear as it's being configured.

* Option to preview the full handbook at any stage of completion.

  • Handbook Generation & Export:

* Generate the complete employee handbook in standard formats:

* PDF: Optimized for printing and distribution (read-only).

* DOCX: For further editing in word processing software.

* Automatic generation of a Table of Contents with clickable links (for digital versions).

* Option to include a customizable cover page.

  • Compliance & Legal Guidance:

* Alerts for potentially missing critical policies based on selected industry or location (e.g., FMLA for US companies with >50 employees).

* Disclaimer regarding legal review (the tool provides templates, but legal counsel is recommended).

  • Search & Filter:

* Ability to search within the generator's policy library.

* Search within saved handbook projects.

1.2. Non-Functional Requirements

  • Performance:

* Fast page loading times (under 2 seconds).

* Handbook generation within 10-30 seconds, depending on length.

* Responsive UI for smooth interactions.

  • Security:

* End-to-end encryption for data transmission (HTTPS/SSL).

* Secure storage of user data and handbook drafts.

* Compliance with relevant data privacy regulations (e.g., GDPR, CCPA).

* Role-based access control if team collaboration is introduced later.

  • Usability:

* Intuitive and easy-to-navigate interface, requiring minimal training.

* Clear and consistent terminology.

* Error prevention and clear error messages.

  • Scalability:

* Architecture capable of handling a growing number of users and handbook projects.

* Ability to easily add new policy templates, sections, and features.

  • Reliability:

* High uptime (e.g., 99.9%).

* Robust backup and recovery mechanisms.

  • Accessibility:

* WCAG 2.1 AA compliance (keyboard navigation, screen reader compatibility, sufficient contrast ratios).

  • Responsiveness:

* Fully functional and aesthetically pleasing on various devices (desktop, tablet, mobile).


2. Wireframe Descriptions

The user interface will be structured around a clear, guided workflow.

2.1. Dashboard / Home Screen

  • Layout: Central content area with a left-hand navigation sidebar (or top navigation).
  • Content:

* "Create New Handbook" Button: Prominently displayed.

* "My Handbooks" Section: A list/grid of saved handbook projects, showing project name, last modified date, and status (Draft, Completed).

* Action Buttons per Handbook: Edit, Duplicate, Preview, Download, Delete.

* Onboarding/Tutorial Prompts: For first-time users.

2.2. Handbook Configuration Workflow (Step-by-Step Wizard or Sectional Editor)

This will be the core of the application, guiding users through the handbook creation process.

  • Layout:

* Left Sidebar (or Top Tabs): "Steps" or "Sections" navigation (e.g., "Company Info," "General Policies," "Benefits," "Code of Conduct," "Leave Policies," "Compliance," "Review & Generate"). A progress indicator showing current step.

* Main Content Area: Dedicated to the input fields for the currently selected section.

* Bottom Navigation: "Previous Step," "Next Step," "Save Draft" buttons.

  • Content (Example for "General Policies" section):

* Section Title: Clearly indicates the current policy category.

* Sub-sections/Categories: (e.g., "Workplace Conduct," "Technology Usage," "Dress Code"). Each sub-section can be expanded/collapsed.

* Policy Cards/Modules: For each policy within a sub-section:

* Toggle Switch: To enable/disable the policy.

* Rich Text Editor: For policy description, with options to insert placeholders (e.g., [Company Name], [Manager Title]).

* Checkboxes/Dropdowns: For policy nuances (e.g., "Remote Work: Full-time / Hybrid / Occasional").

* Contextual Tooltips/Examples: Explaining policy best practices or legal requirements.

* "Add Custom Policy" Button: Allows users to add entirely new policy sections.

2.3. Real-time Preview Screen

  • Layout:

* Left Sidebar (or Top Tabs): Table of Contents for the handbook, dynamically updated.

* Main Content Area: A scrollable, paginated view of the generated handbook (mimicking PDF output).

* Top Bar: Options to "Refresh Preview," "Download Draft," "Exit Preview."

  • Content: Displays the handbook with company logo, branding, and all configured policies in their final layout.

2.4. Review & Generate Screen

  • Layout: Simple, focused page.
  • Content:

* Summary Checklist: A list of completed/incomplete sections, with warnings for missing critical information.

* Final Branding Options: Last chance to upload logo or adjust handbook colors.

* Disclaimer: Acknowledgment that the handbook is for informational purposes and should be reviewed by legal counsel.

* "Generate Handbook" Button: Prominently displayed, with options for PDF or DOCX.

* "Back to Editing" Button: To make final adjustments.


3. Color Palettes

The color palette should convey professionalism, trustworthiness, and clarity.

3.1. Primary Palette (Core Brand Colors)

  • Deep Corporate Blue: #1A4B7D (Dominant, for headers, primary buttons, background elements) - Represents reliability, stability, trust.
  • Professional Gray: #4A4A4A (For primary text, borders, subtle UI elements) - Represents sophistication, neutrality.
  • Light Gray: #F5F7FA (For backgrounds, card elements) - Provides clean, modern aesthetic.

3.2. Accent Palette (Interactive Elements & Highlights)

  • Action Green: #4CAF50 (For "Generate," "Save," "Next" buttons, success messages) - Represents progress, completion, positive action.
  • Warning Orange: #FF9800 (For alerts, important notices, incomplete sections) - Draws attention to crucial information.
  • Error Red: #F44336 (For validation errors, deletion actions) - Indicates issues or destructive actions.

3.3. Text & Neutral Colors

  • Dark Text: #212121 (For main body text, ensuring high readability).
  • Secondary Text: #757575 (For sub-headings, descriptions, tooltips).
  • White: #FFFFFF (For backgrounds, card elements, text on dark backgrounds).

3.4. Accessibility Considerations

  • Ensure sufficient contrast ratios (at least WCAG AA standards) between text and background colors, especially for interactive elements.
  • Use color in conjunction with other visual cues (icons, text) to convey meaning, not relying solely on color.

4. UX Recommendations

4.1. Intuitive Workflow & Navigation

  • Clear Progress Indicators: Use a multi-step wizard with visual indicators (e.g., progress bar, numbered steps) to show users where they are in the process.
  • Consistent Layout: Maintain a consistent header, footer, and sidebar navigation across all screens.
  • Breadcrumbs: Implement breadcrumbs for deeper navigation paths to help users orient themselves.
  • Guided Onboarding: Provide a brief, interactive tour for new users to highlight key features.

4.2. Form Design & Input

  • Logical Grouping: Group related input fields together with clear headings and subheadings.
  • Clear Labels & Placeholders: Ensure all input fields have descriptive labels and helpful placeholder text.
  • Input Validation: Provide real-time validation and clear, actionable error messages.
  • Default Values & Suggestions: Pre-populate fields with sensible defaults or common policy language to reduce user effort.
  • Rich Text Editor Best Practices: Offer common formatting options (bold, italics, lists) but keep it focused on content, not complex design.

4.3. Feedback & Communication

  • Action Confirmation: Provide clear success messages (e.g., "Handbook Saved Successfully!") or confirmation modals for critical actions (e.g., "Are you sure you want to delete this handbook?").
  • Loading Indicators: Use spinners or progress bars for actions that take more than a few seconds (e.g., handbook generation).
  • Contextual Help: Implement tooltips and "info" icons next to complex policies or fields that, when clicked, reveal detailed explanations or examples.

4.4. Customization & Flexibility

  • Template-First Approach: Start users with robust templates but ensure every part is customizable.
  • Optional Sections: Allow users to easily enable or disable entire sections or individual policies that may not apply to their company.
  • Branding Control: Provide simple controls for logo upload and basic color scheme adjustments for the output handbook.

4.5. Accessibility & Inclusivity

  • Keyboard Navigation: Ensure all interactive elements are reachable and operable via keyboard.
  • Screen Reader Compatibility: Use semantic HTML and ARIA attributes where necessary.
  • High Contrast: Adhere to WCAG guidelines for color contrast ratios.
  • Font Readability: Use professional, legible fonts at appropriate sizes.

4.6. Call-to-Actions (CTAs)

  • Clear & Prominent: Make primary CTAs (e.g., "Generate Handbook," "Save Draft,"
gemini Output

PantheraCorp Employee Handbook: Your Guide to Success

Welcome to PantheraCorp! We are thrilled to have you join our team. This Employee Handbook is designed to be your comprehensive guide to our company culture, policies, benefits, and expectations. It outlines the principles that govern our workplace, ensuring a fair, respectful, and productive environment for everyone.

At PantheraCorp, we believe that an informed and engaged workforce is key to our collective success. We encourage you to read this handbook carefully, as it contains important information that will help you thrive in your role and understand your rights and responsibilities as a PantheraCorp employee.

Should you have any questions after reviewing this handbook, please do not hesitate to reach out to the Human Resources Department.

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


Table of Contents

  1. Welcome to PantheraCorp
  2. Our Vision, Mission, and Values
  3. Employment Basics
  4. Compensation and Benefits Overview
  5. Code of Conduct and Ethics
  6. Workplace Policies and Procedures
  7. Leave Policies
  8. Performance and Development
  9. Workplace Safety and Security
  10. Data Privacy and Confidentiality
  11. Compliance and Legal Information
  12. Separation of Employment
  13. Handbook Acknowledgment

1. Welcome to PantheraCorp

We extend a warm welcome to you as a new member of the PantheraCorp team. We are excited about the unique talents and perspectives you bring and are confident that you will find your experience here both challenging and rewarding.

This handbook serves as a guide to help you understand our company policies, procedures, and the expectations we have for all employees. It also outlines the benefits and opportunities available to you. We believe in fostering a supportive and inclusive environment where every employee can contribute their best work and grow professionally.

2. Our Vision, Mission, and Values

Our Vision: To be the leading innovator in [Insert Industry/Field] by empowering our people and delivering exceptional value to our customers and community.

Our Mission: To [Specific Mission Statement, e.g., "develop cutting-edge solutions that solve complex challenges for businesses worldwide, while maintaining a commitment to sustainability and ethical practices"].

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

  • Integrity: We act with honesty and strong moral principles, fostering trust in all our relationships.
  • Innovation: We embrace creativity, continuously seek new ideas, and adapt to change to drive progress.
  • Collaboration: We believe in the power of teamwork, working together across departments and roles to achieve shared goals.
  • Excellence: We are committed to delivering high-quality work, striving for continuous improvement in everything we do.
  • Respect: We treat everyone with dignity, valuing diverse perspectives and fostering an inclusive environment.
  • Customer Focus: We prioritize understanding and exceeding the needs of our customers, ensuring their success.

3. Employment Basics

3.1. Employment At-Will

PantheraCorp maintains an "employment at-will" relationship. This means that either you or the company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable laws. Nothing in this handbook is intended to create a contract of employment, express or implied, for a definite term.

3.2. Equal Employment Opportunity (EEO)

PantheraCorp is an Equal Opportunity Employer. We are committed to providing a workplace free from discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other status protected by the laws or regulations in the locations where we operate.

3.3. Anti-Discrimination and Anti-Harassment Policy

PantheraCorp prohibits discrimination and harassment of any kind. This includes, but is not limited to, harassment based on race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other protected characteristic. Harassment can include offensive jokes, slurs, epithets or name calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance.

Any employee who believes they have been subjected to discrimination or harassment, or has witnessed such behavior, should immediately report it to their manager or the Human Resources Department. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against any employee for reporting discrimination or harassment, or for participating in an investigation, is strictly prohibited.

3.4. Background Checks and Drug-Free Workplace

As a condition of employment, PantheraCorp may conduct background checks, including criminal history, education verification, and previous employment verification, in accordance with applicable laws. New hires may also be required to undergo drug and alcohol screening.

PantheraCorp is committed to maintaining a drug-free and alcohol-free workplace. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol on company premises or during working hours is strictly prohibited. Violation of this policy may result in disciplinary action, up to and including termination of employment.

3.5. Employee Classifications

Employees at PantheraCorp are typically classified as follows:

  • Full-Time Exempt: Salaried employees who are not eligible for overtime pay and typically work 40+ hours per week.
  • Full-Time Non-Exempt: Hourly employees who are eligible for overtime pay and typically work 40 hours per week.
  • Part-Time Non-Exempt: Hourly employees who work fewer than 40 hours per week and are eligible for overtime pay for hours over 40 in a workweek.
  • Temporary/Contract: Employees hired for a specific project or duration, or through a third-party agency.

Your specific classification will be communicated to you upon hire.

3.6. Work Hours and Attendance

Standard business hours for PantheraCorp are [e.g., Monday through Friday, 9:00 AM to 5:00 PM], unless otherwise specified by your department or manager. Punctuality and consistent attendance are essential for operational efficiency and teamwork.

  • Reporting Absences: If you are unable to report to work, you must notify your direct manager as soon as possible, preferably at least [e.g., two hours] before your scheduled start time.
  • Tardiness: Repeated tardiness may lead to disciplinary action.
  • Breaks: Employees are entitled to [e.g., a 30-minute unpaid lunch break for shifts over 5 hours, and two 15-minute paid rest breaks for shifts over 4 hours]. Specific break schedules should be coordinated with your manager.

3.7. Remote Work Policy (If Applicable)

PantheraCorp supports flexible work arrangements where appropriate for the role and business needs. Remote work arrangements must be approved by your manager and Human Resources, and are subject to the terms outlined in a separate Remote Work Agreement. Employees working remotely are expected to maintain productivity, adhere to company policies, and ensure data security.

4. Compensation and Benefits Overview

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

4.1. Pay Periods and Direct Deposit

Employees are paid [e.g., bi-weekly] on [e.g., Friday]. Paychecks are issued via direct deposit. All employees are required to enroll in direct deposit. Pay stubs are accessible online through [e.g., HRIS Portal Name].

4.2. 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. All overtime must be pre-approved by your direct manager. Unauthorized overtime may result in disciplinary action. Exempt employees are not eligible for overtime pay.

4.3. Health and Wellness Benefits

PantheraCorp offers a comprehensive suite of benefits, which may include:

  • Medical Insurance: [Briefly mention provider or type, e.g., "Multiple plans through Blue Cross Blue Shield, including PPO and HDHP options."]
  • Dental Insurance: [Briefly mention provider or type, e.g., "Coverage for preventative, basic, and major services through Delta Dental."]
  • Vision Insurance: [Briefly mention provider or type, e.g., "Eye exams, glasses, and contact lenses through VSP."]
  • Life Insurance: Company-paid basic life insurance, with options for supplemental coverage.
  • Disability Insurance: Short-term and long-term disability coverage to protect your income during extended illness or injury.
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues.
  • Wellness Programs: [e.g., On-site fitness classes, discounts on gym memberships, health screenings.]

Detailed information regarding eligibility, enrollment, and specific plan benefits is available from the Human Resources Department or through the benefits portal.

4.4. Retirement Plans

PantheraCorp offers a [e.g., 401(k)] retirement savings plan to help employees plan for their financial future. Eligible employees can contribute a portion of their earnings on a pre-tax or Roth basis. PantheraCorp may offer a matching contribution after [e.g., one year of service]. Details are available from HR.

4.5. Paid Time Off (PTO)

PantheraCorp provides a comprehensive Paid Time Off (PTO) program that combines vacation, sick leave, and personal days into a single bank of hours. This allows employees flexibility in managing their time off needs. Accrual rates and usage policies are detailed in Section 7.

4.6. Employee Recognition Programs

We believe in celebrating success and recognizing the hard work and dedication of our employees. PantheraCorp maintains various recognition programs, including [e.g., annual awards, spot bonuses, peer recognition programs].

4.7. Expense Reimbursement

Employees who incur approved business-related expenses while performing their job duties will be reimbursed in accordance with company policy. All expenses must be submitted with proper documentation through [e.g., expense reporting system] within [e.g., 30 days] of the expense being incurred.

5. Code of Conduct and Ethics

Our Code of Conduct outlines the ethical principles and professional standards that guide all our actions at PantheraCorp. Adherence to these principles is essential for maintaining a positive and productive work environment and upholding our company's reputation.

5.1. Professionalism and Respect

All employees are expected to conduct themselves in a professional manner, treating colleagues, customers, partners, and vendors with respect and courtesy. This includes:

  • Communication: Engaging in respectful and constructive communication, both verbal and written.
  • Attitude: Maintaining a positive and collaborative attitude.
  • Conflict Resolution: Addressing conflicts professionally and constructively, seeking resolution through appropriate channels.

5.2. Conflict of Interest

Employees must avoid situations where their personal interests conflict with the interests of PantheraCorp. This includes, but is not limited to, engaging in outside employment or business activities that compete with the company, or accepting gifts, favors, or entertainment that could improperly influence business decisions. Any potential conflict of interest must be disclosed to your manager and HR.

5.3. Anti-Bribery and Corruption

PantheraCorp has a zero-tolerance policy for bribery and corruption. Employees must never offer, give, solicit, or accept bribes, kickbacks, or other improper payments to or from any person or entity, whether in the private or public sector.

5.4. Use of Company Property and Resources

Company property, including equipment, vehicles, software, and intellectual property, is provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, violate company policies, or incur significant cost to the company. Employees are responsible for the proper care, maintenance, and security of all company property.

5.5. Social Media Policy

Employees are expected to exercise good judgment and maintain professionalism when using social media, both for personal and business purposes. When identifying yourself as a PantheraCorp employee online, remember that your actions and statements can reflect on the company. Do not post confidential information, disparage the company, colleagues, or customers, or engage in any online behavior that violates company policies or brings the company into disrepute.

5.6. Dress Code

PantheraCorp promotes a professional yet comfortable work environment. The dress code is [e.g., "business casual"]. Employees are expected to dress appropriately for their work environment and any client interactions. Specific departmental requirements may apply. If you are unsure, please consult your manager.

5.7. Workplace Relationships

While PantheraCorp respects the privacy of its employees, romantic relationships between a manager and a direct report, or between employees where one has direct influence over the other's employment terms, are strongly discouraged due to potential conflicts of interest, favoritism, and harassment concerns. Employees in such relationships are required to disclose them to Human Resources to ensure appropriate measures can be taken to avoid conflicts.

5.8. Reporting Misconduct (Whistleblower Policy)

PantheraCorp encourages employees to report any suspected violations of law, company policy, or ethical standards without fear of retaliation. If you believe misconduct has occurred, you should report it to your manager, Human Resources, or via the confidential [e.g., Ethics Hotline/Reporting System]. All reports will be handled with discretion and investigated thoroughly. Retaliation against an employee for making a good-faith report is strictly prohibited and will result in disciplinary action.

6. Workplace Policies and Procedures

6.1. Communication Policy

Effective communication is vital to our success. Employees are encouraged to communicate openly and respectfully with colleagues, managers, and clients. Official company communications will be distributed via [e.g., email, company intranet, team meetings].

6.2. Internet and Email Usage

Company-provided internet access and email accounts are primarily for business purposes. Incidental personal use is permitted provided it does not interfere with work responsibilities, consume excessive bandwidth, or violate any company policies, including those related to harassment, discrimination, or offensive content. All internet and email usage is subject to monitoring by PantheraCorp.

6.3. Software Usage and Licensing

All software used on company systems must be legally licensed and approved by PantheraCorp IT. Employees are prohibited from installing unauthorized software, including pirated software, on company computers.

6.4. Visitors Policy

All visitors to PantheraCorp premises must sign in at the reception desk, obtain a visitor badge, and be escorted by a PantheraCorp employee at all times. Employees are responsible for their visitors' adherence to company policies and safety procedures.

6.5. Emergency Procedures

In the event of an emergency (e.g., fire, medical emergency, active threat), employees should follow the procedures outlined in the Emergency Response Plan, posted in common areas and available on the company intranet. Familiarize yourself

gemini Output

Employee Handbook: [Your Company Name]

Welcome to [Your Company Name]!

Dear Team Member,

On behalf of the entire leadership team, I extend a warm welcome to you. We are thrilled to have you join [Your Company Name] and become a vital part of our growing success.

This Employee Handbook serves as a comprehensive guide to our company's policies, procedures, benefits, and expectations. It is designed to provide you with a clear understanding of our workplace culture, your rights, and your responsibilities as a valued member of our team. We believe that a well-informed team is an empowered team, and this handbook is a key resource to help you thrive in your role.

At [Your Company Name], we are committed to fostering a supportive, inclusive, and dynamic work environment where every employee can contribute their best and achieve their full potential. We encourage you to read this handbook carefully, as it contains important information that will help you navigate your journey with us.

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

Once again, welcome to the team! We look forward to a successful and rewarding journey together.

Sincerely,

[CEO/President Name]

[Your Company Name]


Table of Contents

  1. Introduction

* 1.1 Welcome Message

* 1.2 Our Vision, Mission, and Values

* 1.3 Purpose of This Handbook

* 1.4 At-Will Employment Statement

* 1.5 Handbook Revisions

  1. Company Policies

* 2.1 Equal Employment Opportunity (EEO)

* 2.2 Anti-Harassment and Anti-Discrimination Policy

* 2.3 Workplace Safety and Health

* 2.4 Drug-Free Workplace Policy

* 2.5 Confidentiality and Data Protection

* 2.6 Use of Company Property and Resources

* 2.7 Internet, Email, and Social Media Policy

* 2.8 Employee Privacy

* 2.9 Attendance and Punctuality

* 2.10 Dress Code

* 2.11 Performance Management and Reviews

* 2.12 Disciplinary Action

* 2.13 Termination of Employment

  1. Benefits Overview

* 3.1 Health and Wellness Benefits

* 3.2 Retirement Plans

* 3.3 Life and Disability Insurance

* 3.4 Employee Assistance Program (EAP)

* 3.5 Other Employee Perks and Programs

  1. Code of Conduct

* 4.1 General Professional Expectations

* 4.2 Ethics and Integrity

* 4.3 Conflict of Interest

* 4.4 Anti-Bribery and Corruption

* 4.5 Reporting Misconduct and Whistleblower Protection

* 4.6 Workplace Relationships

  1. Leave Policies

* 5.1 Paid Time Off (PTO) / Vacation Policy

* 5.2 Sick Leave Policy

* 5.3 Holiday Policy

* 5.4 Family and Medical Leave Act (FMLA)

* 5.5 Jury Duty Leave

* 5.6 Bereavement Leave

* 5.7 Military Leave

* 5.8 Other Leaves of Absence

  1. Compliance and Legal Information

* 6.1 Americans with Disabilities Act (ADA)

* 6.2 Workers' Compensation

* 6.3 Fair Labor Standards Act (FLSA)

* 6.4 Immigration Law Compliance (I-9 Verification)

* 6.5 Occupational Safety and Health Administration (OSHA)

* 6.6 Data Privacy Regulations

  1. Acknowledgment of Receipt

1. Introduction

1.1 Welcome Message

(See above)

1.2 Our Vision, Mission, and Values

  • Vision: To [State your company's aspirational long-term goal and impact].
  • Mission: To [Describe your company's core purpose and what it does to achieve its vision].
  • Values: We believe in and operate by the following core values:

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

* Excellence: We strive for the highest quality in everything we do.

* Collaboration: We work together, supporting each other to achieve common goals.

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

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

* Respect: We treat everyone with dignity and value diverse perspectives.

1.3 Purpose of This Handbook

This handbook outlines the policies, procedures, and benefits that apply to all employees of [Your Company Name]. It is intended to:

  • Clarify expectations for employee conduct and performance.
  • Provide information about your rights and responsibilities.
  • Detail the benefits and programs available to you.
  • Ensure a fair, consistent, and legally compliant work environment.
  • Serve as a reference guide for common workplace questions.

This handbook is not an employment contract, and the policies described herein may be modified, revoked, or supplemented at any time, with or without notice, at the sole discretion of [Your Company Name].

1.4 At-Will Employment Statement

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

1.5 Handbook Revisions

[Your Company Name] reserves the right to revise, modify, delete, or add to any policies, procedures, work rules, or benefits described in this handbook at any time, with or without notice. All employees will be informed of significant changes through official company communication channels. The most current version of the handbook will always supersede any prior versions.


2. Company Policies

2.1 Equal Employment Opportunity (EEO)

[Your Company Name] is an Equal Opportunity Employer and is committed to providing a workplace free from discrimination and harassment. We recruit, hire, train, and promote individuals without regard to race, color, religion, sex (including pregnancy, childbirth, or related medical conditions), national origin, age, disability, genetic information, veteran status, sexual orientation, gender identity, or any other characteristic protected by federal, state, or local law. This policy applies to all terms and conditions of employment, including recruitment, hiring, placement, promotion, termination, layoff, recall, transfer, leaves of absence, compensation, and training.

2.2 Anti-Harassment and Anti-Discrimination Policy

[Your Company Name] is committed to maintaining a work environment free from all forms of harassment and discrimination. This includes, but is not limited to, harassment based on any protected characteristic (as listed in the EEO policy). Harassment can take many forms, including verbal, physical, or visual conduct that creates an intimidating, hostile, or offensive work environment.

  • Prohibited Conduct: Includes offensive jokes, slurs, epithets, name-calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance. Sexual harassment, which includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature, is strictly prohibited.
  • Reporting Procedure: Any employee who believes they have been subjected to or witnessed harassment or discrimination should immediately report the incident to their manager, the Human Resources department, or any member of management. All reports will be investigated promptly and confidentially to the extent possible, and appropriate corrective action will be taken.
  • No Retaliation: [Your Company Name] strictly prohibits retaliation against any employee for reporting harassment or discrimination in good faith or for cooperating in an investigation.

2.3 Workplace Safety and Health

[Your Company Name] is dedicated to providing a safe and healthy work environment for all employees, visitors, and contractors.

  • Employee Responsibility: All employees are responsible for adhering to safety rules and procedures, reporting unsafe conditions or hazards immediately to their supervisor, and participating in required safety training.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and emergency contact information. In case of an emergency, follow established procedures and instructions from designated personnel.
  • Accident Reporting: All work-related injuries, illnesses, or near-misses, no matter how minor, must be reported to your supervisor and HR immediately.

2.4 Drug-Free Workplace Policy

[Your Company Name] is committed to maintaining a drug-free workplace to ensure the safety, health, and productivity of all employees.

  • Prohibited Conduct: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances, including illegal drugs, and the misuse of alcohol or prescription drugs, are strictly prohibited in the workplace, on company premises, or while conducting company business.
  • Testing: [Your Company Name] reserves the right to conduct drug and alcohol testing for pre-employment, reasonable suspicion, post-accident, and other situations as permitted by law.
  • Consequences: Violation of this policy will result in disciplinary action, up to and including termination of employment.

2.5 Confidentiality and Data Protection

Employees are entrusted with confidential and proprietary information belonging to [Your Company Name], its customers, and business partners.

  • Definition: Confidential information includes, but is not limited to, trade secrets, financial data, marketing strategies, customer lists, product designs, software code, employee records, and unannounced business plans.
  • Obligation: Employees must maintain the strictest confidentiality of all such information during and after their employment. This information may not be disclosed to any unauthorized person or entity, nor may it be used for personal gain.
  • Return of Property: Upon termination of employment, all confidential documents, data, and company property must be returned to [Your Company Name].

2.6 Use of Company Property and Resources

Company property, including equipment, vehicles, software, and supplies, is provided for business use.

  • Responsible Use: Employees are expected to use company property responsibly, efficiently, and for legitimate business purposes only. Unauthorized personal use is generally prohibited.
  • Care and Maintenance: Employees are responsible for the proper care, maintenance, and security of company property entrusted to them. Any damage, loss, or theft must be reported immediately.
  • No Expectation of Privacy: Employees should have no expectation of privacy in their use of company property or resources, including computers, email, internet access, and phones. The company reserves the right to monitor, access, and disclose information on company systems and devices.

2.7 Internet, Email, and Social Media Policy

  • Internet and Email: Company-provided internet access and email systems are for business purposes. Limited, reasonable personal use is permitted, provided it does not interfere with work duties, consume excessive bandwidth, or violate any company policies (e.g., viewing inappropriate content). All content transmitted or stored on company systems is company property and subject to monitoring.
  • Social Media: Employees are expected to exercise good judgment and professional conduct when using social media, whether for personal or business purposes.

* Do not post confidential company information.

* Do not engage in harassment, bullying, or derogatory comments about the company, colleagues, customers, or competitors.

* Be mindful that your online conduct can reflect on [Your Company Name].

* If identifying yourself as an employee of [Your Company Name] on social media, include a disclaimer that your views are your own and do not necessarily represent those of the company.

2.8 Employee Privacy

[Your Company Name] respects the privacy of its employees and strives to balance this with its legitimate business needs.

  • Personal Information: The company collects and maintains personal information necessary for employment, payroll, benefits administration, and legal compliance. This information is kept confidential and accessible only to authorized personnel.
  • Monitoring: While the company respects employee privacy, it reserves the right to monitor communications and activities on company systems, premises, and property to ensure compliance with policies, protect company assets, and ensure a safe workplace. This includes, but is not limited to, email, internet usage, phone calls, and video surveillance in public areas.

2.9 Attendance and Punctuality

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

  • Work Schedule: Employees are expected to adhere to their assigned work schedules, including start and end times, and approved breaks.
  • Absences and Tardiness:

* In case of unavoidable absence or tardiness, employees must notify their supervisor as far in advance as possible, preferably at least [Number] hours before their scheduled start time.

* Unexcused absences or chronic tardiness may lead to disciplinary action, up to and including termination.

  • Leave Requests: All requests for planned time off must be submitted and approved in advance according to the relevant leave policies.

2.10 Dress Code

[Your Company Name] promotes a professional yet comfortable work environment.

  • General Guidelines: Employees are expected to dress in a manner appropriate for our professional setting and consistent with safety requirements of their role.
  • Business Casual: For most office roles, a business casual dress code is appropriate. This typically includes collared shirts, blouses, sweaters, dress pants, skirts, and appropriate footwear. Jeans may be permitted on certain days or in certain roles if neat and professional.
  • Specific Roles: Certain roles may require specific attire (e.g., uniforms, safety gear) which will be communicated by management.
  • Inappropriate Attire: Includes overly casual clothing (e.g., ripped jeans, tank tops, flip-flops), clothing with offensive slogans, or revealing attire. Supervisors have the discretion to determine if an employee's attire is inappropriate and may request a change.

2.11 Performance Management and Reviews

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

  • Performance Expectations: Employees will be provided with clear job descriptions and performance expectations for their roles.
  • Regular Feedback: Supervisors will provide ongoing feedback and coaching to help employees meet and exceed expectations.
  • Performance Reviews: Formal performance reviews will be conducted [Annually/Bi-annually] to discuss performance, set goals, identify development opportunities, and recognize achievements. These reviews are a two-way dialogue between employee and supervisor.

2.12 Disciplinary Action

[Your Company Name] uses a progressive disciplinary process to address performance or conduct issues, though the company reserves the right to deviate from this process based on the severity of the infraction.

  • Steps (may vary):

1. Verbal Warning

2. Written Warning

3. Final Written Warning/Suspension

4. Termination of Employment

  • Serious Misconduct: Certain severe infractions (e.g., theft, violence, gross insubordination, harassment, or drug use) may result in immediate termination without prior warnings.
  • Documentation: All disciplinary actions will be documented and placed in the employee's personnel file.

2.13 Termination of Employment

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