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

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

Step 1: Requirements Analysis - Employee Handbook Generator

This document outlines the comprehensive requirements analysis for the "Employee Handbook Generator" workflow. The goal is to define the structure, content, design, and user experience specifications for a professional, legally compliant, and user-friendly employee handbook. This analysis serves as the foundational blueprint for subsequent development phases.


1. Executive Summary

The "Employee Handbook Generator" aims to produce a highly customizable, detailed, and professional employee handbook. This analysis breaks down the core content requirements, establishes design specifications for visual appeal and readability, describes conceptual wireframes for key sections, proposes a suitable color palette, and provides UX recommendations to ensure the generated handbook is intuitive, accessible, and effective for its target audience – new and existing employees. The output will be a comprehensive document, suitable for digital distribution (e.g., PDF) and print.


2. Core Requirements Analysis: Content & Structure

The employee handbook must be comprehensive, covering essential company policies, benefits, conduct expectations, leave procedures, and compliance information. Each section requires clear, concise, and legally sound language.

2.1. Company Policies Section

This section will detail the operational guidelines and expectations for employees.

  • Sub-sections:

* Employment Basics: Employment-at-will statement (if applicable), Equal Employment Opportunity (EEO) statement, non-discrimination policy, anti-harassment policy, reasonable accommodation.

* Workplace Conduct: Professionalism, dress code, attendance and punctuality, workplace safety, drug-free workplace policy, use of company property, social media policy, confidentiality/non-disclosure.

* Communication & Technology: Email and internet usage, data privacy, communication guidelines.

* Performance & Development: Performance reviews, training and development opportunities.

* Remote Work Policy (if applicable): Expectations, equipment, communication, security.

  • Key Considerations:

* Clear definitions of terms.

* Examples of acceptable/unacceptable behavior where appropriate.

* Reference to relevant legal frameworks.

2.2. Benefits Overview Section

A summary of the benefits package offered to employees.

  • Sub-sections:

* Health & Wellness: Medical, dental, vision insurance, wellness programs, Employee Assistance Programs (EAP).

* Financial Benefits: Retirement plans (401k, etc.), life insurance, disability insurance, flexible spending accounts (FSAs), health savings accounts (HSAs).

* Paid Time Off (PTO): Vacation, sick leave, holidays, personal days (details will be in Leave Policies).

* Other Benefits: Employee discounts, tuition reimbursement, commuter benefits.

  • Key Considerations:

* High-level overview; direct employees to specific plan documents for full details.

* Eligibility requirements for each benefit.

* Contact information for benefit administrators.

2.3. Code of Conduct Section

Outlines the ethical standards and behavioral expectations for all employees.

  • Sub-sections:

* Core Values: Company mission, vision, and values.

* Ethical Behavior: Honesty, integrity, respect, fairness.

* Conflict of Interest: Policy and reporting procedures.

* Anti-Bribery & Corruption: Policy and guidelines.

* Reporting Violations: Whistleblower protection, anonymous reporting mechanisms, non-retaliation policy.

* Disciplinary Action: General statement regarding consequences of policy violations.

  • Key Considerations:

* Strong emphasis on company culture and ethical principles.

* Clear reporting channels and assurance of confidentiality.

2.4. Leave Policies Section

Detailed procedures and eligibility for various types of leave.

  • Sub-sections:

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

* Sick Leave: Policies, documentation requirements.

* Holiday Schedule: List of recognized holidays.

* Family & Medical Leave Act (FMLA): Eligibility, application process, rights, and responsibilities.

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

* Unpaid Leave: Conditions and procedures.

  • Key Considerations:

* Compliance with federal, state, and local leave laws.

* Clear instructions on how to request and manage leave.

* Documentation requirements for each leave type.

2.5. Compliance Sections

Information necessary to ensure legal adherence and employee understanding of their rights and responsibilities.

  • Sub-sections:

* Non-Disclosure & Confidentiality: Agreement, proprietary information protection.

* Data Security & Privacy: Employee responsibilities, company protocols.

* Workplace Safety (OSHA): Emergency procedures, accident reporting, safety guidelines.

* Harassment & Discrimination: Detailed policy, reporting mechanisms, investigation process.

* Whistleblower Policy: Protection for reporting illegal or unethical activities.

