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

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

Step 1 of 3: Analyze Requirements - Employee Handbook Generator

1. Introduction & Project Overview

This document outlines the detailed requirements and specifications for the "Employee Handbook Generator," a tool designed to enable businesses to quickly and efficiently create comprehensive, professional employee handbooks. The generator will provide a structured framework, pre-populated templates, and customizable sections to cover essential company policies, benefits, code of conduct, leave policies, and compliance requirements. The primary goal is to streamline the handbook creation process, ensure legal compliance, and maintain brand consistency.

2. Core Functionality & Features

The Employee Handbook Generator will be built around the following key functional requirements:

  • Company Information Input:

* Fields for Company Name, Address, Website, Mission Statement, Vision, Values.

* Logo Upload functionality (PNG, JPG, SVG with recommended dimensions).

* Ability to set a primary contact/HR representative.

  • Section Selection & Customization:

* A modular approach allowing users to select/deselect core handbook sections.

* Pre-written, legally vetted (boilerplate) content for each section, with clear indicators for customizable areas.

* Rich text editor for extensive customization of pre-written content and creation of new content.

* Ability to add custom sections beyond the standard offerings.

* Reordering of sections within the handbook.

  • Core Handbook Sections:

* Welcome & Introduction: Company history, mission, vision, values, at-will employment statement.

* Company Policies:

* Equal Employment Opportunity (EEO)

* Anti-Harassment & Discrimination

* Workplace Safety (OSHA compliance)

* Drug & Alcohol Policy

* Attendance & Punctuality

* Dress Code

* Remote Work/Hybrid Policy (if applicable)

* Social Media Policy

* Confidentiality & Non-Disclosure

* IT & Communication Systems Usage

* Data Privacy & Security

* Conflict of Interest

* Performance Management

* Termination of Employment

* Benefits Overview:

* Health Insurance (Medical, Dental, Vision)

* Retirement Plans (401k, etc.)

* Life & Disability Insurance

* Employee Assistance Programs (EAP)

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

* Code of Conduct:

* Ethical Standards

* Professionalism

* Respect in the Workplace

* Reporting Violations (Whistleblower policy)

* Leave Policies:

* Paid Time Off (PTO) / Vacation Policy

* Sick Leave Policy

* Holiday Schedule

* Family & Medical Leave Act (FMLA)

* Jury Duty Leave

* Bereavement Leave

* Military Leave

* Other State-Specific Leaves (e.g., paid family leave)

* Compliance & Legal Disclaimers:

* Disclaimer that the handbook is not a contract.

* Handbook Acknowledgment Form (printable/digital signature option).

* Legal disclaimers regarding policy changes.

* Links or references to relevant federal and state employment laws.

  • Review & Generation:

* Real-time preview or on-demand full handbook preview during the creation process.

* Option to save progress as a draft.

* Ability to export the final handbook in multiple formats (PDF, DOCX).

* Customizable cover page and table of contents.

* Automated pagination and section numbering.

  • User Management & Version Control (Future Consideration):

* Ability to save multiple handbook versions.

* User accounts for different companies/administrators.

3. User Experience (UX) Recommendations

The UX will focus on clarity, guidance, and ease of use to ensure a smooth and intuitive handbook generation process.

  • Guided Workflow: A step-by-step wizard approach (e.g., 1. Company Info > 2. Select Sections > 3. Customize > 4. Review & Generate).
  • Progress Indicator: A clear visual indicator (e.g., progress bar, numbered steps) to show users where they are in the process.
  • Intuitive Navigation: "Next" and "Previous" buttons, along with a sidebar navigation that allows users to jump between sections freely.
  • Inline Help & Tooltips: Contextual help text, definitions, and legal explanations for complex policies or input fields.
  • Rich Text Editor (WYSIWYG): An easy-to-use editor for content customization, supporting basic formatting (bold, italics, lists, links).
  • Pre-population & Defaults: Smart defaults and pre-populated content to minimize manual input.
  • Save & Resume: Prominent "Save Draft" functionality to allow users to pause and resume their work.
  • Error Handling: Clear, actionable error messages for invalid inputs or missing required information.
  • Accessibility: Adherence to WCAG 2.1 AA standards for color contrast, keyboard navigation, and screen reader compatibility.
  • Mobile Responsiveness: The interface should be fully responsive, adapting seamlessly to various screen sizes (desktop, tablet, mobile).

