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

This document outlines the comprehensive requirements analysis for the "Employee Handbook Generator" tool. The focus is on designing a professional, intuitive, and highly functional application that enables users to effortlessly create, customize, and generate detailed employee handbooks.


1. Detailed Design Specifications

1.1 Functional Requirements

  • User Onboarding & Company Profile:

* Initial setup wizard to collect core company information (Name, Logo, Industry, Address, Contact Info).

* Ability to save and manage multiple company profiles for different entities/brands.

  • Template Selection & Customization:

* Provide a library of pre-built, legally compliant handbook templates (e.g., Small Business, Tech Startup, Manufacturing).

* Allow users to select specific sections to include/exclude (e.g., add a "Remote Work Policy" or remove "Dress Code").

* Enable reordering of sections within the handbook.

  • Content Editing & Management:

* Rich Text Editor: WYSIWYG editor for customizing policy text, adding images, links, and formatting.

* Dynamic Placeholders: Automatic insertion of company-specific details (e.g., [Company Name], [HR Contact], [Effective Date]) based on the company profile.

* Policy Library: A repository of standard policy clauses that users can drag-and-drop or select to include, edit, or adapt.

* Version Control: Track changes and allow users to revert to previous handbook versions.

* Compliance Guidance: Inline tips and warnings regarding legal compliance for specific policies (e.g., "Ensure this policy aligns with FMLA requirements").

  • Benefits & Compensation Integration:

* Structured input fields for detailing benefits (Health, Dental, Vision, 401k, PTO, Holidays).

* Ability to upload external benefits documents (e.g., summary plan descriptions).

  • Code of Conduct & Ethics:

* Pre-written sections covering ethical behavior, anti-harassment, data privacy, and conflict of interest.

* Customizable sections for company-specific values.

  • Leave Policies:

* Templates for various leave types (Sick, Vacation, Parental, Bereavement, Jury Duty, FMLA, Military).

* Configurable parameters for accrual rates, maximums, and approval processes.

  • Compliance & Legal:

* Dedicated section for legal disclaimers, at-will employment statements, and EEO policies.

* Option to include state-specific legal addendums.

* Regular updates to policy templates to reflect changes in labor law.

  • Preview & Export:

* Real-time preview of the handbook as it's being built.

* Option to download in multiple formats: PDF (print-ready), Microsoft Word (editable), Web (shareable link).

* Branding options: upload company logo, choose primary colors for the handbook output.

  • User Authentication & Authorization:

* Secure login with email/password.

* Role-based access (e.g., Admin, Editor).

  • Help & Support:

* Contextual help, FAQs, and access to support resources.

1.2 Non-Functional Requirements

  • Performance: Fast loading times, responsive UI.
  • Security: Data encryption, secure authentication, regular security audits.
  • Scalability: Ability to handle increasing user base and data volume.
  • Usability: Intuitive interface, minimal learning curve.
  • Reliability: High uptime, robust error handling.
  • Accessibility: WCAG 2.1 AA compliance for users with disabilities.

1.3 Data Model (High-Level)

  • Company: id, name, logo_url, industry, address, contact_info, created_at, updated_at.
  • User: id, email, password_hash, company_id, role.
  • Handbook: id, company_id, name, version, status (Draft, Published), effective_date, created_at, updated_at.
  • Section: id, handbook_id, title, order, content (JSON/Rich Text), template_id (if from template).
  • Policy Template: id, name, category, default_content, compliance_notes.
  • Benefits: id, handbook_id, type, description, details (JSON).

2. Wireframe Descriptions

The user interface will be designed to guide the user through the handbook creation process in a logical, step-by-step manner or via a clear multi-tab navigation.

2.1 Dashboard / Home Screen

  • Layout: Central workspace with quick access to ongoing handbooks, templates, and company profiles.
  • Elements:

* "Create New Handbook" button.

* List of "My Handbooks" (Drafts, Published) with status, effective date, and quick edit/view options.

* "Company Profiles" management link.

* Notification area for compliance updates or system messages.

* Sidebar navigation for Home, Handbooks, Templates, Company Settings, Help.

