Employee Handbook Generator
Run ID: 69cbbbdb61b1021a29a8bcfb2026-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

This document outlines the comprehensive requirements analysis for generating a professional and effective Employee Handbook. It covers the core content, design specifications, wireframe descriptions, color palette recommendations, and user experience (UX) considerations to ensure the final deliverable is detailed, user-friendly, and compliant.


1. Comprehensive Content Requirements Analysis

The Employee Handbook will be structured to cover all essential aspects of employment, company policies, and expectations. Each section will be clearly defined and contain specific, actionable information.

  • 1.1. Introduction & Welcome

* Welcome message from leadership.

* Company Mission, Vision, and Values.

* Brief Company History and Culture.

* Purpose of the Handbook (e.g., guide, not a contract).

* "At-Will" Employment Statement (if applicable).

* Equal Employment Opportunity (EEO) Statement.

  • 1.2. Employment Basics

* Recruitment and Hiring Process.

* New Hire Onboarding & Orientation.

* Employment Classifications (Full-time, Part-time, Temporary, Contractor).

* Probationary/Introductory Period.

* Employee Records and Privacy.

* Background Checks.

  • 1.3. Workplace Policies & Conduct

* Attendance & Punctuality: Expectations, reporting absences, tardiness.

* Work Schedule & Hours: Standard hours, breaks, overtime policy.

* Dress Code: Professional appearance guidelines.

* Workplace Safety: Health and safety protocols, emergency procedures, accident reporting.

* Anti-Harassment & Anti-Discrimination: Policy statement, reporting procedures, non-retaliation.

* Workplace Violence Prevention: Policy, reporting.

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

* Confidentiality & Non-Disclosure: Company information, client data, trade secrets.

* Code of Conduct & Ethics: Professionalism, integrity, conflict of interest.

* IT & Communications: Acceptable use of company equipment, internet, email, social media policy.

* Data Security & Privacy: Employee data, company data protection.

* Remote Work/Hybrid Policy: Eligibility, expectations, equipment, security (if applicable).

* Smoking Policy: Designated areas.

* Visitors in the Workplace.

  • 1.4. Compensation & Benefits

* Pay Periods & Methods: Payroll schedule, direct deposit.

* Overtime Compensation: Eligibility, authorization.

* Performance Reviews: Process, frequency.

* Benefits Overview:

* Health, Dental, Vision Insurance.

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

* Life Insurance, Disability Insurance.

* Employee Assistance Programs (EAP).

* Other Perks (e.g., wellness programs, tuition reimbursement).

  • 1.5. Leave Policies

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

* Vacation Leave: Accrual, request process, payout on termination (if applicable).

* Sick Leave: Accrual, usage, documentation.

* Holidays: Company-observed holidays, holiday pay.

* Family and Medical Leave Act (FMLA): Eligibility, process, state-specific leaves.

* Bereavement Leave.

* Jury Duty Leave.

* Military Leave.

* Other Leaves: (e.g., voting leave, volunteer leave).

  • 1.6. Performance Management & Disciplinary Action

* Performance Expectations.

* Performance Improvement Plans (PIPs).

* Disciplinary Process: Progressive discipline steps.

* Grievance Procedure: How to raise concerns.

  • 1.7. Separation of Employment

* Resignation Procedures.

* Termination of Employment (voluntary/involuntary).

* Exit Interviews.

* Return of Company Property.

* Final Paycheck & Benefits Continuation (e.g., COBRA).

  • 1.8. Legal & Compliance Disclaimers

* Handbook is not a contract.

* Company's right to modify policies.

* Acknowledgement of Receipt Form (mandatory for employee signature).

  • 1.9. Contact Information

* Key departmental contacts (HR, IT, Payroll).


2. Detailed Design Specifications

The handbook's design will prioritize clarity, professionalism, and ease of navigation, reflecting the company's brand identity.

  • 2.1. Overall Tone & Aesthetic:

* Professional & Authoritative: Instill confidence and seriousness.

* Approachable & User-Friendly: Avoid overly legalistic language where possible; ensure readability.

* Clean & Modern: Minimalistic design with ample white space.

  • 2.2. Layout & Structure:

* Consistent Grid System: Maintain uniform margins, padding, and element alignment throughout.

* Clear Hierarchy: Use distinct visual cues (font size, weight, color) for headings, subheadings, and body text.

* Ample White Space: Improve readability and reduce cognitive load.

* Section Dividers: Visually separate major sections with subtle lines, color blocks, or dedicated introductory pages.

