Employee Handbook Generator
Run ID: 69caf6e626e01bf7c6786d722026-03-30HR
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

Project Goal: To develop an intelligent, user-friendly "Employee Handbook Generator" that enables businesses to create comprehensive, legally sound, and customized employee handbooks efficiently. This tool will streamline the process of drafting essential company policies, benefits overviews, codes of conduct, leave policies, and compliance sections, ensuring professionalism and accuracy.


1. Core Functionality & Feature Requirements

The Employee Handbook Generator must provide the following capabilities:

  • Guided Workflow: A step-by-step interface to walk users through the handbook creation process.
  • Content Generation: Intelligent generation of policy text based on user inputs, industry standards, and best practices.
  • Customization Options: Ability to tailor policies, add company-specific details, and integrate branding elements (logo, colors).
  • Section Management: Users can select, deselect, add, and reorder handbook sections.
  • Compliance Assistance: AI-powered suggestions and warnings for potential legal non-compliance or missing critical policies based on selected jurisdiction (e.g., state, federal).
  • Draft & Edit Functionality: A robust editor to review and modify generated content before finalization.
  • Preview Capability: Real-time or near real-time preview of the handbook as it's being built.
  • Export Options: Generate the final handbook in multiple formats (e.g., PDF, DOCX, Web-ready HTML).
  • Save & Resume: Allow users to save their progress and return to their handbook draft at any time.
  • Template Library: Offer pre-built templates for various industries or company sizes to expedite creation.

2. Detailed Content Requirements for the Employee Handbook

The generator must cover the following essential sections, requiring specific inputs from the user:

2.1. Welcome & Introduction

  • Company Welcome Message: Customizable welcoming statement from leadership.
  • Purpose of Handbook: Explanation of the handbook's role and legal disclaimer (e.g., "at-will" employment).
  • Company Mission, Vision, Values: Input fields for core organizational principles.

2.2. Company Policies (General)

  • Employment Basics:

* Equal Employment Opportunity (EEO) Statement

* At-Will Employment Disclaimer

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

* Recruitment & Hiring Process

* Onboarding & Orientation

* Performance Management & Reviews

* Termination of Employment

  • Workplace Conduct:

* Attendance & Punctuality Policy

* Dress Code & Appearance Standards

* Harassment & Discrimination Policy (including reporting procedures)

* Workplace Violence Prevention

* Drug-Free Workplace Policy

* Safety & Health Policies (OSHA compliance)

* Conflict of Interest

* Confidentiality & Non-Disclosure Agreements (NDAs)

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

  • Information Technology (IT) & Communication:

* Use of Company Property (Computers, Phones, Vehicles)

* Internet, Email, & Social Media Usage Policies

* Data Security & Password Policies

* Bring Your Own Device (BYOD) Policy (if applicable)

  • Other Key Policies:

* Expense Reimbursement Policy

* Travel Policy

* Smoking Policy

* Visitors in the Workplace Policy

* Open Door Policy / Grievance Procedure

2.3. Benefits Overview

  • Health & Wellness:

* Medical, Dental, Vision Insurance (eligibility, enrollment)

* Wellness Programs

* Employee Assistance Programs (EAP)

  • Financial & Retirement:

* 401(k) or other Retirement Plans (eligibility, matching)

* Life Insurance

* Disability Insurance (Short-term, Long-term)

* Flexible Spending Accounts (FSAs) / Health Savings Accounts (HSAs)

* Commuter Benefits

  • Perks & Other Benefits:

* Tuition Reimbursement

* Professional Development Opportunities

* Employee Discounts

* Company Holidays

2.4. Code of Conduct & Ethics

  • Ethical Principles: Company's commitment to integrity, honesty, and fairness.
  • Professionalism: Expectations for professional behavior and communication.
  • Anti-Bribery & Corruption: Policy against illicit payments.
  • Reporting Violations: Procedures for reporting unethical behavior or policy breaches (whistleblower protection).

2.5. Leave Policies

  • Paid Time Off (PTO):

* Vacation Policy (accrual, carryover, usage)

* Sick Leave Policy (accrual, usage, documentation)

