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

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

As part of the "Employee Handbook Generator" workflow, this deliverable outlines the comprehensive requirements analysis for generating a professional, detailed, and user-friendly employee handbook. This step ensures all foundational design and content parameters are established before the generation phase.


Employee Handbook Generator: Requirements Analysis & Design Specifications

1. Project Overview & Goal

The primary goal is to generate a comprehensive employee handbook that serves as a central, authoritative resource for all employees. It will clearly communicate company policies, benefits, expected conduct, leave procedures, and legal compliance, fostering a transparent and professional work environment. The handbook will be designed for clarity, accessibility, and ease of navigation.

2. Core Content Modules & Detailed Design Specifications

The handbook will be structured around key sections, each with specific content requirements and design considerations:

2.1. Introduction & Welcome

  • Content: Welcome message from leadership, company mission, vision, values, and a statement on the handbook's purpose.
  • Design: Professional and inviting tone, company logo prominent, clear statement that the handbook is not an employment contract.
  • Actionable: Placeholder for CEO/HR Director signature and date.

2.2. Company Overview & Culture

  • Content: Company history (brief), organizational structure (optional, high-level), commitment to diversity, equity, and inclusion (DEI), workplace philosophy.
  • Design: Engaging narrative, potential use of icons or infographics to represent values.
  • Actionable: Sections to customize company-specific values and cultural statements.

2.3. Employment Policies

  • Content:

* Equal Employment Opportunity (EEO) & Anti-Discrimination: Policy statement, protected characteristics, reporting procedures.

* Workplace Harassment (Sexual & Non-Sexual): Definitions, examples, reporting mechanisms, investigation process, non-retaliation policy.

* Recruitment & Hiring: Overview of process, at-will employment statement (if applicable).

* Onboarding & Orientation: Brief description of initial training.

* Performance Management: Overview of reviews, feedback, and disciplinary actions.

* Termination of Employment: Voluntary, involuntary, resignation procedures, final pay.

* Confidentiality & Data Protection: Company data, customer information, employee privacy.

* Social Media Policy: Guidelines for professional conduct online.

* Drug & Alcohol Policy: Workplace expectations, testing (if applicable).

* Workplace Safety & Health: OSHA compliance, emergency procedures, reporting incidents.

* Workplace Violence Prevention: Policy, reporting, intervention.

* Dress Code & Appearance: General guidelines.

* Technology & Communication: Acceptable use of company equipment, email, internet.

  • Design: Clear headings and sub-headings, bullet points for lists, consistent formatting for policy statements, procedures, and responsibilities. Each policy should be distinct.
  • Actionable: Each policy must allow for customization of specific details, reporting contacts, and state/local legal variations.

2.4. Compensation & Benefits Overview

  • Content:

* Compensation: Pay periods, overtime, deductions, pay raises, performance bonuses.

* Health & Wellness Benefits: Medical, dental, vision insurance (high-level overview, refer to detailed plan documents).

* Retirement Plans: 401(k) or similar (high-level overview, refer to plan documents).

* Other Benefits: Life insurance, disability insurance, employee assistance programs (EAP), tuition reimbursement, wellness programs.

* Perks: Employee discounts, gym memberships, commuter benefits (if applicable).

  • Design: Use tables or bulleted lists for easy comparison and summary. Include clear disclaimers that detailed plan documents govern benefits.
  • Actionable: Placeholders for specific plan names, eligibility criteria, and contact information for benefits administrators.

2.5. Leave Policies

  • Content:

* Paid Time Off (PTO) / Vacation: Accrual, usage, carryover, payout (if applicable).

* Sick Leave: Accrual, usage, documentation requirements.

* Holidays: Company-observed holidays.

* Family & Medical Leave Act (FMLA): Eligibility, types of leave, notice requirements (if applicable).

* Other Leaves: Bereavement leave, jury duty, military leave, personal leave, parental leave.

  • Design: Consistent structure for each leave type: policy statement, eligibility, duration, application process, documentation.
  • Actionable: Must allow for customization of accrual rates, maximums, and specific state/local leave laws.

2.6. Code of Conduct & Ethics

  • Content:

* Ethical Principles: Integrity, honesty, respect, accountability.

* Conflicts of Interest: Definition, examples, disclosure requirements.

