Employee Handbook Generator
Run ID: 69caccb9eff1ba2b79624eb22026-03-30HR
PantheraHive BOS
BOS Dashboard

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

Employee Handbook Generator: Requirements Analysis & Design Specifications

Project Title: Employee Handbook Generator

Workflow Step: 1 of 3 - gemini → analyze_requirements

Deliverable: Detailed Professional Output - Requirements Analysis & Design Specifications


1. Introduction and Project Scope

This document outlines the comprehensive requirements, design specifications, and user experience recommendations for the "Employee Handbook Generator" tool. The primary goal is to create an intuitive, efficient, and legally compliant platform that enables organizations to generate a professional employee handbook tailored to their specific needs. This tool will streamline the process of drafting, customizing, and distributing essential company policies, benefits information, codes of conduct, leave policies, and compliance statements.

The generator will focus on providing a structured framework, customizable content fields, and a user-friendly interface to produce high-quality, professional employee handbooks in various formats.


2. Detailed Design Specifications

2.1. Functional Requirements

The Employee Handbook Generator will include the following core functionalities:

  • User Authentication & Authorization:

* Secure user login (email/password, SSO integration optional).

* Role-based access control (e.g., Administrator, Editor, Viewer).

  • Handbook Creation & Management:

* New Handbook Generation: Start from scratch or use pre-defined templates.

* Draft Saving & Loading: Ability to save work in progress and resume later.

* Handbook Duplication: Create a new handbook based on an existing one.

* Version Control: Track changes over time, with audit trails for legal compliance (optional but recommended).

  • Content Generation & Customization:

* Core Sections: Pre-defined structure for essential handbook sections (Company Policies, Benefits Overview, Code of Conduct, Leave Policies, Compliance, Introduction, Conclusion).

* Custom Section Creation: Ability to add, remove, and reorder custom sections.

* Rich Text Editor: WYSIWYG editor for all text-based content, supporting formatting (bold, italics, lists, headings, links, images).

* Dynamic Placeholders: Auto-populate company name, legal entity, address, contact information, effective dates, etc.

* Policy Templates Library: A library of legally vetted, customizable policy templates for various topics (e.g., remote work, anti-harassment, data privacy).

* Benefits Module: Structured input fields for various benefits (health insurance, 401k, PTO accrual, holidays), including descriptions and eligibility.

* Leave Module: Structured input fields for different leave types (FMLA, sick leave, parental leave, bereavement), including eligibility, duration, and notice requirements.

* Compliance Checklist/Guidance: Provide prompts and guidance for state/federal-specific compliance requirements based on company location and size.

  • Preview & Review:

* Real-time Preview: Display the handbook content as it will appear in the final output, updating dynamically with user input.

* Section-specific Preview: Preview individual sections before finalizing.

* Review & Approval Workflow: (Optional) Allow designated users to review and approve handbook drafts.

  • Export & Distribution:

* Multiple Output Formats: Generate handbooks in PDF, Microsoft Word (.docx), and potentially a web-viewable format.

* Custom Branding: Incorporate company logo, custom fonts (if specified), and color schemes into the generated handbook.

* Download Options: Direct download of generated handbooks.

* Print-ready Output: Ensure formatting is suitable for physical printing.

  • User Interface & Experience:

* Intuitive Navigation: Clear, step-by-step guidance through the handbook creation process.

* Progress Indicator: Visual feedback on completion status.

* Contextual Help: Tooltips, inline explanations, and a comprehensive help section/FAQ.

2.2. Non-Functional Requirements

  • Security:

* Data encryption (at rest and in transit).

* Regular security audits and penetration testing.

* Robust access control mechanisms.

* Compliance with relevant data protection regulations (e.g., GDPR, CCPA).

  • Performance:

* Fast page load times (under 2 seconds).

* Efficient handbook generation (under 10 seconds for a typical handbook).

* Responsive UI across various devices.

  • Usability:

* Minimal learning curve for new users.

* Consistent and clear user interface.

* Accessibility (WCAG 2.1 AA compliance).

  • Reliability:

* High uptime (99.9% target).

* Robust error handling with informative messages.

* Regular backups of user data.

  • Scalability:

* Ability to handle a growing number of users and handbooks without performance degradation.

* Cloud-native architecture for flexible scaling.

  • Maintainability:

* Modular code architecture for easy updates and feature additions.

* Comprehensive documentation for developers.

  • Legal Compliance:

* The platform should not provide legal advice but should offer templates and guidance based on general legal best practices.

* Disclaimer prominently displayed, advising users to consult legal counsel.

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


3. Wireframe Descriptions

The user interface will be designed for clarity and ease of use, guiding the user through the handbook creation process.

3.1. Dashboard / My Handbooks Screen

  • Layout: Central content area with a left-hand navigation.
  • Components:

* Header: Company logo, user profile, "New Handbook" button.

* Left Navigation: Links to "My Handbooks," "Templates," "Settings," "Help."

* Main Content: A table or card view listing existing handbooks (Name, Last Modified, Status - Draft/Published, Actions - Edit, Preview, Download, Delete).

* "Create New Handbook" Button: Prominently displayed.