2.2 Handbook Configuration Wizard (Multi-Step Process)

  • Step 1: Company Profile Selection:

* Display existing company profiles.

* Option to "Add New Company Profile".

* "Next" button.

  • Step 2: Template & Structure Selection:

* Gallery of pre-built handbook templates with descriptions.

* Option to "Start from Scratch".

* Checkbox list of core sections (e.g., Introduction, Code of Conduct, Leave Policies, Benefits). Users can check/uncheck to include/exclude.

* Drag-and-drop interface to reorder selected sections.

* "Next" button.

  • Step 3: Content Customization (Main Editor View):

* Layout: Three-column layout.

* Left Sidebar: Hierarchical navigation tree of handbook sections. Allows quick jumping between sections.

* Central Pane: WYSIWYG rich text editor for the currently selected section. Includes formatting tools, placeholder insertion, and compliance hints.

* Right Sidebar (Contextual):

* "Policy Library" for drag-and-drop pre-written clauses.

* "Compliance Tips" specific to the current section.

* Input fields for structured data (e.g., benefits details, leave accrual rates).

* Top Bar: Handbook title, version, "Save Draft," "Preview," "Publish/Download" buttons.

  • Step 4: Preview & Export:

* Layout: Full-width preview of the generated handbook.

* Elements:

* Navigation within the preview (Table of Contents).

* "Download PDF," "Download Word," "Share Web Link" buttons.

* Branding options (logo upload, color selection for output document).

* "Go Back to Edit" button.

2.3 Company Profile Management Screen

  • Layout: Form-based input fields.
  • Elements:

* Input fields for Company Name, Address, Industry, HR Contact, Legal Contact, etc.

* Logo upload functionality with preview.

* "Save Changes" button.

* List of handbooks associated with this profile.


3. Color Palettes

The color palette aims for professionalism, trust, and approachability, suitable for HR and corporate tools.

