Employee Handbook Generator
Run ID: 69cb12fa42bc43f7e3be72962026-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: Analyze Requirements - Employee Handbook Generator

This document outlines the detailed requirements, design specifications, user experience (UX) recommendations, and aesthetic guidelines for the "Employee Handbook Generator." The goal is to create a robust, intuitive, and highly customizable tool that generates professional, legally compliant employee handbooks.


1. Project Overview & Core Objectives

The Employee Handbook Generator aims to streamline the creation of comprehensive employee handbooks for businesses of all sizes. It will simplify the complex task of drafting policies, ensuring compliance, and maintaining a professional tone, saving time and resources for HR professionals and business owners.

Core Objectives:

  • Comprehensive Coverage: Include essential sections like company policies, benefits, code of conduct, leave policies, and compliance.
  • Customization: Allow users to tailor content, branding, and sections to their specific company needs.
  • Ease of Use: Provide an intuitive, step-by-step interface for efficient handbook generation.
  • Professional Output: Generate high-quality, well-formatted handbooks suitable for official company use.
  • Compliance Support: Offer guidance and templates to help users adhere to relevant labor laws and regulations.
  • Version Control: Enable easy updates and version management for evolving policies.

2. Detailed Design Specifications

2.1 Functional Requirements (Generator Tool)

  • User Authentication & Profiles: Secure login, ability to save and retrieve multiple handbook projects.
  • Company Information Setup:

* Input fields for Company Name, Logo upload, Industry, Address, Contact Information.

* Option to select company size (e.g., <50 employees, 50-200, >200) for tailored policy suggestions.

  • Section Management:

* Pre-defined Sections: A comprehensive list of standard handbook sections (e.g., Welcome Message, Code of Conduct, IT Policy, Leave Policies, Benefits Overview, Compensation, Safety, Disciplinary Actions, Termination, Compliance).

* Custom Section Creation: Ability to add new, user-defined sections.

* Section Reordering: Drag-and-drop functionality to arrange sections.

* Section Enable/Disable: Toggle sections on/off based on company relevance.

  • Content Generation & Editing:

* Template-Based Content: Pre-written, customizable policy templates for each section, designed by legal experts where appropriate.

* Rich Text Editor (WYSIWYG): For editing template content or inputting custom text, including formatting options (bold, italics, lists, links, images).

* Placeholder Management: Dynamic placeholders (e.g., [Company Name], [Employee Name]) that auto-populate from company information.

* File Uploads: Option to upload existing policy documents (PDF, DOCX) to be included as appendices or embedded.

  • Benefits Overview Module:

* Structured input fields for various benefit types: Health Insurance, Dental, Vision, Retirement Plans (401k, etc.), PTO, Holidays, Sick Leave, Parental Leave, Life Insurance, Disability, etc.

* Ability to add custom benefit categories.

  • Compliance & Legal Guidance:

* Jurisdiction Selection: User selects country/state/province to receive relevant compliance nudges.

* Compliance Checkpoints: Highlight common legal requirements or areas needing specific attention (e.g., FMLA, ADA, FLSA, state-specific mandates).

* Disclaimer Templates: Standard legal disclaimers to protect the employer.

* Integration with Legal Resources: Links to external legal resources or recommended legal review.

  • Branding & Styling:

* Logo Integration: Company logo displayed prominently.

* Color Palette Customization: Primary, secondary, and accent color selectors for handbook output.

* Font Selection: Choice of professional fonts for headings and body text.

* Page Layout Options: Header/footer customization, page numbering.

  • Review & Preview:

* Real-time Preview: Ability to see the handbook as it's being built.

* Full Handbook Preview: A complete, scrollable/navigable preview of the generated handbook.

* Table of Contents Generation: Automatic generation of a clickable table of contents for digital versions.

  • Export & Sharing:

* PDF Export: High-quality PDF output for printing and digital distribution.

* DOCX Export: Editable Microsoft Word document for further customization.

* Web-based Handbook: Option to generate a shareable, responsive web link.

* Version Control: Ability to save multiple versions of a handbook with effective dates.

  • Signature Page: Automatic generation of a customizable employee acknowledgement and signature page.