3.2. Handbook Creation Wizard - Step 1: Basic Information

  • Layout: Multi-step form with a progress indicator at the top.
  • Components:

* Progress Indicator: "1. Basic Info > 2. Content > 3. Review > 4. Export."

* Form Fields:

* "Handbook Title" (e.g., "Employee Handbook for [Company Name]")

* "Company Legal Name"

* "Company Operating Name"

* "Company Address"

* "Effective Date" (Date picker)

* "Company Logo Upload" (Drag & drop or file upload)

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

3.3. Handbook Creation Wizard - Step 2: Content Editor (Main View)

  • Layout: Two-column layout with a left sidebar for section navigation and a main content area for editing.
  • Components:

* Progress Indicator: (Same as Step 1).

* Left Sidebar (Table of Contents):

* Hierarchical list of handbook sections (e.g., Introduction, Company Policies, Code of Conduct, Benefits, Leave, Compliance, Conclusion).

* Ability to drag-and-drop to reorder sections.

* "Add New Section" button.

* "Delete Section" icon next to each custom section.

* Main Content Area (Section Editor):

* Section Title: Editable.

* Rich Text Editor (WYSIWYG): Standard formatting tools (bold, italic, underline, lists, headings, links, image insert, clear formatting).

* Template Insertion: Button to insert pre-defined policy templates relevant to the current section.

* Dynamic Placeholders: Button or dropdown to insert company-specific placeholders.

* Contextual Help/Guidance: Small info icons or text providing tips for the current section.

* Navigation Buttons: "Back," "Next," "Preview Handbook."

3.4. Handbook Creation Wizard - Step 2.1: Benefits/Leave Policy Editor (Specific Module)

  • Layout: Main content area within the Content Editor, dynamically changing based on selected section.
  • Components:

* Structured Input Fields: Instead of a single rich text editor, this section would have specific fields.

* For Benefits: "Benefit Name," "Description," "Eligibility," "Provider Link," "Enrollment Period." Add/Remove benefit items.

* For Leave Policies: "Leave Type" (dropdown: Sick, PTO, FMLA, Parental), "Eligibility," "Duration," "Notice Requirements," "Paid/Unpaid." Add/Remove leave policies.

* Rich Text Area: For general introductory or concluding remarks specific to the benefits/leave section.

* Navigation Buttons: Within the main section, "Back to Content Overview," "Next Section."

3.5. Handbook Creation Wizard - Step 3: Review & Finalize

  • Layout: Full-page preview of the generated handbook.
  • Components:

* Progress Indicator: (Same as Step 1).

* Full Handbook Preview: Scrollable, paginated view of the entire handbook content, reflecting chosen branding.

* Feedback/Edit Buttons: "Go Back to Edit Content."

* Compliance Checklist (Optional): A summary of completed compliance items or recommendations for review.

* Disclaimer: Prominently displayed legal disclaimer.

* Navigation Buttons: "Back," "Generate & Export."

3.6. Handbook Creation Wizard - Step 4: Export Options

  • Layout: Simple form with export choices.
  • Components:

* Progress Indicator: (Same as Step 1).

* Export Format Options: Radio buttons for "PDF (.pdf)," "Microsoft Word (.docx)."

* Branding Options: Checkbox for "Include Company Logo," "Use Custom Fonts (if configured)."

* Download Button: "Download Handbook."

* "Finish" Button: Returns to Dashboard.


4. Color Palettes

We recommend a professional, clean, and trustworthy aesthetic. Here are a few options:

Option 1: Corporate Modern (Clean & Professional)

  • Primary Accent: #007BFF (Vibrant Blue - signifies trust, reliability)
  • Secondary Accent: #28A745 (Success Green - for positive actions, confirmation)
  • Text/Headings: #343A40 (Dark Gray - highly readable)
  • Body Text: #6C757D (Medium Gray - softer for longer paragraphs)
  • Backgrounds: #F8F9FA (Light Gray/Off-white - clean backdrop)
  • Call to Action (CTA): #0056B3 (Darker Blue - for buttons)
  • Error/Warning: #DC3545 (Red)

Option 2: Elegant & Sophisticated (Refined & Authoritative)

  • Primary Accent: #4A6D87 (Steel Blue - professional, calm)
  • Secondary Accent: #87A9B7 (Slate Blue - complementary, subtle)
  • Text/Headings: #2C3E50 (Charcoal - strong, clear)
  • Body Text: #7F8C8D (Dark Grayish Blue - easy on the eyes)
  • Backgrounds: #ECF0F1 (Light Grey - minimalist)
  • Call to Action (CTA): #34495E (Darker Charcoal - for buttons)
  • Error/Warning: #E74C3C (Red)

Option 3: Warm & Approachable (Friendly & User-Centric)

  • Primary Accent: #6A0DAD (Deep Purple - creative, unique, sophisticated)
  • Secondary Accent: #FF8C00 (Dark Orange - energetic, inviting)
  • Text/Headings: #333333 (Near Black - classic readability)
  • Body Text: #555555 (Dark Gray - approachable)
  • Backgrounds: #FDFDFD (Off-white - bright, clean)
  • Call to Action (CTA): #8A2BE2 (Medium Purple - for buttons)
  • Error/Warning: #CC0000 (Red)

