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

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

Step 1: Requirements Analysis for Employee Handbook Generator

Project: Employee Handbook Generator

Step: Analyze Requirements

Deliverable: Comprehensive Requirements Analysis, Design Specifications, Wireframe Descriptions, Color Palettes, and UX Recommendations


1. Introduction and Project Overview

This document outlines the detailed requirements and design specifications for the "Employee Handbook Generator" workflow. The primary goal is to create a robust, intuitive, and highly customizable tool that enables companies to generate comprehensive, professional, and legally compliant employee handbooks efficiently. This analysis covers core functionalities, user interface (UI) design, user experience (UX) principles, and technical considerations, ensuring the final product meets the diverse needs of businesses.

The generator will streamline the process of drafting essential company documents, reducing manual effort and ensuring consistency across various policy areas.

2. Core Requirements Analysis

The Employee Handbook Generator must address the following key areas:

2.1. Content Generation & Customization

The system will generate detailed text for various handbook sections based on user inputs and pre-defined templates.

  • Core Sections (as per user input):

* Company Policies: General employment philosophy, equal employment opportunity, non-discrimination, workplace safety, harassment prevention, data privacy, IT usage, social media, remote work, intellectual property, attendance, dress code.

* Benefits Overview: Health, dental, vision insurance, life insurance, disability benefits, retirement plans (e.g., 401k), paid time off (PTO), holidays, employee assistance programs (EAP), wellness programs.

* Code of Conduct: Ethical behavior, professionalism, conflict of interest, confidentiality, anti-bribery/corruption, drug and alcohol policy.

* Leave Policies: Family and Medical Leave Act (FMLA), sick leave, vacation leave, personal leave, bereavement leave, jury duty leave, military leave.

* Compliance Sections: At-will employment disclaimer, non-discrimination statements (ADA, Title VII), state-specific labor law references (e.g., California, New York), OSHA regulations, HIPAA (if applicable).

  • Additional Essential Sections:

* Introduction/Welcome: Company mission, vision, values, history.

* Employment Basics: Employment classifications (full-time, part-time, temporary), onboarding procedures, performance reviews, promotions, transfers, separation of employment.

* Workplace Conduct: Workplace violence, professional communication, grievance procedures, disciplinary actions.

* Compensation: Pay periods, overtime, expense reimbursement.

* Acknowledgement of Receipt: A section for employees to sign, acknowledging they have read and understood the handbook.

  • Customization Options:

* Section Selection: Ability to select/deselect standard sections.

* Custom Sections: Option to add entirely new, user-defined sections.

* Text Editing: Full editability of generated text, including formatting (bold, italics, bullet points, numbering).

* Branding: Upload company logo, specify brand colors for the handbook output.

* Legal Disclaimers: Customizable disclaimers relevant to specific jurisdictions.

* Tone & Style: Option to influence the tone (e.g., formal, friendly) of the generated content.

2.2. User Input & Configuration

  • Company Profile: Fields for company name, address, industry, size, mission, vision, values, legal jurisdiction (state/country).
  • Policy Details: Specific inputs for each policy, e.g., number of PTO days, eligibility for benefits, specific conduct rules.
  • Jurisdiction-Specific Inputs: Prompts for state-specific legal requirements that impact policies.

2.3. Output & Export

  • Preview Functionality: Real-time or near real-time preview of the handbook as it's being built.
  • Export Formats:

* PDF: Professional, non-editable format suitable for distribution.

* DOCX: Editable format for further internal modifications.

* Web-based view: A linkable, interactive version of the handbook (optional, advanced feature).

2.4. User Management (Optional but Recommended)

  • Save/Load Drafts: Ability to save progress and resume editing later.
  • Version Control: Track changes and revert to previous versions of the handbook.
  • Multi-user Access: (If applicable for larger organizations) Roles and permissions for different users (e.g., HR Manager, Legal Reviewer).

3. Detailed Design Specifications

3.1. User Interface (UI) Components

  • Navigation Sidebar: Persistent left-hand navigation for main sections (e.g., Company Info, Policies, Benefits, Review, Export).
  • Content Editor Panel: Main central area for input forms, text areas, and content display.
  • Dynamic Input Fields:

* Text Inputs: Single-line for names, numbers; multi-line for descriptions, policy statements.

* Dropdowns/Select Boxes: For pre-defined choices (e.g., state, industry, policy type).

* Toggle Switches: For yes/no options (e.g., "Do you offer dental insurance?").