* Gifts & Entertainment: Policy on giving/receiving.

* Company Property: Proper use and care.

* Reporting Misconduct: Whistleblower protection, non-retaliation.

  • Design: Emphasize core values, use clear language, provide examples to illustrate concepts.
  • Actionable: Clear instructions on how to report concerns and to whom.

2.7. Compliance & Legal Disclosures

  • Content:

* At-Will Employment Statement: (If applicable, prominently displayed).

* Handbook Disclaimer: Not a contract, company's right to modify.

* Acknowledgment of Receipt: Signature page for employee confirmation.

* Required Legal Notices: State and federal posters (referral or summary).

  • Design: Formal and legalistic tone where appropriate, clear disclaimers.
  • Actionable: Customizable acknowledgment form with signature lines and date.

3. Wireframe Descriptions (Conceptual Layouts)

The handbook will follow a clean, professional, and intuitive layout.

3.1. Cover Page

  • Elements: Prominent Company Logo (top center), Handbook Title ("Employee Handbook") (large, bold), Company Name (below title), Effective Date / Version Number (bottom), Optional: Tagline or brief welcome statement.
  • Layout: Centered, minimalist, focus on brand identity.

3.2. Table of Contents (TOC)

  • Elements: "Table of Contents" heading, clearly numbered main sections, indented sub-sections, page numbers (or internal links if digital).
  • Layout: Left-aligned, ample white space, clear hierarchy using font sizes/weights.

3.3. Section Header Page

  • Elements: Large, bold Section Title (e.g., "3. Employment Policies"), brief introductory paragraph summarizing the section's content.
  • Layout: Centered or left-aligned, distinct visual break from content pages.

3.4. Standard Policy Page

  • Elements:

* Policy Title: (e.g., "3.1 Equal Employment Opportunity") – Prominent heading.

* Effective Date/Last Revised: Small text below title.

* Policy Statement: Bolded, concise summary of the policy.

* Purpose: Brief explanation of why the policy exists.

* Scope: Who the policy applies to.

* Detailed Explanation/Procedures: Main body text, broken into paragraphs and bullet points.

* Responsibilities: Who is responsible for adherence/enforcement.

* Reporting/Questions: Clear instructions on who to contact.

* Related Policies: Internal links to other relevant sections.

  • Layout: Two-column (optional for side-bar navigation/quick links) or single-column with clear paragraph breaks and consistent use of bullet points for readability.

3.5. Benefits Overview Page (Example)

  • Elements: Section Title, introductory paragraph, then a series of smaller boxes or table rows for each benefit type (e.g., "Medical Insurance," "401(k)"). Each box contains: Benefit Name (bold), brief description, key features, and a "See Plan Documents for Details" note.
  • Layout: Grid-like or stacked sections, using icons to represent different benefit types.

3.6. Acknowledgment of Receipt Page

  • Elements: "Employee Acknowledgment" heading, policy statement regarding understanding and agreement to abide by the handbook, space for Employee Name (Printed), Employee Signature, Date, and Supervisor Signature (optional).
  • Layout: Clear and concise, legal-document feel, ample space for signatures.

4. Color Palettes

The chosen color palette will convey professionalism, trustworthiness, and approachability.

  • Primary Palette (Corporate Identity):

* Main Accent Color: A strong, professional color (e.g., deep navy blue, forest green, or charcoal grey). Used for main headings, important call-outs, and company branding elements.

Example:* #003366 (Deep Navy Blue)

* Secondary Accent Color: A complementary, slightly lighter or brighter color for sub-headings, links, or minor highlights.

Example:* #6699CC (Medium Blue)

  • Neutral Palette (Background & Text):

* Background: Clean, light off-white or very light grey for main content areas to enhance readability.

Example:* #F9F9F9 (Light Grey) or #FFFFFF (White)

* Text: Dark, highly readable color for body text.

Example:* #333333 (Dark Grey) or #000000 (Black)

  • Accent Palette (For Infographics/Icons/Alerts):

* A small set of 1-2 additional colors can be introduced sparingly for visual interest, status indicators, or specific infographic elements. These should complement the primary palette.

Example:* #FF9900 (Amber for warnings/highlights), #339966 (Teal for positive reinforcement/tips).