General Color Usage:

  • Primary Accent: Used for main interactive elements (buttons, active links, progress indicators).
  • Secondary Accent: Used for secondary buttons, highlights, or informational elements.
  • Text Colors: Ensure high contrast ratio for readability.
  • Backgrounds: Keep light and uncluttered to make content the focus.
  • CTAs: Should stand out but remain harmonious with the overall palette.

5. User Experience (UX) Recommendations

5.1. Intuitive User Flow

  • Clear Steps: Guide users through the handbook generation process with a prominent, multi-step wizard (e.g., "Basic Info > Content > Review > Export").
  • Linear Progression with Flexibility: While a linear flow is recommended, allow users to jump back to previous steps for edits without losing progress.
  • Onboarding Tour: A brief, optional interactive tour for first-time users to highlight key features.

5.2. Content Creation & Editing

  • Rich Text Editor (WYSIWYG): Provide a robust editor that feels familiar to word processing software.
  • Template Library: Offer a curated collection of legally reviewed policy templates. Users should be able to insert these and then customize them.
  • Contextual Guidance: Provide small i (info) icons or inline text snippets that offer tips, best practices, or legal considerations relevant to the specific policy being edited.
  • Smart Defaults: Pre-populate common fields (e.g., default effective date to today, common policy language) to reduce initial input effort.
  • Dynamic Placeholders: Implement an easy way to insert company-specific variables (e.g., {{company_name}}, {{effective_date}}) that automatically populate throughout the handbook
gemini Output

Employee Handbook: [Your Company Name]

Welcome to Our Team!

[Your Company Name] Employee Handbook

Effective Date: [Date]


A Message from Leadership

Dear Valued Team Member,

On behalf of the entire leadership team, I extend a warm welcome to you! Whether you are a new hire or a long-standing member of our family, we are thrilled to have you as part of [Your Company Name]. Our success is built upon the dedication, talent, and hard work of individuals like you.

This Employee Handbook has been created as a comprehensive guide to our company's policies, procedures, benefits, and expectations. It is designed to provide you with a clear understanding of our workplace culture, your rights, and your responsibilities as an employee of [Your Company Name]. We believe that a well-informed team is an empowered team, and this handbook is a vital resource to help you thrive in your role and contribute to our collective success.

At [Your Company Name], we are committed to fostering a respectful, inclusive, and productive work environment where everyone feels valued and has the opportunity to grow. We encourage you to read this handbook carefully, as it contains important information that will impact your employment. Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources Department.

Thank you for being a part of our journey. We look forward to achieving great things together!

Sincerely,

[CEO/President Name]

CEO/President, [Your Company Name]


Table of Contents

  1. Welcome & Company Overview

* Our Vision, Mission, and Values

* Company History & Culture

* Organizational Structure

  1. Employment Basics & Company Policies

* Employment At-Will Statement

* Equal Employment Opportunity (EEO)

* Anti-Harassment and Discrimination Policy

* Workplace Safety and Health

* Confidentiality and Data Protection

* Attendance and Punctuality

* Dress Code

* Use of Company Property and Resources

* Social Media Policy

* Drug and Alcohol-Free Workplace

* Workplace Violence Prevention

* Performance Management and Reviews

* Disciplinary Action

* Termination of Employment

  1. Compensation and Benefits Overview

* Pay Periods and Direct Deposit

* Overtime Policy

* Health, Dental, and Vision Insurance

* Life and Disability Insurance

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

* Employee Assistance Program (EAP)

* Professional Development and Training

* Other Benefits

  1. Code of Conduct & Ethics

* Ethical Business Practices

* Conflicts of Interest

* Gifts and Entertainment

* Anti-Bribery and Corruption

* Reporting Misconduct (Whistleblower Policy)

* Respectful Workplace

  1. Leave Policies

* Paid Time Off (PTO) / Vacation Policy

* Sick Leave Policy

* Company Holidays

* Family and Medical Leave Act (FMLA)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Other Leaves of Absence

  1. Compliance and Legal Information

* Americans with Disabilities Act (ADA)

* Workers' Compensation

* Immigration Law Compliance (Form I-9)

* Workplace Postings

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

  1. Conclusion & Acknowledgement

* Important Disclaimer

* Acknowledgement of Handbook Receipt


1. Welcome & Company Overview

Our Vision, Mission, and Values