2.2 Non-Functional Requirements

  • Performance: Fast loading times, responsive interface.
  • Security: Data encryption, secure user authentication, compliance with data privacy regulations (e.g., GDPR, CCPA).
  • Scalability: Ability to handle increasing user numbers and handbook complexity.
  • Reliability: High uptime, data backup and recovery mechanisms.
  • Usability: Intuitive, easy to learn, and efficient for target users (HR professionals, business owners).
  • Accessibility: Adherence to WCAG 2.1 AA standards for users with disabilities.
  • Maintainability: Well-structured code, easy to update and extend features.
  • Cross-Browser Compatibility: Support for major modern web browsers (Chrome, Firefox, Edge, Safari).

3. Wireframe Descriptions (Conceptual Layouts)

The following descriptions outline the key screens and their components for the "Employee Handbook Generator" interface.

3.1 Screen 1: Dashboard / Project Management

  • Layout: Clean, minimalist.
  • Components:

* Header: "Employee Handbook Generator" title, User Profile/Settings icon.

* Main Area:

* "Start New Handbook" Button: Prominently displayed, initiates the handbook creation wizard.

* "My Handbooks" Section: List of previously saved handbooks (Handbook Name, Last Edited Date, Status). Each item includes:

* "Edit" button.

* "Preview" button.

* "Download" (PDF/DOCX) button.

* "Duplicate" button.

* "Delete" button.

* Search Bar: To filter saved handbooks.

3.2 Screen 2: Setup Wizard - Step 1: Company Information

  • Layout: Single column form with a progress indicator at the top.
  • Components:

* Progress Bar: "Step 1 of X: Company Info"

* Header: "Tell Us About Your Company"

* Input Fields:

* Company Name (text input)

* Industry (dropdown/searchable list)

* Company Size (radio buttons/dropdown: e.g., 1-10, 11-50, 51-200, 201-500, 500+)

* Primary Business Address (text input, perhaps with autocomplete)

* Company Website (text input)

* Logo Upload: Drag-and-drop or file selector, with preview thumbnail.

* Primary Contact Person (text input)

* Primary Contact Email (text input)

* Jurisdiction Selection: Country (dropdown), State/Province (dropdown, dependent on country).

* Navigation: "Back" button, "Next" button.

3.3 Screen 3: Setup Wizard - Step 2: Section Selection & Customization

  • Layout: Two-column layout with a progress indicator.
  • Components:

* Progress Bar: "Step 2 of X: Choose Sections"

* Header: "Select and Organize Handbook Sections"

* Left Column: Available Sections List

* Search bar for sections.

* Categorized list of pre-defined sections (e.g., "General Policies," "Workplace Conduct," "Compensation & Benefits," "Leave Policies," "Compliance").

* Each section item: Name, brief description, checkbox to include/exclude.

* "Add Custom Section" button (opens a modal for title and content).

* Right Column: Handbook Structure (Drag & Drop)

* Live preview of selected sections in their current order.

* Drag-and-drop handles for reordering.

* "Edit" icon next to each section (leads to content editor).

* "Remove" icon next to each section.

* Navigation: "Back" button, "Next" button.

3.4 Screen 4: Policy Content Editor (for a selected section)

  • Layout: Three-column layout or modal.
  • Components:

* Progress Bar: "Step X of X: Edit Policies"

* Header: "Editing: [Section Name]" (e.g., "Editing: Code of Conduct")

* Left Column (Optional, if 3-column): Section Navigation

* List of all handbook sections, with current section highlighted. Allows quick switching.

* Middle Column: Rich Text Editor

* Policy Template Selector: Dropdown for different templates if available for the section.

* WYSIWYG Editor: Large text area with standard formatting tools (bold, italic, underline, lists, alignment, font size, color, insert link, insert image, insert placeholder).

* Placeholder Button: Inserts dynamic tags like [Company Name], [Effective Date].

* "Upload Document" Button: To embed an external file.

* "Reset to Default Template" Button.

* Right Column (Contextual Help/Compliance):

* "Compliance Nudges": Small alerts/tips related to the current section's legal requirements based on selected jurisdiction. (e.g., "Ensure your FMLA policy aligns with federal guidelines for companies with 50+ employees.")

* "Best Practices": Suggestions for clear and effective policy writing.

* "Legal Disclaimer Reminder": Prompt to include relevant disclaimers.

* Navigation: "Save & Continue Editing," "Back to Section Selection," "Next Section," "Preview Handbook."

3.5 Screen 5: Branding & Finalization

  • Layout: Two-column or single-column with preview.
  • Components:

* Progress Bar: "Step X of X: Branding & Finalize"

