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

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

This document outlines the comprehensive requirements analysis for the "Employee Handbook Generator" workflow, focusing on detailed design specifications, wireframe descriptions, color palettes, and user experience (UX) recommendations. This analysis serves as the foundational blueprint for developing a professional, user-friendly, and legally compliant employee handbook.


1. Introduction & Purpose

This deliverable represents the "analyze_requirements" step for the "Employee Handbook Generator" workflow. The primary objective is to define the scope, structure, and aesthetic of a comprehensive employee handbook. This analysis ensures the handbook will be a valuable resource for employees, clearly outlining company policies, benefits, code of conduct, leave policies, and compliance requirements, all while maintaining a professional and accessible presentation.

The output will guide the subsequent steps of content generation, design, and implementation, ensuring the final product meets both the company's strategic goals and employees' informational needs.


2. Core Requirements Analysis

Based on the prompt, the employee handbook must be:

  • Comprehensive: Covering all essential aspects of employment.
  • Detailed: Providing sufficient information for clarity.
  • Professional: Reflecting the company's brand and standards.
  • Structured: Logically organized for easy navigation.
  • Compliant: Addressing relevant legal and regulatory requirements.

Key content areas identified:

  • Company Policies
  • Benefits Overview
  • Code of Conduct
  • Leave Policies
  • Compliance Sections

3. Detailed Design Specifications

The employee handbook will be designed as a modular, digital document (web-based with PDF download option recommended) to ensure flexibility, searchability, and ease of updates.

3.1. Content Modules & Structure

The handbook will be organized into the following main sections, each containing specific policies and information:

  1. Introduction & Welcome

* Welcome Message from Leadership

* Company Mission, Vision, and Values

* Purpose and Scope of the Handbook

* Statement of At-Will Employment (if applicable)

  1. Employment Basics

* Equal Employment Opportunity (EEO) Policy

* Recruitment and Onboarding Process

* Employee Classifications (Full-time, Part-time, Contractor, etc.)

* Confidentiality and Non-Disclosure Agreements

* Employee Records and Data Privacy

  1. Code of Conduct & Ethics

* General Standards of Conduct

* Anti-Harassment and Anti-Discrimination Policy

* Workplace Violence Prevention

* Conflict of Interest

* Data Security and IT Usage Policy (Internet, Email, Software)

* Social Media Policy

* Drug and Alcohol Policy

* Dress Code and Professional Appearance

  1. Compensation & Benefits

* Pay Schedules and Payroll Information

* Performance Reviews and Salary Adjustments

* Health Insurance (Medical, Dental, Vision)

* Retirement Plans (401k, etc.)

* Life and Disability Insurance

* Employee Perks and Discounts

* Workers' Compensation

  1. Time Off & Leave Policies

* Paid Time Off (PTO) / Vacation Policy

* Sick Leave Policy

* Holidays

* Family and Medical Leave Act (FMLA)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Other Leaves of Absence (e.g., sabbatical, personal leave)

  1. Workplace Policies & Procedures

* Attendance and Punctuality

* Remote Work / Hybrid Work Policy

* Workplace Safety and Health (OSHA compliance)

* Emergency Procedures and Evacuation Plans

* Company Property and Equipment Use

* Travel and Expense Reimbursement

* Smoking Policy

  1. Performance Management & Development

* Performance Review Process

* Training and Development Opportunities

* Disciplinary Action Policy

* Grievance Procedure

* Resignation and Termination Procedures

  1. Compliance & Legal Information

* Americans with Disabilities Act (ADA) Compliance

* Whistleblower Policy

* Immigration Law Compliance (I-9 verification)

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

* Policy on Policies (how policies are updated)

  1. Acknowledgement & Resources

* Employee Acknowledgement Form (digital signature preferred)

* Glossary of Terms

* Frequently Asked Questions (FAQ)

* Contact Information for HR and other departments

3.2. Interactivity & Features (for Digital Handbook)

  • Search Functionality: Robust search bar with keyword highlighting.
  • Internal Hyperlinks: Cross-referencing policies within the handbook.
  • External Links: Linking to benefits portals, legal resources, etc.
  • Print/Download Option: Ability to save the entire handbook or specific sections as PDF.
  • Version Control: Clearly display last updated date and version number.
  • Feedback Mechanism: A discreet way for employees to ask questions or report issues.
  • Accessibility Features: Text resizing, high contrast mode, keyboard navigation support.