* Date Pickers: For effective dates of policies.

* Rich Text Editor: For direct editing of generated policy text, allowing bold, italics, lists, hyperlinks, etc.

  • Progress Indicator: A visual bar or checklist showing completion status.
  • Action Buttons: "Save Draft," "Generate Preview," "Download PDF," "Next/Previous Section."
  • Help/Tooltip Icons: Contextual help for complex fields or policy implications.
  • Branding Uploader: Drag-and-drop area for company logo, color picker for brand accents.

3.2. Data Flow and Generation Logic

  1. User Input: User provides company details, selects policy types, and specifies parameters through the UI forms.
  2. AI Processing (Gemini Model):

* Contextual Understanding: The AI interprets user inputs, company profile, and selected jurisdiction.

* Template Matching/Generation: It selects or dynamically generates relevant policy clauses and explanatory text.

* Customization Integration: AI incorporates user-defined text edits and branding elements.

Legal Compliance Layer: The AI attempts to flag potential non-compliance based on provided jurisdiction, offering suggestions for review (e.g., "Ensure this policy complies with California AB 5"). Note: This is an assistive feature, not a substitute for legal review.*

  1. Content Assembly: The generated text for each section is assembled into a cohesive document.
  2. Formatting & Output: The assembled content is formatted according to chosen styles and exported to the desired format (PDF, DOCX).

4. Wireframe Descriptions

The following describes key screens and their layouts for the Employee Handbook Generator.

4.1. Screen 1: Dashboard / Project Overview

  • Layout: Left sidebar for navigation, main content area for project management.
  • Elements:

* Sidebar: "Home," "New Handbook," "My Handbooks," "Settings."

* Main Content:

* "Create New Handbook" prominent button.

* List of "Recent Handbooks" (title, last modified date, status - draft/published).

* "Templates" section (e.g., "Small Business Handbook," "Tech Startup Handbook").

  • User Flow: User starts a new handbook or resumes an existing one.

4.2. Screen 2: Company Information & Setup

  • Layout: Left sidebar (progress tracker), main content area with form fields.
  • Elements:

* Sidebar (Progress Tracker): "1. Company Info," "2. Policies," "3. Benefits," "4. Conduct," "5. Leave," "6. Compliance," "7. Review & Export." Current step highlighted.

* Main Content:

* Header: "Company Information"

* Form Fields: Company Name, Legal Entity Type, Address, Industry, Number of Employees, Primary Operating State/Country, Mission, Vision, Values (multi-line text areas).

* Branding Section: Logo upload area (drag & drop), primary color picker, secondary color picker.

* Navigation Buttons: "Save Draft," "Next: Policies."

  • User Flow: User inputs core company data, which informs subsequent policy generation.

4.3. Screen 3: Policy Configuration (Example: "Company Policies" Section)

  • Layout: Left sidebar (progress tracker), main content area split into policy selection and detail configuration.
  • Elements:

* Sidebar (Progress Tracker): Highlighted "2. Policies."

* Main Content:

* Header: "Company Policies"

* Policy List (Left Sub-panel): A scrollable list of policy categories (e.g., "Workplace Safety," "IT Usage," "Remote Work"). Each item has a toggle switch to include/exclude.

* Policy Detail Editor (Right Sub-panel): When a policy is selected/toggled ON:

* Policy Title: Editable text field.

* Key Parameters: Specific input fields relevant to the policy (e.g., for "Remote Work": "Eligibility Criteria," "Reporting Requirements," "Equipment Policy").

* Generated Text Preview/Editor: A rich text editor displaying the AI-generated policy text based on inputs, allowing direct edits.

* "Add Custom Clause" Button: To insert user-defined text.

* Help/Legal Note: Small info icon with tooltip for legal considerations.

* Navigation Buttons: "Previous: Company Info," "Next: Benefits."

  • User Flow: User selects relevant policies, customizes their parameters, and reviews/edits the generated text. This pattern repeats for Benefits, Conduct, Leave, and Compliance sections.

4.4. Screen 4: Review & Export

  • Layout: Left sidebar (progress tracker), main content area dedicated to full handbook preview and export options.
  • Elements:

* Sidebar (Progress Tracker): Highlighted "7. Review & Export."

* Main Content:

* Header: "Review & Export Handbook"

* Full Handbook Preview: A scrollable, paginated display of the complete handbook content, reflecting all customizations and branding.