* Personal Days

  • Unpaid Leave:

* Family and Medical Leave Act (FMLA) (eligibility, notice requirements)

* Parental Leave (Maternity/Paternity/Adoption leave)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Other Unpaid Leaves (e.g., sabbatical)

2.6. Compliance & Legal Sections

  • Americans with Disabilities Act (ADA): Reasonable accommodation policy.
  • Equal Employment Opportunity (EEO): Affirmation of non-discrimination.
  • Occupational Safety and Health Administration (OSHA): Commitment to workplace safety.
  • Worker's Compensation: Procedures for reporting workplace injuries.
  • Data Privacy Laws: (e.g., CCPA, GDPR, state-specific laws) relevant to employee data.
  • Severability Clause: Standard legal clause.
  • Policy Updates & Amendments: Statement on the company's right to modify the handbook.

2.7. Employee Acknowledgment Form

  • A section for employees to sign, acknowledging receipt, understanding, and agreement to abide by the handbook.

3. User Experience (UX) Recommendations

The generator's interface should be intuitive, professional, and reassuring.

3.1. User Flow

  1. Welcome & Setup: User inputs company name, industry, and location.
  2. Template/Section Selection: User chooses a template or selects/deselects handbook sections.
  3. Policy Configuration (Iterative): For each selected section, the user is presented with forms, text areas, and guided questions to input specific details. AI suggestions and compliance checks occur here.
  4. Benefits Input: Dedicated section for detailing benefits.
  5. Branding & Customization: Upload logo, choose theme colors for the handbook output.
  6. Review & Edit: Comprehensive preview of the entire handbook with easy navigation and inline editing capabilities. AI highlights potential issues.
  7. Finalize & Export: Choose export format (PDF, DOCX, Web), download the handbook, and optionally store it in a secure portal.

3.2. Interface Design Principles

  • Clarity & Simplicity: Clean layout, minimal clutter, easy-to-understand language.
  • Guidance & Support: Contextual tooltips, inline help text, progress indicators, and AI-driven suggestions.
  • Consistency: Uniform design elements, navigation, and interaction patterns across all screens.
  • Professionalism: A polished and trustworthy aesthetic befitting a legal document generator.
  • Accessibility: Adherence to WCAG guidelines for color contrast, font sizes, and keyboard navigation.

4. Detailed Design Specifications

4.1. Wireframe Descriptions (Key Screens)

  • Screen 1: Welcome & Onboarding

* Layout: Centered content with a welcoming illustration.

* Elements:

* Header: "Generate Your Employee Handbook"

* Sub-header: "Create a comprehensive, compliant, and custom handbook in minutes."

* Input Fields: "Company Name", "Industry", "Primary Business Location (State/Province)".

* Button: "Get Started" (Primary Call to Action).

* Link: "Learn More" or "How it Works".

  • Screen 2: Handbook Section Selection

* Layout: Left sidebar for navigation/progress, main content area for section selection.

* Elements:

* Progress Indicator: "1. Setup > 2. Sections > 3. Policies > 4. Review > 5. Download"

* Main Title: "Choose Your Handbook Sections"

* Checkboxes/Toggles: List of all core sections (Welcome, Company Policies, Benefits, etc.). Default selection based on industry/size.

* Option: "Add Custom Section"

* Button Group: "Back", "Next: Configure Policies" (Primary CTA).

  • Screen 3: Policy Configuration (Example: "Workplace Conduct")

* Layout: Left sidebar (progress), main content area with dynamic forms.

* Elements:

* Section Header: "Configure: Workplace Conduct Policies"

* Sub-sections: Collapsible panels for specific policies (e.g., "Attendance & Punctuality", "Harassment & Discrimination").

* Input Fields:

* Text Areas: For detailed policy descriptions (with character limits or AI auto-completion).

* Dropdowns: For predefined options (e.g., "Accrual frequency: Weekly, Bi-weekly, Monthly").

* Checkboxes: For Yes/No options or policy inclusions.

* Contextual Help: Tooltips (hover for info), "Learn More" links to legal summaries.

