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

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

Step 1: Analyze Requirements for Employee Handbook Generation

This document outlines the comprehensive requirements and design specifications for the "Employee Handbook Generator." The goal is to produce a detailed, professional, and compliant employee handbook tailored to the specific needs of our customers. This analysis covers the content structure, design elements, visual branding, and user experience to ensure the generated handbook is both effective and user-friendly.


1. Design Specifications: Content & Functional Requirements

The generated employee handbook will be a robust document covering essential company policies, legal compliance, and employee expectations. It will be designed for clarity, readability, and ease of navigation.

1.1 Core Content Sections

The handbook will be structured into logical sections, each addressing a critical aspect of employment. The generator will include placeholders and guidance for customization.

  • I. Welcome & Company Overview

* Welcome Message from Leadership

* Company Mission, Vision, and Values

* Company History (Optional)

* Purpose of the Handbook

* Disclaimer (At-Will Employment, Handbook subject to change)

  • II. Employment Basics

* Equal Employment Opportunity (EEO) Policy

* Anti-Harassment and Anti-Discrimination Policy

* Recruitment and Hiring Practices

* Onboarding and Orientation

* Employment Classifications (Full-time, Part-time, Exempt, Non-Exempt, Contractors)

* Performance Management and Reviews

* Employee Records and Privacy

* Termination of Employment (Voluntary/Involuntary)

  • III. Compensation & Payroll

* Pay Periods and Payday Schedule

* Overtime Policy (Non-Exempt Employees)

* Deductions from Pay

* Expense Reimbursement Policy

* Performance-Based Pay / Bonuses (If applicable)

  • IV. Employee Benefits

* Health, Dental, and Vision Insurance Overview

* Life and Disability Insurance

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

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

* Company Holidays

* Other Perks and Benefits (e.g., Wellness Programs, Employee Discounts)

  • V. Leave of Absence Policies

* Family and Medical Leave Act (FMLA)

* Parental Leave (Maternity/Paternity)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Personal Leave of Absence

* Leave for Victims of Domestic Violence/Sexual Assault (State-specific)

  • VI. Workplace Conduct & Expectations

* Code of Conduct / Professionalism

* Dress Code Policy

* Workplace Safety and Health

* Drug-Free Workplace Policy

* Anti-Violence and Threatening Behavior Policy

* Conflict of Interest Policy

* Confidentiality and Proprietary Information

* Social Media Policy

* Customer and Client Interaction Standards

  • VII. Use of Company Property & Technology

* Company Property Usage (Computers, Phones, Vehicles, etc.)

* Internet and Email Usage Policy

* Software Usage and Licensing

* Data Security and Privacy Policy

* Monitoring of Communications and Systems

  • VIII. Compliance & Legal Disclosures

* Americans with Disabilities Act (ADA) Accommodation Policy

* Occupational Safety and Health Administration (OSHA) Compliance

* Health Insurance Portability and Accountability Act (HIPAA) (If applicable)

* Whistleblower Policy

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

* State-Specific Legal Requirements (e.g., Meal/Rest Breaks, specific leave types)

  • IX. Disciplinary Action & Grievance Procedures

* Disciplinary Process and Steps

* Employee Complaint and Grievance Procedure

* Open Door Policy

  • X. Employee Acknowledgment Form

* Statement of understanding and agreement

* Signature lines for Employee and Company Representative

* Date of Acknowledgment