* "Edit Section" Links: Clicking on a section in the preview jumps to its configuration screen.

* Export Options Panel:

* "Download PDF" button.

* "Download DOCX" button.

* "Print" button.

* "Share Link" (optional, for web-based view).

* "Finalize & Publish" (marks handbook as complete).

* Disclaimer: Prominent reminder: "This handbook is for informational purposes only and does not constitute legal advice. Please consult with legal counsel for review."

  • User Flow: User performs a final review, makes any last-minute edits, and exports the handbook in the desired format.

5. Color Palettes

A professional, trustworthy, and user-friendly color palette is essential.

5.1. Primary Palette (Professional & Trustworthy)

  • Primary Blue: #0056B3 (A deep, reliable blue for main headings, primary buttons, and navigation accents.)
  • Secondary Blue: #007BFF (A slightly brighter blue for secondary buttons, interactive elements, and progress indicators.)
  • Accent Green: #28A745 (A positive green for success messages, "Save" buttons, and completion indicators.)
  • Accent Red: #DC3545 (A warning red for error messages, delete actions, and critical alerts.)

5.2. Neutral Palette (Readability & Cleanliness)

  • Dark Gray (Text): #343A40 (For body text, ensuring high readability.)
  • Medium Gray (Borders/Icons): #6C757D (For borders, inactive icons, and secondary text.)
  • Light Gray (Backgrounds): #F8F9FA (For content area backgrounds, providing a clean canvas.)
  • White: #FFFFFF (For card backgrounds, modals, and main UI elements.)

5.3. Typography

  • Headings: Sans-serif font like Poppins or Montserrat for a modern, clean look.
  • Body Text: Sans-serif font like Inter or Open Sans for excellent readability across devices.

6. User Experience (UX) Recommendations

6.1. Intuitive Navigation and Flow

  • Step-by-Step Wizard: Guide users through the handbook generation process with clear, sequential steps.
  • Clear Progress Indicators: Visually show users where they are in the process and how much is left.
  • Consistent Layout: Maintain a consistent UI layout across all screens to reduce cognitive load.

6.2. Feedback and Guidance

  • Real-time Validation: Provide immediate feedback on input fields (e.g., required fields, format errors).
  • Contextual Help: Use tooltips and info icons to explain policy implications or complex fields.
  • Success Messages: Confirm actions like "Draft Saved" or "Handbook Downloaded."
  • Legal Disclaimers: Prominently display disclaimers about the tool not providing legal advice, encouraging review by legal counsel.

6.3. Customization and Flexibility

  • Rich Text Editing: Empower users to fine-tune generated content with a powerful yet easy-to-use editor.
  • Drag-and-Drop Reordering: Allow users to easily reorder sections within the handbook.
  • Template Options: Offer a library of industry-specific or company-size-specific templates as starting points.

6.4. Preview and Iteration

  • Live/Near-Live Preview: Display the handbook's appearance as it's being built, allowing users to see changes immediately.
  • **Easy Navigation
gemini Output

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


Welcome to the [Company Name] Team!

We are thrilled to welcome you to [Company Name]! This Employee Handbook serves as your comprehensive guide to our company culture, policies, benefits, and expectations. It's designed to help you understand what it means to be a part of our team, ensuring a productive, safe, and respectful work environment for everyone.

At [Company Name], we believe our success is built on the talent, dedication, and collaboration of our employees. We are committed to fostering a workplace where you can thrive, grow, and contribute your best work.

Please take the time to read this handbook thoroughly. It contains vital information that will answer many of your questions about working here. If you have any further questions, please do not hesitate to reach out to your manager or the HR Department.

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

Sincerely,

The Leadership Team at [Company Name]


Section 1: Our Company & Culture

1.1 Mission, Vision, and Values