4. Wireframe Descriptions

The following wireframes describe the key screens and interactions within the generator:

  1. Welcome / Dashboard Screen:

* Layout: Centered content, clean design.

* Elements: Branding (logo), "Create New Handbook" button, "Load Draft" button, brief introductory text about the generator's benefits.

* Action: Clicking "Create New Handbook" initiates the guided workflow.

  1. Step 1: Company Information:

* Layout: Form-based.

* Elements:

* Input fields for Company Name (required), Address, Website, Mission, Vision, Values.

* Logo Upload area (drag & drop or click to upload), with preview.

* "Next" and "Cancel" buttons.

* Progress indicator at the top.

* Action: User inputs company details, uploads logo, proceeds to the next step.

  1. Step 2: Select Handbook Sections:

* Layout: List of checkboxes with section titles and brief descriptions.

* Elements:

* Main categories (e.g., "Company Policies," "Benefits," "Leave Policies") with expandable/collapsible sub-sections.

* Checkboxes for each individual policy/section.

* "Select All" / "Deselect All" options.

* "Next," "Previous," and "Save Draft" buttons.

* Progress indicator.

* Action: User selects the desired sections for their handbook.

  1. Step 3: Customize Sections (Iterative Screen):

* Layout: Main content area for the rich text editor, sidebar for section navigation.

* Elements:

* Sidebar Navigation: List of selected sections, with the current active section highlighted. Allows jumping between sections.

* Content Area:

* Section Title (e.g., "Company Policies: Anti-Harassment & Discrimination").

* Rich Text Editor pre-populated with boilerplate text.

* Placeholders clearly marked (e.g., [Company Name], [State Law]).

* Tooltips/info icons next to complex terms or required fields.

* Option to "Add Custom Content" or "Reset to Default."

* "Next," "Previous," and "Save Draft" buttons.

* Progress indicator.

* Action: User reviews and customizes the content for each selected section.

  1. Step 4: Review & Generate:

* Layout: Full-page preview of the handbook, with options for output.

* Elements:

* Handbook Preview: Scrollable, interactive preview of the complete handbook content.

* Review Options: "Edit Section" button next to each section in the preview, linking back to Step 3.

* Output Options: Radio buttons or dropdown for "Download as PDF," "Download as DOCX."

* "Generate & Download" button.

* "Previous" and "Save Draft" buttons.

* Progress indicator.

* Action: User performs a final review, selects output format, and generates the handbook.

5. Color Palettes

The color palette will be professional, trustworthy, and accessible, reflecting a corporate yet user-friendly aesthetic.

  • Primary Brand Colors:

* Dark Blue/Navy (#003366): Represents professionalism, stability, trust. Used for headers, primary buttons, and important accents.

* Light Blue/Teal (#4CAF50): Represents freshness, clarity, and guidance. Used for secondary buttons, active states, and progress indicators. (Considered using a green for positive action, but sticking to blue family for consistency and trust).

  • Neutral Palette:

* White (#FFFFFF): Backgrounds, content areas.

* Light Gray (#F5F5F5): Section dividers, inactive states, subtle backgrounds.

* Medium Gray (#CCCCCC): Borders, secondary text, placeholder text.

* Dark Gray (#333333): Body text for readability.

  • Accent Colors:

* Success Green (#4CAF50): For success messages, positive feedback.

* Warning Yellow (#FFC107): For warnings, important notices.

* Error Red (#F44336): For error messages, required field indicators.

Color Accessibility: All color combinations will be tested to ensure a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text, adhering to WCAG 2.1 AA guidelines.

6. Detailed Design Specifications

  • Typography:

* Primary Font (Headings): Montserrat (sans-serif, modern, professional).

* Secondary Font (Body Text): Open Sans (sans-serif, highly readable, widely available).

* Font Sizes:

* H1: 2.5rem (40px)

* H2: 1.8rem (28px)

* H3: 1.4rem (22px)

* Body Text: 1rem (16px)

* Small Text/Captions: 0.875rem (14px)

  • Spacing:

* Consistent use of a 8px grid system for margins, padding, and component spacing.

* Line height for body text: 1.5 to 1.6 for optimal readability.

  • Input Fields:

* Clean, minimalistic design with clear labels above or to the left of the input field.

* Subtle borders, changing color on focus.

* Error states clearly indicated with red borders and error messages.

  • Buttons:

* Primary Button: Dark Blue/Navy background, white text, rounded corners (e.g., 4px border-radius).

* Secondary Button: White background, Dark Blue/Navy text, dark blue border.

* Ghost Button: Transparent background, Dark Blue/Navy text.

* Hover and active states for all buttons.

  • Icons:

* Consistent icon library (e.g., Font Awesome, Material Icons) for clarity (e.g., upload, help, edit, save).

  • Layout & Responsiveness:

* Fluid grid layout system (e.g., Flexbox or CSS Grid) to ensure adaptability.

* Breakpoints for desktop (>=1024px), tablet (768px-1023px), and mobile (<768px).

* Content should reflow and stack appropriately on smaller screens.

  • Animations/Transitions:

* Subtle, non-distracting animations for state changes (e.g., button hovers, form field focus, section transitions) to enhance user feedback without slowing down the experience.

This detailed analysis of requirements will serve as the foundational blueprint for the design and development phases of the Employee Handbook Generator, ensuring a robust, user-friendly, and comprehensive tool.

gemini Output

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

Welcome to the team at [Company Name]! We are thrilled to have you join us and look forward to your contributions. This Employee Handbook is designed to be your comprehensive guide to our company culture, policies, benefits, and expectations. It outlines the principles that govern our workplace and provides essential information to help you thrive in your role.

We believe that a clear understanding of our shared values and operational guidelines fosters a positive, productive, and respectful work environment for everyone. Please take the time to read this handbook thoroughly. If you have any questions, your manager or the HR department is always available to provide clarification.

Table of Contents

  1. Welcome Message from Leadership
  2. About [Company Name] & Our Culture
  3. General Employment Policies
  4. Compensation & Benefits Overview
  5. Code of Conduct & Ethics
  6. Leave Policies
  7. Workplace Procedures
  8. Compliance & Legal Information
  9. Acknowledgement of Receipt

1. Welcome Message from Leadership

A Message from [CEO/Founder's Name], CEO

"On behalf of the entire leadership team, I extend a warm welcome to you! We are excited to have you join [Company Name] and become a vital part of our mission to [State Company Mission/Vision].

At [Company Name], we are committed to [mention 2-3 core values, e.g., innovation, collaboration, customer satisfaction]. We believe that our success is built upon the talent, dedication, and diverse perspectives of our employees. This handbook serves as a foundational resource, outlining the values, policies, and benefits that define our workplace.

We encourage you to embrace our culture, contribute your unique talents, and help us continue to build an exceptional company. Your journey with us begins now, and we are here to support your growth and success every step of the way. Welcome aboard!"

Sincerely,

[CEO/Founder's Name]

CEO, [Company Name]


2. About [Company Name] & Our Culture

Our Story & Mission

[Company Name] was founded in [Year] with the vision to [briefly state founding vision]. Since then, we have grown into [describe current status, e.g., a leading innovator in X industry, a trusted provider of Y service]. Our mission is to [reiterate company mission statement, e.g., 'to empower our customers with cutting-edge solutions that simplify their lives and enhance their businesses.']

Our Vision

To be recognized as [describe aspirational vision, e.g., 'the most trusted and innovative partner in the [industry] sector, fostering a sustainable future for our employees, customers, and community.']

Our Core Values

Our values are the bedrock of our culture and guide our decisions and interactions. We are committed to:

  • [Value 1, e.g., Innovation]: Embracing creativity and continuous improvement to deliver groundbreaking solutions.
  • [Value 2, e.g., Integrity]: Acting with honesty, transparency, and ethical conduct in all we do.
  • [Value 3, e.g., Collaboration]: Fostering teamwork, respect, and open communication to achieve shared goals.
  • [Value 4, e.g., Customer Focus]: Prioritizing our customers' needs and striving to exceed their expectations.
  • [Value 5, e.g., Accountability]: Taking ownership of our actions, commitments, and results.
  • [Value 6, e.g., Diversity & Inclusion]: Valuing unique perspectives and creating an environment where everyone feels respected and belongs.

Our Commitment to Diversity, Equity, and Inclusion (DEI)

[Company Name] is dedicated to fostering a diverse, equitable, and inclusive workplace where every employee feels valued, respected, and empowered to contribute their best. We believe that diversity in backgrounds, experiences, and perspectives strengthens our team, fuels innovation, and drives our success. We are committed to creating an environment free from discrimination and bias, where all individuals have equal opportunities to thrive.


3. General Employment Policies

These policies are designed to ensure a fair, safe, and productive workplace for all employees.

3.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to a policy of equal employment opportunity for all qualified employees and applicants for employment without regard to race, color, religion, national origin, sex, age, marital status, sexual orientation, gender identity, genetic information, disability, veteran status, or any other characteristic protected by federal, state, or local law. This commitment applies to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

3.2 Anti-Harassment & Anti-Discrimination

[Company Name] maintains a strict policy prohibiting harassment and discrimination of any kind, including sexual harassment. We are committed to providing a work environment free of unwelcome conduct or words. This policy applies to all employees, contractors, vendors, and customers.

  • Prohibited Conduct: Includes 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.
  • Reporting Procedures: Any employee who experiences or witnesses harassment or discrimination should immediately report the incident to their manager, Human Resources, or any member of the leadership team. All complaints will be investigated promptly, thoroughly, and confidentially to the extent possible, and appropriate corrective action will be taken. Retaliation against anyone reporting or assisting in an investigation of harassment or discrimination is strictly prohibited.

3.3 Workplace Safety & Health

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

  • Responsibilities: All employees are responsible for adhering to safety guidelines, reporting hazards, and using personal protective equipment (PPE) when required.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and first aid locations. Details are posted throughout the office and reviewed during onboarding.
  • Accident Reporting: All work-related injuries, no matter how minor, must be reported to your manager and HR immediately.

3.4 Confidentiality & Data Security

Employees are entrusted with sensitive company information, client data, and intellectual property. Protecting this information is paramount.

  • Confidential Information: Includes, but is not limited to, trade secrets, financial data, marketing strategies, client lists, employee records, and proprietary software.
  • Obligation: Employees must not disclose, share, or use confidential information for any purpose other than authorized company business, both during and after employment.
  • Data Security: Adhere to all company guidelines regarding password protection, data storage, email usage, and the use of company-issued devices. Never share your login credentials.

3.5 Use of Company Property & Resources

Company property, including equipment, vehicles, software, and communication systems, is provided for business use.

  • Appropriate Use: Use company resources responsibly and only for authorized business purposes. Incidental personal use may be permitted if it does not interfere with work, incur costs, or violate other policies.
  • Monitoring: Employees should have no expectation of privacy when using company communication systems or devices. [Company Name] reserves the right to monitor usage of its systems and property.
  • Care & Return: Employees are responsible for the proper care and maintenance of company property. All company property must be returned upon termination of employment.

3.6 Dress Code

Our dress code is designed to promote a professional and comfortable work environment.

  • General Guidelines: Business casual attire is generally appropriate. This includes neat pants, skirts, dresses, blouses, shirts with collars, and professional footwear.
  • Client Meetings/Events: More formal business attire may be required for client-facing roles, external meetings, or special company events. Your manager will provide specific guidance.
  • Inappropriate Attire: Avoid excessively casual clothing (e.g., ripped jeans, flip-flops, athletic wear), revealing attire, or clothing with offensive slogans.

3.7 Drug-Free Workplace

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

  • Prohibition: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited.
  • Impairment: Employees must not be under the influence of illegal drugs or alcohol during working hours or while performing company duties.
  • Testing: [Company Name] reserves the right to conduct drug and alcohol testing where permitted by law.

3.8 Social Media Policy

This policy provides guidelines for appropriate use of social media, both personal and professional.

  • Professional Conduct: When identifying yourself as an employee of [Company Name] on social media, maintain professionalism and ensure your posts align with our values.
  • Confidentiality: Do not disclose confidential company information, trade secrets, or proprietary data on any social media platform.
  • Respectful Engagement: Do not post derogatory, discriminatory, harassing, or defamatory content about [Company Name], its employees, clients, or competitors.
  • Personal Use: While we respect your right to personal expression, remember that your online presence can reflect on the company. Exercise good judgment.

4. Compensation & Benefits Overview

[Company Name] is committed to providing a competitive compensation and benefits package designed to support your financial well-being, health, and work-life balance.

4.1 Pay Schedule

  • Pay Periods: Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday, the 15th and 30th of each month].
  • Payment Method: All employees are paid via direct deposit. Please ensure your banking information is up-to-date with HR.
  • Overtime: Non-exempt employees are eligible for overtime pay at one and a half times their regular rate for hours worked over 40 in a workweek, in accordance with federal and state laws. All overtime must be pre-approved by your manager.

4.2 Health & Wellness Benefits

  • Medical Insurance: Comprehensive medical plans are offered through [Provider Name(s)]. Eligibility begins [e.g., on the first day of the month following 30 days of employment]. Details on plan options, premiums, and enrollment are available from HR.
  • Dental Insurance: Dental coverage is available through [Provider Name(s)].
  • Vision Insurance: Vision coverage is available through [Provider Name(s)].
  • Employee Assistance Program (EAP): A confidential program offering resources for personal and work-related challenges, including counseling, financial advice, and legal consultation. Available to all employees and their families.

4.3 Retirement Plans

  • 401(k) Retirement Plan: [Company Name] offers a 401(k) plan to help you save for retirement.

* Eligibility: Employees are eligible to participate after [e.g., 90 days of employment, one year of service].

* Company Match: [Company Name] offers a [e.g., 50% match on employee contributions up to 6% of salary].

* Vesting Schedule: [Briefly explain vesting, e.g., 'Company contributions vest over X years, becoming 100% vested after Y years of service.']

* Enrollment: Information on enrollment and investment options is available from HR.

4.4 Other Benefits

  • Life Insurance: [Company Name] provides [e.g., basic life insurance coverage equal to one year's salary] at no cost to employees. Supplemental life insurance can be purchased.
  • Short-Term & Long-Term Disability: Coverage is provided to protect your income in case of illness or injury that prevents you from working.
  • Professional Development: We invest in our employees' growth through training programs, workshops, and tuition reimbursement opportunities. Discuss your development goals with your manager.
  • Employee Referral Program: Earn a bonus for referring qualified candidates who are hired and successfully complete their probationary period.

4.5 Performance Reviews & Salary Adjustments

  • Performance Reviews: Regular performance reviews are conducted [e.g., annually, semi-annually] to provide feedback, recognize achievements, and set goals.
  • Salary Adjustments: Salary adjustments are typically considered during annual performance reviews and are based on individual performance, market conditions, and company financial performance.

5. Code of Conduct & Ethics

Our Code of Conduct outlines the ethical principles and professional standards we expect from every employee. It reflects our commitment to integrity, respect, and responsibility.

5.1 Professionalism & Respect

  • Workplace Conduct: Treat colleagues, clients, vendors, and partners with courtesy, respect, and professionalism at all times.
  • Communication: Engage in open, honest, and constructive communication. Avoid gossip, derogatory remarks, or unprofessional language.
  • Teamwork: Collaborate effectively, support your colleagues, and contribute positively to team goals.

5.2 Conflict of Interest

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

  • Disclosure: Any potential conflict of interest must be immediately disclosed to your manager and HR for review.
  • Examples: This includes, but is not limited to, holding a significant financial interest in a competitor or vendor, accepting substantial gifts from business partners, or using company time or resources for personal gain.

5.3 Integrity & Honesty

  • Accuracy: Be truthful and accurate in all business dealings, records, and communications. Falsification of records, time sheets, or expense reports is strictly prohibited.
  • Ethical Decisions: Always act with integrity and make ethical decisions, even when faced with difficult choices.
  • Protection of Assets: Protect company assets from theft, waste, and misuse.

5.4 Reporting Misconduct

[Company Name] encourages a culture of transparency and accountability.

  • Obligation to Report: Employees have a responsibility to report any suspected violations of company policy, legal or ethical standards, or any fraudulent activity.
  • Reporting Channels: Reports can be made to your manager, Human Resources, or via our confidential [Whistleblower Hotline/Ethics Reporting System, if applicable].
  • Non-Retaliation: [Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a concern or participates in an investigation.

6. Leave Policies

[Company Name] offers various leave options to support employees through personal needs and life events.

6.1 Paid Time Off (PTO) / Vacation

  • Accrual: Employees begin accruing PTO from their first day of employment. [e.g., Full-time employees accrue X hours of PTO per pay period, equivalent to Y weeks per year].
  • Usage: PTO can be used for vacation, personal appointments, or other personal needs.
  • Requesting Leave: PTO requests should be submitted through [HR system, e.g., ADP, BambooHR] at least [e.g., two weeks] in advance, subject to manager approval and business needs.
  • Carryover/Payout: [State policy on PTO carryover to next year and/or payout upon termination, e.g., 'A maximum of X hours of PTO can be carried over to the next calendar year. Unused PTO is not paid out upon termination.']

6.2 Sick Leave

  • Accrual: Employees accrue [e.g., X hours of sick leave per pay period, up to a maximum of Y hours per year].
  • Usage: Sick leave is for personal illness, injury, or medical appointments, or to care for an immediate family member.
  • Reporting Absence: Notify your manager as soon as possible, ideally at least [e.g., two hours] before your scheduled start time, if you will be absent due to illness.
  • Medical Documentation: For absences exceeding [e.g., three consecutive days], a doctor's note may be required.

6.3 Holidays

[Company Name] observes the following paid holidays:

  • New Year's Day
  • Martin Luther King,
gemini Output

Employee Handbook: [Company Name]


Effective Date: [Date of Handbook Issuance/Last Revision]

Prepared For: All Employees of [Company Name]


Disclaimer: This Employee Handbook provides general information and guidelines about working at [Company Name]. It is not a contract of employment, expressed or implied, nor does it guarantee employment for any specific duration. [Company Name] reserves the right to modify, amend, or revoke any policies, procedures, or benefits described herein at its sole discretion, with or without notice, except as provided by law. This handbook supersedes all prior handbooks, policies, and practices, whether written or oral. Employees are responsible for familiarizing themselves with the contents of this handbook.

For legal accuracy and compliance, [Company Name] strongly recommends that this handbook be reviewed by legal counsel familiar with employment laws in your specific jurisdiction(s) before final implementation.


Table of Contents

  1. Welcome to [Company Name]

* 1.1 Welcome Message

* 1.2 Our Mission, Vision, and Values

* 1.3 Purpose of This Handbook

* 1.4 Employment-at-Will Statement

  1. About Your Employment

* 2.1 Equal Employment Opportunity (EEO)

* 2.2 Anti-Harassment and Anti-Discrimination Policy

* 2.3 Workplace Safety and Health

* 2.4 Drug-Free Workplace Policy

* 2.5 Background Checks and Pre-Employment Screening

* 2.6 Employment Classifications

* 2.7 Onboarding and Probationary Period

* 2.8 Performance Management and Reviews

* 2.9 Employee Records and Privacy

* 2.10 Resignation and Termination of Employment

  1. Compensation and Benefits

* 3.1 Compensation Philosophy

* 3.2 Pay Periods and Direct Deposit

* 3.3 Overtime Policy

* 3.4 Employee Benefits Overview

* 3.4.1 Health, Dental, and Vision Insurance

* 3.4.2 Life and Disability Insurance

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

* 3.4.4 Employee Assistance Program (EAP)

* 3.4.5 Workers' Compensation

* 3.5 Expense Reimbursement

  1. Time Off and Leave Policies

* 4.1 Paid Time Off (PTO)/Vacation

* 4.2 Sick Leave

* 4.3 Company Holidays

* 4.4 Bereavement Leave

* 4.5 Jury Duty Leave

* 4.6 Military Leave

* 4.7 Family and Medical Leave Act (FMLA)

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

  1. Workplace Conduct and Expectations (Code of Conduct)

* 5.1 Professionalism and Respect

* 5.2 Attendance and Punctuality

* 5.3 Dress Code

* 5.4 Conflict of Interest

* 5.5 Confidentiality and Data Security

* 5.6 Use of Company Property and Resources

* 5.6.1 Computers, Internet, and Email Usage

* 5.6.2 Telephones and Mobile Devices

* 5.6.3 Company Vehicles and Equipment

* 5.7 Social Media Policy

* 5.8 Workplace Violence Prevention

* 5.9 Guest and Visitor Policy

* 5.10 Smoking Policy

* 5.11 Alcohol and Substance Abuse

* 5.12 Reporting Misconduct and Concerns

  1. Training and Development

* 6.1 Learning and Development Opportunities

* 6.2 Performance Management and Coaching

  1. Compliance and Legal Considerations

* 7.1 Whistleblower Policy

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

* 7.3 Intellectual Property

* 7.4 Workplace Investigations

* 7.5 Disciplinary Action

* 7.6 Open Door Policy

  1. Handbook Acknowledgement Form

1. Welcome to [Company Name]

1.1 Welcome Message

Welcome to the team at [Company Name]! We are thrilled to have you join us and look forward to your contributions to our continued success. This handbook is designed to introduce you to our company culture, policies, procedures, and the benefits available to you as an employee. We believe that a clear understanding of these guidelines will help foster a positive, productive, and respectful work environment for everyone.

At [Company Name], we are committed to [mention 1-2 key company values, e.g., "innovation, collaboration, and customer satisfaction"]. We value our employees and strive to create a workplace where everyone feels valued, supported, and empowered to do their best work.

We encourage you to read this handbook carefully and refer to it whenever you have questions. If you require clarification on any policy, please do not hesitate to speak with your manager or the Human Resources Department.

Welcome aboard!

Sincerely,

The Leadership Team

[Company Name]

1.2 Our Mission, Vision, and Values

Our Mission: [Insert Company Mission Statement - e.g., "To revolutionize the [industry] sector by providing innovative, sustainable, and customer-centric solutions."]

Our Vision: [Insert Company Vision Statement - e.g., "To be the leading provider of [product/service] globally, recognized for our excellence, integrity, and positive impact on the community."]

Our Core Values:

  • [Value 1]: [Brief description of how this value guides actions - e.g., Integrity: We operate with honesty and transparency in all our dealings.]
  • [Value 2]: [Brief description - e.g., Innovation: We embrace creativity and continuous improvement to drive progress.]
  • [Value 3]: [Brief description - e.g., Collaboration: We foster teamwork and open communication to achieve shared goals.]
  • [Value 4]: [Brief description - e.g., Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.]
  • [Value 5]: [Brief description - e.g., Accountability: We take responsibility for our actions and commitments.]

1.3 Purpose of This Handbook

This Employee Handbook serves as a guide for all employees, outlining the policies, procedures, benefits, and expectations that govern employment at [Company Name]. Its purpose is to:

  • Provide a clear understanding of your rights and responsibilities as an employee.
  • Communicate the company's commitment to fair and consistent treatment for all.
  • Outline important information regarding compensation, benefits, and time off.
  • Define the standards of conduct and professionalism expected in our workplace.
  • Ensure compliance with applicable federal, state, and local employment laws.
  • Serve as a resource for frequently asked questions about employment at [Company Name].

1.4 Employment-at-Will Statement

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 employee, manager, or representative of [Company Name], other than the [President/CEO] in a formal written agreement signed by both the employee and the [President/CEO], has the authority to enter into any agreement for employment for a specified period of time or to make any agreement contrary to the at-will nature of employment. This "at-will" policy cannot be changed by any oral statement or by any statement in this handbook.


2. About Your Employment

2.1 Equal Employment Opportunity (EEO)

[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, childbirth, or related medical conditions), sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other characteristic protected by applicable federal, state, or local law. This commitment extends to all employment practices, including recruitment, selection, promotion, transfer, compensation, benefits, training, social and recreational programs, and termination.

2.2 Anti-Harassment and Anti-Discrimination Policy

[Company Name] is committed to providing a work environment free of unlawful harassment and discrimination. We strictly prohibit harassment or discrimination of any kind, including sexual harassment, based on any protected characteristic as defined in our EEO policy.

Prohibited Conduct: Harassment includes unwelcome conduct that is based on a protected characteristic and is severe or pervasive enough to create a hostile work environment or to alter the terms, conditions, or privileges of employment. This can include offensive jokes, slurs, epithets, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance. Sexual harassment includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical conduct of a sexual nature.

Reporting Procedure: If you believe you have been subjected to harassment or discrimination, or if you witness such behavior, you must report it immediately to your manager, the Human Resources Department, or [another designated contact, e.g., a senior leader]. All complaints will be investigated promptly, thoroughly, and confidentially to the extent possible. Retaliation against any employee who reports harassment or discrimination in good faith, or who cooperates in an investigation, is strictly prohibited and will result in disciplinary action, up to and including termination.

2.3 Workplace Safety and Health

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

Employee Responsibilities:

  • Familiarize yourself with and follow all safety policies and procedures.
  • Report any unsafe conditions, hazards, or equipment malfunctions immediately to your manager or [Safety Officer/HR].
  • Report all work-related injuries, illnesses, or near-misses, no matter how minor, to your manager and [HR/Safety Officer] as soon as possible, but no later than [24 hours].
  • Use all provided safety equipment correctly.
  • Participate in required safety training.

Company Responsibilities:

  • Provide a safe working environment free from recognized hazards.
  • Comply with all applicable safety and health regulations (e.g., OSHA).
  • Provide necessary safety training and equipment.
  • Investigate all reported incidents and take corrective action.

2.4 Drug-Free Workplace Policy

[Company Name] is committed to maintaining a drug-free and alcohol-free workplace to ensure the safety, health, and productivity of all employees. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited.

Policy Details:

  • Employees are prohibited from reporting to work or remaining at work while under the influence of illegal drugs or alcohol.
  • Employees are prohibited from using, possessing, selling, transferring, or purchasing illegal drugs or alcohol on company premises or while conducting company business.
  • Prescription and over-the-counter medications must be used only as prescribed or directed and must not impair an employee's ability to perform their job safely and effectively. Employees whose ability to perform their job safely is impaired by legal medication should notify their manager or HR.
  • [Company Name] reserves the right to conduct drug and alcohol testing under certain circumstances, including pre-employment, reasonable suspicion, post-accident, and random testing, where permitted by law.

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

2.5 Background Checks and Pre-Employment Screening

As part of our commitment to maintaining a safe and secure workplace and ensuring the integrity of our team, [Company Name] conducts pre-employment screening for all potential hires, which may include criminal background checks, employment verification, education verification, and reference checks, consistent with applicable laws. Employment offers are contingent upon the successful completion of these screenings.

2.6 Employment Classifications

Employees are classified based on their job duties, hours worked, and exempt or non-exempt status under the Fair Labor Standards Act (FLSA). These classifications affect eligibility for certain benefits and overtime pay.

  • Full-Time: Employees regularly scheduled to work [e.g., 40] hours per week. Eligible for full company benefits.
  • Part-Time: Employees regularly scheduled to work less than [e.g., 40] hours per week. May be eligible for prorated benefits or statutory benefits as required by law.
  • Temporary/Contract: Employees hired for a specific project or limited duration. Eligibility for benefits will be outlined in their employment agreement.
  • Exempt (Salaried): Employees who meet specific FLSA criteria and are exempt from overtime pay. Paid a fixed salary regardless of hours worked.
  • Non-Exempt (Hourly): Employees who are subject to FLSA minimum wage and overtime provisions. Paid an hourly wage and are eligible for overtime pay for hours worked over [e.g., 40] in a workweek.

Your employment classification will be communicated to you upon hire.

2.7 Onboarding and Probationary Period

Onboarding: New employees will undergo an onboarding process designed to help them integrate into [Company Name] culture, understand their roles, and learn necessary procedures. This includes orientation, training, and introductions to team members.

Probationary Period: All new employees are subject to a probationary period of [e.g., 90] calendar days from their date of hire. This period allows both the employee and the company to assess the suitability of the employment relationship. During the probationary period, employees are expected to demonstrate satisfactory performance and adherence to company policies. While employees are eligible for certain benefits during this period, others may begin after its successful completion. The at-will nature of employment remains in effect during and after the probationary period.

2.8 Performance Management and Reviews

[Company Name] is committed to fostering continuous growth and development. Our performance management process includes regular feedback, coaching, and formal performance reviews.

Performance Reviews: Formal performance reviews are typically conducted [e.g., annually] to discuss an employee's performance, achievements, areas for development, and career goals. These reviews provide an opportunity for managers and employees to align on expectations and plan for future success.

Feedback and Coaching: Managers are expected to provide ongoing feedback and coaching to employees to support their development and address performance issues in a timely manner.

2.9 Employee Records and Privacy

[Company Name] maintains employee records in accordance with legal requirements and ensures their confidentiality.

Access to Records: Employees may review their personnel file by submitting a written request to the Human Resources Department. Such reviews will be conducted in the presence of an HR representative.

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