1.2 Functional Requirements

  • Customization: Allow users to select/deselect sections, input company-specific details (name, address, logo), and customize policy language.
  • Branding Integration: Seamless integration of company logo and chosen color palette.
  • Output Formats: Generate the handbook in high-quality PDF (print-ready) and editable DOCX formats.
  • Version Control: Include clear effective dates and version numbers.
  • Legal Disclaimer: Automatically include a disclaimer regarding the handbook's nature as a guide and its non-contractual status.
  • Table of Contents: Automatically generate a hyperlinked (in PDF) and accurately paginated table of contents.
  • Search Functionality: (Implied for PDF/DOCX - user's native reader capabilities).
  • Accessibility: Ensure output adheres to basic accessibility standards for digital documents (e.g., proper heading structure, clear language).

2. Wireframe Descriptions: Document Layout & Structure

The "wireframes" for the Employee Handbook Generator describe the standard layout and structural components of the generated document. This ensures consistency, professionalism, and ease of reading.

2.1 Cover Page

  • Top Center: Company Logo (High Resolution, Scalable)
  • Mid-Center:

* Large, prominent title: "Employee Handbook"

* Subtitle (optional): "[Company Name] Policies & Procedures"

  • Bottom Left/Right:

* Company Name

* Effective Date: [MM/DD/YYYY]

* Version: [e.g., 1.0]

2.2 Table of Contents (ToC)

  • Layout: Standard hierarchical list.
  • Formatting:

* Main sections (Roman numerals) in bold, larger font.

* Sub-sections (Arabic numerals) indented, regular font.

* Page numbers right-aligned with dot leaders.

  • Functionality (PDF): Each entry will be a clickable hyperlink to the respective section.

2.3 Section Headers & Sub-Headers

  • Main Sections (e.g., "I. Welcome & Company Overview"):

* Large, bold, uppercase font.

* Utilize primary accent color.

* Clear spacing above and below.

* Start on a new page or with significant vertical spacing.

  • Sub-Sections (e.g., "1.1 Equal Employment Opportunity (EEO) Policy"):

* Medium, bold font.

* Utilize secondary accent color.

* Clear spacing.

  • Sub-Sub-Sections (e.g., "1.1.1 Anti-Discrimination"):

* Regular font, bold.

* Standard text color.

2.4 Body Text

  • Font: Professional, highly readable sans-serif font (e.g., Arial, Calibri, Open Sans).
  • Size: 10-12pt for main body text.
  • Line Spacing: 1.15 to 1.5 for optimal readability.
  • Paragraph Spacing: Small space between paragraphs to break up text blocks.
  • Alignment: Justified or left-aligned.
  • Lists: Consistent bullet points or numbered lists for sequential information.

2.5 Key Information Boxes / Call-outs

  • Purpose: Highlight critical policies, important dates, or legal disclaimers.
  • Design:

* Bordered box with a subtle background fill (from accent palette).

* Icon (e.g., 'i' for information, warning triangle) for emphasis.

* Slightly larger or bolded text for the content within.

2.6 Page Headers & Footers

  • Header (Optional): Company Logo (small, subtle) or Company Name.
  • Footer:

* Left: Company Name | Effective Date: [MM/DD/YYYY]

* Right: Page X of Y

2.7 Acknowledgment Form

  • Layout: Dedicated page with clear sections for:

* Employee Name (Printed)

* Employee Signature

* Date

* Space for Company Representative Signature (Optional)

  • Content: Clear statement confirming receipt, understanding, and agreement to abide by the handbook.

3. Color Palettes: Branding & Visual Identity

The color palette will be designed for professionalism, readability, and brand consistency. It will offer flexibility for customers to integrate their brand colors while maintaining a sophisticated look.

3.1 Primary Palette (Default)

This palette provides a professional, trustworthy, and approachable foundation.

  • Primary Blue: #0056B3 (Dark Blue - for main headers, important text, strong branding elements)

Rationale:* Conveys trust, stability, professionalism.

  • Secondary Gray: #343A40 (Dark Gray - for body text, general headings)

Rationale:* High contrast with white background, excellent readability.

  • Light Gray: #F8F9FA (Very Light Gray - for subtle background fills, borders in call-out boxes)

Rationale:* Provides visual separation without being distracting.

  • White: #FFFFFF (Background - for main document background)

Rationale:* Clean, maximizes readability.

3.2 Accent Palette (For Highlights & Call-outs)

These colors will be used sparingly to draw attention to critical information, warnings, or summary boxes.

  • Accent Teal: #17A2B8 (Teal - for sub-headers, borders of info boxes)

Rationale:* Adds a modern, friendly touch without sacrificing professionalism.

  • Accent Orange: #FD7E14 (Orange - for warning/important call-outs, used sparingly)

Rationale:* Provides high visibility for critical alerts.

3.3 Text Colors

  • Main Body Text: #343A40 (Dark Gray)
  • Main Headers: #0056B3 (Primary Blue)
  • Sub-Headers: #17A2B8 (Accent Teal) or #0056B3 (Primary Blue)
  • Disclaimer/Small Text: #6C757D (Medium Gray)

3.4 Accessibility Considerations

  • Contrast Ratios: All color combinations (text on background, text in boxes) will meet WCAG 2.1 AA standards for contrast (minimum 4.5:1 for normal text, 3:1 for large text).
  • Color Blindness: Avoid relying solely on color to convey information; use icons, bolding, or text labels in conjunction with color.

3.5 Customization

Users will have the option to:

  • Upload their company logo.
  • Provide a primary brand color (hex code) which will replace #0056B3 and dynamically adjust related accent colors to maintain harmony and contrast.

4. UX Recommendations: Readability, Navigation & User Engagement

The user experience of the generated handbook is paramount. It must be easy to read, navigate, and understand for all employees.

4.1 Readability

  • Font Selection: Use widely recognized, highly readable sans-serif fonts (e.g., Arial, Calibri, Lato, Open Sans). Avoid overly decorative or condensed fonts.
  • Font Size: Maintain a minimum of 10pt for body text; 12pt is preferred for optimal readability.
  • Line Spacing: Ensure adequate line spacing (1.2-1.5) to prevent text from appearing dense.
  • Paragraph Length: Break down long paragraphs into shorter, digestible chunks. Utilize bullet points and numbered lists for complex information or steps.
  • White Space: Generous use of white space around text blocks, headings, and images to reduce cognitive load and improve visual flow.
  • Simple Language: Use clear, concise, and jargon-free language. Where legal or technical terms are necessary, provide brief explanations.

4.2 Navigation & Structure

  • Clear Table of Contents: The ToC should be comprehensive, hierarchical, and hyperlinked (in digital versions) to allow employees to quickly jump to relevant sections.
  • Consistent Headings: Use a consistent heading structure (H1 for main sections, H2 for sub-sections, etc.) both visually and semantically (for screen readers).
  • Internal Cross-referencing: Where policies relate, include clear references to other sections (e.g., "See Section V. for detailed Leave of Absence Policies").
  • Logical Flow: Organize sections in a logical, intuitive order, typically starting with general employment terms and moving to specific policies.

4.3 Clarity & Comprehension

  • Examples: Include relevant, anonymized examples to illustrate complex policies or scenarios
gemini Output

The following comprehensive Employee Handbook is designed to provide [Company Name] employees with a clear understanding of our company culture, policies, benefits, and expectations. This document serves as a valuable resource to help you thrive in your role and contribute to our collective success.


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

Welcome to [Company Name]!

Dear Valued Team Member,

On behalf of the entire leadership team, I extend a warm welcome to you! We are thrilled to have you join [Company Name] and become a part of our growing family. Your skills, passion, and unique perspective are invaluable, and we are excited to see the contributions you will bring to our mission.

At [Company Name], we are committed to fostering a dynamic, inclusive, and rewarding work environment where every individual can thrive. This Employee Handbook is your essential guide to understanding our company culture, policies, benefits, and the expectations we share as a team. It provides important information about your employment, our commitment to your well-being, and the principles that guide our daily interactions.

Please take the time to read through this handbook carefully. It is designed to answer many of your questions and serve as a go-to resource throughout your journey with us. Should you have any questions or require clarification on any policy, please do not hesitate to reach out to your manager or the HR Department.

We believe in open communication, mutual respect, and a collaborative spirit. Together, we will continue to innovate, achieve great things, and make a positive impact.

Welcome aboard! We look forward to a successful and fulfilling journey with you.

Sincerely,

[CEO/President Name]

CEO/President, [Company Name]


1. About [Company Name]

Our Mission

[Company Name]'s mission is to [State company's core purpose and what it aims to achieve, e.g., "innovate cutting-edge solutions that empower businesses to connect with their customers more effectively."]. We are dedicated to [mention key values related to mission, e.g., "delivering exceptional value, fostering innovation, and maintaining the highest standards of quality and integrity."].