* Headers & Footers: Consistent company logo, page numbers, and effective date.

  • 2.3. Typography:

* Heading Fonts (Sans-serif):

* Primary: Montserrat, Open Sans, or Lato (bold, clean, modern).

* Sizes: H1 (24-28pt), H2 (20-22pt), H3 (16-18pt).

* Body Text Font (Serif or Highly Readable Sans-serif):

* Primary: Merriweather, Georgia (for serif readability) or Open Sans, Lato, Noto Sans (for sans-serif clarity).

* Size: 11-12pt.

* Line Spacing: 1.5x for optimal readability.

* Accents/Captions: A lighter weight of the body font or a slightly smaller size.

  • 2.4. Imagery & Icons:

* Company Logo: Prominently displayed on the cover, section headers, and footers.

* Minimalist Icons: Use a consistent set of professional, line-art icons to visually represent sections (e.g., a clock for attendance, a shield for safety, a dollar sign for compensation). Icons should be subtle and enhance navigation, not distract.

* Illustrations (Optional): If desired, use a consistent style of custom, branded illustrations sparsely to break up text and convey concepts (e.g., teamwork, growth). Avoid generic stock photos.

  • 2.5. Branding Integration:

* Color Palette: Strictly adhere to the company's established brand colors (see Section 4).

* Logo Usage: Consistent placement and size.

* Tone of Voice: Maintain the company's communication style (e.g., formal, friendly but professional).


3. Wireframe Descriptions (Digital/Print Hybrid Approach)

The handbook will be designed for both digital consumption (web-based, PDF) and print, with key structural elements consistent across formats.

  • 3.1. Cover Page:

* Elements: Prominent Company Logo (top center/left), Handbook Title ("Employee Handbook"), Effective Date (e.g., "Effective [Month Year]"), Version Number (e.g., "Version 2.1").

* Layout: Clean, professional, possibly a subtle background texture or brand pattern.

  • 3.2. Table of Contents (TOC):

* Elements: Clearly numbered sections and subsections with corresponding page numbers. For digital, these will be clickable links.

* Layout: Hierarchical structure, easy to scan. Sticky/fixed for digital versions for constant access.

  • 3.3. Section Introduction Page:

* Elements: Large Section Title (e.g., "3. Workplace Policies"), brief introductory paragraph summarizing the section's content, a relevant, subtle icon.

* Layout: Full-page or half-page dedicated to introducing a major section.

  • 3.4. Policy Detail Page (Standard Content Page):

* Elements:

* Policy Title: (e.g., "3.1. Attendance & Punctuality") - H2.

* Effective Date/Last Updated: (e.g., "Last Updated: [Date]") - small text below title.

* Policy Statement: Concise summary of the policy's purpose.

* Detailed Guidelines/Procedures: Bullet points, numbered lists, and paragraphs for specific rules, examples, and processes.

* "See Also" / Related Policies: Internal links to other relevant sections.

* FAQs (Optional): Accordion-style for digital, simple Q&A for print.

* Layout: Two-column layout for easy readability or single column with generous margins. Use of bolding for key terms.

  • 3.5. Acknowledgement Form Page:

* Elements: Clear statement confirming employee's receipt, understanding, and agreement to abide by the handbook. Space for Employee Name (Print), Employee Signature, Date, Employee ID.

* Layout: Simple, clear, and legally compliant.


4. Color Palettes

The color palette will be derived from the company's brand guidelines, prioritizing professionalism and readability.

  • 4.1. Primary Brand Colors:

* Main Accent Color: (e.g., Deep Corporate Blue #003366) - Used for major headings, important accents, company logo.

* Secondary Accent Color: (e.g., Lighter Corporate Blue #ADD8E6 or a complementary Green/Orange) - Used for subheadings, icons, call-out boxes, or subtle background elements.

  • 4.2. Neutral Palette:

* Background: White (#FFFFFF) for main content areas to maximize readability.

* Text: Dark Grey (#333333) or Black (#000000) for body text for optimal contrast.

* Subtle Background/Dividers: Light Grey (#F0F0F0 or #E0E0E0) for section backgrounds, borders, or alternating row colors in tables.

  • 4.3. Accessibility Considerations:

* Ensure a minimum contrast ratio of 4.5:1 for all text against its background, as per WCAG 2.1 guidelines.

* Avoid using color alone to convey information; always supplement with text or icons.


5. User Experience (UX) Recommendations

The handbook will be designed for maximum usability and accessibility, whether in digital or print format.

  • 5.1. Navigation & Search (Digital):

* Sticky Table of Contents/Sidebar Navigation: Always visible for quick jumping between sections.

* Powerful Search Functionality: Allow users to quickly find specific policies or keywords.

* Breadcrumbs: Indicate the user's current location within the handbook hierarchy.

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

  • 5.2. Readability & Comprehension:

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

* Concise Language: Get straight to the point without excessive verbosity.

* Bullet Points & Numbered Lists: Break down complex information into digestible chunks.

* Clear Headings & Subheadings: Guide the reader through content.

* Consistent Terminology: Use the same terms for policies and concepts throughout.

  • 5.3. Accessibility (WCAG Compliance):

* Semantic HTML Structure: Use proper heading tags (H1, H2, etc.) for screen readers.

* Alt Text for Images/Icons: Describe visual content for visually impaired users.

* Keyboard Navigation: Ensure all interactive elements are navigable via keyboard.

* Adjustable Text Size: Allow users to scale font sizes without breaking the layout.

* High Contrast: Adhere to color contrast guidelines.

  • 5.4. Version Control & Updates:

* Clear Effective Date: Prominently display the handbook's effective date and last updated date on the cover and in the footer.

* Version History Log (Optional): A dedicated section

gemini Output

Employee Handbook: [Your Company Name]

Welcome to [Your Company Name]!

[Headline] Welcome Aboard: Charting Our Future Together!

[Body Text]

On behalf of the entire team, we extend a warm welcome to you as the newest member of [Your Company Name]! We are thrilled to have you join our growing family and look forward to the unique contributions you will bring. This Employee Handbook is your essential guide to understanding our company culture, values, policies, and benefits. It's designed to provide clarity, answer common questions, and ensure a smooth and productive journey with us.

At [Your Company Name], we believe that our success is directly tied to the talent, dedication, and well-being of our employees. We are committed to fostering an inclusive, respectful, and dynamic work environment where everyone can thrive, innovate, and achieve their full potential.

Please take the time to read through this handbook carefully. It outlines the expectations we have for each other, the resources available to you, and the principles that guide our daily operations. While this handbook covers many important aspects of your employment, it cannot anticipate every situation. We encourage you to speak with your manager or the HR department if you have any questions or require further clarification.

Welcome again! We are excited about what we will accomplish together.

[Call to Action]

Familiarize yourself with these guidelines to ensure a successful and rewarding experience at [Your Company Name].


Our Mission, Vision, and Values

[Headline] Our Foundation: Guiding Principles for Collective Success

[Body Text]

Our mission, vision, and values are the bedrock of [Your Company Name]. They define who we are, what we strive for, and how we interact with each other, our customers, and our community.

  • Our Mission: [Insert Your Company's Mission Statement Here - e.g., To innovate sustainable solutions that empower businesses to achieve unparalleled efficiency and growth.]
  • Our Vision: [Insert Your Company's Vision Statement Here - e.g., To be the global leader in transformative technology, recognized for our commitment to excellence, integrity, and positive impact.]
  • Our Core Values:

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

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

* Collaboration: We foster teamwork, mutual respect, and open communication to achieve shared goals.

* Excellence: We strive for the highest standards in everything we do, delivering quality and exceeding expectations.

* Accountability: We take ownership of our actions, commitments, and results.

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

* Diversity & Inclusion: We value unique perspectives and create an environment where everyone feels respected and belongs.

[Call to Action]

Embrace these guiding principles as you contribute to our collective journey and success.


Section 1: Company Policies

[Headline] Setting the Standard: Our Operational Guidelines

[Body Text]

These policies are designed to ensure a fair, productive, and safe work environment for everyone at [Your Company Name]. Adherence to these guidelines is expected from all employees.

1.1 Equal Employment Opportunity (EEO) and Anti-Discrimination

[Body Text]

[Your 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, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other characteristic protected by applicable law. All employment decisions are based on qualifications, merit, and business needs.

1.2 Workplace Harassment Prevention

[Body Text]

We are committed to maintaining a workplace free from all forms of harassment, including sexual harassment. Harassment is unwelcome conduct based on a protected characteristic. This policy applies to all employees, vendors, and clients. Any employee who believes they have been subjected to harassment, or has witnessed harassment, should report it immediately to their manager or HR. All complaints 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.

1.3 Workplace Health and Safety

[Body Text]

The health and safety of our employees is paramount. [Your Company Name] is committed to providing a safe and healthy work environment and complying with all applicable health and safety regulations.

  • Employee Responsibilities: All employees are responsible for following safety procedures, reporting hazards, and using personal protective equipment (PPE) when required.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire alarms, and evacuation plans. Information is posted throughout the office.
  • Accident Reporting: All work-related injuries, illnesses, or near-misses, no matter how minor, must be reported to your manager and HR immediately.

1.4 Workplace Conduct and Professionalism

[Body Text]

We expect all employees to conduct themselves professionally and respectfully at all times, both internally and externally. This includes:

  • Respectful Communication: Engage in constructive and polite communication.
  • Teamwork: Collaborate effectively and support colleagues.
  • Conflict Resolution: Address disagreements professionally and seek resolution.
  • Dress Code: Maintain a professional appearance appropriate for your role and the work environment. [Specify general dress code – e.g., Business casual, smart casual, professional attire. Detail any specific requirements or restrictions.]

1.5 Confidentiality and Data Security

[Body Text]

Confidentiality is critical to our business and the trust we build with our clients. Employees must protect all proprietary, sensitive, and confidential information belonging to [Your Company Name], its clients, and its employees.

  • Confidential Information: Includes trade secrets, financial data, client lists, employee records, product designs, marketing strategies, and unreleased company information.
  • Data Security: Adhere to all company policies regarding password protection, secure document storage, use of company equipment, and handling of sensitive data. Do not share confidential information with unauthorized individuals or external parties.

1.6 Use of Company Property and Resources

[Body Text]

Company property, including computers, software, networks, phones, and vehicles, are provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, incur significant costs, or violate other company policies.

  • Monitoring: Employees should have no expectation of privacy when using company resources. [Your Company Name] reserves the right to monitor employee use of company property and systems.
  • Prohibited Use: Company resources must not be used for illegal activities, transmitting offensive material, or for personal gain outside of company business.

1.7 Attendance and Punctuality

[Body Text]

Regular attendance and punctuality are essential for the smooth operation of our business and for teamwork.

  • Work Schedule: Adhere to your assigned work schedule.
  • Absence/Tardiness: If you will be late or absent, you must notify your manager as early as possible, ideally before your scheduled start time, following established departmental procedures.
  • Excessive Absences: Excessive or unexplained absences may result in disciplinary action.

1.8 Remote Work Policy (If Applicable)

[Body Text]

[Your Company Name] may offer remote work opportunities for eligible positions.

  • Eligibility: Determined by role, performance, and manager approval.
  • Expectations: Remote employees are expected to maintain productivity, communication, and adherence to all company policies as if they were in the office.
  • Equipment: Company-provided equipment must be used for remote work; personal equipment may be used with IT approval and security measures.
  • Communication: Regular check-ins and responsiveness are crucial.

[Call to Action]

Review these policies regularly and consult HR for any clarifications. Your adherence ensures a fair and productive environment for all.


Section 2: Benefits Overview

[Headline] Investing in You: Our Comprehensive Benefits Program

[Body Text]

[Your Company Name] is committed to supporting the well-being and financial security of our employees and their families. We offer a competitive and comprehensive benefits package designed to meet diverse needs. Eligibility for specific benefits may depend on employment status (full-time, part-time) and length of service.

2.1 Health and Wellness Benefits

  • Medical Insurance: [Briefly describe - e.g., Comprehensive medical coverage through [Provider Name] with multiple plan options (HMO/PPO), including prescription drug coverage.]
  • Dental Insurance: [Briefly describe - e.g., Coverage for preventative, basic, and major dental services.]
  • Vision Insurance: [Briefly describe - e.g., Coverage for eye exams, glasses, and contact lenses.]
  • Wellness Programs: [If applicable - e.g., Access to wellness challenges, discounted gym memberships, Employee Assistance Program (EAP) offering confidential counseling and resources for personal and work-related issues.]

2.2 Financial Benefits

  • Retirement Plan (e.g., 401(k)): [Briefly describe - e.g., A 401(k) plan with company matching contributions (e.g., 100% match on the first 3% of salary, 50% on the next 2%).]
  • Life Insurance: [Briefly describe - e.g., Company-paid basic life insurance; option to purchase supplemental coverage.]
  • Disability Insurance: [Briefly describe - e.g., Short-term and long-term disability insurance to provide income protection during extended illness or injury.]
  • Flexible Spending Accounts (FSAs) / Health Savings Accounts (HSAs): [Briefly describe - e.g., Pre-tax accounts for healthcare and dependent care expenses.]

2.3 Professional Development and Growth

  • Training and Development: [Briefly describe - e.g., Opportunities for internal training, workshops, and access to online learning platforms.]
  • Tuition Reimbursement: [If applicable - e.g., Financial assistance for eligible employees pursuing job-related higher education or certifications.]
  • Performance Reviews: Regular performance discussions and goal setting to support career growth.

2.4 Other Perks and Benefits

  • Employee Referral Program: [Briefly describe - e.g., Monetary bonus for referring qualified candidates who are hired.]
  • Company Discounts: [If applicable - e.g., Access to discounts on products/services from partner companies.]
  • Social Events: [Briefly describe - e.g., Company-sponsored events, holiday parties, and team-building activities.]

[Call to Action]

For detailed information on eligibility, enrollment, and specific plan documents, please contact the HR department. Make the most of these valuable resources!


Section 3: Code of Conduct

[Headline] Upholding Our Values: A Commitment to Ethical Behavior

[Body Text]

Our Code of Conduct outlines the ethical principles and behavioral expectations that guide all employees of [Your Company Name]. Adherence to this Code is fundamental to maintaining our reputation, fostering a positive work environment, and ensuring fair and ethical operations.

3.1 Ethical Business Practices

  • Honesty and Integrity: Always act with truthfulness and uphold the highest standards of integrity in all business dealings.
  • Fair Dealing: Treat customers, suppliers, competitors, and colleagues fairly and honestly. Do not take unfair advantage through manipulation, concealment, abuse of privileged information, misrepresentation of material facts, or any other unfair-dealing practice.
  • Compliance with Laws: Adhere to all applicable local, state, federal, and international laws and regulations.

3.2 Conflict of Interest

[Body Text]

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

  • Disclosure: Any potential or actual conflict of interest must be disclosed immediately to your manager and HR.
  • Examples: This includes, but is not limited to, holding a significant financial interest in a competitor, supplier, or client; engaging in outside employment that interferes with company duties; or using company resources for personal gain.

3.3 Anti-Bribery and Corruption

[Body Text]

[Your Company Name] has zero tolerance for bribery and corruption. Employees must never offer, give, solicit, or accept bribes, kickbacks, or other improper payments or benefits to influence business decisions or gain an unfair advantage.

3.4 Gifts and Entertainment

[Body Text]

Employees should exercise good judgment regarding the acceptance or giving of gifts and entertainment.

  • Acceptance: Gifts of nominal value (e.g., under $[Amount]) or modest business entertainment may be accepted if they are not intended to influence a business decision and are consistent with customary business practices.
  • Prohibited: Never accept cash, lavish gifts, or anything that could be perceived as a bribe or quid pro quo.
  • Giving: Any gifts or entertainment provided by employees to external parties must be reasonable, compliant with company policy, and not intended to improperly influence a business decision.

3.5 Insider Trading

[Body Text]

Employees with access to material, non-public information about [Your Company Name] or any other company must not use that information to buy or sell securities, nor may they share this information with others who might use it for such purposes. This is illegal and strictly prohibited.

3.6 Social Media Policy

[Body Text]

While personal social media use is generally permitted, employees must exercise caution and good judgment.

  • Professionalism: Be mindful that your online activities can reflect on [Your Company Name]. Maintain professionalism and respect.
  • Confidentiality: Do not disclose confidential company information, trade secrets, or client data on social media.
  • Representing the Company: If you identify yourself as a [Your Company Name] employee online, ensure your statements are accurate and professional. If expressing personal opinions, clearly state they are your own and not those of the company.
  • Harassment/Defamation: Do not engage in online harassment, bullying, or defamation of colleagues, clients, or the company.

[Call to Action]

Your adherence to this Code of Conduct is vital for our collective integrity and success. If you encounter any ethical dilemmas, please speak up and report concerns to your manager or HR.


Section 4: Leave Policies

[Headline] Supporting Your Life: Our Comprehensive Leave Programs

[Body Text]

[Your Company Name] understands the importance of work-life balance and provides various leave options to support employees through personal needs, family responsibilities, and rest.

4.1 Paid Time Off (PTO) / Vacation Leave

[Body Text]

[Your Company Name] offers a generous PTO program that combines vacation, personal days, and sick leave into a single bank.

  • Accrual: PTO accrues based on hours worked and length of service. [Specify accrual rate - e.g., Employees accrue X hours per pay period, increasing after Y years of service.]
  • Usage: Employees must request PTO in advance through [System/Procedure - e.g., the HR portal] and obtain manager approval.
  • Maximum Accrual/Carryover: [Specify - e.g., A maximum of X hours can be accrued; Y hours may be carried over to the next year; unused PTO beyond Y hours may be forfeited or paid out upon termination according to state law.]

4.2 Sick Leave

[Body Text]

Sick leave is provided for an employee's own illness, injury, medical appointments, or to care for an immediate family member's illness or injury.

  • Usage: For unexpected illness, notify your manager as soon as possible. For planned appointments, request time off in advance.
  • Doctor's Note: [Specify - e.g., A doctor's note may be required for absences exceeding X consecutive days.]
  • Integration with PTO: [Clarify if sick leave is part of PTO or separate.]

4.3 Holidays

[Body Text]

[Your Company Name] observes the following paid holidays:

  • [List specific holidays - e.g., New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Day after Thanksgiving, Christmas Day, etc.]
  • Floating Holidays: [If applicable - e.g., Employees receive X floating holidays per year, to be used with manager approval.]
  • Working on a Holiday: [Specify policy - e.g., Employees required to work on a designated holiday will receive holiday pay plus regular wages, or compensatory time off.]

4.4 Family and Medical Leave Act (FMLA)

[Body Text]

Eligible employees may take up to 12 weeks of unpaid, job-protected leave per 12-month period for specific family and medical reasons, as defined by FMLA.

  • Eligibility: Employees must have worked for [Your Company Name] for at least 12 months and have worked 1,250 hours during the 12 months prior to the start of leave.
  • Reasons for Leave: Includes birth/adoption of a child, care for a spouse/child/parent with a serious health condition, or an employee's own serious health condition.
  • Notification: Employees must provide timely notice as required by FMLA. Contact HR for details and to initiate an FMLA request.

4.5 Bereavement Leave

[Body Text]

[Your Company Name] provides paid bereavement leave to allow employees time to grieve and attend to affairs following the death of an immediate family member.

  • Duration: [Specify - e.g., Up to X days for immediate family (spouse, child, parent, sibling); Y days for other close relatives.]
  • Notification: Notify your manager and HR as soon as possible.
gemini Output

The following is a comprehensive, detailed, and professional Employee Handbook for your organization. This document outlines key company policies, benefits, code of conduct, leave policies, and compliance information, designed to provide clarity and ensure a fair and productive work environment.


Employee Handbook

[Company Name]

[Company Address]

[Company Website]

Effective Date: [Date]


Table of Contents

  1. Welcome Message
  2. About [Company Name]

* Our Mission, Vision, and Values

* Company Culture

  1. Employment Basics

* Employment-at-Will

* Equal Employment Opportunity (EEO)

* Anti-Discrimination and Harassment Policy

* Workplace Violence Prevention

* Background Checks

* Immigration Law Compliance (I-9)

* Onboarding and Probationary Period

* Employee Classifications

* Employment Records

* Performance Management

* Termination of Employment

  1. Workplace Policies and Procedures

* Work Hours and Attendance

* Punctuality

* Breaks and Meal Periods

* Overtime Policy

* Remote Work Policy (if applicable)

* Dress Code

* Workplace Safety and Health

* Drug and Alcohol-Free Workplace

* Smoking Policy

* Company Property and Equipment Use

* Information Security and Confidentiality

* Internet, Email, and Social Media Use

* Privacy Policy

* Solicitation and Distribution

* Visitors in the Workplace

* Emergency Procedures

  1. Compensation and Benefits Overview

* Pay Periods and Direct Deposit

* Wage Deductions

* Performance Reviews and Salary Adjustments

* Health, Dental, and Vision Insurance

* Life and Disability Insurance

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

* Employee Assistance Program (EAP)

* Workers' Compensation

* Other Benefits

  1. Leave Policies

* Paid Time Off (PTO) / Vacation

* Sick Leave

* Company Holidays

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Family and Medical Leave Act (FMLA)

* Other Leaves

  1. Code of Conduct and Ethics

* Ethical Business Practices

* Conflict of Interest

* Confidentiality and Proprietary Information

* Data Privacy

* Anti-Bribery and Anti-Corruption

* Reporting Unethical Behavior (Whistleblower Protection)

* Grievance Procedure / Open Door Policy

  1. Compliance and Legal Disclaimers

* Handbook is Not a Contract

* Right to Modify Policy

* Federal and State Law Compliance

* Americans with Disabilities Act (ADA)

* Fair Labor Standards Act (FLSA)

* Occupational Safety and Health Act (OSHA)

* Title VII of the Civil Rights Act

  1. Acknowledgement of Receipt

1. Welcome Message

Welcome to [Company Name]!

On behalf of the entire team, we are thrilled to have you join us. This handbook has been prepared to introduce you to our company culture, policies, and procedures, and to help you understand what you can expect as an employee of [Company Name]. It outlines our expectations of you, as well as the benefits and opportunities available to you.

We believe that our success is built upon the talent, dedication, and enthusiasm of our employees. We are committed to fostering a positive, inclusive, and productive work environment where everyone can thrive. We encourage you to read this handbook carefully and refer to it as a resource throughout your employment.

Should you have any questions, please do not hesitate to speak with your manager or the Human Resources department.

Welcome aboard! We look forward to a successful future together.

Sincerely,

The Leadership Team at [Company Name]

2. About [Company Name]

Our Mission, Vision, and Values

Our Mission:

[Insert Company Mission Statement - e.g., "To innovate and deliver exceptional [products/services] that empower our customers and enrich their lives, while fostering a sustainable and ethical business."]

Our Vision:

[Insert Company Vision Statement - e.g., "To be the leading provider of [industry/service] recognized for our quality, integrity, and commitment to our community."]

Our Values:

At [Company Name], we are guided by the following core values, which define who we are and how we operate:

  • Integrity: We uphold the highest standards of honesty and ethical conduct in all our actions.
  • Innovation: We embrace creativity and constantly seek new and better ways to solve challenges.
  • Collaboration: We believe in the power of teamwork and mutual respect to achieve shared goals.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Accountability: We take responsibility for our actions and commitments.
  • Diversity & Inclusion: We value and respect the unique perspectives and contributions of every individual.

Company Culture

[Company Name] is committed to creating a dynamic, supportive, and engaging workplace. We foster a culture that encourages open communication, continuous learning, and mutual respect. We believe in celebrating successes, learning from challenges, and supporting each other as we grow both individually and as a company. We strive to maintain an environment where all employees feel valued, heard, and empowered to contribute their best.

3. Employment Basics

Employment-at-Will

Employment with [Company Name] is "at-will." This means that either you or the company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable federal and state laws. Nothing in this handbook is intended to create a contract of employment, express or implied, or to guarantee employment for any definite term.

Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free from discrimination and harassment. All employment decisions, including those related to hiring, promotion, compensation, benefits, and termination, are made without regard to race, color, religion, sex (including pregnancy, childbirth, or related medical conditions), national origin, age, disability, genetic information, military status, sexual orientation, gender identity or expression, or any other characteristic protected by applicable federal, state, or local law.

Anti-Discrimination and Harassment Policy

[Company Name] strictly prohibits discrimination and harassment of any kind, including sexual harassment. This policy applies to all employees, applicants, customers, vendors, and visitors. Harassment includes unwelcome conduct that is based on any protected characteristic and creates a hostile, intimidating, or offensive work environment.

Any employee who believes they have been subjected to or witnessed discrimination or harassment should immediately report the incident to their manager, Human Resources, or any member of management. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken. Retaliation against any employee for making a good faith complaint or participating in an investigation is strictly prohibited.

Workplace Violence Prevention

[Company Name] is committed to providing a safe and secure workplace. Acts or threats of violence, intimidation, harassment, or aggression by or against any employee, customer, or visitor will not be tolerated. This includes verbal threats, physical assaults, property damage, and the display of weapons. Any employee who observes or experiences any form of workplace violence or threat should immediately report it to their manager or Human Resources.

Background Checks

[Company Name] may conduct background checks, including criminal history, employment verification, and educational verification, as a condition of employment or at any time during employment, in accordance with applicable laws.

Immigration Law Compliance (I-9)

In compliance with federal law, [Company Name] requires all new hires to complete Section 1 of the Form I-9 (Employment Eligibility Verification) on their first day of employment. Within three business days of their start date, employees must present original documents that establish their identity and employment eligibility. Failure to do so will result in termination of employment.

Onboarding and Probationary Period

New employees typically undergo an onboarding process to help them integrate into the company. A probationary period of [e.g., 90 days] from the date of hire is generally observed. During this period, both the employee and the company can assess the suitability of the employment relationship. Successful completion of the probationary period does not guarantee continued employment.

Employee Classifications

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

  • Full-Time: Employees who regularly work [e.g., 40] hours per week.
  • Part-Time: Employees who regularly work fewer than [e.g., 40] hours per week.
  • Exempt: Employees whose positions meet specific legal criteria and are exempt from federal and state overtime pay regulations.
  • Non-Exempt: Employees who are eligible for overtime pay for hours worked over [e.g., 40] in a workweek, in accordance with the Fair Labor Standards Act (FLSA).

Employment Records

It is the employee's responsibility to notify Human Resources promptly of any changes to personal information, including:

  • Name, address, phone number
  • Emergency contact information
  • Marital status
  • Number of dependents
  • Beneficiary designations for benefits

Maintaining accurate records ensures proper communication and benefits administration.

Performance Management

[Company Name] is committed to fostering employee growth and development. We utilize a performance management system that includes:

  • Regular Feedback: Ongoing communication between employees and managers regarding performance.
  • Performance Reviews: Formal reviews conducted [e.g., annually] to assess performance, discuss goals, and identify areas for development.
  • Performance Improvement Plans (PIPs): If an employee's performance falls below expectations, a PIP may be implemented to provide a structured approach for improvement.

Termination of Employment

Employment may be terminated by either the employee or [Company Name]. Reasons for termination may include, but are not limited to:

  • Voluntary Resignation: Employees are requested to provide at least two weeks' written notice.
  • Involuntary Termination: May occur due to performance issues, policy violations, restructuring, or other business reasons.
  • Layoff: Due to economic conditions or business needs.

Upon termination, employees will receive their final paycheck, including any accrued but unused vacation time, in accordance with state law. Information regarding benefits continuation (e.g., COBRA) will be provided by Human Resources.

4. Workplace Policies and Procedures

Work Hours and Attendance

Our standard work hours are [e.g., Monday through Friday, 9:00 AM to 5:00 PM]. Specific work schedules may vary by department or role. Employees are expected to adhere to their assigned schedules. Consistent and punctual attendance is essential for the efficient operation of the company. If you are unable to come to work or will be late, you must notify your manager as soon as possible, preferably before your scheduled start time.

Punctuality

Employees are expected to be at their workstations and ready to begin work at their scheduled start time. Frequent tardiness is disruptive and may lead to disciplinary action.

Breaks and Meal Periods

Non-exempt employees are provided with a [e.g., 30-minute] unpaid meal break for shifts over [e.g., 5] hours, and paid [e.g., 15-minute] rest breaks for every [e.g., 4] hours worked, in accordance with state and federal laws. Exempt employees are encouraged to take reasonable breaks as needed to maintain productivity. Specific break schedules should be coordinated with your manager.

Overtime Policy

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

Remote Work Policy (if applicable)

[Company Name] may offer remote work opportunities for eligible positions, subject to manager approval and business needs. Employees working remotely are expected to maintain the same level of productivity, professionalism, and adherence to company policies as in-office employees. Specific guidelines for remote work, including equipment, communication, and security, will be provided separately.

Dress Code

[Company Name] expects employees to present a professional image appropriate for our workplace environment. Our dress code is [e.g., Business Casual]. Employees should dress neatly and professionally. Certain roles may have specific uniform requirements. If you are unsure about the appropriateness of an outfit, please consult your manager.

Workplace Safety and Health

The safety and health of our employees are paramount. [Company Name] is committed to providing a safe working environment and complying with all applicable OSHA regulations.

  • Employees are responsible for understanding and following all safety procedures.
  • Report any unsafe conditions, hazards, or accidents immediately to your manager or Human Resources.
  • Do not operate equipment for which you have not been trained or authorized.
  • Emergency exits and procedures are posted throughout the workplace.

Drug and Alcohol-Free Workplace

[Company Name] is committed to maintaining a drug and alcohol-free workplace. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol on company premises, during working hours, or while on company business is strictly prohibited. Violation of this policy will result in disciplinary action, up to and including termination.

Smoking Policy

Smoking, including e-cigarettes and vaping, is prohibited inside all company buildings, company vehicles, and within [e.g., 25 feet] of building entrances. Designated smoking areas may be provided where permitted.

Company Property and Equipment Use

Company property, including equipment, vehicles, and supplies, is provided for business purposes. Employees are responsible for the proper care, maintenance, and security of all company property entrusted to them. Unauthorized use, removal, or damage of company property is prohibited and may result in disciplinary action.

Information Security and Confidentiality

Protecting [Company Name]'s confidential and proprietary information is crucial. This includes, but is not limited to, customer lists, financial data, trade secrets, marketing strategies, and employee records. Employees must:

  • Handle confidential information with the utmost care and discretion.
  • Not
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);}});}