* Acknowledgement of Receipt: A dedicated section for employees to sign/acknowledge they have read and understood the handbook (critical for legal protection).

* Disclaimer: Statement that the handbook is not a contract, policies may change, and supersedes previous versions.

  • Key Considerations:

* Legal counsel review is paramount for all compliance sections.

* Accessibility of reporting mechanisms.

* Clear and unambiguous language.


3. Design Specifications (Visuals for the Handbook)

The handbook's design must convey professionalism, trustworthiness, and approachability, facilitating easy comprehension.

3.1. Overall Aesthetic

  • Style: Clean, modern, professional, and corporate.
  • Tone: Informative, welcoming, and authoritative.
  • Readability: High priority on clear typography, ample white space, and logical flow.
  • Branding: Incorporate company logo, primary colors, and any specific brand guidelines provided by the user.

3.2. Typography

  • Headings (H1, H2, H3):

* Font Family: A clean, sans-serif font (e.g., Montserrat, Lato, Open Sans, Roboto).

* Weight: Bold or Semi-Bold for emphasis.

* Size: Varied (e.g., H1: 24-28pt, H2: 18-22pt, H3: 14-16pt) to establish clear hierarchy.

* Color: Primary brand color or dark neutral.

  • Body Text:

* Font Family: A highly readable sans-serif font (e.g., Lato, Open Sans, Roboto, Noto Sans).

* Size: 10-12pt for digital viewing, 9-11pt for print.

* Line Spacing: 1.4 - 1.6 for enhanced readability.