* AI Compliance Assistant: Small alert icon with text "Potential issue: Missing reporting procedure for harassment."

* Button Group: "Previous Section", "Save Draft", "Next Section" (Primary CTA).

  • Screen 4: Review & Live Preview

* Layout: Split screen – left side for navigation/summary, right side for live handbook preview.

* Elements:

* Left Panel:

* Collapsible Outline: Tree view of all handbook sections. Clicking a section scrolls the preview to it.

* Summary: Quick stats (e.g., "Policies configured: 25/30").

* AI Compliance Report: List of warnings/suggestions.

* Right Panel (Preview):

* Interactive PDF/Web View: Displays the handbook content as it will appear.

* "Edit" icon next to each section in the preview, linking back to the configuration screen.

* Branding options (logo, colors) applied to the preview.

* Button Group: "Back to Edit", "Generate & Download Handbook" (Primary CTA).

  • Screen 5: Download & Export

* Layout: Confirmation screen with download options.

* Elements:

*

gemini Output

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

Welcome to the Team!

Welcome to [Company Name]! We are thrilled to have you join our growing team. This Employee Handbook is designed to be your comprehensive guide to our company culture, policies, benefits, and expectations. It's a valuable resource that outlines what you can expect from us as an employer and what we expect from you as a valued member of our team.

At [Company Name], we believe that our success is driven by the dedication, talent, and collaboration of our employees. We are committed to fostering an inclusive, respectful, and dynamic work environment where everyone can thrive, innovate, and contribute to our shared goals.

Please take the time to read through this handbook carefully. It's an important document that will help you understand our operational guidelines, uphold our values, and navigate your journey with us. Should you have any questions, please do not hesitate to reach out to your manager or the HR Department.

We look forward to a successful and rewarding future together!

Sincerely,

The Leadership Team

[Company Name]


Important Disclaimer

This handbook is a guide to [Company Name]'s current policies, practices, and benefits. It is not an employment contract, nor does it guarantee employment for any specific duration. Employment with [Company Name] is "at-will," meaning that either you or the company may terminate the employment relationship at any time, with or without cause or notice, subject to applicable laws.

[Company Name] reserves the right to modify, revoke, suspend, terminate, or change any of the policies, procedures, or benefits described in this handbook, in whole or in part, at any time, with or without notice. Any such changes will be communicated to employees as appropriate.


Section 1: Our Culture & Code of Conduct

At [Company Name], our culture is built on a foundation of shared values that guide our actions, decisions, and interactions. We believe that a strong ethical compass and a commitment to professionalism are essential for our collective success.

1.1 Our Vision, Mission & Values

  • Vision: [Insert Company Vision Statement - e.g., To be the leading innovator in our industry, transforming how people [do X].]
  • Mission: [Insert Company Mission Statement - e.g., To deliver exceptional [products/services] that empower our customers and enrich our communities.]
  • Core Values:

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

* Excellence: We strive for the highest quality in our work, constantly seeking improvement and innovation.

* Collaboration: We foster a supportive environment where teamwork, open communication, and mutual respect are paramount.

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

* Accountability: We take ownership of our responsibilities and commitments.

* Innovation: We embrace creativity, new ideas, and continuous learning to drive progress.

1.2 Professionalism and Respect

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

  • Communication: Engaging in clear, constructive, and respectful communication.
  • Appearance: Adhering to our professional dress code (if applicable, specify, e.g., "business casual" or "appropriate for client interactions").
  • Punctuality: Being on time for work, meetings, and appointments.
  • Work Ethic: Demonstrating a strong commitment to quality, productivity, and meeting deadlines.
  • Respectful Interactions: Treating colleagues, customers, partners, and vendors with courtesy and dignity, regardless of background, role, or differences.

1.3 Conflict of Interest

Employees must avoid any situation where their personal interests could conflict with the best interests of [Company Name]. This includes, but is not limited to:

  • Working for or having a financial interest in a competitor, supplier, or customer without prior written approval from management.
  • Using company property, information, or position for personal gain.
  • Accepting gifts, favors, or entertainment from third parties that could be perceived as influencing business decisions.