Our Mission: [Insert Company's Mission Statement - e.g., To innovate and deliver exceptional [products/services] that empower our customers and enrich their lives.]

Our Vision: [Insert Company's Vision Statement - e.g., To be the leading provider of [industry/service] globally, recognized for our commitment to excellence, innovation, and social responsibility.]

Our Values: Our core values guide our decisions and actions every day. They are the foundation of our culture and define who we are:

  • Integrity: We act with honesty and strong moral principles.
  • Innovation: We embrace creativity and continuously seek better solutions.
  • Collaboration: We believe in the power of teamwork and mutual respect.
  • Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.
  • Excellence: We strive for the highest standards in everything we do.
  • [Add other relevant values]

1.2 Company History & Structure

[Briefly describe company history, founding, and growth. Provide a high-level overview of the organizational structure, e.g., "We operate with a collaborative structure, encouraging cross-functional teams and open communication."]

1.3 Purpose of This Handbook & Disclaimer

This handbook outlines the policies, procedures, and benefits applicable to employees of [Company Name]. It is intended to provide general guidance and information. It is not an employment contract and does not create any contractual rights or obligations between [Company Name] and its employees.

[Company Name] reserves the right to modify, revoke, suspend, terminate, or change any of the policies, procedures, or benefits described herein, in whole or in part, at any time, with or without notice, subject to applicable law. Employees will be notified of significant changes.


Section 2: Employment Policies

2.1 Equal Employment Opportunity (EEO)

[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, gender, sexual orientation, gender identity or expression, national origin, age, disability, veteran status, or any other legally protected status. Our commitment extends to all employment practices, including recruitment, hiring, compensation, benefits, training, promotions, transfers, and termination.

2.2 Anti-Harassment & Anti-Discrimination

[Company Name] maintains a strict policy prohibiting harassment and discrimination of any kind, including sexual harassment. This includes unwelcome conduct that is offensive, humiliating, intimidating, or hostile. All employees are expected to treat colleagues, customers, vendors, and visitors with respect. Any employee who experiences or witnesses harassment or discrimination should report it immediately to their manager or the HR Department. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone reporting harassment or discrimination in good faith is strictly prohibited.

2.3 Workplace Safety & Health

Your safety is our priority. [Company Name] is committed to providing a safe and healthy work environment.

  • Safety Procedures: All employees are required to follow established safety rules and procedures, including using personal protective equipment (PPE) when necessary.
  • Reporting Hazards: Report any unsafe conditions, equipment, or practices, as well as any workplace accidents or injuries, immediately to your manager and/or the HR Department.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, medical emergencies, or other crises.

2.4 Drug-Free Workplace

[Company Name] is committed to maintaining a safe, healthy, and productive work environment for all employees. To achieve this, we maintain a strict drug-free workplace policy. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Employees under the influence of drugs or alcohol that impair their ability to perform their job duties safely and effectively are also prohibited. Violations of this policy will result in disciplinary action, up to and including termination.

2.5 At-Will Employment

[Company Name] maintains an "at-will" employment relationship. This means that either the employee or [Company Name] can terminate the employment relationship at any time, with or without cause or notice, subject to applicable law. No representative of [Company Name], other than the [President/CEO] in a written agreement, has the authority to enter into an employment contract for any specified period of time.

2.6 Confidentiality & Data Protection

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

  • Protection of Information: Employees are required to protect and maintain the confidentiality of all such information during and after employment.
  • Non-Disclosure: Confidential information should not be disclosed to anyone outside the company or to unauthorized employees within the company.
  • Data Security: Follow all company policies regarding data security, password protection, and the proper handling of sensitive information.

2.7 Social Media Policy

Employees are encouraged to use good judgment and common sense when engaging in social media activities.

  • Professional Conduct: Maintain a professional and respectful demeanor online. Do not post content that is harassing, discriminatory, defamatory, or that violates company policies.
  • Confidentiality: Do not disclose confidential or proprietary company information, trade secrets, or client data on social media.
  • Personal vs. Professional: Clearly distinguish between your personal opinions and those of [Company Name]. If you identify yourself as an employee, ensure your online conduct reflects positively on the company.

2.8 IT & Communications Policy

Company-provided equipment, including computers, software, email, internet access, phones, and other electronic devices, are for business use. Limited and occasional personal use is permitted, provided it does not interfere with work duties, violate company policies, or incur additional costs for the company.

  • Monitoring: Employees should have no expectation of privacy when using company equipment or systems. [Company Name] reserves the right to monitor all usage of its IT resources and communications.
  • Prohibited Use: Do not use company IT resources for illegal activities, transmitting offensive material, or for personal gain outside of company business.

2.9 Work Hours & Attendance

  • Standard Workday: Our standard workweek is [e.g., Monday through Friday, 9:00 AM to 5:00 PM], with a [e.g., one-hour unpaid] lunch break. Specific schedules may vary by department or role.
  • Punctuality & Attendance: Regular and punctual attendance is essential. If you will be late or absent, you must notify your manager as far in advance as possible, preferably before your scheduled start time.
  • Overtime: Non-exempt employees are eligible for overtime pay for hours worked over [e.g., 40] in a workweek, in accordance with federal and state laws. Overtime must be pre-approved by your manager.
  • Timekeeping: All employees are responsible for accurately recording their work hours. Falsification of time records is a serious offense and may result in disciplinary action, up to and including termination.

2.10 Performance Management & Reviews

[Company Name] is committed to supporting your professional growth.

  • Performance Reviews: Regular performance reviews will be conducted [e.g., annually/semi-annually] to discuss your performance, set goals, and identify development opportunities.
  • Feedback: Managers are encouraged to provide ongoing feedback, and employees are encouraged to seek feedback and actively participate in their performance development.

2.11 Disciplinary Action

When an employee's conduct or performance falls below company standards, disciplinary action may be taken. The company utilizes a progressive disciplinary policy that may include verbal warnings, written warnings, performance improvement plans, suspension, and ultimately, termination of employment. The specific action taken will depend on the severity and frequency of the infraction.

2.12 Termination of Employment

Employment may be terminated by either the employee or [Company Name] in accordance with the at-will employment policy.

  • Voluntary Resignation: Employees are requested to provide at least two weeks' written notice of resignation to their manager and HR Department.
  • Involuntary Termination: Termination may occur due to performance issues, policy violations, restructuring, or other business reasons.
  • Exit Procedures: Upon termination, employees will be provided with information regarding final paychecks, benefits continuation (e.g., COBRA), and return of company property.

Section 3: Compensation & Benefits Overview

3.1 Pay Periods & Direct Deposit

  • Pay Frequency: Employees are paid [e.g., bi-weekly/semi-monthly] on [specific days, e.g., the 15th and last day of each month].
  • Direct Deposit: Direct deposit is mandatory for all employees. Please ensure your banking information is up-to-date with the HR Department.

3.2 Benefits Eligibility

Eligibility for specific benefits may vary based on employment status (full-time, part-time) and length of service. Details on eligibility and enrollment will be provided by the HR Department during onboarding and open enrollment periods.

3.3 Health Insurance

[Company Name] offers a comprehensive health benefits package to eligible employees, including:

  • Medical Insurance: [Briefly describe, e.g., "Choice of PPO and HMO plans with employer contribution."
  • Dental Insurance: [Briefly describe, e.g., "Coverage for preventative, basic, and major services."]
  • Vision Insurance: [Briefly describe, e.g., "Coverage for eye exams, glasses, and contact lenses."]

3.4 Retirement Plans

  • 401(k) Plan: Eligible employees can participate in our 401(k) retirement savings plan, which includes [e.g., a company match of 100% on the first 3% deferred and 50% on the next 2% deferred]. Details on enrollment, vesting, and investment options are available through our plan administrator.

3.5 Life & Disability Insurance

  • Life Insurance: [Company Name] provides [e.g., basic life insurance coverage equal to one year's salary] for eligible employees. Additional voluntary life insurance is available for purchase.
  • Short-Term Disability (STD): [Briefly describe, e.g., "Provides income replacement for approved non-work-related illnesses or injuries, typically after a waiting period."]
  • Long-Term Disability (LTD): [Briefly describe, e.g., "Provides income replacement for extended periods of disability."]

3.6 Employee Assistance Program (EAP)

Our EAP offers confidential counseling and referral services for employees and their families dealing with personal or work-related challenges, such as stress, anxiety, financial issues, or substance abuse. This benefit is provided at no cost to employees.

3.7 Other Perks & Programs

  • Professional Development: We support continuous learning through [e.g., training programs, tuition reimbursement, workshops, and conferences].
  • Wellness Programs: [Briefly describe, e.g., "Access to fitness discounts, wellness challenges, and health screenings."]
  • Employee Recognition: We celebrate employee achievements through various recognition programs.

Action: For detailed information on any benefit, eligibility requirements, and enrollment procedures, please contact the HR Department or visit our benefits portal at [Benefits Portal Link/URL].


Section 4: Code of Conduct & Ethics

4.1 Professionalism & Respect

All employees are expected to conduct themselves professionally and treat colleagues, customers, vendors, and partners with respect, dignity, and courtesy. This includes:

  • Maintaining a positive and collaborative attitude.
  • Communicating effectively and professionally.
  • Respecting diverse backgrounds and perspectives.
  • Adhering to professional standards of appearance and behavior.

4.2 Conflict of Interest

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

  • Engaging in outside employment or activities that compete with the company or interfere with job performance.
  • Using company property, information, or position for personal gain.
  • Entering into business relationships with vendors or clients where a personal financial interest exists without prior disclosure and approval from management.

4.3 Gifts & Entertainment

Employees should not accept gifts, favors, or entertainment that could improperly influence business decisions or create the appearance of a conflict of interest. Modest gifts or entertainment consistent with customary business practices may be acceptable, but any offer of significant value must be reported to management.

4.4 Ethical Business Practices

[Company Name] is committed to conducting its business with the highest standards of ethics and integrity. This includes:

  • Compliance with Laws: Adhering to all applicable laws, regulations, and internal policies.
  • Fair Competition: Competing fairly and ethically in the marketplace.
  • Accuracy in Records: Ensuring all company records, reports, and financial statements are accurate and truthful.

4.5 Reporting Violations (Whistleblower Policy)

Employees have a responsibility to report any suspected violations of this Code of Conduct, company policies, or applicable laws.

  • Reporting Procedure: Reports can be made to your manager, the HR Department, or through our confidential Ethics Hotline at [Ethics Hotline Number/Email], if applicable.
  • Non-Retaliation: [Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a suspected violation or participates in an investigation.

Section 5: Leave Policies

5.1 Vacation/Paid Time Off (PTO)

[Company Name] offers a comprehensive PTO policy that combines vacation, personal, and sick days into a single bank of hours.

  • Accrual: PTO hours accrue [e.g., bi-weekly/monthly] based on your employment status and length of
gemini Output

Employee Handbook: [Company Name]


Effective Date: [Date of Publication/Last Revision]

Version: 1.0


Table of Contents

  1. Welcome & Introduction

* 1.1 Welcome Message from Leadership

* 1.2 Our Mission, Vision, and Values

* 1.3 Purpose of This Handbook

* 1.4 Handbook Disclaimer

* 1.5 Employee Acknowledgment Form

  1. Our Company Overview

* 2.1 Company History & Overview

* 2.2 Organizational Structure & Culture

* 2.3 Commitment to Diversity, Equity, and Inclusion

  1. Employment Policies

* 3.1 Equal Employment Opportunity (EEO)

* 3.2 Anti-Discrimination, Harassment, and Retaliation

* 3.3 At-Will Employment (if applicable)

* 3.4 Recruitment, Hiring, and Onboarding

* 3.5 Employee Records & Privacy

* 3.6 Performance Management & Reviews

* 3.7 Promotions, Transfers, and Internal Mobility

* 3.8 Disciplinary Action

* 3.9 Resignation Procedures

* 3.10 Termination of Employment

  1. Compensation & Benefits Overview

* 4.1 Payroll Information (Pay Periods, Direct Deposit)

* 4.2 Overtime Compensation

* 4.3 Benefits Eligibility

* 4.4 Health, Dental, and Vision Insurance

* 4.5 Retirement Savings Plan (e.g., 401(k))

* 4.6 Life Insurance & Disability Coverage

* 4.7 Employee Assistance Program (EAP)

* 4.8 Other Benefits & Perks (e.g., wellness programs, professional development)

  1. Time Off & Leave Policies

* 5.1 Paid Time Off (PTO) / Vacation Policy

* 5.2 Sick Leave Policy

* 5.3 Company Holidays

* 5.4 Bereavement Leave

* 5.5 Jury Duty Leave

* 5.6 Military Leave

* 5.7 Family and Medical Leave Act (FMLA)

* 5.8 Parental Leave (Maternity/Paternity)

* 5.9 Other Leaves of Absence (e.g., Personal Leave)

  1. Workplace Conduct & Expectations (Code of Conduct)

* 6.1 Professionalism & Respect

* 6.2 Attendance & Punctuality

* 6.3 Dress Code

* 6.4 Workplace Safety & Health

* 6.5 Drug-Free Workplace Policy

* 6.6 Workplace Violence Prevention

* 6.7 Confidentiality & Data Security

* 6.8 Use of Company Property & Equipment

* 6.9 Internet, Email, & Social Media Usage

* 6.10 Conflict of Interest

* 6.11 Gifts & Gratuities

* 6.12 Reporting Misconduct (Whistleblower Policy)

  1. Workplace Operations

* 7.1 Work Hours & Schedules

* 7.2 Remote Work / Hybrid Work Policy

* 7.3 Communication Guidelines

* 7.4 Emergency Procedures

* 7.5 Visitor Policy

* 7.6 Parking & Commuting

  1. Compliance & Legal

* 8.1 Americans with Disabilities Act (ADA)

* 8.2 Occupational Safety and Health Administration (OSHA)

* 8.3 Worker's Compensation

* 8.4 Immigration Law Compliance (I-9)

* 8.5 Data Privacy Regulations (e.g., GDPR, CCPA - if applicable)

* 8.6 Non-Disclosure Agreements (NDAs) & Intellectual Property

  1. Conclusion

* 9.1 Open Door Policy

* 9.2 Feedback & Suggestions


1. Welcome & Introduction

1.1 Welcome Message from Leadership

Dear [Company Name] Team Member,

On behalf of the entire leadership team, I extend a warm welcome to you! We are thrilled to have you as part of our growing family. At [Company Name], we believe that our success is directly linked to the talent, dedication, and passion of our employees.

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 and provides essential information to help you understand your role, rights, and responsibilities.

We are committed to fostering an environment where every employee feels valued, respected, and empowered to contribute their best. We encourage you to familiarize yourself with the contents of this handbook and to reach out to your manager or the HR Department with any questions.

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

Sincerely,

[CEO/President Name]

[Title]

1.2 Our Mission, Vision, and Values

  • Our Mission: [Insert Company Mission Statement - e.g., "To innovate and deliver exceptional solutions that empower our customers to achieve their goals, while fostering a culture of excellence and integrity."]
  • Our Vision: [Insert Company Vision Statement - e.g., "To be the leading provider in [Industry] recognized for our groundbreaking technology, unparalleled customer service, and commitment to a sustainable future."]
  • Our Values: These core values guide our decisions, actions, and interactions:

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

* Innovation: We embrace creativity, continuous learning, and forward-thinking solutions.

* Collaboration: We foster teamwork, open communication, and mutual respect.

* Excellence: We strive for the highest standards in our work and commitment to quality.

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

* Accountability: We take ownership of our responsibilities and commitments.

1.3 Purpose of This Handbook

This Employee Handbook serves as a central resource for all employees of [Company Name]. It outlines the policies, procedures, benefits, and expectations that govern our employment relationship. Its purpose is to:

  • Provide clear guidelines for workplace conduct and performance.
  • Inform employees about their rights, responsibilities, and benefits.
  • Ensure fair and consistent treatment for all employees.
  • Promote a positive, productive, and respectful work environment.
  • Comply with applicable federal, state, and local employment laws.

This handbook supersedes all previous oral or written policies, procedures, and statements regarding conditions of employment.

1.4 Handbook Disclaimer

This Employee Handbook is a guide, not a contract. It is intended to provide general information about [Company Name]'s policies and procedures and does not create an express or implied contract of employment between [Company Name] and any employee.

[Company Name] reserves the right to modify, revoke, suspend, terminate, or change any of the policies, procedures, benefits, or conditions of employment described in this handbook at any time, with or without notice, as business needs or legal requirements dictate. Any such changes will be communicated to employees.

Nothing in this handbook should be construed to alter the at-will employment relationship (if applicable) between [Company Name] and its employees. Employment with [Company Name] is at-will, meaning that either the employee or [Company Name] can terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable laws.

This handbook is not exhaustive and cannot anticipate every situation that may arise. For specific questions or clarification, employees should consult their manager or the Human Resources Department.

1.5 Employee Acknowledgment Form

Please read, sign, and return this form to the Human Resources Department.

I, [Employee Name], acknowledge that I have received and had the opportunity to review the [Company Name] Employee Handbook, effective [Date].

I understand that it is my responsibility to read, understand, and comply with all policies, procedures, and guidelines contained within this handbook, as well as any future revisions. I understand that this handbook contains important information about [Company Name]'s expectations, policies, and benefits.

I also understand and agree that this handbook is not a contract of employment, and that my employment with [Company Name] is "at-will" (if applicable), meaning that either I or the company may terminate the employment relationship at any time, with or without cause or notice, subject to applicable laws.

I acknowledge that [Company Name] reserves the right to modify, revoke, suspend, terminate, or change any of its policies, procedures, or benefits, with or without notice, at any time.

I understand that if I have any questions about the contents of this handbook, I should contact my manager or the Human Resources Department.


Employee Signature: ___________________________________

Printed Name: ___________________________________

Date: ___________________________________


2. Our Company Overview

2.1 Company History & Overview

[Company Name] was founded in [Year] with a vision to [briefly describe founding purpose]. Since then, we have grown into a dynamic organization, continuously evolving to meet the needs of our [customers/industry]. We pride ourselves on [mention key strengths or achievements]. Our commitment to innovation and customer satisfaction remains at the core of everything we do.

2.2 Organizational Structure & Culture

[Company Name] operates with a [e.g., collaborative, agile, hierarchical] structure designed to [explain purpose, e.g., foster innovation, ensure clear communication]. We believe in a culture that promotes [e.g., open communication, mutual respect, continuous learning, work-life balance]. We encourage employees to take initiative, share ideas, and contribute to a positive and productive work environment. An organizational chart can be found on [Intranet Link/HR Department].

2.3 Commitment to Diversity, Equity, and Inclusion

[Company Name] is deeply committed to fostering a diverse, equitable, and inclusive workplace. We believe that a variety of backgrounds, experiences, and perspectives enriches our team, drives innovation, and strengthens our connection with our diverse customer base. We are dedicated to creating an environment where every employee feels valued, respected, and has an equal opportunity to succeed and thrive. Our DEI initiatives include [mention brief examples, e.g., unconscious bias training, employee resource groups, equitable hiring practices].

3. Employment Policies

3.1 Equal Employment Opportunity (EEO)

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

3.2 Anti-Discrimination, Harassment, and Retaliation

[Company Name] prohibits discrimination, harassment (including sexual harassment), and retaliation in any form. This includes unwelcome conduct based on any protected characteristic.

  • Discrimination: Treating an individual unfavorably based on a protected characteristic.
  • Harassment: Unwelcome conduct that is based on a protected characteristic and creates a hostile work environment or interferes with an individual's work performance. Sexual harassment includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical conduct of a sexual nature.
  • Retaliation: Adverse action taken against an employee for reporting discrimination or harassment, participating in an investigation, or exercising their rights under EEO laws.

Any employee who believes they have been subjected to discrimination, harassment, or retaliation, or has witnessed such behavior, should immediately report it to their manager, HR Department, or [Designated Reporting Channel]. All reports will be investigated promptly, thoroughly, and confidentially to the extent possible, and appropriate corrective action will be taken. No employee will be penalized for making a good-faith report.

3.3 At-Will Employment (if applicable)

Employment with [Company Name] is at-will. This means that both the employee and the company have the right to terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable federal, state, and local laws. This policy cannot be changed by any oral statement or implied agreement. Any modification to this at-will policy must be in writing and signed by the CEO of [Company Name].

3.4 Recruitment, Hiring, and Onboarding

[Company Name] is committed to fair and equitable hiring practices. All candidates are evaluated based on their qualifications, skills, and experience relevant to the position. Once hired, new employees will undergo an onboarding and orientation program designed to help them integrate into the company, understand our culture, and become productive members of the team.

3.5 Employee Records & Privacy

[Company Name] maintains employee records in a confidential manner. Employees are responsible for keeping their personal information (e.g., address, phone number, emergency contacts, marital status, beneficiaries) up-to-date with the HR Department. Access to employee records is restricted to authorized personnel with a legitimate business need. Employees may review their personnel file by scheduling an appointment with HR.

3.6 Performance Management & Reviews

We believe in continuous feedback and development. Employees will receive regular performance feedback, including formal performance reviews, typically on an [e.g., annual, semi-annual] basis. These reviews provide an opportunity to discuss accomplishments, identify areas for improvement, set goals, and plan for career development.

3.7 Promotions, Transfers, and Internal Mobility

[Company Name] encourages internal growth and development. Employees interested in career advancement or exploring other opportunities within the company should discuss their aspirations with their manager and/or the HR Department. Internal job postings will be made available on [Intranet/Internal Job Board]. Eligibility for promotions and transfers will be based on performance, qualifications, and business needs.

3.8 Disciplinary Action

[Company Name] expects all employees to adhere to company policies, maintain professional conduct, and meet performance standards. When an employee's conduct or performance falls below expectations, [Company Name] may implement a progressive disciplinary process, which may include verbal warnings, written warnings, performance

employee_handbook_generator.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

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

"+slugTitle(pn)+"

Built with PantheraHive BOS

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

"+title+"

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

$1

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

$1

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

$1

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

"); h+="

"+hc+"

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