At [Your Company Name], we are driven by a clear purpose and a strong set of principles.

  • Our Vision: [State your company's long-term vision, e.g., "To be the leading innovator in sustainable energy solutions, transforming communities globally."]
  • Our Mission: [State your company's core purpose, e.g., "To provide reliable, affordable, and environmentally responsible energy alternatives through cutting-edge technology and exceptional customer service."]
  • Our Values: These are the guiding principles that shape our decisions and actions:

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

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

* Collaboration: We believe in teamwork, mutual respect, and shared success.

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

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

* Diversity & Inclusion: We foster an environment where all voices are heard, respected, and celebrated.

Company History & Culture

[Your Company Name] was founded in [Year] with the goal of [briefly describe founding purpose]. Since then, we have grown into [briefly describe current status/achievements].

Our culture is built on [describe 2-3 key aspects of your company culture, e.g., "open communication, continuous learning, and a supportive environment where employees are encouraged to take initiative."]. We believe in celebrating successes, learning from challenges, and fostering a sense of community among our team members.

Organizational Structure

[Provide a brief overview of the company's general organizational structure, e.g., "We operate with a flat hierarchical structure to encourage direct communication and quick decision-making. Employees typically report to a Team Lead or Department Manager, who in turn reports to a Director or VP." You may consider adding a placeholder for an organizational chart if available.]


2. Employment Basics & Company Policies

This section outlines fundamental employment principles and key company policies that govern our workplace.

Employment At-Will Statement

Employment with [Your Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, 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, express or implied, or to guarantee employment for any specific duration.

Equal Employment Opportunity (EEO)

[Your Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free from discrimination and harassment. All employment decisions, including those related to hiring, promotion, discipline, compensation, and termination, are made without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other characteristic protected by federal, state, or local law. We strive to create an inclusive environment where all individuals are treated with dignity and respect.

Anti-Harassment and Discrimination Policy

[Your Company Name] strictly prohibits harassment and discrimination of any kind, including sexual harassment. This policy applies to all employees, contractors, vendors, and visitors. Harassment includes unwelcome conduct, whether verbal, physical, or visual, that is based on any protected characteristic and creates a hostile work environment or interferes with an individual's work performance.

  • Reporting Procedure: Any employee who believes they have been subjected to or witnessed harassment or discrimination should immediately report the incident to their manager, the HR Department, or [another designated person/department].
  • Investigation: All complaints will be promptly and thoroughly investigated, maintaining confidentiality to the extent possible.
  • No Retaliation: [Your Company Name] prohibits retaliation against any employee who reports harassment or discrimination in good faith or participates in an investigation.

Workplace Safety and Health

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

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

Confidentiality and Data Protection

During your employment, you may have access to confidential and proprietary information belonging to [Your Company Name], its clients, and partners. This includes, but is not limited to, financial data, trade secrets, customer lists, marketing strategies, product designs, and employee information.

  • Obligation: All employees are required to protect this information and not disclose it to unauthorized individuals or use it for personal gain.
  • Data Security: Adhere to all company policies regarding data security, password protection, and the proper handling of sensitive documents and electronic files.
  • Post-Employment: Your obligation to maintain confidentiality continues even after your employment with [Your Company Name] ends.

Attendance and Punctuality

Reliable attendance and punctuality are essential for effective team operations and client service.

  • Work Schedule: Employees are expected to arrive on time for their scheduled shifts, be prepared to work, and remain at work until the end of their shift, unless otherwise authorized.
  • Absences: If you are unable to come to work due to illness or an unforeseen emergency, you must notify your supervisor as soon as possible, ideally [e.g., at least two hours] before your scheduled start time.
  • Excessive Absences/Tardiness: Frequent or unscheduled absences/tardiness may lead to disciplinary action, up to and including termination of employment.

Dress Code

While we encourage individual expression, employees are expected to dress appropriately for a professional work environment.

  • General Guidelines: Business casual attire is generally appropriate. Clothing should be neat, clean, well-maintained, and professional in appearance.
  • Client-Facing Roles: Employees in client-facing roles may be required to adhere to a stricter business professional dress code. Your manager will provide specific guidance.
  • Safety: Certain roles may require specific safety attire or gear, which must be worn as directed.
  • Inappropriate Attire: Clothing that is overly revealing, offensive, or disruptive to the workplace is not permitted.

Use of Company Property and Resources

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

  • Proper Use: Property should be used responsibly, safely, and for legitimate business purposes.
  • Personal Use: Incidental and reasonable personal use of company resources (e.g., internet, phone) is permitted as long as it does not interfere with work duties, incur significant cost, or violate any company policy.
  • Monitoring: Employees should have no expectation of privacy when using company property or resources. [Your Company Name] reserves the right to monitor and access all data and communications on its systems and property.

Social Media Policy

Employees are encouraged to use social media responsibly and in a manner that does not negatively impact [Your Company Name] or its reputation.

  • Professional Conduct: When identifying yourself as an employee of [Your Company Name] on social media, ensure your posts are professional and respectful.
  • Confidentiality: Do not disclose confidential company information, trade secrets, or proprietary data on social media.
  • Respect: Do not post derogatory, discriminatory, or harassing comments about colleagues, clients, or the company.
  • Disclaimers: If you express personal opinions related to the company or industry, clearly state that these are your personal views and not those of [Your Company Name].

Drug and Alcohol-Free Workplace

[Your Company Name] is committed to maintaining a safe, healthy, and productive work environment free from the influence of illegal drugs and alcohol.

  • Prohibition: The use, possession, distribution, or sale of illegal drugs or alcohol on company premises or while conducting company business is strictly prohibited.
  • Impairment: Employees are prohibited from being under the influence of illegal drugs or alcohol during working hours, or when reporting to work.
  • Prescription Medication: Employees taking prescription medication that may impair their ability to perform their job safely must notify their supervisor.
  • Testing: [Your Company Name] reserves the right to conduct drug and alcohol testing in accordance with applicable laws and company policy (e.g., pre-employment, reasonable suspicion, post-accident).

Workplace Violence Prevention

[Your Company Name] has a zero-tolerance policy for violence or threats of violence in the workplace.

  • Prohibited Conduct: This includes, but is not limited to, physical assault, fighting, threats, intimidation, harassment, or property damage.
  • Reporting: Any employee who witnesses or is subject to workplace violence or threats must immediately report the incident to their supervisor, HR, or law enforcement if appropriate.
  • Weapons: The possession of firearms or other weapons on company premises is strictly prohibited, except as permitted by law for authorized security personnel.

Performance Management and Reviews

Regular feedback and performance reviews are integral to employee development and company success.

  • Process: Employees will receive regular feedback from their supervisors and participate in formal performance reviews [e.g., annually, semi-annually].
  • Goals: Performance reviews typically involve setting goals, assessing achievement, identifying areas for development, and discussing career aspirations.
  • Development: [Your Company Name] is committed to supporting employee growth through training, mentorship, and opportunities for advancement.

Disciplinary Action

When an employee's conduct or performance falls below company standards or violates policy, disciplinary action may be taken.

  • Progressive Discipline: Disciplinary action may range from verbal warnings to written warnings, suspension without pay, and ultimately, termination of employment. The specific action taken will depend on the severity and frequency of the infraction.
  • Fairness: All disciplinary actions will be handled consistently and fairly, with an opportunity for the employee to present their perspective.

Termination of Employment

Employment at [Your Company Name] may be terminated by either the employee or the company.

  • Voluntary Termination: Employees are requested to provide at least [e.g., two weeks'] written notice to their supervisor and HR Department when resigning.
  • Involuntary Termination: Termination by the company may occur for various reasons, including but not limited to, poor performance, policy violations, misconduct, or business necessity.
  • Exit Process: Upon termination, employees will receive information regarding their final pay, unused PTO, benefits continuation (e.g., COBRA), and return of company property.

3. Compensation and Benefits Overview

[Your Company Name] is committed to providing a competitive compensation and benefits package designed to support the well-being and financial security of our employees.

Pay Periods and Direct Deposit

  • Pay Schedule: Employees are paid [e.g., bi-weekly, semi-monthly] on [specific days, e.g., the 15th and the last day of each month].
  • Direct Deposit: Direct deposit is mandatory for all employees. Please ensure your banking information is up-to-date with the HR Department.
  • Pay Stubs: Pay stubs are accessible online through [Payroll System Name/Portal Link].

Overtime Policy

Non-exempt employees are eligible for overtime pay

gemini Output

The following is a comprehensive, detailed, and professional Employee Handbook designed for [Company Name]. This document outlines the policies, procedures, benefits, and expectations for all employees, ensuring a clear understanding of our workplace culture, legal obligations, and commitment to a fair and productive environment.


Employee Handbook for [Company Name]

Effective Date: [Date]

Version: 1.0


1. Welcome to [Company Name]!

1.1 Welcome Message

On behalf of the entire team, welcome to [Company Name]! We are thrilled to have you join our organization and look forward to your contributions. We believe that our employees are our greatest asset, and your unique skills and perspectives will play a vital role in our continued success.

This handbook is designed to introduce you to our company culture, policies, procedures, and benefits. It serves as a guide to help you understand your role, responsibilities, and the expectations we have for all employees.

We encourage you to read this handbook carefully and familiarize yourself with its contents. Should you have any questions, please do not hesitate to speak with your manager or the Human Resources Department.

Welcome aboard!

Sincerely,

The Leadership Team

[Company Name]

1.2 Purpose of This Handbook

This Employee Handbook outlines the general policies, procedures, working conditions, and benefits that apply to all employees of [Company Name]. Its purpose is to:

  • Provide a clear understanding of our company's mission, values, and expectations.
  • Ensure a consistent and fair application of policies across the organization.
  • Communicate important information regarding employment terms, compensation, and benefits.
  • Outline standards of conduct and performance expectations.
  • Comply with relevant federal, state, and local employment laws.

1.3 Mission, Vision, and Values

  • Our Mission: [Insert Company Mission Statement - e.g., To innovate sustainable solutions that empower our customers and enrich our communities.]
  • Our Vision: [Insert Company Vision Statement - e.g., To be the leading provider of eco-friendly technology, recognized for our integrity and impact.]
  • Our Values:

* [Value 1 - e.g., Integrity]

* [Value 2 - e.g., Innovation]

* [Value 3 - e.g., Collaboration]

* [Value 4 - e.g., Customer Focus]

* [Value 5 - e.g., Respect]

1.4 Handbook Disclaimer

This handbook contains statements of current policies and procedures of [Company Name]. It is not intended to be a contract of employment, expressed or implied, nor does it guarantee employment for any specific duration. [Company Name] reserves the right to modify, revoke, suspend, terminate, or change any or all of the policies, procedures, or benefits described herein, 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.

This handbook supersedes all previous handbooks, policy statements, and verbal representations. Nothing in this handbook is intended to interfere with, coerce, restrain, or otherwise violate employees' rights under Section 7 of the National Labor Relations Act.

2. About [Company Name]

2.1 Company Overview

[Company Name] was founded in [Year] with a vision to [briefly describe company's founding purpose/history]. Since then, we have grown into [briefly describe current status/achievements]. We are committed to [reiterate a key aspect of the company's work or impact].

2.2 Organizational Structure

[Company Name] maintains an organizational structure designed to foster collaboration, efficiency, and clear lines of communication. While specific departmental structures may vary, all employees report to a direct supervisor or manager. An organizational chart may be available through the HR Department or on the company intranet.

3. Employment Basics

3.1 Employment At-Will

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

3.2 Equal Employment Opportunity (EEO)

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

3.3 Anti-Discrimination & Harassment Policy

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

  • Reporting Procedure: Any employee who believes they have been subjected to or witnessed discrimination or harassment should immediately report the incident to their supervisor, the HR Department, or [another designated person/department, e.g., a senior leader]. All complaints will be investigated promptly and confidentially to the extent possible.
  • No Retaliation: [Company Name] prohibits retaliation against any employee for reporting discrimination or harassment in good faith or for participating in an investigation.

3.4 Reasonable Accommodation

[Company Name] is committed to providing reasonable accommodations for qualified individuals with disabilities in accordance with the Americans with Disabilities Act (ADA) and other applicable laws. If you require an accommodation to perform the essential functions of your job, please contact the HR Department to discuss your needs.

3.5 Recruitment & Hiring

[Company Name] is committed to fair and objective hiring practices. All candidates are evaluated based on their qualifications, skills, experience, and ability to meet the requirements of the position.

3.6 Onboarding & Orientation

New employees will participate in an onboarding and orientation program designed to help them integrate smoothly into our company. This includes reviewing essential policies, understanding job responsibilities, and completing necessary paperwork.

3.7 Employment Classification

Employees are classified into categories to determine eligibility for benefits and compliance with labor laws. Common classifications include:

  • Full-Time Exempt: Typically salaried employees who meet specific criteria for exemption from overtime pay under the Fair Labor Standards Act (FLSA).
  • Full-Time Non-Exempt: Typically hourly employees eligible for overtime pay for hours worked over 40 in a workweek.
  • Part-Time Non-Exempt: Employees who work fewer than [e.g., 30 or 40] hours per week and are eligible for overtime pay.
  • Temporary/Contract: Individuals hired for a specific project or limited duration, who may or may not be eligible for company benefits.

Your employment classification will be communicated to you upon hire.

3.8 Probationary Period

New employees typically undergo a probationary period of [e.g., 90] days from their start date. This period allows both the employee and the company to assess job fit and performance. Successful completion of the probationary period does not alter the at-will nature of employment.

3.9 Performance Reviews

Regular performance reviews are conducted to provide feedback, recognize achievements, identify areas for development, and align individual goals with company objectives. Typically, reviews occur [e.g., annually, semi-annually] or as needed.

3.10 Personnel Files

Official personnel files are maintained by the HR Department. Employees may review their own personnel file by submitting a written request to HR. Information in personnel files is confidential.

3.11 Confidentiality of Employee Information

[Company Name] treats employee personal and payroll information with strict confidentiality. Access to such information is restricted to authorized personnel with a legitimate business need.

4. Compensation & Benefits Overview

4.1 Pay Periods & Direct Deposit

Employees are paid [e.g., bi-weekly/semi-monthly] on [day of the week/date]. Direct deposit is mandatory for all employees. Pay stubs are accessible online via [HRIS system name, e.g., ADP, Workday].

4.2 Overtime Policy

Non-exempt employees are eligible for overtime pay at one and one-half times their regular rate of pay for all hours worked over 40 in a single workweek, in accordance with federal and state laws. All overtime must be pre-approved by a supervisor.

4.3 Benefits Eligibility

Eligibility for specific benefits may vary based on employment classification (e.g., full-time, part-time) and length of service. Details on eligibility requirements are available from the HR Department.

4.4 Health & Wellness Benefits

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

  • Medical Insurance: [Briefly describe options, e.g., multiple plans from major carriers]
  • Dental Insurance: [Briefly describe options]
  • Vision Insurance: [Briefly describe options]
  • Health Savings Account (HSA) / Flexible Spending Account (FSA): [If applicable]
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues.
  • Wellness Programs: [If applicable, e.g., gym membership discounts, health challenges]

Detailed information on plans, coverage, and enrollment procedures is provided during orientation and open enrollment periods.

4.5 Retirement Plans

  • 401(k) Plan: Eligible employees may participate in our 401(k) retirement savings plan. [Company Name] [e.g., offers a matching contribution, does not offer matching contribution]. Details on eligibility, vesting, and investment options are available from the plan administrator.

4.6 Life & Disability Insurance

  • Basic Life and AD&D Insurance: [Company Name] provides [e.g., company-paid basic life and accidental death & dismemberment (AD&D) insurance] for eligible employees.
  • Supplemental Life Insurance: Employees may purchase additional life insurance coverage for themselves and their dependents.
  • Short-Term Disability (STD): [Briefly describe, e.g., company-paid or voluntary]
  • **Long-Term Disability (LTD):[Briefly describe, e.g., company-paid or voluntary]

4.7 Other Benefits

  • Tuition Reimbursement: [If applicable, briefly describe, e.g., financial assistance for approved courses related to professional development]
  • Professional Development: Opportunities for training, workshops, and conferences.

4.8 Workers' Compensation

[Company Name] provides Workers' Compensation insurance for all employees in accordance with state law. If you sustain a work-related injury or illness, you must report it immediately to your supervisor and the HR Department, regardless of its severity.

5. Time Off & Leave Policies

5.1 Paid Time Off (PTO) / Vacation Policy

[Company Name] offers a generous PTO policy to provide employees with paid time away from work for vacation, personal appointments, or minor illnesses.

  • Accrual: PTO is accrued [e.g., on a bi-weekly basis, per pay period] starting from your date of hire.
  • Usage: PTO must be requested in advance and approved by your supervisor.
  • Carryover/Payout: [State policy on carryover limits or payout upon termination, e.g., "Maximum carryover of X hours," or "Unused PTO is not paid out upon termination."].

Detailed accrual rates and maximums are available from the HR Department.

5.2 Sick Leave Policy

[Company Name] provides sick leave for eligible employees to use when they are unable to work due to personal illness, injury, or medical appointments, or to care for an immediate family member.

  • Accrual: [State accrual method, e.g., "Sick leave accrues separately from PTO" or "Sick leave is part of the overall PTO bank."]
  • Usage: Employees must notify their supervisor as soon as possible if they will be absent due to illness. Medical documentation may be required for extended absences.
  • State/Local Mandates: This policy complies with all applicable state and local sick leave laws.

5.3 Holiday Schedule

[Company Name] observes the following paid holidays:

  • [List specific holidays, e.g., New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Day after Thanksgiving, Christmas Day]
  • [Any floating holidays or additional company-specific holidays]

Employees required to work on a company-observed holiday will be compensated according to applicable laws and company policy.

5.4 Bereavement Leave

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

5.5 Jury Duty Leave

Employees summoned for jury duty will be granted paid leave for the duration of their service. Employees must provide a copy of the jury summons to their supervisor and HR as soon as it is received.

5.6 Military Leave (USERRA)

[Company Name] complies with the Uniformed Services Employment and Reemployment Rights Act (USERRA). Employees who are members of the U.S. uniformed services will be granted leave for military service and are entitled to reemployment rights in accordance with USERRA.

5.7 Family and Medical Leave Act (FMLA)

[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 12-month period for specific family and medical reasons. These reasons include:

  • The birth of a child and to care for the newborn child within one year of birth.
  • The placement with the employee of a child for adoption or foster care and to care for the newly placed child within one year of placement.
  • To care for the employee’s spouse, child, or parent who has a serious health condition.
  • A serious health condition that makes the employee unable to perform the essential functions of his or her job.
  • Any qualifying exigency arising out of the fact that the employee’s spouse, son, daughter, or parent is a military member on covered active duty or call to covered active duty status.
  • Up to
employee_handbook_generator.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
\n\n\n"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport App from './App'\nimport './index.css'\n\nReactDOM.createRoot(document.getElementById('root')!).render(\n \n \n \n)\n"); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react'\nimport './App.css'\n\nfunction App(){\n return(\n
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n
\n )\n}\nexport default App\n"); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e}\n.app{min-height:100vh;display:flex;flex-direction:column}\n.app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px}\nh1{font-size:2.5rem;font-weight:700}\n"); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\n## Open in IDE\nOpen the project folder in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "type": "module",\n "scripts": {\n "dev": "vite",\n "build": "vue-tsc -b && vite build",\n "preview": "vite preview"\n },\n "dependencies": {\n "vue": "^3.5.13",\n "vue-router": "^4.4.5",\n "pinia": "^2.3.0",\n "axios": "^1.7.9"\n },\n "devDependencies": {\n "@vitejs/plugin-vue": "^5.2.1",\n "typescript": "~5.7.3",\n "vite": "^6.0.5",\n "vue-tsc": "^2.2.0"\n }\n}\n'); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport { resolve } from 'path'\n\nexport default defineConfig({\n plugins: [vue()],\n resolve: { alias: { '@': resolve(__dirname,'src') } }\n})\n"); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]}\n'); zip.file(folder+"tsconfig.app.json",'{\n "compilerOptions":{\n "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"],\n "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true,\n "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue",\n "strict":true,"paths":{"@/*":["./src/*"]}\n },\n "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"]\n}\n'); zip.file(folder+"env.d.ts","/// \n"); zip.file(folder+"index.html","\n\n\n \n \n "+slugTitle(pn)+"\n\n\n
\n \n\n\n"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './assets/main.css'\n\nconst app = createApp(App)\napp.use(createPinia())\napp.mount('#app')\n"); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue","\n\n\n\n\n"); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547}\n"); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nnpm run dev\n\`\`\`\n\n## Build\n\`\`\`bash\nnpm run build\n\`\`\`\n\nOpen in VS Code or WebStorm.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n"); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{\n "name": "'+pn+'",\n "version": "0.0.0",\n "scripts": {\n "ng": "ng",\n "start": "ng serve",\n "build": "ng build",\n "test": "ng test"\n },\n "dependencies": {\n "@angular/animations": "^19.0.0",\n "@angular/common": "^19.0.0",\n "@angular/compiler": "^19.0.0",\n "@angular/core": "^19.0.0",\n "@angular/forms": "^19.0.0",\n "@angular/platform-browser": "^19.0.0",\n "@angular/platform-browser-dynamic": "^19.0.0",\n "@angular/router": "^19.0.0",\n "rxjs": "~7.8.0",\n "tslib": "^2.3.0",\n "zone.js": "~0.15.0"\n },\n "devDependencies": {\n "@angular-devkit/build-angular": "^19.0.0",\n "@angular/cli": "^19.0.0",\n "@angular/compiler-cli": "^19.0.0",\n "typescript": "~5.6.0"\n }\n}\n'); zip.file(folder+"angular.json",'{\n "$schema": "./node_modules/@angular/cli/lib/config/schema.json",\n "version": 1,\n "newProjectRoot": "projects",\n "projects": {\n "'+pn+'": {\n "projectType": "application",\n "root": "",\n "sourceRoot": "src",\n "prefix": "app",\n "architect": {\n "build": {\n "builder": "@angular-devkit/build-angular:application",\n "options": {\n "outputPath": "dist/'+pn+'",\n "index": "src/index.html",\n "browser": "src/main.ts",\n "tsConfig": "tsconfig.app.json",\n "styles": ["src/styles.css"],\n "scripts": []\n }\n },\n "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"}\n }\n }\n }\n}\n'); zip.file(folder+"tsconfig.json",'{\n "compileOnSave": false,\n "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]},\n "references":[{"path":"./tsconfig.app.json"}]\n}\n'); zip.file(folder+"tsconfig.app.json",'{\n "extends":"./tsconfig.json",\n "compilerOptions":{"outDir":"./dist/out-tsc","types":[]},\n "files":["src/main.ts"],\n "include":["src/**/*.d.ts"]\n}\n'); zip.file(folder+"src/index.html","\n\n\n \n "+slugTitle(pn)+"\n \n \n \n\n\n \n\n\n"); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser';\nimport { appConfig } from './app/app.config';\nimport { AppComponent } from './app/app.component';\n\nbootstrapApplication(AppComponent, appConfig)\n .catch(err => console.error(err));\n"); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; }\n"); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'app-root',\n standalone: true,\n imports: [RouterOutlet],\n templateUrl: './app.component.html',\n styleUrl: './app.component.css'\n})\nexport class AppComponent {\n title = '"+pn+"';\n}\n"); zip.file(folder+"src/app/app.component.html","
\n
\n

"+slugTitle(pn)+"

\n

Built with PantheraHive BOS

\n
\n \n
\n"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1}\n"); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { routes } from './app.routes';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideZoneChangeDetection({ eventCoalescing: true }),\n provideRouter(routes)\n ]\n};\n"); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router';\n\nexport const routes: Routes = [];\n"); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\nng serve\n# or: npm start\n\`\`\`\n\n## Build\n\`\`\`bash\nng build\n\`\`\`\n\nOpen in VS Code with Angular Language Service extension.\n"); zip.file(folder+".gitignore","node_modules/\ndist/\n.env\n.DS_Store\n*.local\n.angular/\n"); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join("\n"):"# add dependencies here\n"; zip.file(folder+"main.py",src||"# "+title+"\n# Generated by PantheraHive BOS\n\nprint(title+\" loaded\")\n"); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n\`\`\`\n\n## Run\n\`\`\`bash\npython main.py\n\`\`\`\n"); zip.file(folder+".gitignore",".venv/\n__pycache__/\n*.pyc\n.env\n.DS_Store\n"); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^\`\`\`[\w]*\n?/m,"").replace(/\n?\`\`\`$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+"\n"; zip.file(folder+"package.json",pkgJson); var fallback="const express=require(\"express\");\nconst app=express();\napp.use(express.json());\n\napp.get(\"/\",(req,res)=>{\n res.json({message:\""+title+" API\"});\n});\n\nconst PORT=process.env.PORT||3000;\napp.listen(PORT,()=>console.log(\"Server on port \"+PORT));\n"; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000\n"); zip.file(folder+".gitignore","node_modules/\n.env\n.DS_Store\n"); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Setup\n\`\`\`bash\nnpm install\n\`\`\`\n\n## Run\n\`\`\`bash\nnpm run dev\n\`\`\`\n"); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:"\n\n\n\n\n"+title+"\n\n\n\n"+code+"\n\n\n\n"; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */\n*{margin:0;padding:0;box-sizing:border-box}\nbody{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e}\n"); zip.file(folder+"script.js","/* "+title+" — scripts */\n"); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\n## Open\nDouble-click \`index.html\` in your browser.\n\nOr serve locally:\n\`\`\`bash\nnpx serve .\n# or\npython3 -m http.server 3000\n\`\`\`\n"); zip.file(folder+".gitignore",".DS_Store\nnode_modules/\n.env\n"); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/\.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/\*\*(.+?)\*\*/g,"$1"); hc=hc.replace(/\n{2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+"\n\nGenerated by PantheraHive BOS.\n\nFiles:\n- "+app+".md (Markdown)\n- "+app+".html (styled HTML)\n"); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); } function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}