4. Wireframe Descriptions

The wireframes envision a clean, intuitive, and highly navigable digital interface, optimized for readability and quick information retrieval.

4.1. Overall Layout & Navigation

  • Header (Top Bar):

* Company Logo (left-aligned)

* Handbook Title ("Employee Handbook")

* Search Bar (right-aligned, prominent)

* "Download PDF" button (right-aligned)

  • Sidebar Navigation (Left Panel):

* Collapsible Table of Contents (TOC) with hierarchical structure (Main Section > Sub-section > Policy Title).

* Currently active section/policy highlighted.

* Ability to expand/collapse main sections.

  • Main Content Area (Central Panel):

* Clear <h1> for the current main section title.

* <h2> for sub-sections and <h3> for individual policies.

* Breadcrumbs navigation above the main content (e.g., "Home > Time Off & Leave Policies > Sick Leave Policy").

* "Back to Top" button (fixed to bottom-right, visible on scroll).

  • Footer:

* Copyright information.

* Last Updated Date / Version Number.

* Links to privacy policy or terms of use (if applicable).

4.2. Section-Specific Layouts

  • Policy Pages:

* Title: Prominent H2/H3 for the policy name.

* Introduction: Brief overview of the policy's purpose.

* Detailed Description: Clear, concise paragraphs, bullet points, and numbered lists for easy digestion.

* Key Information Boxes: Callout boxes for "Important Notes," "FAQs," or "Who to Contact."

* Related Policies: Links to other relevant sections within the handbook.

* Effective Date: Clearly stated for each policy.

  • Benefits Overview:

* Summary tables for quick comparison of different plans/benefits.

* Dedicated sections for each benefit type (e.g., "Health Insurance," "Retirement").

* Direct links to external benefit provider portals or detailed plan documents.

  • Acknowledgement Form:

* Clear statement confirming employee understanding and agreement.

* Fields for Employee Name, Employee ID.

* Digital Signature input (e.g., typing name, then clicking "Agree" button).

* Date of Acknowledgement.

* Option to download a copy of the signed acknowledgement.

4.3. Interactive Elements (Visualized)

  • Search Bar: Magnifying glass icon, placeholder text "Search handbook..."
  • TOC Toggle: Hamburger icon (☰) or arrow icon for collapsing/expanding the sidebar.
  • Hyperlinks: Clearly distinguishable (e.g., blue, underlined).
  • Callout Boxes: Visually distinct background color or border.
  • Accordions: For lengthy legal disclaimers or FAQs, allowing users to expand/collapse content.
  • Digital Signature: A clearly labeled input field, followed by a prominent "Acknowledge & Submit" button.

5. Color Palette Recommendations

The chosen color palette will reinforce professionalism, readability, and brand identity.

5.1. Primary Palette

  • Company Branding Colors: Integrate the company's primary brand colors (e.g., a dominant navy blue, a professional teal, or a corporate gray) for headers, navigation elements, and key call-to-action buttons.

Example:* Primary Blue: #003366 (Deep Navy) - For main headers, active navigation items.

Example:* Accent Green: #4CAF50 (Subtle Green) - For success messages, positive affirmations.

  • Neutral Backgrounds:

* White: #FFFFFF - Main content background for maximum readability.

* Light Gray: #F8F8F8 or #EEEEEE - For sidebar background, distinct section backgrounds, or subtle separation.

5.2. Accent & Secondary Colors

  • Highlight Color: A brighter, complementary color from the brand palette for interactive elements (hover states, active links), important notes, or small decorative elements.

Example:* Bright Teal: #008CBA - For active links, hover states, "Download PDF" button.

  • Alert/Warning Colors:

* Orange/Amber: #FFA000 - For "Important" callout boxes.

* Red: #D32F2F - For error messages or critical warnings (used sparingly).

5.3. Typography Guidelines

  • Headings (H1, H2, H3): A clean, professional sans-serif font (e.g., Montserrat, Lato, Open Sans, Roboto) for clarity and modern appeal. Use varying weights (bold for H1, semi-bold for H2/H3) and sizes for clear hierarchy.

Example:* Montserrat Bold for H1, Montserrat Semibold for H2/H3.

  • Body Text: A highly readable sans-serif font (e.g., Open Sans, Lato, Roboto, Noto Sans) at a comfortable size (16px - 18px) with good line height (1.5 - 1.6) for optimal legibility.

