Employee Handbook Generator
Run ID: 69cd14573e7fb09ff16a7c062026-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 and Design Specification for the Employee Handbook Generator

This document outlines the detailed requirements analysis, design specifications, wireframe descriptions, color palette recommendations, and user experience (UX) guidelines for the "Employee Handbook Generator" workflow. This foundational step ensures a clear understanding of the project scope, functionality, and user interface, providing a roadmap for subsequent development phases.


1. Introduction and Purpose

The primary objective of this "Employee Handbook Generator" is to enable businesses to quickly and efficiently create a comprehensive, professional, and compliant employee handbook. This initial phase focuses on defining the core content requirements for the handbook itself and designing the user interface (UI) and user experience (UX) for the generation tool. The goal is to provide a highly customizable yet user-friendly platform that leverages AI to produce high-quality, tailored handbooks.


2. Core Handbook Content Requirements

The generated employee handbook must be comprehensive, covering all essential aspects of the employer-employee relationship. Based on the workflow description, the following core sections are identified, along with additional crucial components for a complete document:

  • Welcome & Introduction:

* Welcome message from leadership.

* Company mission, vision, and values.

* Purpose of the handbook and its non-contractual nature.

* Statement of at-will employment (where applicable).

  • Company Overview:

* Brief company history and background.

* Organizational structure (optional, or reference to separate org chart).

* Key contacts.

  • Employment Policies:

* Equal Employment Opportunity (EEO): Non-discrimination, anti-harassment policies.

* Workplace Conduct: Professionalism, ethics, conflict of interest.

* Code of Conduct: Detailed expectations for employee behavior.

* Drug-Free Workplace: Policy on substance abuse.

* Workplace Violence Prevention: Procedures and zero-tolerance policies.

* Confidentiality & Data Security: Protection of company and client information.

* Technology & Communication: Use of company equipment, internet, email, social media.

* Dress Code: Guidelines for appropriate attire.

* Attendance & Punctuality: Expectations and reporting procedures.

* Performance Management: Reviews, disciplinary actions, grievance procedures.

* Employee Records: Access to and maintenance of personal information.

* Termination of Employment: Resignation, involuntary termination, final pay.

  • Compensation & Benefits Overview:

* Pay Periods & Methods: When and how employees are paid.

* Overtime: Eligibility and compensation rules.

* Benefits Eligibility: Health insurance, dental, vision, life insurance, disability.

* Retirement Plans: 401(k), pension plans (if applicable).

* Workers' Compensation: Procedures for work-related injuries.

* Other Perks: Employee discounts, wellness programs, etc.

  • Leave Policies:

* Paid Time Off (PTO): Accrual, usage, carryover.

* Sick Leave: Policies for illness.

* Vacation Leave: Policies for time off.

* Holidays: Company-observed holidays.

* Family and Medical Leave Act (FMLA): Eligibility and procedures.

* Parental Leave: Maternity, paternity, adoption leave.

* Bereavement Leave: Time off for loss of a loved one.

* Jury Duty & Witness Leave: Policies for civic duties.

* Military Leave: Policies for service members.

  • Health & Safety:

* Emergency procedures (fire, natural disaster).

* Workplace safety rules.

* Reporting accidents and hazards.

  • Compliance & Legal Disclaimers:

* Americans with Disabilities Act (ADA): Reasonable accommodations.

* Harassment & Discrimination Reporting: Clear procedures for complaints.

* Whistleblower Policy: Protection for reporting misconduct.

* Legal Disclaimers: Statement that the handbook is not an employment contract, and policies can change.

* Acknowledgement of Receipt: A section for the employee to sign, confirming they have received, read, and understood the handbook.

  • Glossary of Terms (Optional): Definitions of key HR or company-specific terms.

3. Design Specifications for the Handbook Generator Tool

The generator tool will be designed as a web-based application, prioritizing ease of use, guided input, and powerful customization.

3.1. User Input & Customization

The tool will allow users to input company-specific details and select/customize policies.

  • Company Profile:

* Company Name, Legal Name

* Industry (e.g., Tech, Retail, Healthcare)

* Number of Employees

* Operating State(s)/Jurisdiction(s) (for compliance tailoring)

* Company Mission, Vision, Values (optional, for personalization)

* Logo upload

  • Policy Selection:

* Users can select which core policy sections to include/exclude.