3.1 Primary Palette

  • Primary Blue (#2A56C4): Professional, trustworthy, corporate. Used for primary call-to-action buttons, active navigation states, main headers.
  • Secondary Blue (#5C82E3): Lighter shade for secondary buttons, hover states, accents.
  • Dark Grey (#333333): For primary text, main content, strong contrasts.
  • Medium Grey (#666666): For secondary text, labels, subtle UI elements.
  • Light Grey (#F5F5F5): Backgrounds for content areas, cards, subtle dividers.
  • White (#FFFFFF): Main background, content panes, text on dark backgrounds.

3.2 Accent & Feedback Colors

  • Success Green (#28A745): For success messages, positive confirmations, "Published" status.
  • Warning Orange (#FFC107): For warnings, pending actions, "Draft" status.
  • Error Red (#DC3545): For error messages, critical alerts.
  • Info Teal (#17A2B8): For informational messages, tooltips, compliance hints.

3.3 UI Element Colors

  • Buttons (Primary): Background: #2A56C4, Text: #FFFFFF. Hover: Background: #5C82E3.
  • Buttons (Secondary/Ghost): Background: transparent, Border: #5C82E3, Text: #5C82E3. Hover: Background: #E0E8F9.
  • Navigation Active State: Background: #E0E8F9, Text: #2A56C4.
  • Borders/Dividers: #E0E0E0.
  • Input Fields: Background: #FFFFFF, Border: #CCCCCC. Focus Border: #5C82E3.

4. UX Recommendations

4.1 Ease of Use & Intuitive Flow

  • Guided Workflow: Implement a clear, multi-step wizard for new handbook creation to simplify the process.
  • Clear Navigation: Use a persistent left-hand sidebar for main application navigation and a hierarchical tree for handbook section navigation.
  • Contextual Help: Provide tooltips, inline help text, and "i" icons that reveal more information about specific policies or input fields.
  • Pre-populated Content: Maximize the use of pre-written policy templates and dynamic placeholders to reduce manual input.
  • "Save Draft" Automatically: Implement auto-save functionality to prevent data loss, alongside a manual "Save Draft" button.

4.2 Customization & Flexibility

  • Modular Design: Allow users to easily add, remove, and reorder sections without breaking the overall structure.
  • Rich Text Editing: Provide a comprehensive yet easy-to-use WYSIWYG editor for full control over policy wording and formatting.
  • Branding Options: Offer straightforward controls for applying company logos and primary colors to the generated handbook.

4.3 Feedback & Transparency

  • Progress Indicators: Use clear progress bars or step indicators during the handbook creation wizard.
  • Success/Error Messages: Provide clear, actionable feedback for all user actions (e.g., "Handbook saved successfully," "Error: Please fill required fields").
  • Real-time Preview: Ensure the handbook preview updates instantly with changes, giving users confidence in the final output.

4.4 Compliance & Guidance

  • Inline Compliance Warnings: Highlight potential legal gaps or areas requiring attention directly within the editor.
  • Policy Best Practices: Offer suggestions or links to best practice guides for certain policy areas.
  • Regular Updates: Clearly communicate when policy templates have been updated due to legal changes, prompting users to review and update their handbooks.

4.5 Accessibility & Responsiveness

  • WCAG Compliance: Design with Web Content Accessibility Guidelines (WCAG) 2.1 AA in mind, ensuring sufficient color contrast, keyboard navigation, and screen reader compatibility.
  • Responsive Design: While the primary use case is desktop, ensure the interface is usable on tablets and adapts gracefully to smaller screens for review purposes.
  • Legible Typography: Use clear, readable fonts (e.g., Open Sans, Lato, Roboto) with appropriate sizing for body text, headings, and labels.

4.6 Performance & Efficiency

  • Optimized Loading: Ensure complex sections or previews load quickly.
  • Keyboard Shortcuts: Consider implementing useful keyboard shortcuts for power users (e.g., saving, formatting).
  • Search Functionality: Allow users to search within their handbooks and the policy library.

gemini Output

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

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

Please take the time to read this handbook thoroughly. It is an essential resource that outlines your rights and responsibilities as an employee, and it will help you understand how we operate and what we value. If you have any questions, please do not hesitate to speak with your manager or the Human Resources department.

A Message from Leadership

"At [Company Name], we believe our greatest asset is our people. Our success is built on a foundation of innovation, collaboration, and a shared dedication to our mission: [Insert Company Mission Statement]. This handbook is more than just a collection of rules; it's a reflection of our culture and our commitment to creating a workplace where everyone can thrive. We encourage you to embrace our values, contribute your unique talents, and help us achieve our goals together. Welcome aboard!"


1. About [Company Name]

Our Mission

[Insert Company Mission Statement - e.g., "To revolutionize the industry by delivering innovative solutions that empower our customers and foster sustainable growth." ]

Our Vision

[Insert Company Vision Statement - e.g., "To be the leading provider in our sector, recognized for excellence, integrity, and a positive impact on the communities we serve." ]

Our Values

Our core values guide everything we do. We expect all employees to embody these principles:

  • Integrity: Upholding the highest ethical standards in all interactions.
  • Excellence: Striving for quality and continuous improvement in our work.
  • Collaboration: Working together, supporting each other, and valuing diverse perspectives.
  • Innovation: Embracing creativity and seeking new ways to solve challenges.
  • Respect: Treating everyone with dignity, fairness, and professionalism.
  • Customer Focus: Prioritizing the needs and satisfaction of our customers.

2. Company Policies

These policies are fundamental to maintaining a professional, respectful, and efficient workplace.

2.1 Workplace Conduct and Professionalism

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

  • Respectful Communication: Engaging in courteous and constructive dialogue.
  • Collaboration: Working effectively with colleagues, managers, and external partners.
  • Professional Appearance: Adhering to our dress code (if applicable, specify: e.g., "business casual, unless client-facing or specific safety requirements apply").
  • Punctuality and Attendance: Being on time for work and meetings, and adhering to scheduled hours.

2.2 Equal Employment Opportunity and Anti-Harassment

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment based on race, color, religion, sex, sexual orientation, gender identity or expression, national origin, age, disability, marital status, veteran status, or any other legally protected status.

  • Non-Discrimination: All employment decisions, including hiring, promotion, compensation, and termination, will be made without regard to protected characteristics.
  • Anti-Harassment: Harassment of any kind, including sexual harassment, bullying, or intimidation, is strictly prohibited. This includes verbal, physical, visual, or electronic conduct that creates an offensive, hostile, or intimidating work environment.
  • Reporting Procedures: Any employee who believes they have been subjected to discrimination or harassment, or who witnesses such behavior, is encouraged to report it immediately to their manager, Human Resources, or any member of leadership. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports discrimination or harassment in good faith is strictly prohibited.

2.3 Confidentiality and Data Security

Protecting confidential information is paramount to our business success and legal compliance.

  • Company Confidential Information: Employees are required to protect all proprietary, confidential, and sensitive information belonging to [Company Name], its clients, and partners. This includes, but is not limited to, financial data, strategic plans, customer lists, product designs, trade secrets, and employee information.
  • Employee Data Privacy: We are committed to protecting the privacy of our employees' personal data and will handle it in accordance with applicable laws and our internal privacy policies.
  • Data Security: Employees must adhere to all data security protocols, including strong password practices, secure handling of electronic and physical data, and reporting any suspected security breaches immediately. Unauthorized disclosure or misuse of confidential information may result in disciplinary action, up to and including termination, and legal action.

2.4 Use of Company Property and Resources

Company property and resources are provided for business use and must be treated with care and respect.

  • Proper Use: Company equipment, systems, software, vehicles, and other resources are to be used primarily for legitimate business purposes.
  • Personal Use: Limited and reasonable personal use of company resources (e.g., internet, email, phone) may be permitted, provided it does not interfere with work duties, violate company policies, or incur significant cost to the company.
  • Monitoring: Employees should have no expectation of privacy when using company-provided equipment or systems. [Company Name] reserves the right to monitor and access all data and communications transmitted or stored on its systems.

2.5 Remote Work Policy (If Applicable)

For roles approved for remote work, employees are expected to:

  • Maintain Productivity: Ensure work performance and productivity meet company standards.
  • Availability: Be available during regular business hours and for meetings as required.
  • Secure Environment: Maintain a secure and professional home office environment, ensuring data privacy and equipment security.
  • Communication: Stay in regular communication with managers and team members.
  • Return to Office: Be prepared to come into the office for meetings, training, or other business needs as required.

2.6 Communication Policy

Effective and professional communication is vital.

  • Email and Messaging: Use company email and messaging platforms primarily for business communication. Maintain professional tone and content.
  • External Communications: Represent [Company Name] professionally in all external communications.
  • Internal Communications: Keep colleagues and managers informed of relevant project updates, challenges, and successes.

2.7 Drug-Free Workplace

[Company Name] is committed to maintaining a safe, healthy, and productive work environment. The use, possession, sale, or distribution of illegal drugs, or the abuse of alcohol or prescription medication, on company premises or during working hours, is strictly prohibited. Employees under the influence of drugs or alcohol that impair their ability to perform their job duties safely and effectively are not permitted to work.


3. Benefits Overview

[Company Name] is proud to offer a comprehensive benefits package designed to support the health, financial well-being, and professional growth of our employees. Eligibility for certain benefits may vary based on employment status (full-time, part-time) and length of service. Detailed information on each benefit is available through the HR department or our online benefits portal.

3.1 Health and Wellness Benefits

  • Medical Insurance: Comprehensive medical plans through [Provider Name(s)] with options for individual and family coverage.
  • Dental Insurance: Coverage for preventative, basic, and major dental services.
  • Vision Insurance: Coverage for eye exams, glasses, and contact lenses.
  • Wellness Programs: Initiatives and resources to promote physical and mental well-being (e.g., gym membership discounts, EAP).

3.2 Retirement Plans

  • 401(k) Retirement Plan: Employees are eligible to participate in our 401(k) plan, including a [e.g., "company match of X% on contributions up to Y% of salary"] after [e.g., "6 months of service"].
  • Financial Planning Resources: Access to resources and advisors to help with retirement planning.

3.3 Paid Time Off (PTO) - General Overview

[A more detailed breakdown is provided in Section 5: Leave Policies.]

  • Vacation/Annual Leave: Accrued paid time off for rest and personal activities.
  • Sick Leave: Paid time off for illness or medical appointments.
  • Company Holidays: Paid days off for designated public holidays.

3.4 Other Employee Benefits

  • Life Insurance: Company-paid basic life insurance coverage, with options for supplemental coverage.
  • Disability Insurance: Short-term and long-term disability coverage to provide income protection during extended absences due to illness or injury.
  • Employee Assistance Program (EAP): Confidential counseling and referral services for employees and their families facing personal or work-related challenges.
  • Professional Development & Training: Opportunities for continuous learning, skill enhancement, and career advancement through internal and external training programs, workshops, and tuition reimbursement (if applicable).
  • Commuter Benefits: (If applicable) Pre-tax options for public transportation or parking.
  • Employee Referral Program: Incentives for referring qualified candidates who are hired.

4. Code of Conduct

Our Code of Conduct outlines the ethical principles and behavioral expectations that guide all employees of [Company Name]. Adherence to this code is mandatory and essential for maintaining our reputation and fostering a culture of trust and integrity.

4.1 Ethical Behavior

  • Honesty and Integrity: Always act with honesty and integrity in all business dealings.
  • Fair Dealing: Treat customers, suppliers, competitors, and colleagues fairly and ethically.
  • Accuracy of Records: Ensure all company records, reports, and financial statements are accurate and truthful.

4.2 Conflict of Interest

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

  • Outside Employment: Any outside employment or business activities must not compete with [Company Name] or interfere with an employee's ability to perform their job duties. Prior approval from management and HR may be required.
  • Gifts and Entertainment: Do not accept or offer gifts, favors, or entertainment that could be perceived as influencing business decisions or creating an unfair advantage. Modest and infrequent courtesies are generally acceptable.
  • Personal Investments: Avoid personal investments in companies that are direct competitors, customers, or suppliers, where such investments could create a conflict of interest.

4.3 Reporting Misconduct

If you become aware of any actual or suspected violations of this Code of Conduct, company policies, or applicable laws, you have a responsibility to report it.

  • Reporting Channels: Reports can be made to your manager, Human Resources, or through our confidential [e.g., "Ethics Hotline" or "Whistleblower Program"].
  • No Retaliation: [Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a concern or participates in an investigation.

4.4 Professional Appearance

Employees are expected to present a professional image consistent with their roles and responsibilities.

  • Dress Code: Adhere to the company's dress code, which is generally [e.g., "business casual for office roles, with specific uniform or safety attire requirements for certain positions"]. Consult your manager or HR for clarification.
  • Hygiene: Maintain good personal hygiene.

4.5 Social Media Policy

Employees are expected to exercise good judgment and professionalism when using social media, particularly when content relates to [Company Name].

  • Professionalism: Be respectful, truthful, and accurate in all online communications.
  • Confidentiality: Do not disclose confidential company information, trade secrets, or proprietary data on social media.
  • Representation: When identifying yourself as an employee of [Company Name] online, make it clear that your views are your own and not necessarily those of the company.
  • Respect: Do not post derogatory, discriminatory, harassing, or defamatory content about [Company Name], its employees, customers, or partners.

5. Leave Policies

[Company Name] provides various types of leave to support employees through personal needs, illness, and life events, in compliance with federal, state, and local laws.

5.1 Vacation/Annual Leave

  • Accrual: Vacation time accrues based on length of service and employment status. [Specify accrual rate, e.g., "Full-time employees accrue X hours per pay period, equivalent to Y days per year for the first Z years of service."].
  • Usage: Employees are encouraged to take vacation time for rest and rejuvenation. Requests should be submitted to your manager with reasonable advance notice for approval.
  • Carryover: [Specify policy, e.g., "Up to X days of unused vacation may be carried over into the next calendar year. Any vacation exceeding this limit will be forfeited."].
  • Payout: [Specify policy, e.g., "Accrued but unused vacation will be paid out upon termination of employment, in accordance with state law."].

5.2 Sick Leave

  • Accrual: Sick leave accrues at a rate of [e.g., "X hours per pay period"].
  • Usage: Sick leave can be used for an employee's own illness, injury, medical appointments, or to care for an immediate family member.
  • Notification: Employees must notify their manager as soon as possible, ideally [e.g., "at least two hours"] before their scheduled start time, when taking sick leave.
  • Doctor's Note: A doctor's note may be required for absences exceeding [e.g., "three consecutive days"].
  • Carryover: [Specify policy, e.g., "Unused sick leave may be carried over, up to a maximum of X hours."].

5.3 Bereavement Leave

Employees may take up to [e.g., "3-5 paid days"] of 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.

5.4 Jury Duty Leave

[Company Name] supports employees fulfilling their civic duty. Employees summoned for jury duty will receive [e.g., "paid leave for the duration of their service, up to X days per calendar year"]. Employees must provide a copy of their summons to HR promptly.

5.5 Family and Medical Leave Act (FMLA)

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

  • Birth and care of a newborn child.
  • Placement of a child for adoption or foster care.
  • Caring for an immediate family member with a serious health condition.
  • Employee's own serious health condition.
  • Qualifying exigencies arising from a family member's military service.
  • Specific provisions for military caregiver leave (up to 26 weeks).

Employees must meet FMLA eligibility requirements and follow company procedures for requesting leave.

5.6 Parental Leave

[Company Name] offers [e.g., "X weeks of paid parental leave for primary caregivers and Y weeks for secondary caregivers"] following the birth or adoption of a child. This leave runs concurrently with any FMLA leave taken. Eligibility and details are available from HR.


6. Compliance Sections

[Company Name] is committed to operating in full compliance with all applicable federal, state, and local laws and regulations. These sections highlight key compliance areas.

6.1 Workplace Safety and Health

  • OSHA Compliance: We adhere to all Occupational Safety and Health Administration (OSHA) standards to provide a safe and healthy work environment.
  • Safety Procedures: Employees are required to follow all safety rules and procedures, including the proper use of equipment and personal protective equipment (PPE).
  • Reporting Hazards: Any unsafe conditions, incidents, or injuries must be reported immediately to your manager or HR.
  • Emergency Procedures:
gemini Output

This comprehensive Employee Handbook is designed to provide you with a clear understanding of [Company Name]'s policies, procedures, benefits, and expectations. It serves as a vital resource for all employees, outlining our commitment to fostering a fair, respectful, and productive work environment.


Employee Handbook: [Company Name]

Effective Date: [Date, e.g., January 1, 2024]

Version: 1.0


I. Welcome & Introduction

1.1 Welcome Message from Leadership

Welcome to [Company Name]! We are thrilled to have you join our team. This handbook is designed to introduce you to our culture, values, policies, and benefits. It reflects our commitment to creating a supportive and thriving workplace where every employee can succeed. We believe in [Company Name]'s mission to [briefly state company mission] and are excited for you to contribute to our shared success.

1.2 Purpose of This Handbook

This handbook serves as a guide to our employment practices, policies, and procedures. It provides essential information regarding your rights and responsibilities as an employee of [Company Name]. Please read it carefully, as it contains important details that will help you understand our expectations and the resources available to you.

1.3 Our Company Vision, Mission, and Values

  • Vision: [Company Vision Statement - e.g., To be the leading innovator in X industry, recognized for excellence and customer satisfaction.]
  • Mission: [Company Mission Statement - e.g., To provide high-quality Y products/services through sustainable practices and dedicated teamwork.]
  • Core Values:

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

* Innovation: We embrace creativity and continuous improvement.

* Collaboration: We work together, respecting diverse perspectives.

* Excellence: We strive for the highest standards in all we do.

* Customer Focus: We are dedicated to meeting and exceeding customer expectations.

* Respect: We treat all individuals with dignity and professionalism.


II. Employment Basics

2.1 Employment-at-Will Disclaimer

Employment with [Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable law. This handbook is not an employment contract, expressed or implied, nor does it create any contractual rights.

2.2 Equal Employment Opportunity (EEO)

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

2.3 Americans with Disabilities Act (ADA)

[Company Name] complies with the Americans with Disabilities Act (ADA) and applicable state laws. We provide reasonable accommodations to qualified individuals with disabilities unless doing so would cause undue hardship. Employees needing an accommodation should contact [HR Department/Manager Name] to discuss their needs.

2.4 Anti-Discrimination & Anti-Harassment Policy

[Company Name] is committed to maintaining a work environment free from all forms of discrimination and harassment.

  • Prohibited Conduct: This includes, but is not limited to, offensive jokes, slurs, epithets, name-calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance. Sexual harassment, which includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature, is strictly prohibited.
  • Reporting Procedures: Any employee who believes they have been subjected to discrimination or harassment, or who witnesses such conduct, is encouraged to report it immediately to their supervisor, manager, or [HR Department/Designated Contact]. All complaints will be investigated promptly and thoroughly, with confidentiality maintained to the extent possible.
  • No Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports discrimination or harassment in good faith, participates in an investigation, or opposes discriminatory practices.

2.5 Workplace Safety & Health

The safety and health of our employees are paramount. We are committed to providing a safe working environment and require all employees to adhere to safety policies and procedures.

  • Reporting Hazards: Employees must report any unsafe conditions, equipment, or practices to their supervisor immediately.
  • Accident Reporting: All work-related injuries, illnesses, or near-misses, no matter how minor, must be reported to a supervisor as soon as possible.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and evacuation plans.

2.6 Drug-Free Workplace Policy

[Company Name] maintains a drug-free workplace to ensure the safety and productivity of all employees. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or on company property is strictly prohibited. Employees under the influence of drugs or alcohol are not permitted to work.

2.7 Background Checks

Employment offers may be contingent upon the successful completion of a background check, which may include criminal history, employment verification, and educational verification, consistent with applicable law.

2.8 Employment Categories

Employees are classified based on their work status:

  • Full-Time: Typically works 40 hours per week and is eligible for all company benefits.
  • Part-Time: Works less than 40 hours per week and may be eligible for certain benefits as outlined in this handbook or benefit plan documents.
  • Temporary: Employed for a specific period or project, often not eligible for full company benefits.
  • Exempt/Non-Exempt: Classifications under the Fair Labor Standards Act (FLSA) determining eligibility for overtime pay. Exempt employees are not eligible for overtime; non-exempt employees are.

2.9 Work Hours & Attendance

  • Standard Work Hours: [Company Name]'s standard business hours are [e.g., Monday-Friday, 9:00 AM - 5:00 PM]. Specific department or individual schedules may vary.
  • Attendance & Punctuality: Regular and punctual attendance is an essential function of every job. Employees are expected to be at their workstations ready to work at their scheduled start time.
  • Absence Notification: If you will be late or absent, you must notify your supervisor as early as possible, ideally at least [e.g., 2 hours] before your scheduled start time. Failure to notify or excessive absenteeism may result in disciplinary action.

2.10 Performance Reviews & Development

Regular performance reviews are conducted to provide feedback, recognize achievements, identify areas for improvement, and support career development. Employees typically receive an annual performance review.

2.11 Disciplinary Action

[Company Name] reserves the right to take disciplinary action up to and including immediate termination for violations of company policies, poor performance, or misconduct. Disciplinary actions may include verbal warnings, written warnings, suspension, or termination. The specific action taken will depend on the severity and frequency of the infraction.

2.12 Termination of Employment

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

  • Resignation: Employees are requested to provide at least [e.g., two weeks'] written notice to their supervisor and [HR Department] when resigning.
  • Exit Interview: An exit interview may be conducted to gather feedback on the employee's experience.
  • Final Paycheck: Final paychecks, including accrued, unused vacation time (if applicable and required by law), will be issued in accordance with state law.
  • Return of Company Property: All company property (laptops, keys, badges, etc.) must be returned on or before the last day of employment.

III. Compensation & Benefits

3.1 Compensation Philosophy

[Company Name] is committed to providing competitive compensation to attract, motivate, and retain talented employees. Our compensation structure is designed to be fair, transparent, and aligned with market rates and individual performance.

3.2 Pay Periods & Deductions

Employees are paid on a [e.g., bi-weekly/semi-monthly] basis. Payday is [e.g., every other Friday]. Deductions for taxes, benefits, and other authorized items will be made from each paycheck.

3.3 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 40 in a workweek. All overtime must be pre-approved by a supervisor. Exempt employees are not eligible for overtime pay.

3.4 Health & Wellness Benefits

[Company Name] offers a comprehensive benefits package to eligible employees. Details are provided in separate benefit plan documents.

  • Medical Insurance: [Briefly describe - e.g., Choice of PPO/HMO plans with employer contribution.]
  • Dental Insurance: [Briefly describe - e.g., Coverage for preventative, basic, and major services.]
  • Vision Insurance: [Briefly describe - e.g., Coverage for eye exams, glasses, and contact lenses.]

3.5 Retirement Plans

  • 401(k) Plan: Eligible employees can participate in our 401(k) retirement savings plan, which includes [e.g., a company match of X% up to Y% of salary]. Details regarding eligibility, vesting, and enrollment are available from [HR Department/Plan Administrator].

3.6 Paid Time Off (PTO)

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

  • Accrual: PTO is accrued on a [e.g., bi-weekly/monthly] basis, starting from your date of hire.
  • Usage: Employees may use PTO for vacation, personal appointments, or illness.
  • Maximum Accrual & Carryover: [State policy - e.g., Employees can accrue up to X hours of PTO. A maximum of Y hours may be carried over to the next calendar year. Unused PTO above Y hours will be forfeited.]
  • Requesting PTO: All PTO requests must be submitted to your supervisor [e.g., at least two weeks] in advance for vacations and approved before time is taken. Exceptions apply for unforeseen illness or emergencies.
  • Payout upon Termination: Unused accrued PTO will be paid out upon termination of employment, in accordance with state law.

3.7 Holiday Schedule

[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]

3.8 Other Benefits

  • Life Insurance: [Company-paid basic life insurance; option for supplemental coverage.]
  • Short-Term & Long-Term Disability: [Company-paid coverage for income protection.]
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues.
  • Wellness Programs: [e.g., Gym membership discounts, wellness challenges.]
  • Tuition Reimbursement: [Policy for eligible employees pursuing further education relevant to their role.]
  • Commuter Benefits: [e.g., Pre-tax transit or parking benefits.]

3.9 Expense Reimbursement

Employees are reimbursed for reasonable and approved business expenses incurred while performing their job duties. All expenses must adhere to the company's expense policy and require proper documentation (receipts).


IV. Leave of Absence Policies

4.1 Family and Medical Leave Act (FMLA)

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

4.2 Parental Leave (Maternity/Paternity)

[Company Name] provides [e.g., X weeks of paid/unpaid] parental leave for employees following the birth or adoption of a child, in addition to any FMLA leave. This leave must be taken within [e.g., 12 months] of the birth or placement.

4.3 Bereavement Leave

Employees may take up to [e.g., 3-5] days of paid 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 the discretion of management.

4.4 Jury Duty Leave

Employees summoned for jury duty will receive [e.g., paid/unpaid] leave for the period of service. Employees must provide a copy of the jury summons to their supervisor and [HR Department] as soon as possible.

4.5 Military Leave

[Company Name] complies with the Uniformed Services Employment and Reemployment Rights Act (USERRA). Employees who are members of the U.S. armed forces or National Guard will be granted leave for military service.

4.6 Voting Leave

Employees are encouraged to vote. If voting cannot be done outside of working hours, employees may take [e.g., up to X hours] of paid leave to vote, as required by state law. Employees must notify their supervisor in advance.

4.7 Other Leaves

Requests for other types of leave (e.g., unpaid personal leave) will be considered on a case-by-case basis and must be approved by management and [HR Department].


V. Workplace Conduct & Expectations (Code of Conduct)

5.1 Professionalism & Respect

All employees are expected to conduct themselves professionally and respectfully towards colleagues, customers, vendors, and the public. This includes respectful communication, appropriate behavior, and a commitment to teamwork.

5.2 Conflict of Interest

Employees must avoid situations where their personal interests conflict with the interests of [Company Name]. This includes, but is not limited to, engaging in outside employment that competes with the company, using company resources for personal gain, or accepting gifts that could be perceived as influencing business decisions.

5.3 Confidentiality & Proprietary Information

Employees are required to

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