Example:* Open Sans Regular (16px) for body text.

  • Font Colors:

* Primary Text: Dark Gray (#333333 or #222222) for main content, providing good contrast against white backgrounds.

* Secondary Text: Medium Gray (#666666) for metadata, less critical information, or sidebar inactive items.

5.4. Accessibility Considerations

  • Contrast Ratio: Ensure all text and interactive elements meet WCAG 2.1 AA contrast ratio standards (minimum 4.5:1 for normal text, 3:1 for large text).
  • Color as Meaning: Avoid using color alone to convey information; always supplement with text, icons, or patterns.

6. User Experience (UX) Recommendations

The UX design aims to make the handbook an indispensable, easy-to-use resource for all employees.

6.1. Readability & Comprehension

  • Clear, Concise Language: Use plain language, avoiding jargon where possible. If jargon is necessary, provide definitions (e.g., in a tooltip or a glossary).
  • Short Paragraphs & Bullet Points: Break down dense information into digestible chunks.
  • Visual Hierarchy: Use clear headings, subheadings, and consistent formatting to guide the reader's eye.
  • White Space: Ample white space around text and elements to reduce cognitive load and improve focus.
  • Consistent Tone: Maintain a professional, supportive, and informative tone throughout.

6.2. Navigation & Search

  • Intuitive Table of Contents: A clearly labeled and expandable TOC that mirrors the logical structure of the handbook.
  • Robust Search: Implement a search function that supports partial matches, suggests terms, and highlights results within the content.
  • Breadcrumbs: Provide clear "you are here" context, especially for deep dives into policies.
  • "Back to Top" Button: Essential for long policy pages.

6.3. Accessibility & Inclusivity

  • WCAG Compliance: Adhere to Web Content Accessibility Guidelines (WCAG) 2.1 AA for all design and development. This includes:

* Keyboard navigation for all interactive elements.

* Screen reader compatibility (proper semantic HTML, ARIA attributes).

* Adjustable text size and responsive design.

* High color contrast.

  • Mobile Responsiveness: The handbook must be fully responsive, providing an optimal viewing experience on desktops, tablets
gemini Output

The following comprehensive Employee Handbook has been generated based on your request. This document is designed to provide a foundational structure for your company's policies, benefits, and expectations. It is detailed, professional, and ready for your review and customization to perfectly align with your organization's unique culture and specific legal requirements.


Employee Handbook: [Your Company Name]

Effective Date: [Insert Date]


Welcome to Our Team!

Headline: Welcome Aboard! Your Journey with [Your Company Name] Begins Here.

Body Text:

On behalf of the entire leadership team, we extend a warm welcome to you! We are thrilled to have you join [Your Company Name] and become a vital part of our growing success. This handbook is designed to be your essential guide, outlining our shared values, company policies, benefits, and the standards of conduct that define our vibrant workplace culture.

At [Your Company Name], we believe that our employees are our greatest asset. Your skills, dedication, and unique perspectives are crucial to achieving our mission and vision. We are committed to fostering an inclusive, supportive, and dynamic environment where everyone can thrive, innovate, and contribute meaningfully.

Please take the time to read this handbook carefully. It contains important information about your employment, rights, and responsibilities. While this handbook covers a wide range of topics, it cannot anticipate every situation. We encourage you to ask questions and seek clarification from your manager or the HR Department whenever needed.

We are excited about your future contributions and look forward to building a successful journey together. Welcome to the [Your Company Name] family!


Section 1: About [Your Company Name]

Headline: Our Foundation: Mission, Vision, and Values that Drive Us.

Body Text:

[Your Company Name] is more than just a workplace; it's a community dedicated to [briefly state company purpose/industry]. Understanding our core identity will help you connect with our purpose and contribute to our collective success.

  • Our Mission: [Insert Your Company's Mission Statement - e.g., "To innovate sustainable solutions that empower communities globally."]
  • Our Vision: [Insert Your Company's Vision Statement - e.g., "To be the leading provider of eco-friendly technology, setting new standards for industry excellence and social responsibility."]
  • Our Core Values: These values are the bedrock of our culture and guide every decision we make:

* Integrity: We act with honesty and transparency in all our dealings.

* Innovation: We embrace creativity and continuously seek better ways to solve challenges.

* Collaboration: We believe in the power of teamwork and mutual respect.

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

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

* [Add any other specific company values]

  • Our History & Growth: [Briefly describe the company's founding, key milestones, and growth trajectory. This helps new employees understand the journey and legacy.]

Section 2: Employment Basics

Headline: Laying the Groundwork: Understanding Your Employment at [Your Company Name].

Body Text:

This section outlines the fundamental principles of employment at [Your Company Name], ensuring clarity and fairness for all team members.

  • 2.1 Equal Employment Opportunity (EEO):

* [Your Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse and inclusive workplace where all individuals are treated with dignity and respect. We recruit, hire, train, and promote individuals without regard to race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, or any other characteristic protected by applicable federal, state, or local law.

* Our commitment extends to all employment practices, including recruitment, compensation, benefits, training, transfers, and terminations.

  • 2.2 At-Will Employment:

* 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 employee, manager, or representative of [Your Company Name], other than the [CEO/President] in a formal written agreement, has the authority to enter into any agreement for employment for a specified period or to make any agreement contrary to this "at-will" policy.

  • 2.3 Employment Classifications:

* Full-Time Exempt: Typically salaried employees who meet specific criteria for exemption from overtime pay under federal and state wage and hour laws. Eligible for full company benefits.

* Full-Time Non-Exempt: Typically hourly employees who are eligible for overtime pay for hours worked over 40 in a workweek, as required by law. Eligible for full company benefits.

* Part-Time: Employees who work fewer than [e.g., 30] hours per week. Eligibility for benefits will be outlined in Section 5.

* Temporary/Contract: Employees hired for a specific project or limited duration. Benefits eligibility may vary and will be communicated at the time of hire.

  • 2.4 Onboarding & Probationary Period:

* All new employees undergo an onboarding process to facilitate a smooth integration into the company.

* A probationary period of [e.g., 90 days] applies to all new hires. This period allows both the employee and the company to assess suitability for the role and the organizational culture. During this period, employment may be terminated at any time without notice. Successful completion of the probationary period does not guarantee continued employment but signifies a positive start.

  • 2.5 Performance Management & Reviews:

* We believe in continuous feedback and development. Regular performance discussions and annual performance reviews are conducted to evaluate performance, set goals, and identify development opportunities. These reviews are critical for career growth and compensation adjustments.

  • 2.6 Termination of Employment:

* Employment may be terminated by either the employee or the company.

* Voluntary Termination: Employees are requested to provide at least two (2) weeks' written notice to their manager and HR Department.

* Involuntary Termination: This may occur due to various reasons, including but not limited to, performance issues, policy violations, restructuring, or economic conditions.

* Upon termination, employees will receive their final paycheck, including any accrued and unused vacation/PTO, in accordance with state law. Information regarding benefits continuation (e.g., COBRA) will be provided by HR.

* All company property must be returned upon termination.


Section 3: Workplace Policies & Code of Conduct

Headline: Our Shared Commitment: Upholding a Professional, Respectful, and Safe Workplace.

Body Text:

Our Code of Conduct outlines the ethical principles and behavioral expectations that foster a positive and productive work environment. Adherence to these policies is mandatory for all employees.

  • 3.1 Work Hours & Attendance:

* Our standard workweek is [e.g., Monday through Friday, 9:00 AM to 5:00 PM], totaling [e.g., 40] hours, unless otherwise specified. Specific department schedules may vary.

* Regular and punctual attendance is an essential function of every job. Employees are expected to be at their workstations ready to work at their scheduled start time.

* If you anticipate being late or absent, you must notify your manager as early as possible, preferably before your scheduled start time. Unapproved absences or excessive tardiness may result in disciplinary action.

  • 3.2 Dress Code:

* Employees are expected to dress in a professional and appropriate manner for the workplace. The dress code is generally [e.g., business casual]. Clothing should be neat, clean, and in good repair.

* Certain roles may require specific attire (e.g., safety gear, uniforms). Your manager will provide guidance on department-specific requirements.

  • 3.3 Workplace Safety & Health:

* The safety and well-being of our employees are paramount. [Your Company Name] is committed to providing a safe and healthy work environment.

* All employees are responsible for adhering to safety rules, reporting hazards, and using personal protective equipment (PPE) when required.

* Report any workplace injury, illness, or unsafe condition immediately to your manager and HR.

* Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, medical emergencies, or other crises.

  • 3.4 Harassment & Discrimination (Zero Tolerance Policy):

* [Your Company Name] has zero tolerance for harassment or discrimination of any kind. This includes harassment based on race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, or any other legally protected characteristic.

* Harassment can include unwelcome verbal, physical, or visual conduct that creates an intimidating, hostile, or offensive work environment.

* Any employee who experiences or witnesses harassment or discrimination must report it immediately to their manager, HR, or any member of management. All complaints will be investigated promptly and confidentially, and appropriate corrective action will be taken, up to and including termination of employment. Retaliation against anyone who reports a concern in good faith is strictly prohibited.

  • 3.5 Drug-Free Workplace:

* [Your Company Name] is committed to maintaining a safe, healthy, and productive work environment free from the influence of illegal drugs and alcohol.

* The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited.

* Violation of this policy will result in disciplinary action, up to and including termination of employment.

  • 3.6 Workplace Violence Prevention:

* We are committed to preventing workplace violence. Threats, intimidation, harassment, or acts of violence will not be tolerated.

* Employees who engage in such behavior, or who bring weapons onto company property (unless legally permitted by law and company policy, e.g., security personnel), will face immediate disciplinary action, up to and including termination and legal prosecution.

* Report any threats or suspicious behavior immediately to your manager or HR.

  • 3.7 Confidentiality & Data Security:

* During your employment, you may have access to confidential and proprietary information about [Your Company Name], its clients, and its partners. This includes, but is not limited to, trade secrets, financial data, client lists, project plans, and employee information.

* You are required to maintain the strictest confidentiality of all such information, both during and after your employment. Do not disclose, share, or use confidential information for any unauthorized purpose.

* Protect company data by following all security protocols, including strong passwords, secure storage, and proper handling of electronic and physical documents.

  • 3.8 Use of Company Property & Resources:

* Company property, including computers, software, internet access, email systems, telephones, and other equipment, is provided for business use. Incidental personal use is permitted if it does not interfere with work responsibilities, violate company policy, or incur additional cost to the company.

* All communications and data transmitted or stored on company systems are the property of [Your Company Name] and are subject to monitoring, access, and disclosure by the company. Employees should have no expectation of privacy when using company resources.

* Unauthorized use, alteration, or removal of company property is prohibited.

  • 3.9 Social Media Policy:

* While we respect your right to personal expression, employees must exercise good judgment and professionalism when using social media.

* Do not post confidential company information, disparaging remarks about the company, its employees, clients, or competitors.

* Ensure that your online activities do not negatively impact your work performance, the company's reputation, or create a hostile work environment for others.

* If you identify yourself as an employee of [Your Company Name] on social media, clearly state that your opinions are your own and not those of the company.

  • 3.10 Conflict of Interest:

* Employees must avoid situations where their personal interests conflict with the best interests of [Your Company Name].

* This includes, but is not limited to, engaging in outside employment or business activities that compete with the company, or accepting gifts or favors that could influence business decisions.

* Any potential conflict of interest must be disclosed to your manager and HR immediately.

  • 3.11 Gifts & Entertainment:

* Employees should not accept gifts, favors, or entertainment that could be perceived as influencing business decisions or creating an obligation. Modest gifts of nominal value (e.g., promotional items) are generally acceptable.

* Any gift or entertainment exceeding [e.g., $50] in value should be reported to your manager and HR.

  • 3.12 Whistleblower Policy:

* [Your Company Name] encourages employees to report any unethical, unlawful, or improper conduct without fear of retaliation.

* If you observe or suspect a violation of law, regulation, or company policy, you are encouraged to report it to your manager, HR, or through our confidential reporting channel [e.g., an anonymous hotline, if applicable].

* Retaliation against an employee who makes a good faith report is strictly prohibited and will result in disciplinary action.

  • 3.13 Open Door Policy:

* We maintain an "open door" policy, encouraging employees to discuss concerns, suggestions, or complaints with their immediate supervisor, HR, or any member of management. We believe in open communication and timely resolution of issues.


Section 4: Compensation & Benefits Overview

Headline: Investing in You: Compensation, Health, and Well-being.

Body Text:

[Your Company Name] is committed to providing a competitive compensation and benefits package designed to support your financial security, health, and overall well-being. This section provides a general overview; specific details, eligibility, and enrollment information will be provided by the HR Department.

  • 4.1 Pay Periods & Direct Deposit:

* Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday].

* Direct deposit is mandatory for all employees. Your pay will be automatically deposited into your designated bank account(s). Pay stubs are accessible online via [Payroll System Name/Portal].

  • 4.2 Overtime:

* Non-exempt employees are eligible for overtime pay at one and a half (1.5) times their regular hourly rate for all hours worked over 40 in a single workweek, as required by law.

* All overtime work must be pre-approved by your manager. Unauthorized overtime will not be paid and may result in disciplinary action.

  • 4.3 Performance Reviews & Merit Increases:

* Performance reviews are conducted [e.g., annually] to assess performance, provide feedback, and set future goals.

* Merit increases are typically tied to individual performance and company financial performance and are generally considered during the annual review cycle.

  • 4.4 Health & Wellness Benefits:

* Medical Insurance: Comprehensive medical plans are offered to eligible employees and their dependents. [Briefly mention carriers or plan types, e.g., "We offer PPO and HMO options through Blue Cross Blue Shield."]

* Dental Insurance: Dental coverage is available to eligible employees and their dependents.

gemini Output

Employee Handbook: [Company Name]

This document serves as the official Employee Handbook for [Company Name]. It is designed to provide you with essential information about our company, your employment, our policies, benefits, and expectations. We believe that clear communication fosters a positive and productive work environment.


1. Welcome to [Company Name]

1.1 Welcome Message from Leadership

Dear Valued Team Member,

On behalf of the entire leadership team, welcome to [Company Name]! We are thrilled to have you join our growing family. Your skills, dedication, and unique perspective are invaluable to our success, and we are excited about the contributions you will make.

At [Company Name], we are committed to [briefly state company's core mission/vision, e.g., "innovating solutions for our customers," "building a supportive community," "delivering exceptional quality"]. We believe that our greatest asset is our people, and we are dedicated to creating a workplace where everyone feels respected, valued, and empowered to thrive.

This handbook is your guide to understanding our culture, policies, and the resources available to you. Please take the time to read through it carefully. If you have any questions, do not hesitate to reach out to your manager or the Human Resources department.

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

Sincerely,

[CEO/Founder Name]

[Title]

1.2 Our Mission, Vision, and Values

  • Our Mission: [Insert Company Mission Statement, e.g., "To empower businesses with cutting-edge technology solutions that drive efficiency and growth."]
  • Our Vision: [Insert Company Vision Statement, e.g., "To be the leading innovator in cloud-based enterprise software, globally recognized for excellence and customer satisfaction."]
  • Our Core Values:

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

* Innovation: We embrace creativity and continuous improvement.

* Collaboration: We work together, supporting each other's success.

* Customer Focus: We prioritize understanding and exceeding customer expectations.

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

* Respect: We treat everyone with dignity and foster an inclusive environment.

1.3 Purpose of This Handbook

This handbook outlines the policies, procedures, benefits, and expectations that apply to all employees of [Company Name]. It is designed to provide guidance and clarity, ensuring a fair and consistent work environment. This handbook supersedes all previous oral or written policies, procedures, or statements.

1.4 Employment At-Will Disclaimer

Employment with [Company Name] is "at-will." This means that either you or [Company Name] may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable law. No statement or promise by a company representative can alter this at-will relationship. This handbook is not a contract of employment, nor does it guarantee employment for any definite period.


2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse and inclusive workplace and prohibit discrimination and harassment of any type without regard to race, color, religion, age, sex, national origin, disability status, genetics, protected veteran status, sexual orientation, gender identity or expression, or any other characteristic protected by federal, state, or local laws. This policy applies to all terms and conditions of employment, including recruiting, hiring, placement, promotion, termination, layoff, recall, transfer, leaves of absence, compensation, and training.

2.2 Anti-Harassment Policy

[Company Name] is committed to providing a work environment free of unlawful harassment. Harassment, whether verbal, physical, or visual, based on any protected characteristic (as listed in the EEO policy) is strictly prohibited. This includes sexual harassment, which involves unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature. Any employee who believes they have been subjected to harassment, or has witnessed harassment, should immediately report it to [HR Department/Manager Name]. All complaints will be investigated promptly and confidentially to the extent possible, and appropriate disciplinary action will be taken against violators, up to and including termination. Retaliation against an individual for reporting harassment or participating in an investigation is also strictly prohibited.

2.3 Hiring and Onboarding

  • Recruitment and Selection: [Company Name] uses a fair and consistent recruitment process to identify the most qualified candidates for open positions.
  • Background Checks: All offers of employment are contingent upon the successful completion of a background check, which may include criminal history, education verification, and professional references.
  • Onboarding: New hires will undergo an onboarding program designed to acclimate them to the company culture, policies, and job responsibilities. This includes orientation, necessary training, and introduction to colleagues.

2.4 Performance Management and Reviews

  • Performance Expectations: Employees are expected to meet job performance standards and contribute positively to the team.
  • Performance Reviews: Regular performance reviews will be conducted [e.g., annually, semi-annually] to discuss performance, set goals, and identify development opportunities.
  • Progressive Discipline: Should an employee's performance or conduct fall below expectations, [Company Name] may implement a progressive disciplinary process, which may include verbal warnings, written warnings, performance improvement plans, suspension, and ultimately, termination.

2.5 Employee Classifications

  • Full-Time Exempt/Non-Exempt: Employees who regularly work [e.g., 40] hours per week and are classified as exempt or non-exempt under the Fair Labor Standards Act (FLSA).
  • Part-Time Exempt/Non-Exempt: Employees who regularly work less than [e.g., 40] hours per week and are classified as exempt or non-exempt.
  • Temporary/Contract: Individuals hired for a specific project or limited duration, typically not eligible for company benefits.

2.6 Termination of Employment

Employment may be terminated by either the employee or [Company Name]. Reasons for termination may include, but are not limited to, resignation, retirement, layoff, job abandonment, or termination for cause (e.g., misconduct, poor performance, policy violations). In the event of termination, employees will receive their final paychecks and any accrued, unused vacation time in accordance with state law.


3. Workplace Conduct and Ethics (Code of Conduct)

3.1 Professionalism and Respect

All employees are expected to conduct themselves professionally and treat colleagues, customers, partners, and the public with respect and courtesy. This includes appropriate communication, collaborative behavior, and adherence to company standards.

3.2 Conflict of Interest

Employees must avoid situations where their personal interests conflict, or appear to conflict, with the best interests of [Company Name]. This includes engaging in outside activities that compete with the company, using company resources for personal gain, or accepting gifts that could influence business decisions. Employees must disclose any potential conflicts of interest to [HR Department/Manager Name].

3.3 Confidentiality and Proprietary Information

Employees are entrusted with confidential and proprietary information, including but not limited to, trade secrets, customer lists, financial data, product designs, and internal communications. All such information must be kept strictly confidential and not disclosed to unauthorized individuals or used for personal benefit, both during and after employment. Employees are required to sign a Confidentiality Agreement as a condition of employment.

3.4 Data Privacy and Security

[Company Name] is committed to protecting the privacy and security of personal and company data. Employees must adhere to all data privacy policies and procedures, including those related to GDPR, CCPA, or other relevant regulations. This includes safeguarding sensitive information, using strong passwords, and reporting any suspected data breaches immediately.

3.5 Anti-Bribery and Corruption

[Company Name] has a zero-tolerance policy for bribery and corruption. Employees must not offer, give, solicit, or accept bribes, kickbacks, or other improper payments or benefits to or from anyone, whether in the private or public sector. All business transactions must be conducted transparently and ethically.

3.6 Workplace Safety and Health

[Company Name] is committed to providing a safe and healthy work environment. Employees are expected to adhere to all safety policies and procedures, report hazards or unsafe conditions immediately, and use provided safety equipment. [Company Name] complies with all applicable OSHA standards.

3.7 Drug and Alcohol-Free Workplace

[Company Name] is committed to maintaining a drug and alcohol-free workplace. The use, possession, distribution, or sale of illegal drugs or alcohol on company premises or during work hours is strictly prohibited. Employees found to be under the influence of drugs or alcohol while at work will be subject to disciplinary action, up to and including termination.


4. Compensation and Benefits Overview

4.1 Compensation

  • Pay Periods: Employees are paid [e.g., bi-weekly, semi-monthly] on [specific day, e.g., Friday] for the period ending [specific period, e.g., the previous Sunday].
  • Direct Deposit: Direct deposit is mandatory/available for all employees.
  • Overtime: Non-exempt employees are eligible for overtime pay at [e.g., 1.5 times] their regular rate for hours worked over [e.g., 40] in a workweek, in accordance with FLSA. All overtime must be pre-approved by a manager.
  • Payroll Deductions: Deductions may include taxes, benefits premiums, and other authorized deductions.

4.2 Health & Wellness Benefits

  • Medical Insurance: [Company Name] offers a comprehensive medical insurance plan to eligible full-time employees and their dependents. Details on plans, coverage, and employee contributions are available from [HR Department/Benefits Administrator].
  • Dental Insurance: Dental coverage is available to eligible employees.
  • Vision Insurance: Vision coverage is available to eligible employees.
  • Wellness Programs: [Optional: Describe any wellness programs, e.g., gym membership discounts, health screenings, EAP.]

4.3 Retirement Savings

  • 401(k) Plan: Eligible employees may participate in the company's 401(k) retirement savings plan. [Company Name] offers a [e.g., matching contribution of X% up to Y% of salary]. Details are available from [HR Department/Benefits Administrator].

4.4 Life and Disability Insurance

  • Life Insurance: [Company Name] provides [e.g., basic life insurance coverage at X times annual salary] for eligible employees. Additional voluntary life insurance may be purchased.
  • Short-Term Disability (STD): [Describe STD policy, e.g., provides income replacement for up to X weeks for non-work-related illness or injury.]
  • Long-Term Disability (LTD): [Describe LTD policy, e.g., provides income replacement after STD benefits expire for long-term illness or injury.]

4.5 Other Benefits

  • Employee Assistance Program (EAP): Confidential counseling and referral services are available to employees and their families for personal or work-related issues.
  • Professional Development: [Company Name] supports continuous learning through [e.g., tuition reimbursement, training programs, conference attendance].
  • Employee Discounts: [Optional: List any employee discounts or perks, e.g., product discounts, local business partnerships.]

5. Time Off and Leave Policies

5.1 Paid Time Off (PTO)

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

  • Accrual: Full-time employees accrue PTO at a rate of [e.g., X hours per pay period] starting from their date of hire.
  • Usage: PTO can be used for vacation, personal appointments, illness, or other personal needs.
  • Approval: All PTO requests must be submitted and approved by the employee's manager in advance, typically [e.g., two weeks] for vacation.
  • Carryover/Payout: [Specify carryover limits or if unused PTO is paid out upon termination, according to state law.]

5.2 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
  • [Optional: Add Floating Holiday or other company-specific holidays]

5.3 Sick Leave

For states or localities requiring separate sick leave, or if PTO does not cover sick leave:

  • Accrual: Employees accrue sick leave at a rate of [e.g., X hours per Y hours worked] up to a maximum of [e.g., Z hours] per year.
  • Usage: Sick leave can be used for an employee's own illness, injury, or medical appointment, or to care for a sick family member, in accordance with applicable laws.
  • Reporting: Employees must notify their manager as soon as possible, preferably [e.g., one hour] before their scheduled start time, if they will be absent due to illness.

5.4 Family and Medical Leave Act (FMLA)

Eligible employees may take up to 12 workweeks of unpaid, job-protected leave in a 12-month period for specified family and medical reasons, or up to 26 workweeks of military caregiver leave.

  • Eligibility: Employees must have worked for [Company Name] for at least 12 months, and have worked at least 1,250 hours during the 12 months prior to the start of leave, and work at a location where [Company Name] employs 50 or more employees within 75 miles.
  • Reasons: Birth of a child, placement of a child for adoption or foster care, care for a spouse, child, or parent with a serious health condition, or the employee's own serious health condition.
  • Notice: Employees must provide [e.g., 30 days] advance notice when the need for leave is foreseeable.

5.5 Bereavement Leave

Employees may take up to [e.g., 3-5] days of paid bereavement leave for the death of an immediate family member (e.g., spouse, child, parent, sibling). [e.g., 1-2] days may be granted for other relatives. Employees should notify their manager and [HR Department] as soon as possible.

5.6 Jury Duty

Employees summoned for jury duty will be granted unpaid leave. [Optional: Company Name may pay the difference between jury duty pay and regular pay for a certain number of days, e.g., 3 days.] Employees must provide a copy

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