* Header: "Customize Your Handbook's Look & Feel"

* Branding Controls:

* Logo Upload: (If not already done)

* Primary Color Picker: HEX, RGB, or color palette selector.

* Secondary Color Picker: For accents.

* Font Selectors: Dropdowns for Header Font and Body Font (professional, legible choices).

* Page Layout Options: Checkboxes for "Include Page Numbers," "Include Header/Footer with Company Name."

* Handbook Preview (Right Column or Below):

* A live, scrollable preview of the handbook with applied branding.

* Option to navigate through pages/sections in the preview.

* Navigation: "Back" button, "Generate Handbook" button.

3.6 Screen 6: Handbook Output / Download

  • Layout: Centralized content.
  • Components:

* Header: "Your Handbook is Ready!"

* Handbook Title: e.g., "Employee Handbook for [Company Name] - [Effective Date]"

* Preview Window: Embedded PDF viewer or link to web-based handbook.

* Download Options:

* "Download PDF" button.

* "Download DOCX" button.

* "View Web Version" button (generates a shareable URL).

* Actions:

* "Make Edits" button (returns to editor).

* "Save New Version" button.

* "Share Handbook" (e.g., email link).

* Optional: "Print Handbook" button.


4. Color Palettes

The color palette for the generator tool and the output handbook should evoke professionalism, trustworthiness, and clarity.

4.1 Generator Tool UI Palette

  • Primary Accent: #007BFF (Vibrant Blue) - For primary buttons, active states, progress indicators. Represents trust and efficiency.
  • Secondary Accent: #28A745 (Success Green) - For success messages, positive actions.
  • Neutral Base:

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

* #F8F9FA (Light Gray) - Section separators, secondary backgrounds.

* #E9ECEF (Border Gray) - Input field borders, subtle dividers.

  • Text Colors:

* #212529 (Dark Gray) - Primary text, headings.

* #6C757D (Medium Gray) - Secondary text, labels, placeholder text.

  • Alerts/Warnings:

* #FFC107 (Warning Yellow) - For cautionary notes.

* #DC3545 (Danger Red) - For errors, critical actions.

4.2 Handbook Output Palette (Default, Customizable by User)