Accessibility Note: All color combinations will be checked for WCAG 2.1 AA compliance for contrast ratios to ensure readability for all users.

5. User Experience (UX) Recommendations

The handbook's design will prioritize clarity, ease of use, and accessibility.

  • 5.1. Clarity & Conciseness:

* Plain Language: Avoid jargon, legalistic terminology where possible, or provide clear definitions.

* Direct & Actionable: Policies should clearly state what is expected of employees and management.

* "Why" & "How": Explain the purpose behind policies and the procedures for adherence.

  • 5.2. Readability & Scannability:

* Font Choice: Use professional, legible sans-serif fonts (e.g., Open Sans, Lato, Roboto) for body text and headings.

* Font Size: Optimal font size for body text (10-12pt for print, 16px for digital).

* Line Spacing: Generous line spacing (1.4-1.6x) to reduce eye strain.

* Paragraph Length: Keep paragraphs concise, breaking up large blocks of text.

* Visual Hierarchy: Use clear heading levels (H1, H2, H3) with distinct sizing and weighting to guide the reader.

* Bullet Points & Numbered Lists: Extensively used for procedures, examples, and lists to improve scannability.

  • 5.3. Navigation (for Digital & Print):

* Interactive Table of Contents: For digital versions, all TOC entries should be clickable links.

* Internal Hyperlinks: Cross-reference related policies within the document.

* Consistent Structure: Predictable layout across all policy pages.

* Search Functionality: (For web-based versions) A prominent search bar to quickly find specific policies.

  • 5.4. Accessibility:

* Color Contrast: Ensure sufficient contrast between text and background colors.

* Alternative Text: (If images are used) Provide descriptive alt text.

* Logical Reading Order: Structure content logically for screen readers.

* Print-Friendly: Ensure the digital version can be easily printed without loss of formatting or content.

  • 5.5. Tone & Voice:

* Professional & Respectful: Maintain a formal yet approachable tone.

* Empathetic: Frame policies positively, focusing on mutual respect and success.

* Authoritative: Clearly state expectations and responsibilities.

  • 5.6. Feedback & Acknowledgment:

* Acknowledgment Form: A dedicated section for employees to sign, confirming they have received, read, and understood the handbook.

* Feedback Mechanism (Optional): Consider a simple way for employees to ask questions or provide feedback on the handbook (e.g., HR email address).

This detailed requirements analysis and design specification will serve as the blueprint for the subsequent steps in generating a highly effective and professional employee handbook.

gemini Output

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

Welcome to the Team!

Welcome to [Company Name]! We are thrilled to have you join our growing team. This Employee Handbook is designed to be your comprehensive guide to our company's culture, policies, benefits, and expectations. It reflects our commitment to creating a positive, productive, and respectful work environment for everyone.

At [Company Name], we believe that our success is driven by the talent, dedication, and collaboration of our employees. We are excited about the contributions you will make and look forward to achieving great things together.

Please take the time to read through this handbook carefully. It contains important information that will help you understand your rights and responsibilities as an employee, as well as the resources available to you. If you have any questions, please do not hesitate to reach out to your manager or the HR Department.

Welcome aboard!

Sincerely,

The Leadership Team at [Company Name]


1. Introduction & Purpose of This Handbook

This Employee Handbook serves as a vital resource for all employees of [Company Name]. It outlines the policies, procedures, benefits, and expectations that govern our workplace. Its primary purposes are to:

  • Communicate Key Information: Provide clear and concise information about our company’s mission, vision, values, and operational guidelines.
  • Clarify Expectations: Define the standards of conduct, performance, and professionalism expected from every employee.
  • Outline Benefits & Rights: Detail the compensation, benefits, and leave policies available to eligible employees.
  • Ensure Compliance: Highlight our commitment to legal and ethical compliance in all aspects of our operations.
  • Foster a Positive Environment: Support a fair, respectful, and productive work environment where all employees can thrive.

This handbook is a summary of current policies and is not an employment contract. [Company Name] reserves the right to modify, add, or delete any policies, procedures, or benefits described herein at any time, with or without notice. Any updates will be communicated promptly.


2. About [Company Name]

Our Mission

[Company Name]’s mission is to [Insert Company Mission Statement Here - e.g., "innovate cutting-edge solutions that empower businesses to achieve unprecedented efficiency and growth."]