Our Vision

To be [Describe the future state of the company, e.g., "the leading provider of [industry/product] globally, recognized for our pioneering technology, customer-centric approach, and a workplace that inspires excellence."].

Our Values

Our core values define who we are, guide our decisions, and shape our culture. We are committed to:

  • Integrity: Acting with honesty, transparency, and strong moral principles.
  • Innovation: Embracing creativity, continuous learning, and forward-thinking solutions.
  • Collaboration: Working together effectively, respecting diverse perspectives, and supporting one another.
  • Excellence: Striving for the highest quality in everything we do and continuously improving.
  • Customer Focus: Prioritizing the needs of our customers and exceeding their expectations.
  • Respect: Treating everyone with dignity, kindness, and professionalism.

Our History

[Briefly describe the company's founding, key milestones, and growth, e.g., "Founded in [Year] by [Founder's Name] in a small garage, [Company Name] has grown from a startup into a recognized leader in [industry]. Our journey has been marked by a relentless pursuit of innovation and a commitment to solving complex challenges for our clients."].


2. Employment Basics

2.1 Employment-At-Will

Employment with [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 [Company Name], other than the CEO, has the authority to enter into any agreement for employment for a specified period of time or to make any agreement contrary to the foregoing. Any such agreement must be in writing and signed by the CEO.

2.2 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment, where all individuals are treated with dignity and respect. We recruit, hire, train, and promote 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.

2.3 Anti-Harassment and Anti-Discrimination Policy

[Company Name] strictly prohibits harassment and discrimination of any kind, including sexual harassment, based on any protected characteristic. This policy applies to all employees, applicants, customers, and vendors.

  • Prohibited Conduct: Includes unwelcome sexual advances, requests for sexual favors, and other verbal, visual, or physical conduct of a sexual nature; or any hostile, offensive, or intimidating conduct based on a protected characteristic.
  • Reporting Procedure: Any employee who experiences or witnesses harassment or discrimination should immediately report the incident to their manager, the HR Department, or any member of the leadership team. All complaints will be investigated promptly, confidentially (to the extent possible), and impartially.
  • No Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports harassment or discrimination, participates in an investigation, or opposes discriminatory practices.

2.4 Americans with Disabilities Act (ADA) Compliance

[Company Name] is committed to complying with the ADA and providing reasonable accommodations to qualified individuals with disabilities, unless doing so would cause undue hardship. If you require an accommodation to perform the essential functions of your job, please contact the HR Department to discuss your needs.

2.5 Immigration Law Compliance

[Company Name] complies with the Immigration Reform and Control Act of 1986. All new employees are required to verify their identity and eligibility to work in the United States by completing Form I-9 and presenting appropriate documentation within three days of their hire date.


3. Workplace Conduct & Expectations

3.1 Code of Conduct

All employees are expected to uphold the highest standards of professional conduct, integrity, and ethics. This includes:

  • Treating colleagues, customers, and partners with respect and professionalism.
  • Acting in the best interest of [Company Name].
  • Complying with all company policies, procedures, and applicable laws.
  • Avoiding conflicts of interest.
  • Maintaining a positive and collaborative work environment.

3.2 Professionalism and Respectful Workplace

We expect all employees to contribute to a respectful and inclusive workplace. This means:

  • Communicating professionally, whether in person, via email, or on internal communication platforms.
  • Engaging in constructive feedback and conflict resolution.
  • Respecting diverse viewpoints and backgrounds.
  • Refraining from gossip, rumors, or any behavior that undermines team morale.

3.3 Confidentiality and Data Security

Protecting confidential information is paramount to our business success and legal obligations.

  • Confidential Information: Includes, but is not limited to, trade secrets, customer lists, financial data, product designs, marketing strategies, employee information, and proprietary software.
  • Employee Responsibility: Employees must not disclose, share, or use any confidential company or client information for personal gain or outside the scope of their employment, both during and after their employment with [Company Name].
  • Data Security: All employees are responsible for safeguarding company data and systems. This includes using strong passwords, locking computers when away from desks, and reporting any suspected security breaches immediately to IT.

3.4 Information Technology & Communication Systems Use

Company-provided IT resources (computers, software, internet, email, phones) are primarily for business use.

  • Acceptable Use: Limited personal use is permitted provided it does not interfere with work duties, violate company policies, or involve illegal or inappropriate content.
  • Monitoring: Employees should have no expectation of privacy when using company systems. [Company Name] reserves the right to monitor all communications and data stored on or transmitted through its systems.
  • Prohibited Use: Includes accessing, displaying, or transmitting offensive, harassing, or illegal material; unauthorized software installation; and engaging in any activity that compromises company security.

3.5 Social Media Policy

Employees are expected to exercise good judgment and professionalism when engaging with social media, both personally and professionally.

  • Professional Conduct: When identifying yourself as a [Company Name] employee online, ensure your posts are consistent with our values and do not negatively impact the company's reputation.
  • Confidentiality: Do not disclose confidential company information, client data, or proprietary information on any social media platform.
  • Respect: Do not post derogatory, discriminatory, harassing, or offensive content related to [Company Name], its employees, customers, or partners.
  • Disclaimer: If discussing company-related matters on personal social media, include a disclaimer stating that your views are your own and not those of [Company Name].

3.6 Conflict of Interest

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

  • Disclosure: Any potential conflict of interest, such as outside employment, significant financial interest in a competitor or vendor, or accepting substantial gifts from business partners, must be disclosed to your manager and the HR Department for review.
  • Fair Dealing: Employees must not use their position at [Company Name] for personal gain or to unfairly benefit themselves or others.

3.7 Workplace Safety and Health

[Company Name] is committed to providing a safe and healthy work environment for all employees.

  • Employee Responsibility: All employees are responsible for following safety procedures, reporting hazards, and using equipment properly.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and first aid procedures.
  • Accident Reporting: All work-related injuries, illnesses, or near-misses, no matter how minor, must be reported immediately to your manager and the HR Department.

3.8 Drug-Free Workplace

[Company Name] is committed to maintaining a drug-free workplace to ensure the safety and well-being of all employees and to protect company assets.

  • Prohibited Conduct: The unlawful manufacture, distribution, dispensation, possession, or use of illegal drugs, or the abuse of alcohol or prescription medication, on company premises or during work hours, is strictly prohibited.
  • Testing: [Company Name] reserves the right to conduct drug and alcohol testing as permitted by law, including pre-employment, reasonable suspicion, post-accident, and random testing.

3.9 Workplace Violence Prevention

[Company Name] has zero tolerance for workplace violence.

  • Prohibited Conduct: Threats, intimidation, harassment, physical assault, or any other act of violence will not be tolerated.
  • Reporting: Any employee who experiences or witnesses threats or acts of violence should immediately report the incident to their manager, the HR Department, or local law enforcement if there is an immediate threat.

3.10 Dress Code

Employees are expected to dress in a manner that is professional, appropriate for their role, and respectful of the workplace environment.

  • General Guideline: Business casual attire is generally appropriate for most roles. This includes neat, clean, and well-maintained clothing.
  • Client-Facing Roles: Employees in client-facing roles may be required to adhere to a more formal dress code as appropriate for the client and occasion.
  • Safety: Certain roles may require specific safety attire or protective gear, which must be worn as directed.
  • Inappropriate Attire: Includes excessively casual clothing (e.g., ripped jeans, tank tops, flip-flops), clothing with offensive slogans or images, or attire that is revealing or distracting.
  • Questions: If you have questions about appropriate dress, please consult your manager or the HR Department.

4. Compensation & Benefits

4.1 Pay Periods and Deductions

  • Pay Frequency: Employees are paid [Weekly/Bi-weekly/Semi-monthly] on [Day of week/Date].
  • Direct Deposit: Direct deposit is mandatory/highly encouraged for all employees.
  • Deductions: Deductions from paychecks may include federal, state, and local taxes, social security, Medicare, and elected benefits premiums (e.g., health insurance, 401(k) contributions). Any other deductions will be authorized by the employee in writing or as required by law.

4.2 Overtime

Non-exempt employees are eligible for overtime pay at one and one-half times their regular rate of pay for all hours worked over 40 in a workweek, as required by law. All overtime must be pre-approved by your manager.

4.3 Performance Reviews

Regular performance reviews are conducted to provide feedback, recognize achievements, identify areas for development, and discuss career goals.

  • Frequency: Performance reviews are typically conducted [Annually/Semi-annually] for all employees.
  • Process: The review process involves self-assessment, manager assessment, and a discussion of performance against goals and expectations.

4.4 Health & Wellness Benefits

[Company Name] is committed to supporting the health and well-being of our employees and their families.

  • Medical Insurance: Comprehensive medical plans are offered through [Provider Name(s)]. Eligibility typically begins on the first day of the month following [Number] days of employment.
  • Dental Insurance: Dental coverage is provided through [Provider Name(s)].
  • Vision Insurance: Vision coverage is provided through [Provider Name(s)].
  • Employee Assistance Program (EAP): A confidential resource offering support for personal and work-related challenges, including counseling, financial, and legal advice.
  • Wellness Programs: [Briefly mention any wellness initiatives, e.g., "On-site fitness classes, healthy eating challenges, mental health resources."].

4.5 Retirement Plans

  • 401(k) Plan: Employees are eligible to participate in our 401(k) retirement savings plan after [Number] days/months of employment.
  • Company Match: [Company Name] offers a [Percentage]% company match on employee contributions, up to [Percentage]% of your salary, with a [Vesting Schedule, e.g., "3-year cliff vesting schedule."]. Details are available through our plan administrator, [Administrator Name].

4.6 Life Insurance

  • Basic Life Insurance: [Company Name] provides basic life insurance coverage at no cost to eligible employees, typically [Amount, e.g., "1x annual salary"].
  • Supplemental Life Insurance: Employees may purchase additional life insurance coverage for themselves and their dependents through payroll deduction.

4.7 Disability Insurance

  • Short-Term Disability (STD): Provides income replacement for eligible employees unable to work due to a non-work-related illness or injury for a limited period.
  • Long-Term Disability (LTD): Provides income replacement for eligible employees unable to work due to a long-term illness or injury.

4.8 Other Perks & Benefits

  • Professional Development: Opportunities for training, workshops, and certifications to support career growth.
  • Tuition Reimbursement: [If applicable, briefly describe, e.g., "Financial assistance for approved courses or degree programs relevant to your role."].
  • Employee Referral Program: Bonuses for successful referrals of new hires.
  • Company Events: Regular social events, team-building activities, and holiday celebrations.

5. Leave Policies

5.1 Paid Time Off (PTO) / Vacation

[Company Name] offers a flexible Paid Time Off (PTO) policy that combines vacation, personal days, and sick leave into a single bank of hours.

  • Accrual: PTO accrues on a [Bi-weekly/Monthly] basis, starting from your hire date.

* [Example: 0-2 years of service: X hours per pay period / Y days per year]

* [Example: 3-5 years of service:

gemini Output

This document outlines a comprehensive Employee Handbook, designed to provide clarity on company policies, benefits, expected conduct, and compliance. It serves as a foundational resource for all employees, fostering a productive, respectful, and compliant work environment.


Employee Handbook: [Your Company Name]

Effective Date: [Date, e.g., January 1, 2024]

Version: 1.0

1. Welcome to [Your Company Name]

On behalf of the entire team, welcome to [Your Company Name]! We are thrilled to have you join us and look forward to your contributions. This handbook is designed to introduce you to our company culture, policies, procedures, and benefits. It is a vital resource to help you understand your role, our expectations, and the resources available to you.

We believe that our success is built upon the dedication, talent, and commitment of our employees. We are committed to fostering a workplace where everyone feels valued, respected, and empowered to do their best work.

Please take the time to read this handbook thoroughly. If you have any questions, please do not hesitate to speak with your manager or the Human Resources department.

Purpose of This Handbook:

This handbook summarizes important information about working at [Your Company Name]. It outlines our employment policies, employee benefits, and expected standards of conduct. It is intended to be a guide and not an exhaustive list of every policy or procedure.

Disclaimer:

This handbook is for informational purposes only and does not constitute a contract of employment, express or implied, between [Your Company Name] and any employee. Employment with [Your Company Name] is "at-will," meaning that either the employee or the company may terminate the employment relationship at any time, with or without cause or notice, subject to applicable law.

[Your Company Name] reserves the right to revise, modify, delete, or add to any policies, procedures, work rules, or benefits at any time, with or without notice, except for the at-will employment relationship itself. Any changes will be communicated to employees.

2. Company Overview

Our Mission

[Your Company Name]'s mission is to [State your company's core purpose and what it aims to achieve, e.g., "innovate sustainable solutions that empower businesses to thrive in a digital-first world."].

Our Vision

Our vision is to [Describe your company's aspirational future state, e.g., "be the leading provider of AI-driven analytics, recognized globally for our integrity and impact."].

Our Values

Our core values guide our actions and decisions:

  • Integrity: We operate with honesty and transparency in all our dealings.
  • Excellence: We strive for the highest quality in our work and continuously seek improvement.
  • Collaboration: We believe in the power of teamwork and mutual support.
  • Innovation: We embrace creativity and new ideas to drive progress.
  • Respect: We treat everyone with dignity and value diverse perspectives.
  • Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.

3. Employment Basics & Company Policies

3.1 Equal Employment Opportunity (EEO)

[Your Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex (including pregnancy, childbirth, or related medical conditions), national origin, age, disability, genetic information, marital status, sexual orientation, gender identity or expression, veteran status, or any other characteristic protected by federal, state, or local law.

3.2 Non-Discrimination and Anti-Harassment Policy

[Your Company Name] is committed to maintaining a work environment free from all forms of discrimination and harassment. This includes harassment based on any protected characteristic, including sexual harassment. Any employee who believes they have been subjected to discrimination or harassment, or who witnesses such behavior, should report it immediately to their manager or Human Resources. All complaints will be investigated promptly and confidentially to the extent possible, and appropriate corrective action will be taken. Retaliation against an employee who reports discrimination or harassment in good faith is strictly prohibited.

3.3 Workplace Safety

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

  • Report any unsafe conditions, hazards, or accidents immediately to your manager or HR.
  • Follow all safety guidelines and use personal protective equipment (PPE) when required.
  • Participate in safety training programs.
  • In case of an emergency, follow established evacuation and emergency procedures.

3.4 Open Door Policy / Grievance Procedure

We encourage open communication and believe in resolving concerns promptly and fairly. Employees are encouraged to discuss work-related issues, suggestions, or grievances with their immediate supervisor. If the issue remains unresolved or if discussing it with your supervisor is not appropriate, you may contact Human Resources or a more senior manager. All concerns will be taken seriously and handled with discretion.

3.5 Confidentiality and Data Security

Employees may have access to confidential and proprietary information, including but not limited to business plans, financial data, customer lists, employee records, trade secrets, and intellectual property. All such information must be treated with the utmost confidentiality.

  • Do not disclose confidential information to unauthorized individuals or outside the company.
  • Protect company data by following security protocols, including strong passwords, secure file storage, and proper handling of sensitive documents.
  • The obligation of confidentiality continues even after employment ends.

3.6 Conflicts of Interest

Employees must avoid situations where their personal interests conflict with the interests of [Your Company Name]. A conflict of interest may arise when an employee's personal activities, investments, or relationships could improperly influence their judgment or actions in performing their job duties, or when they could gain personal benefit from their position at the company. Any potential conflict of interest must be disclosed to your manager or HR immediately for review.

3.7 Drug and Alcohol-Free Workplace

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

  • The use, possession, distribution, or sale of illegal drugs or controlled substances on company premises or during work hours is strictly prohibited.
  • Being under the influence of illegal drugs or alcohol while at work is prohibited.
  • The use of prescription or over-the-counter medication that impairs an employee's ability to perform their job safely is also prohibited. Employees must inform their supervisor if such medication could affect their work performance or safety.

3.8 Workplace Violence Prevention

[Your Company Name] has zero tolerance for any form of workplace violence, threats, intimidation, or hostile behavior. This includes physical assaults, verbal threats, property damage, or any conduct that creates a hostile or unsafe environment. Any employee who experiences or witnesses such behavior must report it immediately to their manager or Human Resources.

3.9 Smoking Policy

[Your Company Name] is a smoke-free workplace. Smoking, including the use of e-cigarettes and vaping devices, is prohibited inside all company buildings, company vehicles, and within a specified distance (e.g., 25 feet) of building entrances, windows, and ventilation systems. Designated smoking areas, if any, will be clearly marked.

3.10 Dress Code

Employees are expected to dress in a professional and appropriate manner for the workplace. The dress code aims to maintain a professional image while allowing for comfort and individual expression.

  • General Guidelines: Clothing should be clean, neat, and in good repair. Avoid clothing that is overly casual, revealing, or displays offensive slogans or graphics.
  • Specific Roles: Certain roles may have specific dress requirements (e.g., uniforms, safety gear) which will be communicated by your manager.
  • If you are unsure about the appropriateness of an outfit, please consult your manager or HR.

3.11 Company Property and Equipment Use

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

  • Employees are responsible for the proper care, maintenance, and security of company property.
  • Misuse, damage, or theft of company property may result in disciplinary action, up to and including termination of employment.
  • Limited personal use of company equipment (e.g., internet, email) is permitted during non-work hours, provided it does not interfere with job duties, violate company policies, or incur significant cost to the company.

3.12 Social Media Policy

Employees are encouraged to use social media responsibly and respectfully. When using social media, whether for personal or professional purposes, employees must:

  • Maintain professionalism and respect.
  • Not disclose confidential or proprietary company information.
  • Not post content that is harassing, discriminatory, threatening, or defamatory towards colleagues, customers, or the company.
  • Be mindful that personal opinions can be perceived as company views. If identifying as an employee of [Your Company Name], include a disclaimer that the views expressed are your own.
  • Avoid engaging in discussions about work-related grievances or internal company matters online.

4. Compensation and Benefits Overview

4.1 Pay Periods and Payroll

Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday, the 15th and 30th of each month]. Paychecks are distributed via [e.g., direct deposit]. Employees are responsible for reviewing their pay stubs for accuracy and reporting any discrepancies to HR immediately.

4.2 Overtime Policy

Non-exempt employees are eligible for overtime pay at a rate of one and a half times their regular rate of pay for all hours worked in excess of 40 in a workweek, as required by law. All overtime work must be pre-approved by your manager. Exempt employees are not eligible for overtime pay.

4.3 Performance Reviews

Regular performance reviews are conducted to provide feedback, recognize achievements, identify areas for development, and align individual goals with company objectives. Reviews are typically conducted [e.g., annually, semi-annually] and involve a discussion between the employee and their manager.

4.4 Health and Dental Insurance

[Your Company Name] offers comprehensive health and dental insurance plans to eligible employees and their dependents. Details regarding eligibility, coverage options, enrollment periods, and employee contributions are available through Human Resources and in the official plan documents.

4.5 Vision Insurance

Vision insurance is available to eligible employees to help cover the costs of eye exams, glasses, and contact lenses. Further details can be obtained from Human Resources.

4.6 Life and Disability Insurance

[Your Company Name] provides [e.g., basic life insurance, short-term disability (STD), and long-term disability (LTD)] coverage to eligible employees. These benefits are designed to provide financial protection in unforeseen circumstances. Additional voluntary life and disability insurance options may be available. Refer to plan documents for full details.

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

Eligible employees have the opportunity to participate in our [e.g., 401(k)] retirement savings plan. This plan allows employees to save for retirement on a pre-tax basis, and [Your Company Name] may offer a [e.g., matching contribution]. Details on eligibility, enrollment, and vesting schedules are available from Human Resources.

4.8 Paid Time Off (PTO) / Vacation

[Your Company Name] provides paid time off (PTO) to eligible employees for vacation, personal appointments, or other personal needs.

  • Accrual: PTO is accrued [e.g., per pay period, annually] based on tenure and employment status.
  • Usage: Employees must request PTO in advance and obtain manager approval.
  • Carryover/Payout: Policies regarding PTO carryover and payout upon separation of employment will be detailed in the official PTO policy document.

4.9 Holidays

[Your Company Name] observes the following paid holidays:

  • [List specific holidays, e.g., New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Christmas Day]
  • Any additional floating holidays or company-wide closures will be communicated in advance.

4.10 Sick Leave

Eligible employees accrue sick leave to be used for personal illness, injury, or medical appointments, or to care for an ill family member.

  • Accrual: Sick leave accrues at a rate of [e.g., 1 hour per 30 hours worked, 5 days per year].
  • Usage: Employees must notify their manager as soon as possible when taking sick leave. For extended absences, medical certification may be required.
  • [Specify if sick leave rolls over, has a cap, or is paid out upon termination, adhering to state/local laws.]

4.11 Other Benefits

  • Employee Assistance Program (EAP): Confidential counseling and referral services for employees and their families facing personal or work-related challenges.
  • Professional Development: Opportunities for training, workshops, and educational assistance to support continuous learning and career growth.
  • Wellness Programs: Initiatives to promote employee health and well-being.
  • [Add any other specific benefits, e.g., commuter benefits, tuition reimbursement, gym memberships.]

5. Leave Policies

5.1 Family and Medical Leave Act (FMLA)

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

  • The birth of a child and to care for the newborn child.
  • The placement with the employee of a child for adoption or foster care.
  • To care for the employee's spouse, child, or parent who has a serious health condition.
  • A serious health condition that makes the employee unable to perform the essential functions of their job.
  • Qualifying exigencies arising out of the fact that the employee's spouse, son, daughter, or parent is a covered military member on active duty or called to active duty status.
  • Up to 26 workweeks of leave during a single 12-month period to care for a covered servicemember with a serious injury or illness if the employee is the servicemember's spouse, son, daughter, parent, or next of kin (military caregiver leave).

Employees must meet FMLA eligibility requirements and follow established notification procedures. Contact HR for detailed information and application.

5.2 Bereavement Leave

Employees are eligible for [e.g., 3-5] days of paid bereavement leave upon the death of an immediate family member (e.g., spouse, child, parent, sibling, grandparent, grandchild, parent-in-law). Additional unpaid leave may be granted at the company's discretion. Employees must notify their manager and HR.

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

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

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

"+title+"

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

$1

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

$1

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

$1

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

"); h+="

"+hc+"

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