* Color: Dark gray (#333333 or #2C3E50) for optimal contrast.

  • Captions/Footnotes:

* Font Family: Same as body text, but slightly smaller.

* Size: 8-9pt.

* Color: Lighter gray (#666666).

3.3. Layout & Grid

  • Margins: Generous margins (e.g., 0.75-1 inch) to provide breathing room and prevent a cramped feel.
  • Columns: Predominantly single-column layout for main content; two-column layout for sidebars, short lists, or quick facts.
  • White Space: Abundant use of white space around headings, paragraphs, and images to reduce cognitive load and improve focus.
  • Paragraphs: Keep paragraphs relatively short (3-7 lines) to improve scannability.
  • Lists: Use bullet points and numbered lists extensively for policies, procedures, and benefits summaries.

3.4. Imagery & Icons

  • Company Logo: Prominently displayed on the cover page and potentially in the header/footer of internal pages.
  • Section Icons: Small, relevant icons can be used next to section titles to provide visual cues (e.g., a shield for "Code of Conduct," a leaf for "Leave Policies").
  • Illustrations/Photography: Optional, but if used, should be professional, diverse, and align with company culture (e.g., team collaboration, growth, modern workplace). Avoid stock photos that feel generic.
  • Data Visualization: Simple charts or infographics for benefits overviews (e.g., a pie chart showing benefit allocation) can be effective.

3.5. Interactivity (for Digital Handbooks - e.g., PDF with links)

  • Hyperlinks: All internal references (e.g., "See Section 4.2 for details") and external URLs (e.g., benefits provider websites) should be clickable.
  • Table of Contents: Must be interactive, allowing users to jump directly to sections.
  • Search Functionality: (If hosted on a web platform) Essential for quick information retrieval.

4. Wireframe Descriptions (Conceptual Layouts)

These descriptions outline the structural elements of key pages/sections within the generated handbook.

4.1. Cover Page

  • Header: Company Logo (top center or top left).
  • Title: Large, bold "Employee Handbook" (centered).
  • Subtitle: "Your Guide to [Company Name]'s Culture, Policies, and Benefits" (centered, slightly smaller).
  • Version/Date: "Effective Date: [Month, Year]" and "Version: [X.X]" (bottom left/right or centered at bottom).
  • Footer: Company Name and Website (optional).
  • Visual: Optional subtle background pattern or brand-aligned graphic.

4.2. Table of Contents (TOC)

  • Header: "Table of Contents" (prominent).
  • Structure: Hierarchical list of all main sections and sub-sections.

* Main sections (e.g., "1. Company Policies") in bold, larger font.

* Sub-sections (e.g., "1.1 Employment Basics") indented, regular font.

  • Page Numbers: Right-aligned page numbers for each entry.
  • Interactivity: Each entry should be a clickable link to the respective section (for digital versions).

4.3. Section Introduction Page (e.g., "2. Benefits Overview")

  • Header: Large, bold Section Title (e.g., "2. Benefits Overview").
  • Optional Icon: A relevant icon next to the title.
  • Introduction: A brief, welcoming paragraph summarizing what the section covers.
  • Key Highlights (Optional): 2-3 bullet points outlining the most important takeaways from the section.
  • Body Content: Leads directly into the first sub-section.

4.4. Standard Policy Page (e.g., "1.2 Workplace Conduct")

  • Header: Section Title (e.g., "1. Company Policies") in smaller font, Sub-section Title (e.g., "1.2 Workplace Conduct") in larger font.
  • Policy Statement: Clear, concise statement of the policy's purpose.
  • Detailed Guidelines:

* Bulleted or numbered lists for specific rules and expectations.

* Short paragraphs explaining rationale or context.

* Use of bold text for key terms or actions.

  • Reporting/Contact Information: If applicable (e.g., for harassment policy), clearly state who to contact.
  • Effective Date/Last Updated: Small text at the bottom of the policy.

4.5. Benefits Overview Page (Specific Benefit Example)

  • Header: Section Title and Sub-section Title (e.g., "2. Benefits Overview - 2.1 Health & Wellness").
  • Benefit Title: Prominent (e.g., "Medical Insurance").
  • Summary: Brief description of the benefit.
  • Key Features (Bulleted List): Deductibles, co-pays, network type, prescription coverage.
  • Eligibility: Clear statement of who is eligible.
  • Enrollment Information: How and when to enroll.
  • Contact Information: Name/department and phone/email for questions or further details.
  • Link: "For full details, please refer to the [Plan Document Name] or visit [Provider Website Link]."

4.6. Acknowledgement of Receipt Page

  • Header: "Acknowledgement of Receipt" (prominent).
  • Introduction: Explanatory text stating the purpose of the acknowledgement (e.g., "I acknowledge that I have received, read, and understand the policies...").
  • Employee Name: Line for printed name.
  • Employee Signature: Line for signature.
  • Date: Line for date.
  • Disclaimer Reminder: A concise reminder about the handbook not being a contract and policies being subject to change.

5. Color Palettes

A professional and accessible color palette is crucial for legibility and brand reinforcement. We propose a flexible palette that can be adapted to specific company branding.

5.1. Primary Palette (Corporate & Professional)

  • Primary Brand Color: User-defined (e.g., a deep blue, corporate green, or rich grey). Used for main headings, important accents, and company logo.

Example:* #005B9A (Deep Blue)

  • Secondary Brand Color: A complementary color, often lighter or a different hue. Used for sub-headings, section dividers, or subtle backgrounds.

Example:* #336699 (Medium Blue)

  • Accent Color: A bright, contrasting color for calls to action, highlights, or icons. Used sparingly.

Example:* #FF6F61 (Coral Red) or #8BC34A (Lime Green)

5.2

gemini Output

The following detailed output constitutes a comprehensive Employee Handbook, ready for review and customization. This document is designed to provide a clear understanding of our company culture, policies, benefits, and expectations.


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

Welcome to [Company Name]!

A Message from Our Leadership

Welcome to the [Company Name] team! We are thrilled to have you join our growing family. This handbook is designed to be your essential guide, providing a clear understanding of our company's mission, values, policies, and the benefits available to you.

At [Company Name], we believe that our greatest asset is our people. We are committed to fostering an inclusive, dynamic, and supportive work environment where every individual can thrive, innovate, and contribute to our shared success. We encourage you to familiarize yourself with the contents of this handbook, as it outlines the principles and practices that guide our daily operations and professional interactions.

Thank you for choosing to be a part of [Company Name]. We look forward to achieving great things together!

Sincerely,

The Leadership Team

[Company Name]

Our Mission, Vision, and Values

  • Mission: [Insert Company Mission Statement Here - e.g., "To innovate and deliver exceptional solutions that empower our customers and enrich our community."]
  • Vision: [Insert Company Vision Statement Here - e.g., "To be the leading innovator in our industry, recognized for our commitment to excellence, integrity, and sustainable growth."]
  • Values: These core values define who we are and how we operate:

* Integrity: We uphold the highest standards of honesty and ethical conduct in all our actions.

* Innovation: We embrace creativity and continuously seek new ways to improve and grow.

* Collaboration: We believe in the power of teamwork and respectful communication.

* Excellence: We are committed to delivering high-quality results and exceeding expectations.

* Accountability: We take responsibility for our actions and commitments.

* Respect: We value diversity and treat everyone with dignity and professionalism.

Purpose of This Handbook

This handbook serves as a primary reference for all employees regarding the policies, procedures, and benefits provided by [Company Name]. It is designed to:

  • Clarify expectations and responsibilities for both employees and the company.
  • Outline company policies and procedures uniformly and consistently.
  • Provide information about your compensation, benefits, and opportunities for growth.
  • Reinforce our commitment to a fair, respectful, and productive workplace.

This handbook is not an employment contract and does not create any contractual rights. It summarizes important information and may be updated periodically. Employees will be notified of any significant changes.


Section 1: General Company Policies

1.1 Work Hours and Attendance

  • Standard Work Hours: Our standard business hours are [e.g., Monday through Friday, 9:00 AM to 5:00 PM]. Specific department hours may vary.
  • Punctuality and 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: If you are unable to report to work due to illness or other unforeseen circumstances, you must notify your direct supervisor at least [e.g., two hours] before your scheduled start time.
  • Breaks and Meal Periods: Employees are generally provided with a [e.g., 30-minute to 1-hour] unpaid meal break for shifts over [e.g., five hours] and paid rest breaks of [e.g., 15 minutes] for every [e.g., four hours] worked. Specific break schedules will be communicated by your supervisor.
  • Overtime: Non-exempt employees are eligible for overtime pay for hours worked beyond [e.g., 40 hours] in a workweek, as required by law. All overtime must be pre-approved by your supervisor.

1.2 Workplace Safety and Security

  • Safety First: [Company Name] is committed to providing a safe and healthy workplace. All employees are responsible for adhering to safety policies and reporting any unsafe conditions or incidents immediately to their supervisor or HR.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, earthquake, or other emergencies. Emergency plans are posted throughout the workplace.
  • Security: Access to company premises may require an access card or key. Do not share your access credentials. Report any suspicious activity or unauthorized persons to management immediately.
  • Workplace Violence Prevention: We have zero tolerance for any form of violence or threats of violence. Any such behavior will result in immediate disciplinary action, up to and including termination and legal prosecution.

1.3 Communication Guidelines

  • Open Communication: We encourage open, honest, and respectful communication among all employees.
  • Professional Conduct: All communication, whether verbal, written, or electronic, must be professional and respectful.
  • Chain of Command: While open communication is encouraged, employees should generally follow the established chain of command for work-related issues and concerns.

1.4 Technology and Data Usage Policy

  • Company Resources: Company-provided technology (computers, software, internet, email, phones) is primarily for business use. Limited, reasonable personal use is permitted, provided it does not interfere with work duties, violate company policies, or consume excessive resources.
  • Monitoring: Employees should have no expectation of privacy when using company-owned systems or equipment. [Company Name] reserves the right to monitor all usage of its information systems, including email, internet, and files, to ensure compliance with company policies and legal obligations.
  • Data Security: Employees are responsible for protecting company data and proprietary information. Do not share passwords, leave devices unsecured, or transmit sensitive data through unapproved channels. Report any suspected data breaches or security incidents immediately.
  • Prohibited Use: Use of company technology for illegal activities, harassment, sending offensive material, gambling, or accessing inappropriate content is strictly prohibited.

1.5 Confidentiality and Proprietary Information

  • Obligation to Protect: Employees are obligated to protect the confidential and proprietary information of [Company Name], its customers, and partners. This includes, but is not limited to, trade secrets, financial data, customer lists, product designs, marketing plans, and employee information.
  • Non-Disclosure: Confidential information must not be disclosed to unauthorized individuals or used for personal gain, either during or after employment.
  • Return of Information: Upon termination of employment, all company property and confidential information must be returned.

1.6 Dress Code

  • Professional Appearance: Employees are expected to maintain a professional and appropriate appearance that reflects positively on [Company Name]. The dress code is generally [e.g., business casual/professional].
  • Specific Guidelines:

* Clothing should be clean, neat, and in good repair.

* Avoid overly casual attire (e.g., torn jeans, flip-flops, excessively revealing clothing).

* For customer-facing roles or specific events, a more formal dress code may be required.

* Supervisors will provide guidance on appropriate attire for specific roles or situations.

1.7 Drug-Free Workplace Policy

  • Commitment: [Company Name] is committed to maintaining a drug-free and alcohol-free workplace to ensure the safety and productivity of all employees.
  • Prohibition: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited.
  • Impairment: Employees must not report to work or remain at work while under the influence of alcohol or illegal drugs, or any substance that impairs their ability to perform their job safely and effectively.
  • Prescription Medication: Employees taking legally prescribed medication that may impair their ability to perform their job safely must inform their supervisor.

Section 2: Compensation and Benefits

2.1 Compensation Structure

  • Pay Periods: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday/the 15th and last day of the month].
  • Direct Deposit: Direct deposit is mandatory for all employees.
  • Pay Stubs: Pay stubs are available [e.g., online through our HRIS portal].
  • Performance Reviews: Performance reviews are conducted [e.g., annually/semi-annually] to assess performance, provide feedback, and discuss compensation adjustments.

2.2 Payroll Information

  • Tax Withholding: Employees are responsible for accurately completing W-4 forms for federal tax withholding and any applicable state tax forms. Updates can be made through [HRIS portal name].
  • Questions: For any payroll-related questions, please contact [HR Department/Payroll Department].

2.3 Health and Wellness Benefits

[Company Name] is proud to offer a comprehensive benefits package to eligible employees.

  • Medical Insurance: We offer [e.g., PPO/HMO] medical plans through [Insurance Provider Name]. Coverage includes [e.g., doctor visits, hospitalization, prescription drugs]. Employee contributions apply.
  • Dental Insurance: Our dental plan, provided by [Insurance Provider Name], covers [e.g., preventative care, basic and major services].
  • Vision Insurance: Vision coverage, through [Insurance Provider Name], includes [e.g., annual eye exams, allowances for glasses/contact lenses].
  • Eligibility: Typically, full-time employees are eligible for benefits after [e.g., 30/60/90] days of employment. Specific eligibility criteria are outlined in plan documents.
  • Enrollment: Enrollment details and deadlines will be provided by HR upon eligibility.

2.4 Retirement Savings Plan

  • 401(k) Plan: [Company Name] offers a 401(k) retirement savings plan through [Financial Institution Name] to help you save for your future.
  • Company Match: [Company Name] offers a [e.g., 50% match on the first 6% of your contributions].
  • Eligibility: Employees are eligible to participate after [e.g., 6 months/1 year] of service, if they are at least [e.g., 21] years old.
  • Vesting: The company match has a [e.g., 3-year graded vesting schedule].
  • Details: Full details are available in the official 401(k) plan document.

2.5 Other Benefits and Perks

  • Life Insurance: [Company Name] provides basic life insurance coverage of [e.g., 1x annual salary] at no cost to employees. Additional voluntary life insurance may be purchased.
  • Short-Term and Long-Term Disability: We offer [e.g., company-paid/voluntary] short-term and long-term disability insurance to protect your income during periods of extended illness or injury.
  • Employee Assistance Program (EAP): A confidential EAP is available to provide support for personal and work-related issues, including counseling, financial advice, and legal consultation.
  • Professional Development: We support continuous learning through [e.g., tuition reimbursement, training programs, conference attendance].
  • Employee Discounts: [List any specific employee discounts or perks, e.g., gym memberships, product discounts].

Section 3: Leave Policies

3.1 Paid Time Off (PTO) / Vacation Leave

  • Accrual: Employees accrue PTO at a rate of [e.g., X hours per pay period/X days per year]. Accrual rates may increase with years of service.
  • Usage: PTO can be used for vacation, personal appointments, or other personal reasons.
  • Requesting PTO: All PTO requests must be submitted to your supervisor through [HRIS portal name] at least [e.g., two weeks] in advance, whenever possible, and are subject to approval based on business needs.
  • Carryover: Employees may carry over up to [e.g., 40/80] hours of unused PTO into the next calendar year.
  • Payout: Unused PTO may be paid out upon separation of employment, depending on state law and company policy.

3.2 Sick Leave

  • Accrual: Employees accrue sick leave at a rate of [e.g., X hours per pay period/X days per year] as required by local and state laws.
  • Usage: Sick leave is to be used for an employee's own illness, injury, medical appointments, or to care for an eligible family member.
  • Reporting: Notify your supervisor as soon as possible, ideally before your scheduled start time, if you need to use sick leave.
  • Medical Certification: For absences exceeding [e.g., three] consecutive days, a doctor's note may be required.

3.3 Personal Leave

  • Unpaid Leave: Unpaid personal leave may be granted at the discretion of management for compelling personal reasons, after all accrued PTO has been exhausted.
  • Request Process: Requests for personal leave must be submitted in writing to your supervisor and HR, providing sufficient notice.

3.4 Family and Medical Leave Act (FMLA)

  • Eligibility: Eligible employees may take up to 12 weeks of unpaid, job-protected leave for specific family and medical reasons, as defined by the FMLA.
  • Reasons for Leave: These include 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.
  • Notification: Employees must provide [e.g., 30 days] notice when the need for leave is foreseeable, or as soon as practicable.
  • Details: Full details and eligibility requirements are available from the HR Department.

3.5 Bereavement Leave

  • Paid Leave: Employees may be granted [e.g., 3-5] days of paid bereavement leave for the death of an immediate family member (e.g., spouse, child, parent, sibling).
  • Unpaid Leave: Additional unpaid leave may be granted at management's discretion.
  • Notification: Notify your supervisor and HR as soon as possible.

3.6 Jury Duty Leave

  • Paid Leave: Employees summoned for jury duty will receive [e.g., regular pay for up to 5 days]. You must provide a copy of your summons to HR.
  • Return to Work: You are expected to return to work if released from jury duty early.

3.7 Military Leave

  • USERRA Compliance: [Company Name] complies with the Uniformed Services Employment and Reemployment Rights Act (USERRA), providing reemployment rights to employees who serve in the military.
  • Notification: Employees must provide advance notice of military service when possible.
  • Details: Contact HR for specific information regarding military leave and reemployment.

Section 4: Code of Conduct and Ethics

4

gemini Output

This output delivers a comprehensive, detailed, and professional Employee Handbook designed to provide employees with a clear understanding of company policies, expectations, benefits, and legal compliance. It is structured for readability and ease of reference, with specific placeholders for customization.


Employee Handbook

[Company Name]

Effective Date: [Month Day, Year]

1. Welcome to [Company Name]!

Dear Valued Employee,

On behalf of the entire leadership team, I extend a warm welcome to you! We are thrilled to have you join [Company Name] and become a vital part of our growing team. We believe that our success is built on the talent, dedication, and innovation of our employees.

This Employee Handbook is designed to be a comprehensive resource, providing you with essential information about our company culture, policies, procedures, benefits, and expectations. It serves as a guide to help you understand your rights and responsibilities as an employee of [Company Name] and to ensure a consistent, fair, and productive work environment for everyone.

Please take the time to read this handbook thoroughly. Familiarizing yourself with its contents will help you navigate your role, understand our commitment to you, and contribute to our shared success.

We are committed to fostering a workplace where every employee feels valued, respected, and empowered to do their best work. We encourage open communication and invite you to reach out to your manager or the Human Resources Department with any questions or concerns you may have.

Thank you for choosing to be a part of [Company Name]. We look forward to achieving great things together!

Sincerely,

[CEO/President Name]

CEO/President, [Company Name]


2. Our Company

2.1. Our Mission

To [Insert Company Mission Statement - e.g., "innovate solutions that empower our customers to achieve their goals through cutting-edge technology and exceptional service."].

2.2. Our Vision

To [Insert Company Vision Statement - e.g., "be the leading provider in our industry, recognized for our commitment to excellence, integrity, and sustainable growth."].

2.3. Our Values

At [Company Name], our core values guide our actions and define our culture:

  • Integrity: We act with honesty and transparency in all our dealings.
  • Excellence: We strive for the highest standards in everything we do.
  • Collaboration: We believe in teamwork and mutual support to achieve common goals.
  • Innovation: We embrace creativity and continuous improvement.
  • Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.
  • Respect: We value diversity and treat everyone with dignity and professionalism.

2.4. Company Overview

[Provide a brief paragraph about the company's history, what it does, and its position in the industry. E.g., "[Company Name] was founded in [Year] with a vision to revolutionize [Industry/Service]. Since then, we have grown into a dynamic and forward-thinking organization, dedicated to [key focus]. We pride ourselves on our innovative approach and our commitment to both our customers and our employees."].


3. Employment Policies

3.1. Equal Employment Opportunity (EEO) & Anti-Discrimination

[Company Name] is an Equal Opportunity Employer. We are committed to creating and maintaining a diverse and inclusive workplace free from discrimination and harassment. All employment decisions, including hiring, promotion, discipline, and termination, are based on merit, qualifications, and business needs, without regard to race, color, religion, gender, sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other characteristic protected by applicable law.

3.2. Anti-Harassment Policy

[Company Name] prohibits harassment of any kind, including sexual harassment, bullying, and hostile work environment harassment. This includes unwelcome conduct based on any protected characteristic. Any employee who believes they have been subjected to harassment or who witnesses harassment should report it immediately to their manager or the Human Resources Department. All complaints will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports harassment or participates in an investigation is strictly prohibited.

3.3. Recruitment and Hiring

[Company Name] is committed to a fair and transparent recruitment process. We seek to attract, hire, and retain the most qualified candidates for all positions. All job offers are contingent upon successful completion of background checks, reference checks, and verification of eligibility to work in the United States (Form I-9).

3.4. Employment-At-Will (If Applicable)

[NOTE: This section should only be included if your company operates under an "at-will" employment doctrine. Consult legal counsel.]

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

3.5. Onboarding and Probationary Period

New employees typically undergo an onboarding process to familiarize themselves with our company culture, systems, and job responsibilities. A probationary period of [e.g., 90 days] may apply, during which time both the employee and the company can assess the suitability of the employment relationship. Successful completion of the probationary period does not guarantee continued employment.

3.6. Performance Management and Reviews

Regular performance reviews are conducted to provide feedback, recognize achievements, identify areas for development, and align individual goals with company objectives. Employees are encouraged to actively participate in this process and communicate regularly with their managers regarding performance and career development.

3.7. Confidentiality and Data Protection

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its customers, and business partners. This includes, but is not limited to, financial data, trade secrets, customer lists, product designs, marketing strategies, and personal employee data. Employees must maintain the strict confidentiality of all such information both during and after their employment. Unauthorized disclosure of confidential information is a serious offense and may result in disciplinary action, up to and including termination, and legal action.

3.8. Employee Records

Employees are responsible for keeping their personal information (e.g., address, phone number, emergency contacts, marital status, beneficiaries) up-to-date with the Human Resources Department. Employee records are confidential and maintained in accordance with applicable privacy laws.

3.9. Termination of Employment

Employment may be terminated by either the employee or [Company Name] in accordance with the "at-will" policy (if applicable) and applicable laws. Employees are requested to provide at least two weeks' written notice of resignation. Upon termination, employees will receive their final pay and information regarding benefits continuation (e.g., COBRA, 401k rollovers) as required by law.

3.10. Workplace Safety and Health

[Company Name] is committed to providing a safe and healthy work environment. All employees are responsible for adhering to safety rules and procedures, reporting unsafe conditions or hazards immediately, and participating in safety training. In case of an injury or accident at work, it must be reported to a manager and HR immediately, regardless of severity.


4. Workplace Conduct and Expectations (Code of Conduct)

4.1. Professionalism and 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.

4.2. Attendance and Punctuality

Regular attendance and punctuality are essential for the efficient operation of [Company Name]. Employees are expected to report to work on time and as scheduled. If an employee is unable to report to work due to illness or other unforeseen circumstances, they must notify their manager as soon as possible, and generally no later than [e.g., one hour] before their scheduled start time. Excessive absenteeism or tardiness may result in disciplinary action.

4.3. Dress Code

Employees are expected to dress in a manner appropriate for our professional work environment. The dress code is generally [e.g., "business casual" or "smart casual"]. Specific guidelines may vary by department or role. Employees should ensure their attire is clean, neat, and professional, reflecting a positive image of [Company Name]. Managers will address any concerns regarding inappropriate dress.

4.4. Use of Company Property and Resources

Company property, including equipment, vehicles, software, and supplies, is provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, is not excessive, and does not violate any company policies or applicable laws. Employees are responsible for the proper care, maintenance, and security of company property. Misuse or theft of company property will result in disciplinary action.

4.5. Conflict of Interest

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

4.6. Drug and Alcohol-Free Workplace

[Company Name] is committed to maintaining a drug and alcohol-free workplace to ensure the safety and productivity of all employees. The use, possession, sale, transfer, or being under the influence of illegal drugs, unauthorized prescription drugs, or alcohol on company premises or during work hours is strictly prohibited. Violation of this policy will result in disciplinary action, up to and including termination.

4.7. Workplace Violence Prevention

[Company Name] has zero tolerance for any form of workplace violence, threats, intimidation, or aggressive behavior. Any employee who experiences or witnesses such behavior should report it immediately to their manager or Human Resources. All reports will be taken seriously and investigated promptly.

4.8. Social Media Policy

Employees are expected to exercise good judgment and professionalism when using social media, especially when identifying themselves as an employee of [Company Name]. Employees should not post confidential company information, disparage the company, its employees, customers, or partners, or engage in any online activity that could damage the company's reputation or violate other company policies. This policy applies to personal social media use that impacts the workplace.

4.9. Data Security and IT Acceptable Use

Employees are responsible for protecting company data and adhering to IT security policies. This includes using strong passwords, protecting login credentials, not sharing accounts, and reporting any suspicious activity or security breaches immediately. The use of company IT systems (computers, networks, internet, email) is primarily for business purposes. Employees should have no expectation of privacy when using company IT resources, and the company reserves the right to monitor usage in accordance with applicable laws.


5. Compensation and Benefits Overview

5.1. Pay Periods

Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday] for the pay period ending [e.g., the previous Sunday]. Paychecks are issued via direct deposit.

5.2. Overtime

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, in accordance with the Fair Labor Standards Act (FLSA). All overtime must be pre-approved by a manager.

5.3. Health and Welfare Benefits

[Company Name] offers a comprehensive benefits package to eligible employees, which may include:

  • Medical Insurance: [Briefly describe plans, e.g., "Choice of PPO and 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."].
  • Life Insurance: [Briefly describe, e.g., "Company-paid basic life insurance with options for supplemental coverage."].
  • Short-Term and Long-Term Disability: [Briefly describe, e.g., "Income protection in case of qualifying illness or injury."].
  • Employee Assistance Program (EAP): [Briefly describe, e.g., "Confidential counseling and support services for personal and work-related issues."].

NOTE: Details regarding eligibility, enrollment, premiums, and specific plan features are provided in separate benefits enrollment materials and plan documents. These documents govern the terms and conditions of all benefits.

5.4. Retirement Plans

[Company Name] offers a [e.g., 401(k) retirement plan] to help employees save for their future. Eligible employees can contribute a portion of their pay on a pre-tax basis, and the company may offer a matching contribution.

NOTE: Details regarding eligibility, vesting, contribution limits, and investment options are available in the plan document.

5.5. Other Perks and Programs

  • Professional Development: [Company Name] supports continuous learning through [e.g., training programs, tuition reimbursement, conference attendance].
  • Wellness Programs: [e.g., "Access to wellness challenges, fitness discounts, and health resources."].
  • Employee Discounts: [e.g., "Discounts on company products/services or through partner vendors."].

6. Leave Policies

6.1. Paid Time Off (PTO) / Vacation Policy

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

  • Accrual: Employees begin accruing PTO from their first day of employment at a rate of [e.g., X hours per pay period].
  • Usage: PTO can be used for vacation, personal appointments, or minor illnesses. Requests for PTO should be submitted to your manager [e.g., at least two weeks] in advance, whenever possible, and are subject to business needs and manager approval.
  • Maximum Accrual: Employees may accrue up to a maximum of [e.g., 240 hours] of PTO.
  • Carryover/Payout: [e.g., "Unused PTO up to [X hours] may be carried over to the next year," or "Unused PTO is not paid out upon termination of employment."]

NOTE: Specific details on accrual rates, maximums, and usage are outlined in the separate PTO policy document.

6.2. Sick Leave Policy

In addition to PTO for minor illnesses,

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