Guideline:* Gifts of nominal value (e.g., under $50) may be acceptable if infrequent and not intended to influence business decisions. All other gifts must be reported to management.

1.4 Ethical Business Practices

[Company Name] is committed to conducting its business fairly, honestly, and in full compliance with all applicable laws and regulations. This commitment extends to:

  • Accuracy of Records: All company records, financial statements, and reports must be accurate and truthful.
  • Confidentiality: Protecting proprietary company information, trade secrets, and sensitive customer data.
  • Fair Competition: Competing fairly and ethically, without engaging in anti-competitive practices.
  • Reporting Misconduct: Employees are encouraged and expected to report any actual or suspected violations of this Code of Conduct or any illegal or unethical behavior.

1.5 Reporting Violations & Non-Retaliation

If you witness or suspect a violation of this Code of Conduct, company policy, or applicable laws, you have a responsibility to report it.

  • Reporting Procedure:

1. Discuss your concerns with your immediate supervisor.

2. If uncomfortable discussing with your supervisor, or if the supervisor is involved, contact the HR Department or a member of senior management.

3. [Optional: Include a specific confidential reporting mechanism, e.g., "You may also submit an anonymous report via our Ethics Hotline at [Phone Number] or [Email Address/Web Portal]."]

  • Non-Retaliation Policy: [Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a concern or participates in an investigation. Any employee found to have engaged in retaliation will be subject to disciplinary action, up to and including termination.

Section 2: Company Policies

These policies are designed to ensure a fair, safe, and productive work environment for everyone at [Company Name].

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing equal employment opportunities to all qualified individuals without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other characteristic protected by law. This commitment applies to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

2.2 Anti-Harassment and Anti-Discrimination

[Company Name] is committed to maintaining a workplace free from harassment and discrimination. We prohibit harassment or discrimination based on any protected characteristic. This includes, but is not limited to:

  • Sexual Harassment: Unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature.
  • Other Harassment: Offensive jokes, slurs, epithets, physical assaults or threats, intimidation, ridicule, insults, or other conduct that creates a hostile work environment based on any protected characteristic.

Reporting Harassment/Discrimination:

If you believe you have been subjected to or witnessed harassment or discrimination, you must report it immediately to:

  1. Your immediate supervisor.
  2. The HR Department.
  3. Any member of management.

All reports will be taken seriously, investigated promptly and thoroughly, and handled with as much confidentiality as possible. Any employee found to have engaged in harassment or discrimination will be subject to disciplinary action, up to and including termination.

2.3 Workplace Safety and Health

[Company Name] is dedicated to providing a safe and healthy work environment. All employees are expected to:

  • Adhere to all safety rules and procedures.
  • Report any unsafe conditions, hazards, or equipment malfunctions immediately to their supervisor.
  • Report all work-related injuries or illnesses, no matter how minor, to their supervisor and HR immediately.
  • Participate in required safety training.

2.4 Drug-Free Workplace

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

  • The use, possession, sale, transfer, or manufacture of illegal drugs or controlled substances on company premises or during working hours is strictly prohibited.
  • Employees are prohibited from working under the influence of illegal drugs, alcohol, or any substance that impairs their ability to perform their job duties safely and effectively.
  • [Company Name] reserves the right to conduct drug and alcohol testing in accordance with applicable laws, including pre-employment, reasonable suspicion, post-accident, and random testing.

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

2.5 Confidentiality and Data Security

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its clients, and partners. This information includes, but is not limited to:

  • Trade secrets, business plans, financial data.
  • Customer lists and data.
  • Employee records and personal information.
  • Product designs, software, and intellectual property.

Policy:

  • All employees must protect confidential information and not disclose it to unauthorized individuals or use it for personal gain.
  • Access to confidential information is on a "need-to-know" basis.
  • Employees must follow all data security protocols, including strong passwords, secure file storage, and reporting suspicious activity.
  • The obligation of confidentiality continues even after employment with [Company Name] ends.

2.6 Use of Company Property and Equipment

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

  • Employees are responsible for the proper care and use of all company property.
  • Personal use of company property should be minimal, not interfere with work, and must not violate other company policies (e.g., internet usage).
  • Company property may be monitored and is subject to search at any time.
  • Upon termination of employment, all company property must be returned immediately.

2.7 Internet, Email, and Social Media Usage

[Company Name] provides internet access, email, and other electronic communication tools to facilitate business operations.

  • Business Use Primary: These resources are primarily for business use. Limited, reasonable personal use is permitted, provided it does not interfere with work performance, consume excessive bandwidth, or violate any company policies.
  • No Expectation of Privacy: Employees should have no expectation of privacy when using company communication systems or equipment. All electronic communications and data stored on company systems are the property of [Company Name] and may be monitored, accessed, and disclosed by the company.
  • Prohibited Content: Use of company systems for illegal, unethical, harassing, discriminatory, or offensive content is strictly prohibited. This includes viewing, storing, or transmitting sexually explicit, violent, or hate-related material.
  • Social Media: Employees engaging in social media activities (personal or professional) must be mindful of their association with [Company Name]. Do not disclose confidential company information, disparage the company, colleagues, clients, or partners, or engage in activities that could damage the company's reputation. Clearly state that your opinions are your own and not those of [Company Name].

2.8 Privacy Policy

[Company Name] respects the privacy of its employees while balancing the need to manage its business effectively and maintain a safe and productive workplace.

  • Employee Data: We collect and maintain personal information necessary for employment, payroll, benefits administration, and legal compliance. This information is treated confidentially and protected from unauthorized access.
  • Monitoring: As outlined in other policies, company-provided resources (e.g., computers, email, internet, phones, company vehicles) may be monitored to ensure compliance with company policies, protect company assets, and ensure workplace safety.
  • Workplace Surveillance: [Company Name] may use video surveillance in common areas for security purposes and to protect company property. Employees should not expect privacy in these areas.

2.9 Work Hours and Attendance

  • Standard Workday/Workweek: Our standard work hours are [e.g., Monday to Friday, 9:00 AM to 5:00 PM], totaling [e.g., 40 hours] per week, with a [e.g., one-hour] unpaid lunch break. Specific schedules may vary by department or role.
  • Punctuality & Attendance: Regular and punctual attendance is essential. Employees are expected to be at their workstations, ready to work, at their scheduled start time.
  • Reporting Absences/Tardiness: If you will be absent or late, you must notify your supervisor as soon as possible, ideally at least [e.g., two hours] before your scheduled start time, or as soon as practicable in emergencies. Failure to notify may result in disciplinary action.
  • Overtime: Non-exempt employees are eligible for overtime pay for hours worked over [e.g., 40] in a workweek, in accordance with federal and state laws. All overtime must be pre-approved by a supervisor.
  • Meal and Rest Breaks: Employees are entitled to meal and rest breaks as required by state and federal law. [Specify your company's break policy, e.g., "Non-exempt employees working more than [X] hours are provided an unpaid [Y]-minute meal break. Employees working [Z] hours are provided paid [A]-minute rest breaks."].

2.10 Performance Management

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

  • Performance Reviews: Regular performance reviews are conducted [e.g., annually, semi-annually] to provide feedback, set goals, and discuss career development.
  • Probationary Period: New employees typically undergo a probationary period of [e.g., 90 days] to assess their suitability for the role and the company culture. During this period, employment may be terminated at any time.
  • Performance Improvement: If performance issues arise, employees will receive feedback and, if necessary, a Performance Improvement Plan (PIP) to help them meet expectations.

2.11 Disciplinary Action

[Company Name] maintains a system of progressive discipline to address violations of company policy, poor performance, or misconduct. The severity of disciplinary action will depend on the nature and frequency of the infraction.

  • Steps may include: Verbal warning, written warning, suspension (with or without pay), and termination of employment.
  • Serious misconduct (e.g., harassment, theft, violence, insubordination) may result in immediate termination.

Section 3: Employee Benefits Overview

[Company Name] is proud to offer a comprehensive benefits package designed to support the health, well-being, and financial security of our employees and their families. Eligibility for certain benefits may depend on employment status (full-time, part-time) and length of service. Detailed information on eligibility, enrollment periods, and plan specifics is available from the HR Department.

3.1 Health and Wellness Benefits

  • Medical Insurance: Comprehensive medical coverage options are available through [Provider Name(s)]. [Briefly mention key features, e.g., "Multiple plans to choose from, including PPO and HMO options, with a portion of premiums subsidized by the company."].
  • Dental Insurance: Coverage for preventative, basic, and major dental services through [Provider Name].
  • Vision Insurance: Coverage for eye exams, glasses, and contact lenses through [Provider Name].
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues, including stress, family matters, and financial concerns. Available 24
gemini Output

Employee Handbook: [Your Company Name]

Version: 1.0

Effective Date: [Date]


I. Introduction

Welcome Message

Welcome to [Your Company Name]! We are thrilled to have you join our team. This handbook is designed to introduce you to our company culture, policies, and expectations, and to provide you with important information about your employment. We believe that a clear understanding of our guidelines will help foster a productive, respectful, and positive work environment for everyone.

Purpose of the Handbook

This Employee Handbook serves as a guide to the policies, procedures, and benefits provided by [Your Company Name]. It outlines our commitment to our employees, our expectations for professional conduct, and the resources available to you. By understanding and adhering to these guidelines, you contribute to a harmonious and efficient workplace.

Disclaimer

This Employee Handbook is an informational guide and not a contract of employment. [Your Company Name] reserves the right to modify, revoke, suspend, terminate, or change any policies, procedures, or benefits described herein, in whole or in part, at any time, with or without notice, at the company's sole discretion, unless otherwise prohibited by law. Any changes will be communicated to employees. This handbook supersedes all prior handbooks, policies, and verbal representations. Nothing in this handbook is intended to create, nor should be construed as creating, a contract of employment between [Your Company Name] and any employee. Employment with [Your Company Name] is "at-will," meaning that either the employee or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable law.


II. Company Overview

Our Vision, Mission, and Values

  • Vision: [Insert Company Vision Statement - e.g., To be the leading innovator in our industry, transforming how people connect with technology.]
  • Mission: [Insert Company Mission Statement - e.g., To deliver exceptional products/services that empower our customers and foster a culture of excellence and collaboration.]
  • Values: [List 3-5 Core Company Values - e.g., Integrity, Innovation, Customer Focus, Teamwork, Accountability.]

* [Value 1]: [Brief description]

* [Value 2]: [Brief description]

* [Value 3]: [Brief description]

* [Value 4]: [Brief description]

* [Value 5]: [Brief description]

Company History (Brief)

[Provide a brief overview of the company's founding, key milestones, and growth. e.g., Founded in [Year] by [Founder(s)], [Your Company Name] began with a vision to [initial goal]. Since then, we have grown into a respected leader in [industry], driven by our commitment to [key differentiator].]

Organizational Structure (General)

[Provide a high-level description of the company's structure, e.g., Our company operates with a [flat/hierarchical] structure, fostering collaboration across departments. Employees report to their direct managers, who are supported by department heads and executive leadership. An organizational chart can be found on our internal intranet at [Intranet Link].]


III. Employment Policies

A. Equal Employment Opportunity (EEO)

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

B. Anti-Harassment and Anti-Discrimination Policy

[Your Company Name] is committed to providing a work environment free of harassment and discrimination. Any form of harassment, including sexual harassment, bullying, or discrimination based on protected characteristics, is strictly prohibited. Employees who believe they have been subjected to harassment or discrimination, or who witness such behavior, should report it immediately to their manager, HR department, or [Designated Contact Person/Department]. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports harassment or discrimination in good faith is also strictly prohibited.

C. Americans with Disabilities Act (ADA)

[Your Company Name] complies with the Americans with Disabilities Act (ADA) and similar state laws. We are committed to providing reasonable accommodations to qualified individuals with disabilities, enabling them to perform the essential functions of their job, unless doing so would cause undue hardship to the company. Employees requiring an accommodation should contact HR to initiate the interactive process.

D. Employment At-Will Statement

As stated in the disclaimer, employment with [Your Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable federal, state, and local laws.

E. Recruitment and Hiring

[Your Company Name] is committed to attracting, hiring, and retaining the best talent. Our hiring process is fair, transparent, and based on qualifications, experience, and cultural fit. All job openings are posted internally and/or externally, and candidates are evaluated based on job-related criteria.

F. Onboarding and Orientation

New employees will undergo an onboarding process designed to help them integrate smoothly into the company. This includes orientation sessions covering company policies, benefits enrollment, team introductions, and job-specific training.

G. Performance Management and Reviews

[Your Company Name] believes in continuous feedback and development. Employees will participate in regular performance reviews (e.g., annual, bi-annual) to discuss performance, set goals, identify areas for development, and recognize achievements. Managers are encouraged to provide ongoing feedback and support.

H. Promotions and Transfers

Opportunities for promotion and internal transfers are available based on business needs, employee performance, skills, and qualifications. Employees interested in career advancement within the company should discuss their aspirations with their manager and HR.

I. Employee Records and Privacy

[Your Company Name] maintains confidential employee records. Employees are responsible for ensuring their personal information (e.g., address, phone number, emergency contacts) is up-to-date with HR. Access to employee records is restricted to authorized personnel. Employees may review their own personnel file by submitting a written request to HR.

J. Confidentiality and Non-Disclosure

Employees are expected to maintain the strictest confidentiality regarding proprietary company information, trade secrets, customer data, financial information, and other sensitive business details. This obligation continues even after employment ends. Employees may be required to sign a separate Non-Disclosure Agreement (NDA).

K. Data Protection Policy

[Your Company Name] is committed to protecting personal data, including employee and customer information, in compliance with applicable data protection laws (e.g., GDPR, CCPA). Employees must follow established procedures for handling, storing, and transmitting data securely. Misuse or unauthorized disclosure of data is a serious offense.

L. Termination of Employment (Voluntary/Involuntary)

  • Voluntary Termination: Employees are requested to provide at least two (2) weeks' written notice to their manager and HR when resigning. An exit interview will be offered.
  • Involuntary Termination: Employment may be terminated by [Your Company Name] for various reasons, including but not limited to, performance issues, policy violations, misconduct, or business necessity.
  • Final Paycheck: Final paychecks, including accrued but unused vacation time (if applicable and required by law), will be issued in accordance with state and federal regulations.
  • Return of Company Property: All company property (laptops, phones, keys, badges, documents, etc.) must be returned upon termination of employment.

IV. Compensation and Benefits

A. Compensation Philosophy

[Your Company Name] is committed to providing competitive compensation that attracts, motivates, and retains high-performing employees. Our compensation structure is designed to be fair, equitable, and aligned with market rates, considering individual performance, responsibilities, and company success.

B. Payroll Information

  • Pay Period: Employees are paid [weekly/bi-weekly/semi-monthly/monthly] on [Day of Week/Date].
  • Direct Deposit: Direct deposit is mandatory for all employees.
  • Pay Stubs: Pay stubs are accessible online via [Payroll Portal Link/Name].
  • Questions: For payroll questions, contact [Payroll Department/HR].

C. Work Hours and Overtime

  • Standard Workday/Week: The standard workday is [e.g., 8 hours], and the standard workweek is [e.g., 40 hours], typically [Monday to Friday, 9:00 AM to 5:00 PM]. Specific department hours may vary.
  • Lunch and Breaks: Employees are generally entitled to an unpaid lunch break of [e.g., 30-60 minutes] and paid rest breaks as required by law.
  • Overtime: Non-exempt employees are eligible for overtime pay at one and a half (1.5) times their regular rate for hours worked over [e.g., 40] in a workweek, as per federal and state laws. All overtime must be pre-approved by a manager. Exempt employees are not eligible for overtime.

D. Employee Benefits Overview

[Your Company Name] offers a comprehensive benefits package designed to support the well-being of our employees and their families. Eligibility for certain benefits may vary based on employment status (full-time, part-time) and length of service. Detailed information about benefits, including enrollment procedures and eligibility criteria, is available from the HR department.

  • Health Insurance:

* Medical, Dental, and Vision insurance plans are available.

* [Briefly mention key features, e.g., Multiple plan options, employee/employer contribution.]

  • Retirement Plans:

* [e.g., 401(k) plan with company matching contributions.]

* Eligibility and vesting schedules apply.

  • Life and Disability Insurance:

* Company-paid basic life insurance.

* Voluntary supplemental life insurance options.

* Short-term and Long-term Disability insurance.

  • Employee Assistance Programs (EAP):

* Confidential counseling and referral services for personal and work-related issues.

  • Other Perks and Programs:

* Professional Development: Opportunities for training, workshops, and tuition reimbursement.

* Wellness Programs: [e.g., Gym membership discounts, wellness challenges.]

* Commuter Benefits: [e.g., Pre-tax transit or parking benefits.]

* [Any other unique benefits specific to your company].


V. Time Off and Leave Policies

A. Vacation Policy

  • Accrual: Vacation time accrues based on length of service and employment status.
  • Usage: Employees must request vacation time in advance and receive manager approval.
  • Carryover/Payout: [State policy on vacation carryover and payout upon termination, adhering to state laws.]

B. Sick Leave Policy

  • Accrual: Sick leave accrues based on employment status and hours worked, as per state and local regulations.
  • Usage: Sick leave can be used for personal illness, injury, medical appointments, or to care for a sick family member.
  • Notification: Employees must notify their manager as soon as possible when taking sick leave.

C. Holiday Schedule

[Your Company Name] observes the following paid holidays:

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

D. Bereavement Leave

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

E. Jury Duty Leave

Employees summoned for jury duty will receive [e.g., paid time off for the duration of service, or difference between jury pay and regular pay]. Proof of service is required.

F. Military Leave

[Your Company Name] complies with the Uniformed Services Employment and Reemployment Rights Act (USERRA) and other applicable laws regarding military leave and reemployment rights for employees serving in the uniformed services.

G. Family and Medical Leave Act (FMLA)

Eligible employees may take up to 12 weeks of unpaid, job-protected leave per year for specific family and medical reasons, as defined by the FMLA. This includes the birth or adoption of a child, caring for a spouse, child, or parent with a serious health condition, or the employee's own serious health condition. Contact HR for eligibility and application procedures.

H. Parental Leave (Maternity/Paternity)

[Your Company Name] provides [e.g., X weeks of paid/unpaid] parental leave for employees welcoming a new child through birth or adoption, in addition to FMLA (if applicable). Specific details are available from HR.

I. Personal Leave of Absence

Unpaid personal leaves of absence may be granted at the company's sole discretion for compelling personal reasons, after all accrued paid time off has been exhausted. Such leaves are typically limited in duration and require prior approval.

J. Voting Leave

Employees are encouraged to exercise their right to vote. If state law requires, employees will be granted necessary time off to vote, typically [e.g., up to X hours], provided they notify their manager in advance.


VI. Workplace Conduct and Expectations (Code of Conduct)

A. Professionalism and Respect

All employees are expected to treat colleagues, customers, vendors, and visitors with respect, courtesy, and professionalism. Disrespectful, disruptive, or offensive behavior will not be tolerated.

B. Attendance and Punctuality

Regular attendance and punctuality are essential for the efficient operation of [Your Company Name]. Employees are expected to arrive at work on time, return from breaks promptly, and adhere to their scheduled work hours. Absences or tardiness must be reported to a manager as soon as possible.

C. Dress Code

Employees are expected to dress in a manner that is appropriate for a professional business environment. [Specify general dress code, e.g., "Business casual attire is generally appropriate. Specific departments may have stricter requirements. On client-facing days, business professional attire may be required."]

D. Workplace Safety and Health

[Your Company Name] is committed to providing a safe and healthy work environment. Employees must adhere to all safety policies and procedures, report any unsafe conditions or hazards immediately, and report all work-related injuries or illnesses to their manager and HR. Emergency procedures are posted throughout the workplace.

E. Drug and Alcohol-Free Workplace

[Your Company Name

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