This palette is designed for readability and a professional appearance in print and digital formats. Users will have options to customize primary and secondary colors.

  • Primary Brand Color (User Customizable Default): #0056B3 (Deep Blue) - For headings, accents in charts/graphs, company logo. Suggests stability and professionalism.
  • Secondary Accent Color (User Customizable Default): #6C757D (Medium Gray) - For subheadings, emphasis, sidebar elements. Complements primary.
  • Body Text: #343A40 (Dark Charcoal) - Highly readable, professional.
  • Background: `#
gemini Output

Employee Handbook: [Your Company Name]

Welcome to [Your Company Name]!

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

At [Your Company Name], we believe that our success is built upon the collective talent, dedication, and integrity of our employees. We encourage you to familiarize yourself with the contents of this handbook, as it outlines important information that will help you thrive in your role and contribute to our shared goals.

We are excited about your journey with us and look forward to achieving great things together!

[Optional: Add a CEO/Leadership Quote or Welcome Message Here]


Section 1: Our Company Culture & Values

At [Your Company Name], our culture is the foundation of who we are and how we operate. We are committed to fostering an environment where innovation, collaboration, and mutual respect flourish.

Our Mission: [Insert your company's mission statement here. Example: "To empower our customers with innovative solutions that simplify their lives and drive success."]

Our Vision: [Insert your company's vision statement here. Example: "To be the leading provider of [industry/service] known for exceptional quality and customer satisfaction."]

Our Core Values:

  • Integrity: We act with honesty and transparency in all our dealings.
  • Innovation: We embrace creativity and continuously seek better ways to do things.
  • Collaboration: We believe in the power of teamwork and mutual support.
  • Excellence: We strive for the highest standards in everything we do.
  • Respect: We value diversity and treat everyone with dignity and fairness.
  • Customer Focus: Our customers are at the heart of our decisions and actions.

Section 2: General Company Policies

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

2.1 Equal Employment Opportunity (EEO) & Non-Discrimination

[Your Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other status protected by the laws or regulations in the locations where we operate.

2.2 Anti-Harassment Policy

[Your Company Name] prohibits harassment of any kind, including sexual harassment, and will not tolerate any form of harassment based on protected characteristics. This includes unwelcome conduct that denigrates or shows hostility toward an individual because of their protected status, or which creates an intimidating, hostile, or offensive work environment. Any employee who believes they have been subjected to harassment should report it immediately to their manager or Human Resources. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken.

2.3 Workplace Safety

The safety and well-being of our employees are paramount. [Your Company Name] is committed to providing a safe and healthy work environment.

  • Reporting Hazards: Employees are responsible for observing all safety rules and reporting any unsafe conditions, incidents, or injuries to their manager or HR immediately.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and emergency contact information. Regular drills may be conducted.
  • Personal Protective Equipment (PPE): Where required, employees must properly use and maintain all provided PPE.

2.4 Confidentiality and Data Security

Protecting confidential and proprietary information is crucial to our business.

  • Proprietary Information: This includes client lists, financial data, product designs, marketing strategies, software, and trade secrets. Employees must not disclose, use, or copy any confidential information outside the scope of their employment.
  • Data Security: Employees must adhere to all data security protocols, including strong password practices, secure handling of digital and physical data, and avoiding unauthorized access. Any suspected data breach or security incident must be reported immediately.
  • Non-Disclosure Agreements (NDAs): Employees may be required to sign an NDA as a condition of employment.

2.5 Use of Company Property and Resources

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

  • Responsible Use: Employees are expected to use company resources responsibly, efficiently, and for legitimate business purposes.
  • Monitoring: [Your Company Name] reserves the right to monitor the use of all company property, including email, internet usage, and communication systems, to ensure compliance with company policies and legal obligations. Employees should have no expectation of privacy when using company resources.
  • Personal Use: Limited personal use of company resources (e.g., internet, phone) may be permitted, provided it does not interfere with work duties, incur significant costs, or violate other company policies.

2.6 Social Media Policy

Employees are encouraged to be responsible and professional when using social media, both personally and professionally.

  • Professional Conduct: Do not post confidential company information, disparage the company, colleagues, or clients, or engage in any activity that could harm the company's reputation.
  • Personal Views: Clearly state that your opinions are your own and not those of [Your Company Name] when discussing work-related topics on personal social media accounts.
  • Representing the Company: If you are authorized to represent [Your Company Name] on social media, follow all guidelines provided by the company.

2.7 Drug-Free Workplace

[Your Company Name] is committed to maintaining a drug-free and alcohol-free workplace.

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

2.8 Attendance and Punctuality

Regular attendance and punctuality are essential for efficient operations and teamwork.

  • Work Schedule: Employees are expected to adhere to their assigned work schedules.
  • Reporting Absences: If you are unable to report to work, you must notify your manager as far in advance as possible, preferably at least [e.g., two hours] before your scheduled start time.
  • Excessive Absences/Tardiness: Unexplained or excessive absences or tardiness may result in disciplinary action.

2.9 Dress Code

Employees are expected to dress appropriately for a professional work environment.

  • Business Casual: Our general dress code is business casual, which includes neat and clean attire suitable for client interactions and office work.
  • Specific Roles: Certain roles may require specific uniforms or safety attire, which will be provided or communicated.
  • Hygiene: Good personal hygiene is expected from all employees.

2.10 Remote Work Policy (If Applicable)

[Your Company Name] supports flexible work arrangements where business needs allow.

  • Eligibility: Remote work eligibility is determined by job function, performance, and manager approval.
  • Expectations: Remote employees are expected to maintain productivity, communication, and adherence to all company policies as if working on-site.
  • Equipment: The company will provide necessary equipment, and employees are responsible for maintaining a suitable home workspace and internet connection.
  • Communication: Regular check-ins and active participation in team meetings are required.

Section 3: Benefits Overview

[Your Company Name] is proud to offer a comprehensive benefits package designed to support the health, well-being, and financial security of our employees and their families. Eligibility for certain benefits may vary based on employment status (full-time, part-time) and length of service. Detailed plan documents are available through HR.

3.1 Health Insurance

  • Medical Insurance: We offer [number] medical plans through [Provider Name/Type of Plan, e.g., PPO/HMO] to help cover healthcare costs.
  • Dental Insurance: Our dental plan covers preventive, basic, and major dental services.
  • Vision Insurance: The vision plan provides coverage for eye exams, glasses, and contact lenses.
  • Enrollment: New hires are eligible to enroll within [e.g., 30 days] of their start date. Annual open enrollment periods are also provided.

3.2 Retirement Plans

  • 401(k) Plan: We offer a 401(k) retirement savings plan with a variety of investment options.
  • Company Match: [Your Company Name] provides a [e.g., 50% match on the first 6% of your contributions]. Vesting schedules apply.
  • Financial Wellness: Access to financial planning resources and educational materials may be available.

3.3 Paid Time Off (PTO)

Our PTO policy combines vacation, sick days, and personal days into a single bank of hours.

  • Accrual: Employees accrue PTO hours based on their length of service and employment status. [Specify accrual rate, e.g., "Full-time employees accrue X hours per pay period, up to a maximum of Y hours per year."]
  • Usage: PTO can be used for vacation, personal appointments, or illness.
  • Carryover: [Specify carryover policy, e.g., "Up to X hours of unused PTO can be carried over to the next calendar year."]

3.4 Life Insurance & Disability

  • Basic Life Insurance: [Your Company Name] provides basic life insurance coverage at no cost to eligible employees.
  • Supplemental Life Insurance: Employees may purchase additional life insurance coverage for themselves and their dependents.
  • Short-Term Disability: Provides income replacement for non-work-related illnesses or injuries that prevent you from working for a limited period.
  • Long-Term Disability: Provides income replacement for extended periods of disability.

3.5 Other Benefits & Perks

  • Professional Development: Opportunities for training, workshops, and educational assistance to support your growth.
  • Employee Assistance Program (EAP): Confidential counseling and support services for personal and work-related challenges.
  • Wellness Programs: Initiatives and resources to promote physical and mental well-being.
  • Company Holidays: [List specific company holidays, e.g., New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Christmas Day, etc.]

Action Item: For detailed information on any benefit, please contact Human Resources or refer to the specific plan documents provided during your onboarding.


Section 4: Code of Conduct

Our Code of Conduct outlines the ethical principles and professional standards that guide our actions and decisions at [Your Company Name]. Adhering to this code ensures we maintain a workplace built on trust, respect, and integrity.

4.1 Ethical Business Practices

  • Honesty and Fairness: Conduct all business activities with honesty, integrity, and fairness. Avoid any deceptive or misleading practices.
  • Compliance with Laws: Adhere to all applicable laws, regulations, and company policies.
  • Anti-Bribery and Corruption: Never offer, promise, give, or accept bribes, kickbacks, or other improper payments or benefits.

4.2 Conflict of Interest

  • Avoid Conflicts: Employees must avoid situations where their personal interests conflict with the interests of [Your Company Name].
  • Disclosure: Any potential or actual conflict of interest must be immediately disclosed to your manager or Human Resources. This includes outside employment, financial interests in competing companies, or gifts that could influence business decisions.

4.3 Professionalism and Respect

  • Treat Others with Respect: Treat all colleagues, customers, partners, and vendors with dignity, courtesy, and respect, regardless of their background or position.
  • Positive Work Environment: Contribute to a positive, inclusive, and collaborative work environment.
  • Appropriate Communication: Use professional and respectful language in all communications, both written and verbal.

4.4 Customer Relations

  • Customer Focus: Our customers are vital to our success. Always strive to provide excellent service, address their needs promptly, and build strong, trusting relationships.
  • Confidentiality: Protect customer data and information according to company policies and legal requirements.

4.5 Reporting Misconduct

  • Speak Up: If you witness or suspect any violation of this Code of Conduct, company policy, or applicable law, you have a responsibility to report it.
  • Reporting Channels: Reports can be made to your direct manager, Human Resources, or through our anonymous [Whistleblower/Ethics Hotline, if applicable].
  • Non-Retaliation: [Your Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a concern or participates in an investigation.

Section 5: Leave Policies

[Your Company Name] understands that employees may need time away from work for various reasons. These policies outline the types of leave available and the procedures for requesting them.

5.1 Vacation Policy (Included in PTO)

As outlined in Section 3.3, vacation time is part of your accrued Paid Time Off (PTO).

  • Requesting Vacation: All vacation requests must be submitted to your manager at least [e.g., two weeks] in advance for approval.
  • Approval: Vacation requests are subject to business needs and manager approval.

5.2 Sick Leave Policy (Included in PTO)

Sick leave is part of your accrued Paid Time Off (PTO).

  • Usage: PTO can be used for your own illness, injury, medical appointments, or to care for an ill family member.
  • Reporting Illness: If you are unable to work due to illness, you must notify your manager as soon as possible, preferably before your scheduled start time.
  • Medical Documentation: For absences exceeding [e.g., three consecutive days], a doctor's note may be required.

5.3 Bereavement Leave

[Your Company Name] provides paid bereavement leave to allow employees time to grieve and attend to affairs related to the death of a close family member.

  • Eligibility: Up to [e.g., three to five] days of paid leave may be granted for the death of an immediate family member (spouse, child, parent, sibling, grandparent, grandchild, or in-laws).
  • Request: Notify your manager and HR as soon as possible. Additional unpaid leave may be granted at the manager's discretion.

5.4 Jury Duty Leave

Employees summoned for jury duty will be granted unpaid leave for the period of service.

  • Notification: Provide your manager and HR with a copy of your jury summons as soon as you receive it.
  • Compensation: You will be paid your regular wages for up to [e.g., three days] of jury service. After this period, any further leave will be unpaid.

5.5 Family and Medical Leave Act (FMLA)

[Your Company Name] complies with the Family and Medical Leave Act (FMLA), which provides eligible employees with up to 12 weeks of unpaid, job-protected leave per year for specified family and medical reasons.

  • Eligibility: Employees must have worked for [Your Company Name] for at least 12 months and have worked at least 1,250 hours during the 12 months prior to the start of the leave.
  • Reasons for Leave: Includes birth/adoption of a child, care for a spouse/child/parent with a serious health condition, or the employee's own serious health condition.
  • Notice: Employees must provide 30 days' notice when the need for leave is foreseeable, or as soon as practicable. Contact HR for detailed information and application procedures.

5.6 Parental Leave

Beyond FMLA, [Your Company Name] offers [e.g., X weeks] of paid parental leave for primary caregivers following the birth or adoption of a child.

  • Eligibility: [Specify eligibility, e.g., "Full-time employees after one year of service."]
  • Coordination: This leave runs concurrently with any eligible FMLA leave. Contact HR for full details.

####

gemini Output

This document provides a comprehensive, detailed, and professional Employee Handbook template for [Company Name]. This output is designed to be directly usable by the customer, with clear sections, policies, and placeholders for company-specific information.


[Company Name] Employee Handbook

Welcome to [Company Name]!

On behalf of the entire leadership team, welcome to [Company Name]! We are thrilled to have you join our team and look forward to your contributions to our shared success.

This Employee Handbook is designed to be a valuable resource for you throughout your journey with us. It outlines our company's mission, vision, values, policies, procedures, and the benefits available to you. It reflects our commitment to creating a fair, respectful, and productive work environment for everyone.

We believe that open communication, mutual respect, and a commitment to excellence are the foundations of a strong and successful workplace. We encourage you to familiarize yourself with the contents of this handbook and to reach out to your manager or the HR Department if you have any questions.

Your success is our success, and we are excited about the future we will build together.

Sincerely,

[CEO/Leadership Name]

[Title]

[Company Name]

1. Introduction & Purpose of this Handbook

1.1 Purpose of the Handbook

This handbook serves as a guide to the employment relationship between [Company Name] and its employees. It outlines our company culture, policies, procedures, benefits, and expectations for workplace conduct. Our goal is to foster a clear, consistent, and positive work environment where every employee understands their rights and responsibilities.

1.2 Scope of the Handbook

This handbook applies to all employees of [Company Name], regardless of their employment classification, unless otherwise specified.

1.3 Handbook Disclaimer

This handbook is a summary of [Company Name]'s policies, procedures, and benefits, and is not an employment contract, express or implied. [Company Name] reserves the right to modify, revoke, suspend, terminate, or change any and all policies, procedures, and benefits described in this handbook, in whole or in part, at any time, with or without notice, as business needs or legal requirements dictate. Any such changes will be communicated to employees.

The policies contained herein supersede all previous policies, oral or written. No supervisor or representative of [Company Name], other than the [CEO/President/HR Director], has the authority to enter into any agreement with an employee for employment for a definite period of time, or to make any agreement contrary to the "at-will" nature of employment, unless such agreement is in writing and signed by the [CEO/President/HR Director].

Employees are responsible for reading, understanding, and adhering to all policies outlined in this handbook.

2. Our Company Culture & Values

2.1 Our Mission, Vision, and Values

  • Mission: [Insert Company Mission Statement - e.g., To innovate and deliver exceptional solutions that empower our customers and enrich our community.]
  • Vision: [Insert Company Vision Statement - e.g., To be the leading provider of [industry/service] recognized for our excellence, integrity, and positive impact.]
  • Values: We are committed to upholding the following core values in all our interactions and decisions:

* Integrity: Acting with honesty and strong moral principles.

* Innovation: Fostering creativity and embracing new ideas.

* Collaboration: Working together for shared success.

* Customer Focus: Prioritizing the needs and satisfaction of our clients.

* Excellence: Striving for the highest quality in everything we do.

* Respect: Valuing diversity and treating everyone with dignity.

2.2 Diversity, Equity, and Inclusion (DEI)

[Company Name] is committed to fostering a diverse, equitable, and inclusive workplace where every employee feels valued, respected, and empowered to contribute their unique perspectives and talents. We believe that a diverse workforce drives innovation, enhances problem-solving, and strengthens our company culture. We strive to create an environment where differences are celebrated and everyone has an equal opportunity to succeed.

3. Employment Basics

3.1 Employment At-Will Statement

Employment with [Company Name] is "at-will." This means that either the employee or [Company Name] 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 for a definite term.

3.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 hiring, promotion, discipline, and termination, are based on qualifications, merit, and business needs, without regard to race, color, religion, sex (including pregnancy, childbirth, or related medical conditions), national origin, age, disability, genetic information, sexual orientation, gender identity or expression, veteran status, or any other characteristic protected by federal, state, or local law.

3.3 Anti-Discrimination & Anti-Harassment Policy

[Company Name] strictly prohibits discrimination and harassment of any kind, including sexual harassment, based on any protected characteristic. This policy applies to all employees, applicants, customers, vendors, and visitors.

  • Harassment Definition: Harassment includes unwelcome conduct, whether verbal, physical, or visual, that is based on a protected characteristic and creates an intimidating, hostile, or offensive work environment, or interferes with an individual's work performance.
  • Sexual Harassment Definition: Sexual harassment includes unwelcome sexual advances, requests for sexual favors, and other verbal or physical conduct of a sexual nature when: (1) submission to such conduct is made either explicitly or implicitly a term or condition of an individual's employment; (2) submission to or rejection of such conduct by an individual is used as the basis for employment decisions affecting such individual; or (3) such conduct has the purpose or effect of unreasonably interfering with an individual's work performance or creating an intimidating, hostile, or offensive working environment.
  • Reporting Procedure: Any employee who believes they have been subjected to or witnessed discrimination or harassment should immediately report the incident to their manager, the HR Department, or [Specific Contact Person/Department]. All reports will be investigated promptly and confidentially to the extent possible, and appropriate corrective action will be taken.
  • Anti-Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports discrimination or harassment in good faith, assists in an investigation, or opposes discriminatory practices.

3.4 Recruitment & Hiring

[Company Name] is committed to fair and equitable hiring practices. All candidates are evaluated based on their qualifications, skills, and experience relevant to the position.

3.5 Onboarding & Orientation

New employees will undergo an onboarding process designed to help them integrate smoothly into [Company Name] culture and their new role. This includes an orientation session covering company policies, benefits, and job-specific training.

3.6 Employment Classifications

Employees are classified for administrative purposes as follows:

  • Full-Time: Employees who regularly work [e.g., 40] hours per week and are eligible for full company benefits.
  • Part-Time: Employees who regularly work less than [e.g., 40] hours per week. Eligibility for benefits may vary.
  • Temporary: Employees hired for a specific project or limited duration. Benefits eligibility may vary.
  • Intern: Individuals gaining supervised practical experience. Benefits eligibility may vary.
  • Exempt/Non-Exempt: Classifications under the Fair Labor Standards Act (FLSA) determining eligibility for overtime pay. Exempt employees are paid a salary and are not eligible for overtime. Non-exempt employees are paid hourly and are eligible for overtime for hours worked over 40 in a workweek.

3.7 Performance Management & Reviews

[Company Name] utilizes a performance management system to ensure employees receive regular feedback, set goals, and develop their skills. Formal performance reviews are conducted [e.g., annually] by managers to discuss performance, identify areas for development, and align individual goals with company objectives. Informal feedback is encouraged on an ongoing basis.

3.8 Progressive Discipline

To ensure fair and consistent treatment, [Company Name] generally follows a progressive discipline approach for addressing performance deficiencies or policy violations. This may include:

  1. Verbal Warning
  2. Written Warning
  3. Final Written Warning/Performance Improvement Plan (PIP)
  4. Suspension (with or without pay)
  5. Termination of Employment

The specific steps may vary depending on the severity and nature of the issue. Some offenses may warrant immediate termination.

3.9 Termination of Employment

Employment may be terminated by either the employee or [Company Name] at any time, in accordance with the at-will employment policy. Reasons for termination may include, but are not limited to:

  • Voluntary resignation by the employee.
  • Lack of work or business necessity (layoff).
  • Failure to meet performance standards.
  • Violation of company policies or procedures.
  • Misconduct.

Employees who voluntarily resign are requested to provide at least [e.g., two weeks'] written notice to their manager and the HR Department.

4. Compensation & Benefits

4.1 Pay Periods & Overtime

  • Pay Period: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday]. The pay period covers [e.g., two weeks ending the previous Saturday].
  • 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 single workweek, as required by law. All overtime must be pre-approved by a manager.

4.2 Benefits Eligibility

Eligibility for benefits depends on employment classification (e.g., full-time, part-time) and length of service. Detailed eligibility requirements for each benefit will be provided by the HR Department.

4.3 Health & Dental Insurance

[Company Name] offers comprehensive health and dental insurance plans to eligible employees and their dependents. Details regarding coverage, premiums, enrollment periods, and plan options are available through the HR Department.

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

[Company Name] offers a [e.g., 401(k)] retirement savings plan to eligible employees, including [e.g., a company match]. Employees can contribute pre-tax dollars to save for retirement. Enrollment information and plan details are available through the HR Department.

4.5 Life Insurance & Disability

[Company Name] provides [e.g., basic life insurance, short-term disability, and long-term disability] coverage to eligible employees. Additional voluntary coverage options may be available. Details are provided by the HR Department.

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

[Company Name] offers FSAs or HSAs to eligible employees to help manage healthcare and dependent care expenses on a pre-tax basis.

4.7 Employee Assistance Program (EAP)

[Company Name] provides an Employee Assistance Program (EAP) offering confidential counseling and support services for employees and their families facing personal or work-related challenges. This service is designed to help with issues such as stress, grief, financial concerns, and relationship problems.

4.8 Other Perks & Benefits

  • Professional Development: [Company Name] supports continuous learning and professional growth through [e.g., tuition reimbursement, training programs, conference attendance].
  • Wellness Programs: [e.g., On-site fitness classes, discounts for gyms, wellness challenges.]
  • Employee Discounts: [e.g., Discounts on company products/services, local businesses.]
  • Commuter Benefits: [e.g., Pre-tax transit or parking benefits.]

5. Time Off & Leave Policies

5.1 Paid Time Off (PTO) / Vacation Policy

[Company Name] provides a comprehensive Paid Time Off (PTO) policy to allow employees flexibility for vacation, personal appointments, or minor illnesses.

  • Accrual: PTO is accrued based on [e.g., hours worked/years of service].
  • Usage: Employees must request PTO in advance through [e.g., HR system] and obtain manager approval.
  • Maximum Accrual: [e.g., A maximum of X hours can be accrued.]
  • Carryover: [e.g., Up to X hours can be carried over to the next year.]
  • Payout upon Termination: [e.g., Unused PTO will/will not be paid out upon termination in accordance with state law.]

5.2 Sick Leave Policy

[Company Name] provides sick leave to eligible employees for personal illness, injury, medical appointments, or to care for an ill family member.

  • Accrual: Sick leave is accrued at a rate of [e.g., X hours per month].
  • Usage: Employees must notify their manager as soon as possible when taking sick leave.
  • Doctor's Note: [e.g., A doctor's note may be required for absences exceeding X days.]
  • Carryover: [e.g., Up to X hours can be carried over to the next year.]
  • Payout upon Termination: [e.g., Unused sick leave will not be paid out upon termination.]

(Note: Ensure sick leave policy complies with all applicable state and local mandates.)

5.3 Company Holidays

[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]
  • [Any other company-specific holidays]

If a holiday falls on a weekend, it will typically be observed on the preceding Friday or following Monday.

5.4 Bereavement Leave

Employees may take up to [e.g., 3-5] days of paid bereavement leave for the death of an immediate family member (spouse, child, parent, sibling, grandparent,

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