* For each section, users can choose from pre-defined templates (e.g., "Standard PTO," "Unlimited PTO," "Accrual-based Sick Leave").

* Option to upload existing policy documents or custom text for specific sections.

  • Policy Customization:

* Parameter Fields: For policies like PTO, users will input specific values (e.g., "annual PTO days," "accrual rate," "carryover limit").

* Toggle Options: Enable/disable specific clauses within a policy (e.g., "Does company offer parental leave?").

* Free-Text Overrides: Ability to directly edit or add custom paragraphs within any generated section.

  • Tone & Style:

* Option to select a general tone (e.g., "Formal," "Friendly," "Modern").

* Option to define specific keywords or phrases to be incorporated.

3.2. Content Generation Logic

The AI (Gemini) will be central to generating and refining the handbook content.

  • Template Library: A robust library of legally compliant policy templates for various industries and jurisdictions.
  • Dynamic Content Generation: Based on user inputs (company profile, policy selections, parameters), the AI will:

* Populate company-specific details into templates.

* Adjust legal language based on selected state/jurisdiction.

* Synthesize chosen policy parameters into coherent policy text.

* Ensure consistency in tone and terminology across the handbook.

* Flag potential conflicts or missing critical policies based on industry/jurisdiction.

  • Drafting & Refinement: The AI will generate an initial draft, which the user can then review and refine.

3.3. Output Format Options

The generated handbook will be available in multiple formats to suit various needs.

  • PDF (Recommended): Professional, print-ready, non-editable (ideal for distribution).
  • DOCX (Microsoft Word): Editable, allowing further internal modifications.
  • Web-based (HTML): For online viewing, potentially integrated with an internal company portal.

3.4. Modularity & Scalability

The architecture will support easy addition of new policy templates, compliance updates, and feature enhancements without requiring a complete overhaul.


4. Wireframe Descriptions for the Generator Interface

The user interface will guide the user through a logical, multi-step process for handbook creation.

4.1. Step 1: Welcome & Basic Information

  • Layout: Centered title, brief description, input fields, and a "Next" button.
  • Elements:

* Headline: "Generate Your Employee Handbook"

* Sub-headline: "Let's start with some basic company information."

* Input Fields:

* Company Legal Name (Required)

* Company Public Name (Optional, defaults to Legal Name)

* Industry (Dropdown with common industries)

* Number of Employees (Dropdown/Input field)

* Primary Operating State/Jurisdiction (Dropdown, multi-select allowed)

* Company Logo Upload (Drag-and-drop or file selector)

* Buttons: "Save & Next," "Cancel."

4.2. Step 2: Policy Selection & Customization

This step will likely be broken into several sub-screens or use an accordion/tabbed interface for manageability.

  • Layout: Left-hand navigation (e.g., "Company Policies," "Benefits," "Leave Policies," "Code of Conduct," "Compliance"), main content area for policy details, and "Previous/Next" buttons.
  • Elements (per policy category):

* Category Title: "Company Policies"

* Policy List: A list of all relevant policies within the category (e.g., "EEO," "Workplace Conduct," "Confidentiality").

* Toggle Switch: For each policy, a toggle to "Include" or "Exclude."

* Policy Preview/Edit Area: When a policy is selected/included:

* Template Selector: Dropdown for different policy variations (e.g., "Standard PTO," "Unlimited PTO").

* Parameter Inputs: Number fields, checkboxes, radio buttons for specific policy details (e.g., "Annual PTO Days:", "Accrual Frequency:").

* Rich Text Editor: A WYSIWYG editor to directly edit/override the generated policy text, or paste custom content.

* Contextual Help: Small info icons (i) with tooltips explaining policy options or legal considerations.

* Buttons: "Save Policy," "Revert to Template."

4.3. Step 3: Review & Finalize

  • Layout: Two-column layout: Left column for Table of Contents/Navigation, Right column for a full preview of the generated handbook.
  • Elements:

* Table of Contents (Left): Clickable links to jump to specific sections in the preview.

* Handbook Preview (Right): A scrollable, live preview of the entire handbook, reflecting all selections and customizations.

Highlighting:* Potential areas needing review (e.g., sections with custom text, or AI-flagged compliance considerations).

* Feedback/Warning Area: Displays any AI-generated warnings or suggestions (e.g., "Consider adding a remote work policy for your industry").