Our Vision

Our vision is to [Insert Company Vision Statement Here - e.g., "be the global leader in sustainable technology, recognized for our integrity, innovation, and positive impact on society."]

Our Core Values

Our values are the foundation of our culture and guide our decisions and actions:

  • Integrity: We operate with honesty, transparency, and ethical conduct in all our dealings.
  • Innovation: We embrace creativity, continuous improvement, and forward-thinking solutions.
  • Collaboration: We foster teamwork, open communication, and mutual respect to achieve shared goals.
  • Excellence: We strive for the highest standards in our work, products, and services.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Accountability: We take ownership of our responsibilities and commitments.

3. Employment Basics

3.1 Equal Employment Opportunity

[Company Name] is an Equal Opportunity Employer and is committed to creating a diverse and inclusive workplace. We do not discriminate on the basis of race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other legally protected status. Our commitment extends to all employment practices, including recruitment, hiring, promotion, training, compensation, benefits, and termination.

3.2 At-Will Employment

Employment with [Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable laws. No manager, supervisor, or employee of [Company Name] has any authority to enter into an agreement for employment for a specified period or to make any agreement contrary to the at-will nature of employment.

3.3 Employment Classifications

Employees are generally classified as follows:

  • Full-Time Exempt: Typically salaried employees who meet specific legal tests for exemption from overtime pay.
  • Full-Time Non-Exempt: Typically hourly employees who are eligible for overtime pay for hours worked over 40 in a workweek.
  • Part-Time Exempt/Non-Exempt: Employees who work fewer than the standard full-time hours, with eligibility for overtime based on their exempt status.
  • Temporary/Contract: Individuals hired for a specific project or limited duration, who may or may not be eligible for certain benefits.

Your employment classification will be communicated to you upon hire.

3.4 Recruitment & Onboarding

Our recruitment process is designed to attract and select the most qualified candidates. New hires will undergo an onboarding process to help them integrate smoothly into our team, understand their role, and familiarize themselves with our culture and systems.

3.5 Performance Management

[Company Name] is committed to fostering employee growth and development. Our performance management system includes:

  • Goal Setting: Collaborative establishment of clear, measurable goals.
  • Regular Feedback: Ongoing discussions between employees and managers.
  • Performance Reviews: Annual or semi-annual formal assessments of performance, contributions, and development areas.
  • Development Plans: Opportunities for training, skill enhancement, and career advancement.

3.6 Employee Records & Privacy

Maintaining accurate employee records is crucial. Please notify HR promptly of any changes to your personal information, such as address, phone number, emergency contacts, marital status, or dependent information.

Employee records are confidential and access is limited to authorized personnel. While we respect your privacy, certain information may be accessed or disclosed as required by law or for legitimate business purposes.


4. Compensation & Benefits Overview

4.1 Compensation Philosophy

Our compensation philosophy is designed to attract, motivate, and retain top talent by offering competitive salaries and a comprehensive benefits package. Compensation decisions are based on factors such as job responsibilities, required skills, experience, performance, and market data.

4.2 Pay Periods & Direct Deposit

Employees are paid on a [Bi-weekly/Semi-monthly] basis, typically every [Friday/15th and last day of the month]. Pay stubs are accessible via our [HRIS Portal/Payroll System]. Direct deposit is mandatory for all employees, ensuring timely and secure payment.

4.3 Benefits Eligibility

Eligibility for specific benefits depends on your employment classification and length of service. Details regarding eligibility criteria are available from the HR Department.

4.4 Health & Wellness Benefits

[Company Name] is proud to offer a robust suite of benefits to support your health and well-being:

  • Medical Insurance: Comprehensive medical plans with [e.g., PPO/HMO] options.
  • Dental Insurance: Coverage for preventative, basic, and major dental care.
  • Vision Insurance: Benefits for eye exams, glasses, and contact lenses.
  • Life Insurance: Company-paid basic life insurance, with options for supplemental coverage.
  • Short-Term Disability (STD): Income protection for non-work-related illnesses or injuries.
  • Long-Term Disability (LTD): Extended income protection for prolonged disabilities.
  • Employee Assistance Program (EAP): Confidential counseling and support services for personal and work-related challenges.

4.5 Retirement Plans

  • 401(k) Plan: We offer a 401(k) retirement savings plan with [e.g., company matching contributions] to help you save for your future. Eligibility and enrollment details are available through HR.

4.6 Other Benefits

  • Professional Development: Opportunities for training, workshops, and educational assistance.
  • Wellness Programs: Initiatives to promote physical and mental health.
  • Employee Discounts: Access to various discounts through partner programs.

Action: For detailed information on specific plans, eligibility, and enrollment, please contact the HR Department or refer to the benefits portal at [Benefits Portal Link].


5. Workplace Conduct & Expectations (Code of Conduct)

Our Code of Conduct outlines the ethical principles and behavioral standards expected of every employee. Adherence to these principles ensures a respectful, safe, and productive workplace.

5.1 Professionalism & Respect

All employees are expected to treat colleagues, customers, partners, and vendors with respect, courtesy, and professionalism. This includes:

  • Communicating openly and constructively.
  • Valuing diverse perspectives and backgrounds.
  • Maintaining a positive and collaborative attitude.

5.2 Harassment & Discrimination Policy

[Company Name] has zero tolerance for harassment or discrimination of any kind. This includes, but is not limited to, harassment based on race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, or veteran status. Harassment can be verbal, physical, or visual.

  • Reporting Procedure: Any employee who experiences or witnesses harassment or discrimination must report it immediately to their manager, HR, or any member of the leadership team. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone reporting harassment or participating in an investigation is strictly prohibited.

5.3 Workplace Safety & Security

Your safety is our priority. Employees are expected to:

  • Adhere to all safety policies and procedures.
  • Report any unsafe conditions, incidents, or injuries immediately to their manager or HR.
  • Maintain a clean and organized workspace.
  • Follow security protocols for access control and safeguarding company assets.

5.4 Drug-Free Workplace Policy

[Company Name] is committed to maintaining a drug-free and alcohol-free workplace. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol on company premises or during work hours is strictly prohibited. Employees under the influence of drugs or alcohol that impair their ability to perform their job safely and effectively will be subject to disciplinary action, up to and including termination.

5.5 Confidentiality & Data Security

Employees must protect the confidential and proprietary information of [Company Name], its customers, and partners. This includes, but is not limited to, financial data, trade secrets, customer lists, product designs, marketing strategies, and personal employee information.

  • Do not disclose confidential information to unauthorized individuals.
  • Exercise caution when discussing sensitive information.
  • Follow all data security protocols, including password protection and secure file storage.

5.6 Use of Company Property & Resources

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

5.7 Social Media Policy

While we respect your right to personal expression, employees must exercise good judgment when using social media. Do not post confidential company information, disparage the company, its employees, customers, or partners, or engage in activities that could damage the company's reputation. When identifying yourself as an employee of [Company Name] online, ensure your personal views are clearly distinguished from those of the company.

5.8 Conflict of Interest

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

5.9 Ethics & Integrity

We expect all employees to conduct business with the highest level of integrity and ethics. This means complying with all applicable laws and regulations, avoiding bribery and corruption, and making decisions that are in the best interest of the company and its stakeholders.


6. Leave Policies

6.1 Paid Time Off (PTO) / Vacation Policy

[Company Name] offers a comprehensive PTO program to provide employees with paid time away from work for vacation, personal appointments, or minor illnesses.

  • Accrual: PTO accrues at a rate of [e.g., 8 hours per month] for full-time employees, up to a maximum of [e.g., 160 hours].
  • Usage: PTO requests should be submitted to your manager at least [e.g., two weeks] in advance, whenever possible.
  • Carryover: [e.g., Up to 40 hours] of unused PTO may be carried over to the next year.
  • Payout: Unused PTO [is/is not] paid out upon termination of employment.

Action: Refer to the detailed PTO policy available on the HR portal for full guidelines.

6.2 Sick Leave Policy

Dedicated sick leave is provided for absences due to personal illness, injury, or medical appointments.

  • Accrual: Full-time employees accrue [e.g., 1 hour of sick leave for every 30 hours worked], up to [e.g., 40 hours] per year.
  • Usage: Notify your manager as soon as possible, preferably before your scheduled start time, if you need to use sick leave. For absences exceeding [e.g., three consecutive days], a doctor's note may be required.

6.3 Holiday Schedule

[Company Name] observes the following paid holidays annually:

  • New Year's Day
  • Martin Luther King, Jr. Day
  • Presidents' Day
  • Memorial Day
  • Juneteenth
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • Day after Thanksgiving
  • Christmas Day
  • [Add any company-specific holidays, e.g., Floating Holiday]

A detailed holiday schedule for the current year will be communicated by HR.

6.4 Family & Medical Leave Act (FMLA)

Eligible employees may take job-protected leave under the Family and Medical Leave Act (FMLA) for qualifying family and medical reasons, including:

  • The birth or placement of a child for adoption or foster care.
  • To care for a spouse, child, or parent with a serious health condition.
  • For the employee's own serious health condition.
  • For qualifying exigencies arising out of a family member's military service.

Action: Contact HR for detailed eligibility requirements and application procedures for FMLA leave.

6.5 Bereavement Leave

Employees may take [e.g., 3 to 5] days of paid bereavement leave for the death of an immediate family member (spouse, child, parent, sibling, grandparent, grandchild). Additional unpaid leave may be granted at the company's discretion.

6.6 Jury Duty Leave

Employees summoned for jury duty will receive paid leave for the duration of their service. Proof of jury service is required.

6.7 Military Leave

Employees who are members of the uniformed services are entitled to leave for military service in accordance with the Uniformed Services Employment and Reemployment Rights Act (USERRA).


7. Work Schedules & Environment

7.1 Working Hours

Our standard business hours are [e.g., Monday to Friday, 9:00 AM to 5:00 PM]. Specific work schedules may vary by

gemini Output

The following comprehensive Employee Handbook has been generated to provide a clear and detailed guide to our company's policies, procedures, and expectations. This document is designed to foster a positive, productive, and compliant work environment.


Employee Handbook: [Company Name]

Effective Date: [Date of Issuance/Latest Revision]

Welcome to [Company Name]!

We are thrilled to have you as part of our team. This handbook is designed to introduce you to [Company Name]'s culture, policies, benefits, and expectations. It serves as a valuable resource to help you understand your role and responsibilities, as well as the resources available to you.

At [Company Name], we believe that our success is built upon the collective strength, dedication, and talent of our employees. We are committed to creating a workplace that is fair, respectful, and provides opportunities for growth and development.

Please read this handbook carefully. It contains important information that will help you navigate your employment journey with us. If you have any questions, please do not hesitate to speak with your manager or the Human Resources department.

We look forward to a successful and rewarding experience together!

Sincerely,

The Management Team

[Company Name]


Important Disclaimer

This Employee Handbook is a guide to the policies, practices, and benefits currently in effect at [Company Name]. It is not a contract of employment, expressed or implied, nor does it guarantee employment for any definite period. Employment with [Company Name] is "at-will," meaning that either you or the company may terminate the employment relationship at any time, with or without cause or notice, subject to applicable laws.

[Company Name] reserves the right to revise, modify, delete, or add to any of the policies, procedures, work rules, or benefits described in this handbook at any time, with or without notice, except as provided by law. All changes will be communicated to employees. This handbook supersedes all previous handbooks and inconsistent policies.

This handbook does not create any express or implied contractual rights concerning any terms or conditions of employment. Nothing in this handbook is intended to interfere with, restrain, or coerce employees in the exercise of their rights under Section 7 of the National Labor Relations Act (NLRA).


1. Welcome & Our Company

1.1 Our Mission, Vision, and Values

  • Mission: [Insert Company Mission Statement - e.g., "To innovate and deliver exceptional solutions that empower our clients and enrich our communities."]
  • Vision: [Insert Company Vision Statement - e.g., "To be the recognized leader in our industry, driven by excellence, integrity, and sustainable growth."]
  • Values: [List 3-5 Core Company Values - e.g., Integrity, Innovation, Customer Focus, Teamwork, Respect, Accountability.]

1.2 Purpose of This Handbook

This handbook provides a comprehensive overview of the policies, procedures, and benefits applicable to employees of [Company Name]. It is intended to:

  • Clarify the expectations of employment.
  • Outline employee rights and responsibilities.
  • Detail the benefits and resources available to employees.
  • Ensure a consistent and fair application of company policies.
  • Help maintain a productive, safe, and respectful work environment.

1.3 Employment At-Will

As stated in the disclaimer, employment with [Company Name] is "at-will." This means that either the employee or [Company Name] may terminate the employment relationship at any time, for any reason or no reason, with or without notice, subject to applicable federal and state laws. No manager, supervisor, or employee of [Company Name] has any authority to enter into an agreement for employment for a specified period or to make any agreement contrary to the "at-will" nature of employment.

1.4 Handbook Acknowledgment

All employees are required to read, understand, and acknowledge receipt of this Employee Handbook. Your signature on the Acknowledgment Form confirms that you have received, read, and understand the contents of this handbook and agree to abide by the policies contained herein. The Acknowledgment Form will be kept in your personnel file.


2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer and is committed to providing a workplace free from discrimination and harassment. We recruit, hire, train, and promote individuals without regard to race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, veteran status, or any other characteristic protected by federal, state, or local law. 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-Discrimination and Anti-Harassment Policy

[Company Name] is committed to maintaining a work environment free from discrimination and harassment. Harassment, whether verbal, physical, or visual, based on any protected characteristic, is strictly prohibited. This includes, but is not limited to, offensive jokes, slurs, epithets or name-calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance.

Sexual harassment, which includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature, is also strictly prohibited.

Reporting Procedures:

Any employee who believes they have been subjected to or witnessed discrimination or harassment should immediately report the incident to their supervisor, Human Resources, or any member of management. All complaints will be investigated promptly and thoroughly, with appropriate corrective action taken. Retaliation against any employee for reporting a concern or participating in an investigation is strictly prohibited and will result in disciplinary action, up to and including termination.

2.3 Workplace Conduct and Professionalism

Employees are expected to conduct themselves professionally and respectfully at all times. This includes:

  • Treating colleagues, customers, vendors, and visitors with courtesy and respect.
  • Maintaining a positive and collaborative attitude.
  • Adhering to company policies and procedures.
  • Communicating effectively and constructively.
  • Avoiding disruptive or disrespectful behavior.

2.4 Hiring Process

All new hires are subject to [Company Name]'s standard hiring process, which may include background checks, reference checks, skills assessments, and drug screenings, where permitted by law. Employment is contingent upon satisfactory completion of all pre-employment requirements.

2.5 Employee Classifications

Employees are classified based on their work schedule and eligibility for overtime pay:

  • Full-Time: Typically work 40 hours per week and are eligible for all company benefits.
  • Part-Time: Work fewer than 40 hours per week. Eligibility for benefits may vary based on average hours worked.
  • Temporary: Employed for a specific project or limited duration. Benefit eligibility may be limited.
  • Exempt: Employees who meet specific criteria under the Fair Labor Standards Act (FLSA) and are not eligible for overtime pay.
  • Non-Exempt: Employees who are eligible for overtime pay for hours worked over 40 in a workweek, as per FLSA regulations.

2.6 Work Hours and Attendance

  • Standard Workday/Workweek: Our standard workweek is [e.g., Monday through Friday, 9:00 AM to 5:00 PM], totaling 40 hours per week. Specific schedules may vary by department or role.
  • Attendance and Punctuality: Regular and punctual attendance is an essential requirement of employment. Employees are expected to be at their workstations, ready to work, at the start of their scheduled shift.
  • Reporting Absences: If you are unable to report to work due to illness or other unforeseen circumstances, you must notify your supervisor as soon as possible, ideally at least [e.g., two hours] before your scheduled start time.
  • Breaks and Meal Periods: Employees are provided with [e.g., one 30-minute unpaid meal break for shifts over 5 hours and two 15-minute paid rest breaks for shifts over 7 hours]. Specific requirements may vary by state law.

2.7 Performance Management and Reviews

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

  • Performance Reviews: Formal performance reviews are conducted [e.g., annually/bi-annually] to assess performance, provide feedback, recognize achievements, and identify areas for development.
  • Feedback: Ongoing feedback between employees and supervisors is encouraged to ensure clear expectations and continuous improvement.
  • Performance Improvement Plans (PIPs): If an employee's performance falls below expectations, a PIP may be implemented to provide a structured approach to improvement.

2.8 Disciplinary Action

To ensure fair and consistent treatment, and to maintain a productive work environment, [Company Name] utilizes a progressive disciplinary process for addressing violations of company policy or performance issues. This may include:

  1. Verbal Warning
  2. Written Warning
  3. Final Written Warning/Suspension
  4. Termination

The severity of the offense will determine the level of disciplinary action taken. Some serious infractions may result in immediate termination.

2.9 Termination of Employment

Employment at [Company Name] may be terminated by either the employee or the company at any time, with or without cause or notice, in accordance with the "at-will" employment policy.

  • Voluntary Resignation: Employees are requested to provide at least [e.g., two weeks'] written notice to their supervisor and Human Resources.
  • Involuntary Termination: May occur due to performance issues, policy violations, restructuring, or other business reasons.
  • Exit Interview: An exit interview may be conducted with employees upon termination to gather feedback and discuss final arrangements.
  • Final Paycheck: Final paychecks, including accrued, unused PTO (where required by law), will be issued in accordance with state law.
  • Return of Company Property: All company property (e.g., laptops, phones, keys, badges) must be returned on or before the last day of employment.

2.10 Open Door Policy

[Company Name] encourages open communication. Employees are encouraged to discuss any work-related concerns, suggestions, or grievances with their immediate supervisor. If the issue cannot be resolved at that level, or if the employee is uncomfortable discussing it with their supervisor, they may contact Human Resources or a higher level of management. No employee will be retaliated against for utilizing the Open Door Policy in good faith.


3. Compensation & Benefits

3.1 Pay Periods and Direct Deposit

  • Pay Period: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday/the 15th and 30th of each month]. The pay period covers [e.g., two weeks ending the previous Sunday/the first half or second half of the month].
  • Direct Deposit: Direct deposit is mandatory for all employees. Your net pay will be electronically deposited into your designated bank account(s).

3.2 Overtime Policy (FLSA Compliance)

Non-exempt employees are eligible for overtime pay at a rate of one and one-half times their regular rate of pay for all hours worked over 40 in a single workweek. All overtime must be pre-approved by your supervisor. Working unauthorized overtime may result in disciplinary action. Exempt employees are not eligible for overtime pay.

3.3 Benefits Eligibility

Eligibility for benefits varies based on employee classification (full-time, part-time) and length of service. Details on specific eligibility requirements for each benefit plan will be provided by Human Resources.

3.4 Health & Dental Insurance

[Company Name] offers comprehensive health and dental insurance plans to eligible employees and their dependents.

  • Health Insurance: [Briefly describe the type of plan, e.g., "PPO and HMO options available through [Insurance Provider]."]
  • Dental Insurance: [Briefly describe, e.g., "Coverage for preventative, basic, and major dental care."]
  • Enrollment: New employees are eligible to enroll within [e.g., 30 days] of their hire date, with coverage typically beginning on the first day of the month following enrollment.
  • Open Enrollment: An annual open enrollment period allows employees to make changes to their benefit elections.

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

[Company Name] offers a [e.g., 401(k) retirement savings plan] to help employees save for their future.

  • Eligibility: Employees are eligible to participate after [e.g., 90 days of employment and reaching age 21].
  • Company Match: [Company Name] offers a [e.g., discretionary/matching contribution of 50% of your contributions, up to 6% of your salary].
  • Vesting: [Briefly explain vesting schedule, e.g., "Company contributions vest over a 3-year period: 33% after 1 year, 67% after 2 years, 100% after 3 years."]

3.6 Life and Disability Insurance

  • Basic Life Insurance: [Company Name] provides a basic life insurance policy for all eligible full-time employees at no cost.
  • Supplemental Life Insurance: Employees may elect to purchase additional life insurance coverage for themselves and their dependents.
  • Short-Term Disability (STD): Provides income replacement for eligible employees who are 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 who are unable to work due to a non-work-related illness or injury for an extended period.

3.7 Employee Assistance Program (EAP)

[Company Name] provides an Employee Assistance Program (EAP) to all employees and their immediate family members. The EAP offers confidential counseling and referral services for a wide range of personal and work-related issues, including stress, anxiety, depression, substance abuse, financial concerns, and legal problems. This service is provided at no cost to employees.

3.8 Other Perks & Programs

  • Professional Development: [Company Name] supports continuous learning and offers opportunities for professional development, including training programs, workshops, and tuition reimbursement for approved courses.
  • **
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);}});}