* Buttons: "Edit Policies" (returns to Step 2), "Generate Handbook."

4.4. Step 4: Generate & Download

  • Layout: Confirmation message, download options, and next steps.
  • Elements:

* Success Message: "Your Employee Handbook is ready!"

* Download Options:

* "Download PDF" button.

* "Download DOCX" button.

* "View Web Version" button (opens in new tab).

* Next Steps: "Save Draft," "Start New Handbook," "Share Feedback."

* Confirmation of Acknowledgment: Suggestion to include an employee acknowledgement form.


5. Recommended Color Palettes for the Generator Interface

The chosen color palettes aim for professionalism, clarity, and accessibility, reflecting a modern and trustworthy tool.

5.1. Professional & Trustworthy (Primary Recommendation)

  • Primary Accent: #0056B3 (A deep, professional blue - evokes trust and stability)
  • Secondary Accent: #28A745 (A confident green - for success, completion, positive actions)
  • Neutral Base: #F8F9FA (Light gray for backgrounds - clean and unobtrusive)
  • Secondary Base: #E9ECEF (Slightly darker gray for card backgrounds or subtle dividers)
  • Text Color (Dark): #212529 (Near black for primary text - high contrast)
  • Text Color (Light): #6C757D (Medium gray for secondary text, labels, or disabled elements)
  • Alert/Warning: #DC3545 (Red for errors or critical warnings)

5.2. Modern & Approachable (Alternative)

  • Primary Accent: #6F42C1 (A vibrant, modern purple - sophisticated and creative)
  • Secondary Accent: #17A2B8 (A calming teal - for informational elements, secondary actions)
  • Neutral Base: #FFFFFF (Pure white for backgrounds - crisp and minimalist)
  • Secondary Base: #F0F2F5 (Very light gray for subtle depth)
  • Text Color (Dark): #343A40 (Dark gray for primary text)
  • Text Color (Light): #868E96 (Lighter gray for secondary text)
  • Alert/Warning: #FFC107 (Amber for warnings, #DC3545 for errors)

Accessibility Considerations:

  • Ensure sufficient contrast ratios (WCAG 2.1 AA or AAA) between text and background colors.
  • Avoid relying solely on color to convey information; use icons, text, or patterns as well.

6. User Experience (UX) Recommendations for the Generator Interface

A superior UX will make the handbook generation process efficient, intuitive, and satisfying.

  • Guided Workflow: Implement a clear, multi-step progress indicator (e.g., "Step 1 of 4") at the top of the interface, making it easy for users to understand where they are in the process and how much is left.
  • Smart Defaults: Pre-populate fields with common industry practices or legal minimums based on the selected jurisdiction
gemini Output

Employee Handbook: [Your Company Name]

Welcome to Our Team!

Headline: Your Guide to Success at [Your Company Name]

Body Text:

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

At [Your Company Name], we believe our success is built on the collective talent, dedication, and professionalism of our people. This handbook outlines the principles that guide our interactions, the benefits we offer to support your well-being, and the policies that ensure fairness and compliance.

Please take the time to read this handbook thoroughly. It is a living document, and while it covers many aspects of your employment, it cannot anticipate every situation. We encourage you to reach out to your manager or the HR Department with any questions or for clarification.

We look forward to a successful and rewarding journey together.

Sincerely,

[Leadership Name/Title]

[Your Company Name]


Section 1: About [Your Company Name]

1.1 Our Mission, Vision, and Values

Headline: Our Purpose, Our Future, Our Principles

Body Text:

At [Your Company Name], we are driven by a clear purpose and guided by core values that shape our culture and every decision we make.

  • Our Mission: [Insert your company's mission statement here. Example: To innovate sustainable solutions that empower our customers and enrich communities worldwide.]
  • Our Vision: [Insert your company's vision statement here. Example: To be the global leader in eco-friendly technology, setting new standards for industry excellence and social responsibility.]
  • Our Values:

* Integrity: We operate with honesty, transparency, and ethical conduct in all our dealings.

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

* Collaboration: We foster teamwork, respect diverse perspectives, and achieve success together.

* Excellence: We strive for the highest quality in our work, products, and services.

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

* Respect: We value every individual, promoting an inclusive environment where everyone feels valued and heard.

1.2 Company History and Culture

Headline: Our Journey, Our Identity

Body Text:

[Your Company Name] was founded in [Year] with a vision to [briefly describe founding purpose]. Since then, we have grown significantly, evolving into [describe current status/achievements]. Our culture is built on [describe key cultural elements, e.g., open communication, empowerment, work-life balance, continuous learning, community involvement]. We believe in creating a dynamic and supportive environment where employees are encouraged to take initiative, share ideas, and contribute to our collective success.


Section 2: Employment Basics

2.1 Employment At-Will Disclaimer

Headline: Understanding Your Employment Relationship

Body Text:

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 law. No representative of [Your Company Name], other than [specify title, e.g., the CEO or President], has the authority to enter into any agreement for employment for a definite period of time, or to make any agreement contrary to the at-will employment relationship. Any such agreement must be in writing and signed by [specify title].

This handbook is not a contract of employment, express or implied. The policies and procedures outlined herein are guidelines and may be modified, revoked, or changed at any time by [Your Company Name] at its sole discretion, with or without notice.

2.2 Equal Employment Opportunity (EEO)

Headline: Commitment to Diversity and Inclusion

Body Text:

[Your Company Name] is an Equal Employment Opportunity employer. We are committed to providing a workplace free from discrimination and harassment. All employment decisions, including those related to recruitment, hiring, training, promotion, compensation, benefits, and termination, are made without regard to race, color, religion, creed, sex, sexual orientation, gender identity, national origin, ancestry, age, veteran status, disability, genetic information, or any other characteristic protected by federal, state, or local law.

We believe that a diverse workforce brings a wealth of perspectives and experiences that strengthen our company and foster innovation.

2.3 Non-Discrimination & Harassment Policy

Headline: Zero Tolerance for Discrimination and Harassment

Body Text:

[Your Company Name] is committed to maintaining a work environment free from all forms of discrimination and harassment, including sexual harassment. Harassment, whether verbal, physical, visual, or electronic, based on any protected characteristic, is strictly prohibited. This policy applies to all employees, applicants, customers, vendors, and visitors.

What to do if you experience or witness harassment:

If you believe you have been subjected to or have witnessed discrimination or harassment, you are strongly encouraged to report it immediately to your supervisor, the HR Department, or any member of management. All complaints will be investigated promptly, thoroughly, and confidentially to the extent possible. Retaliation against any employee who reports harassment or participates in an investigation is strictly prohibited and will result in disciplinary action, up to and including termination.

2.4 Workplace Safety

Headline: Your Safety is Our Priority

Body Text:

[Your Company Name] is dedicated to providing a safe and healthy working environment for all employees. We comply with all applicable safety and health regulations and strive to exceed industry standards.

Employee Responsibilities:

  • Adhere to all safety rules and procedures.
  • Report any unsafe conditions, equipment, or practices to your supervisor immediately.
  • Report all work-related injuries, illnesses, or near-misses, no matter how minor, to your supervisor and HR Department immediately.
  • Use all required personal protective equipment (PPE) as instructed.
  • Participate in safety training sessions.

Emergency Procedures:

Familiarize yourself with emergency exits, fire extinguishers, and first-aid kits. Emergency contact information and procedures are posted in key areas throughout the workplace. In case of an emergency, follow the instructions of designated safety personnel.

2.5 Confidentiality & Data Protection

Headline: Protecting Our Information and Yours

Body Text:

During your employment, you may have access to confidential and proprietary information belonging to [Your Company Name], our customers, or our partners. This includes, but is not limited to, trade secrets, financial data, customer lists, product designs, marketing strategies, employee information, and technical data.

Employee Responsibilities:

  • Maintain the strictest confidentiality of all such information.
  • Do not disclose confidential information to unauthorized individuals or outside parties.
  • Do not use confidential information for personal gain or for the benefit of any competitor.
  • Exercise caution when discussing company business in public or on social media.
  • Return all company property and confidential information upon termination of employment.

Violation of this policy can result in disciplinary action, up to and including termination of employment, and potential legal action.


Section 3: Workplace Conduct & Expectations (Code of Conduct)

3.1 Professionalism & Respect

Headline: Upholding Our Professional Standards

Body Text:

At [Your Company Name], we expect all employees to conduct themselves professionally and respectfully at all times. This includes interactions with colleagues, supervisors, customers, vendors, and the public.

  • Respectful Communication: Engage in constructive and respectful dialogue, even when opinions differ. Avoid gossip, derogatory remarks, or offensive language.
  • Teamwork: Collaborate effectively with colleagues, offering support and contributing positively to team goals.
  • Accountability: Take responsibility for your actions and commitments.
  • Integrity: Act honestly and ethically in all work-related activities.

3.2 Attendance & Punctuality

Headline: Your Presence Matters

Body Text:

Reliable attendance and punctuality are essential for the smooth operation of [Your Company Name] and for meeting our business objectives.

  • Work Schedule: Adhere to your assigned work schedule and breaks.
  • Reporting Absences/Tardiness: If you are unable to come to work or will be late, you must notify your supervisor as soon as possible, ideally at least [e.g., two hours] before your scheduled start time, or as soon as practicable.
  • Excessive Absenteeism/Tardiness: Consistent or excessive absenteeism or tardiness may lead to disciplinary action.

3.3 Dress Code

Headline: Projecting a Professional Image

Body Text:

While we value individual expression, maintaining a professional appearance is important for [Your Company Name]'s image and reputation. Our dress code is [e.g., business casual].

  • General Guidelines: Clothing should be clean, neat, and appropriate for a professional work environment. Avoid overly casual attire, offensive graphics, or revealing clothing.
  • Client Meetings/Special Events: For client meetings or special company events, more formal business attire may be required. Your supervisor will communicate these expectations as needed.
  • Safety Requirements: In certain roles, specific safety attire or uniforms may be required. Adherence to these requirements is mandatory.

3.4 Use of Company Property & Resources

Headline: Responsible Use of Company Assets

Body Text:

Company property and resources, including equipment, vehicles, software, and supplies, are provided for business purposes.

  • Proper Use: Use all company property responsibly, efficiently, and only for authorized business activities.
  • Care and Maintenance: Take reasonable care of company property. Report any damage, loss, or malfunction immediately to your supervisor.
  • Personal Use: Limited, reasonable personal use of company resources (e.g., internet, phone) is permitted as long as it does not interfere with job duties, violate company policies, or incur significant cost to the company. Excessive personal use is prohibited.

3.5 Internet, Email, & Social Media Policy

Headline: Digital Responsibility and Professionalism

Body Text:

Company-provided internet access, email, and social media platforms are primarily for business use.

  • Internet & Email:

* Do not access, download, or distribute inappropriate, offensive, or illegal content.

* Do not use company systems for unauthorized commercial activities, gambling, or political lobbying.

* Email and internet usage may be monitored by the company. Employees should have no expectation of privacy when using company systems.

  • Social Media:

* Exercise caution and good judgment when posting content related to [Your Company Name], its employees, customers, or business partners, even on personal social media accounts.

* Do not disclose confidential company information.

* Do not post discriminatory, harassing, or defamatory content.

* Clearly state that your opinions are your own and do not represent the company.

3.6 Conflict of Interest

Headline: Avoiding Conflicts of Interest

Body Text:

Employees are expected to act in the best interest of [Your Company Name] at all times. A conflict of interest arises when an employee's personal interests or activities could potentially interfere with, or appear to interfere with, the company's interests.

  • Examples: Holding a financial interest in a competitor, supplier, or customer; engaging in outside employment that competes with the company; accepting gifts or favors of substantial value from business partners.
  • Reporting: If you believe you may have a conflict of interest or are unsure, you must disclose the situation to your supervisor or the HR Department immediately for review and guidance.

3.7 Drug-Free Workplace

Headline: Commitment to a Drug-Free Environment

Body Text:

[Your Company Name] is committed to providing a safe, healthy, and productive work environment. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Employees are also prohibited from working under the influence of illegal drugs or alcohol.

Violation of this policy will result in disciplinary action, up to and including termination of employment, and may involve legal consequences.

3.8 Workplace Violence Prevention

Headline: Ensuring a Safe and Secure Environment

Body Text:

[Your Company Name] has a zero-tolerance policy for workplace violence. Threats, intimidation, harassment, or acts of violence by or against any employee, customer, vendor, or visitor will not be tolerated.

  • Reporting: Any employee who experiences or witnesses any act or threat of violence should report it immediately to their supervisor, the HR Department, or local law enforcement if there is an immediate threat.
  • Investigation: All reports will be taken seriously and investigated promptly.
  • Prohibited Conduct: This includes, but is not limited to, verbal abuse, threats, physical assaults, property damage, and the presence of weapons on company premises (unless authorized by law and company policy).

Section 4: Compensation & Benefits Overview

4.1 Pay Periods & Direct Deposit

Headline: Your Compensation Details

Body Text:

Employees are paid [e.g., bi-weekly/semi-monthly] on [specify day, e.g., Friday]. Payday covers the work period from [start date] to [end date].

  • Direct Deposit: Direct deposit is mandatory for all employees. Your net pay will be electronically deposited into your designated bank account(s). You can set up or change your direct deposit information through [HRIS system name/HR Department].
  • Pay Stubs: Pay stubs are available electronically via [HRIS system name/employee portal].

4.2 Overtime Policy

Headline: Overtime Compensation

Body Text:

Non-exempt employees are eligible for overtime pay at one-and-one-half times their regular rate of pay for all hours worked over [e.g., 40] in a single workweek, in accordance with federal and state law. All overtime work must be pre-approved by your supervisor. Unauthorized overtime may result in disciplinary action. Exempt employees are not eligible for overtime pay.

4.3 Performance Reviews

Headline: Growing Together: Performance and Development

Body Text:

Performance reviews are an integral part of our commitment to employee development and continuous improvement. Formal performance reviews are conducted [e.g., annually/semi-annually] to provide constructive feedback, recognize achievements, set goals, and identify areas for growth. Regular informal feedback sessions are also encouraged between employees and supervisors.

4.4 Health & Wellness Benefits

Headline: Investing in Your Well-being

Body Text:

[Your Company Name] is proud to offer a comprehensive benefits package designed to support the health and well-being of our employees and their families. Eligibility for benefits typically begins on the first day of the month following [e.g., 30 days] of employment.

  • Medical Insurance: [Briefly describe, e.g., Choice of PPO/HMO plans with prescription drug coverage.]
  • Dental Insurance: [Briefly describe, e.g., Coverage for preventative, basic, and major dental services.]
  • Vision Insurance: [Briefly describe, e.g., Coverage for eye exams, glasses, and contact lenses.]
  • Flexible Spending Accounts (FSAs) / Health Savings Accounts (HSAs): [Briefly describe, e.g
gemini Output

This comprehensive Employee Handbook is designed to provide a clear understanding of our company's policies, benefits, code of conduct, and legal compliance. It serves as a valuable resource for all employees, outlining expectations and providing essential information for a productive and respectful work environment.


Employee Handbook

For Employees of [Company Name]

Effective Date: [Date]

Version: 1.0


Table of Contents

  1. Welcome to [Company Name]

* 1.1. Our Mission, Vision, and Values

* 1.2. Purpose of This Handbook

* 1.3. Employment At-Will Disclaimer

* 1.4. Equal Employment Opportunity (EEO)

* 1.5. Anti-Harassment and Anti-Discrimination Policy

  1. Our Code of Conduct & Ethics

* 2.1. General Standards of Conduct

* 2.2. Professionalism and Respect in the Workplace

* 2.3. Conflict of Interest

* 2.4. Confidentiality and Data Privacy

* 2.5. Use of Company Property and Resources

* 2.6. Social Media Policy

* 2.7. Dress Code

* 2.8. Drug-Free and Alcohol-Free Workplace

* 2.9. Workplace Safety and Security

* 2.10. Anti-Retaliation Policy

* 2.11. Reporting Violations and Open Door Policy

  1. Compensation and Benefits Overview

* 3.1. Compensation Philosophy and Pay Periods

* 3.2. Health, Dental, and Vision Insurance

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

* 3.4. Paid Time Off (PTO) / Vacation Policy

* 3.5. Company Holidays

* 3.6. Sick Leave Policy

* 3.7. Other Benefits (e.g., Life Insurance, Disability, EAP, Wellness Programs)

  1. Leave Policies

* 4.1. Family and Medical Leave Act (FMLA)

* 4.2. Bereavement Leave

* 4.3. Jury Duty Leave

* 4.4. Military Leave

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

  1. Workplace Policies & Procedures

* 5.1. Work Hours and Attendance

* 5.2. Remote Work / Hybrid Work Policy (if applicable)

* 5.3. Performance Management and Reviews

* 5.4. Disciplinary Action Policy

* 5.5. Grievance and Complaint Procedure

* 5.6. Employee Records and Personnel Files

* 5.7. Termination of Employment

  1. Compliance and Legal Disclaimers

* 6.1. Americans with Disabilities Act (ADA)

* 6.2. Fair Labor Standards Act (FLSA)

* 6.3. Occupational Safety and Health Administration (OSHA)

* 6.4. Health Insurance Portability and Accountability Act (HIPAA)

* 6.5. Workers' Compensation

* 6.6. At-Will Employment Reiteration

* 6.7. Handbook Disclaimer and Right to Modify

  1. Employee Acknowledgment Form

1. Welcome to [Company Name]

1.1. Our Mission, Vision, and Values

  • Our Mission: [Insert Company Mission Statement - e.g., "To innovate sustainable solutions that empower our customers and enrich our community."]
  • Our Vision: [Insert Company Vision Statement - e.g., "To be the leading provider of eco-friendly technology, setting industry standards for quality and social responsibility."]
  • Our Values: [List 3-5 Core Values - e.g., "Integrity, Innovation, Collaboration, Customer Focus, Respect."]

1.2. Purpose of This Handbook

This handbook is designed to provide you with general information about [Company Name]'s policies, procedures, benefits, and expectations. It is a guide to help you understand your rights and responsibilities as an employee. While this handbook covers many important topics, it cannot address every possible situation. For specific questions or situations not covered here, please consult your manager or the Human Resources Department.

1.3. Employment At-Will Disclaimer

Employment with [Company Name] is "at-will." This means that either you or the Company may terminate the employment relationship at any time, for any reason or no reason, with or without cause or notice, subject to applicable law. No statement or promise by a Company representative can alter this at-will relationship unless it is in a written agreement signed by the President or CEO of [Company Name].

1.4. 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, sex (including pregnancy, sexual orientation, and gender identity), national origin, age, disability, genetic information, veteran status, or any other characteristic protected by federal, state, or local law. We are committed to fostering an inclusive environment where all employees feel valued and respected.

1.5. Anti-Harassment and Anti-Discrimination Policy

[Company Name] prohibits any form of harassment or discrimination, including sexual harassment, based on any protected characteristic. This includes unwelcome conduct that is offensive, intimidating, hostile, or interferes with an individual's work performance. Prohibited conduct includes, but is not limited to, 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 harassment or discrimination, or who witnesses such conduct, is encouraged to report it immediately 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. Retaliation against any employee for reporting harassment or discrimination, or for participating in an investigation, is strictly prohibited.


2. Our Code of Conduct & Ethics

2.1. General Standards of Conduct

All employees are expected to conduct themselves professionally, ethically, and with integrity. This includes treating colleagues, customers, partners, and vendors with respect, honesty, and fairness. Compliance with all company policies and procedures, as well as all applicable laws and regulations, is mandatory.

2.2. Professionalism and Respect in the Workplace

  • Respect: Treat all individuals with dignity and respect, regardless of their role, background, or personal characteristics.
  • Collaboration: Foster a spirit of teamwork and cooperation.
  • Communication: Communicate openly, honestly, and constructively.
  • Accountability: Take responsibility for your actions and commitments.

2.3. Conflict of Interest

Employees must avoid situations where their personal interests conflict, or appear to conflict, with the interests of [Company Name]. This includes, but is not limited to, engaging in outside employment or business activities that compete with the Company, accepting gifts of significant value from clients or vendors, or using company information for personal gain. Any potential conflict of interest must be disclosed to your manager or HR immediately.

2.4. Confidentiality and Data Privacy

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its customers, and partners. This includes trade secrets, financial data, customer lists, marketing strategies, product plans, personal employee information, and other sensitive data. Employees must protect this information, use it only for legitimate business purposes, and prevent unauthorized disclosure. This obligation continues even after employment with the Company ends. Employees must also adhere to all data privacy regulations (e.g., HIPAA, GDPR, CCPA where applicable).

2.5. Use of Company Property and Resources

Company property, including equipment, vehicles, computers, software, networks, and communication systems, is provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, incur significant costs, or violate any company policies. Employees are responsible for the proper care, maintenance, and security of company property. Unauthorized use, removal, or damage of company property is prohibited. All data and communications transmitted or stored on company systems are subject to monitoring and are considered company property.

2.6. Social Media Policy

Employees are free to express themselves on social media in their personal lives, but must do so responsibly and in a way that does not harm [Company Name]'s reputation, disclose confidential information, or violate company policies. When identifying yourself as an employee of [Company Name] on social media, you must ensure your personal views are clearly stated as your own and not representative of the Company. Do not post or share confidential company information, disparage the company, its employees, customers, or partners, or engage in any online activity that could be construed as harassment, discrimination, or unlawful.

2.7. Dress Code

[Company Name] expects employees to dress in a manner that is appropriate for our professional work environment and reflective of our brand. The general dress code is [e.g., "business casual"]. Specific departments or roles may have additional requirements (e.g., safety gear). Employees should always present a neat, clean, and professional appearance. If you have questions about appropriate attire, please consult your manager or HR.

2.8. Drug-Free and Alcohol-Free Workplace

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

2.9. Workplace Safety and Security

The safety and security of our employees is paramount. All employees are responsible for adhering to safety rules, reporting hazards, and participating in safety training. Familiarize yourself with emergency procedures, exit routes, and the location of safety equipment. Report any accidents, injuries, or unsafe conditions immediately to your manager or HR. Unauthorized access to company premises or sensitive areas is prohibited.

2.10. Anti-Retaliation Policy

[Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a violation of company policy or law, participates in an investigation, or exercises a protected right. Any employee who believes they have been subjected to retaliation should report it immediately to their manager or Human Resources.

2.11. Reporting Violations and Open Door Policy

We encourage open communication and transparency. If you have concerns, questions, or believe a policy or law has been violated, please bring it to the attention of your immediate supervisor. If you are uncomfortable speaking with your supervisor, or if your supervisor is the subject of your concern, you may contact the Human Resources Department or any member of senior management. All concerns will be taken seriously and addressed promptly and appropriately.


3. Compensation and Benefits Overview

3.1. Compensation Philosophy and Pay Periods

[Company Name] is committed to providing fair and competitive compensation that attracts, motivates, and retains talented employees.

  • Pay Periods: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday/15th and last day of the month].
  • Direct Deposit: Direct deposit is mandatory for all employees.
  • Deductions: Required deductions include federal, state, and local taxes, and may include social security and Medicare. Voluntary deductions may include health insurance premiums, 401(k) contributions, and other elected benefits.

3.2. Health, Dental, and Vision Insurance

Eligible employees are offered comprehensive health, dental, and vision insurance plans. Details regarding eligibility, coverage options, enrollment periods, and employee contributions are available through the Human Resources Department. Coverage typically begins on the first day of the month following [e.g., 30 days] of employment.

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

[Company Name] offers a [e.g., 401(k) retirement savings plan] to help employees save for their future. Eligible employees may contribute a portion of their earnings on a pre-tax or Roth basis. The Company may offer a matching contribution [e.g., "up to X% of your salary"]. Details regarding eligibility, vesting schedules, and enrollment are available from HR.

3.4. Paid Time Off (PTO) / Vacation Policy

[Company Name] provides Paid Time Off (PTO) to allow employees time for rest, relaxation, and personal appointments.

  • Accrual: PTO is accrued [e.g., "at a rate of X hours per pay period"] based on your employment status and length of service.
  • Usage: PTO requests should be submitted to your manager at least [e.g., two weeks] in advance and are subject to management approval based on business needs.
  • Carryover/Cash-out: [Specify policy, e.g., "Employees may carry over up to X hours of unused PTO into the next calendar year," or "Unused PTO is not cashed out upon termination."]
  • Maximum Accrual: [Specify, e.g., "PTO accrual caps at X hours."]

3.5. Company Holidays

[Company Name] observes the following paid holidays:

  • New Year's Day
  • Martin Luther King Jr. Day
  • Presidents' Day
  • Memorial Day
  • Juneteenth National Independence Day
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • Day after Thanksgiving
  • Christmas Day
  • [Add any additional company-specific holidays]

If a holiday falls on a weekend, it will typically be observed on the preceding Friday or following Monday.

3.6. Sick Leave Policy

Employees accrue sick leave at a rate of [e.g., "X hours per month"] for personal illness, injury, or to care for an ill family member. [Specify if separate from PTO or combined]. Sick leave can be used

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