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

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

Step 1: Requirements Analysis for the Employee Handbook Generator

This document outlines the detailed requirements, design specifications, wireframe descriptions, color palettes, and user experience (UX) recommendations for the "Employee Handbook Generator" tool. The goal is to create a robust, intuitive, and highly customizable platform that empowers users (primarily HR professionals and business owners) to efficiently generate comprehensive, legally compliant, and professional employee handbooks.


1. Project Overview & Core Objectives

Project Name: Employee Handbook Generator

Description: A web-based application utilizing advanced AI capabilities to generate, customize, and manage comprehensive employee handbooks.

Core Objectives:

  • Efficiency: Significantly reduce the time and effort required to create a new employee handbook.
  • Customization: Provide extensive options for tailoring content to specific company needs, culture, and industry.
  • Compliance: Offer guidance and suggestions for legal compliance based on user-provided location and industry.
  • Professionalism: Ensure the generated output is polished, well-formatted, and ready for distribution.
  • User-Friendliness: Design an intuitive interface that is easy to navigate for users of varying technical proficiency.

2. Detailed Functional Requirements

The Employee Handbook Generator will offer the following key functionalities:

2.1. Handbook Generation & Customization

  • AI-Powered Content Generation:

* Generate initial handbook drafts based on user inputs (company details, industry, location, size, desired policy inclusions/exclusions).

* Suggest standard policies (e.g., Code of Conduct, Leave, Benefits, IT Usage, Health & Safety).

* Provide AI-driven suggestions for policy wording based on best practices and legal considerations.

  • Section Management:

* Ability to add, delete, and reorder handbook sections and individual policies.

* Pre-defined categories for policies (e.g., General Information, Employment Policies, Compensation & Benefits, Workplace Conduct, Leave Policies, IT & Data Security).

  • Rich Text Editing:

* Full-featured WYSIWYG editor for inline text modification, formatting (bold, italics, lists, headings), and adding images/links.

* Template-based text blocks for common policies with placeholders for company-specific details.

  • Custom Policy Creation:

* Option to create entirely new policies from scratch with AI assistance (e.g., "Draft a policy for remote work").

  • Placeholder Management:

* Automatic insertion of company-specific details (company name, address, contact info, CEO name) into relevant policy sections.

* Highlighting of remaining placeholders for user review.

2.2. Compliance & Legal Guidance

  • Jurisdiction-Specific Guidance:

* Input fields for primary operating location (country, state/province, city) to tailor compliance suggestions.

* AI-driven alerts and recommendations for mandatory policies or legal considerations based on selected jurisdiction.

* Disclaimer generation for legal advice.

  • Policy Recommendations:

* Suggest common policies relevant to the user's industry and company size.

* Flagging of potentially missing crucial policies.

2.3. Document Management & Export

  • Save & Resume:

* Ability to save handbook drafts and return to them later.

* Automatic saving functionality.

  • Version Control:

* Track changes and revisions, allowing users to revert to previous versions.

* Timestamped history of modifications.

  • Export Options:

* Generate professional PDF documents (printable and web-optimized).

* Export to Microsoft Word (.docx) for advanced offline editing.

* Generate a shareable web link for online viewing (optional, with password protection).

2.4. User Interface & Experience

  • Intuitive Workflow: Guided, multi-step process for handbook creation.
  • Dashboard: Centralized view for managing all created handbooks.
  • Search Functionality: Ability to search for specific policies or keywords within a handbook or across all handbooks.
  • Help & Support: Contextual tooltips, FAQs, and access to support resources.

3. Design Specifications

3.1. Information Architecture

  • Dashboard: Project overview, quick access to recent handbooks, "Create New Handbook" button.
  • Handbook Creation Workflow:

1. Company Profile: Basic company information, industry, location.

2. Policy Selection: Choose core policy categories and specific policies.

3. Content Customization: Detailed editing of each policy section.

4. Review & Finalize: Full handbook preview, compliance check.

5. Export & Publish: Download, share, or save.

  • Policy Editor: Dedicated interface for editing individual policies with AI suggestions.
  • Settings: User profile, subscription details, general preferences.

3.2. Wireframe Descriptions

A. Dashboard (Landing Page)

  • Layout: Clean, minimalist.
  • Header: Logo, User Profile/Settings, "Help" button.
  • Main Section:

* Large "Create New Handbook" button (primary CTA).

* "Recent Handbooks" section (cards/list view with Handbook Title, Last Edited Date, Status: Draft/Published).

* "Templates" section (pre-built handbook templates).

  • Sidebar (Optional): Navigation to "My Handbooks", "Templates", "Settings".

B. Handbook Creation - Step 1: Company Profile

  • Layout: Form-based, single column or two columns.
  • Header: "Create New Handbook - Step 1/5: Company Profile", Progress Indicator.
  • Fields:

* Company Name (Text Input)

* Industry (Dropdown/Searchable Select)

* Primary Operating Location (Country, State/Province, City - Searchable Selects)

* Company Size (Dropdown: Small, Medium, Large Enterprise)

* Brief Company Culture Description (Textarea, optional)

  • Footer: "Back" button (disabled on Step 1), "Next" button (primary CTA).

C. Handbook Creation - Step 2: Policy Selection

  • Layout: Two-column layout. Left: Policy Categories, Right: Policies within selected category.
  • Header: "Create New Handbook - Step 2/5: Policy Selection", Progress Indicator.
  • Left Column: List of policy categories (e.g., "General Info", "Employment", "Leave", "Conduct"). Each category is expandable/collapsible.
  • Right Column:

* Checkbox list of policies within the currently selected category.

* Search bar for policies.

* "Add Custom Policy" button.

* Brief description for each policy.

* "Recommended" or "Mandatory" tags.

  • Footer: "Back" button, "Next" button (primary CTA).

D. Handbook Creation - Step 3: Content Customization (Policy Editor)

  • Layout: Multi-panel interface.
  • Header: "Create New Handbook - Step 3/5: Content Customization", Progress Indicator.
  • Left Panel (Navigation):

* Outline of the handbook (sections and policies).

* Clicking an item loads it into the main editor.

* Drag-and-drop functionality for reordering sections/policies.

  • Main Panel (WYSIWYG Editor):

* Rich text editor for the currently selected policy.

* Toolbar with formatting options (bold, italic, lists, headings, links, images).

* Contextual AI suggestions for rewording, expanding, or checking compliance.

* Highlighted placeholders for company-specific details.

  • Right Panel (AI/Compliance Assistant):

* "AI Suggestions" tab: Generate new text, rephrase, check tone.

* "Compliance Check" tab: Alerts for potential compliance gaps, legal considerations.

* "Placeholders" tab: List of remaining placeholders to fill.

  • Footer: "Back" button, "Next" button (primary CTA), "Save Draft" button.

E. Handbook Creation - Step 4: Review & Finalize

  • Layout: Full-page preview of the generated handbook.
  • Header: "Create New Handbook - Step 4/5: Review & Finalize", Progress Indicator.
  • Main Content:

* Scrollable, paginated (optional) preview of the entire handbook.

* Options to print preview or download a draft PDF.

* Summary of compliance alerts/suggestions.

  • Footer: "Back to Editor" button, "Looks Good, Continue" button (primary CTA).

F. Handbook Creation - Step 5: Export & Publish

  • Layout: Action-oriented options.
  • Header: "Create New Handbook - Step 5/5: Export & Publish", Progress Indicator (Completed).
  • Main Content:

* "Download PDF" button.

* "Download Word (.docx)" button.

* "Generate Shareable Web Link" option (with toggle for password protection, expiry date).

* "Save to My Handbooks" button (if not already saved).

  • Confirmation Message: "Your Employee Handbook is ready!"
  • Footer: "View Handbook Dashboard" button, "Create New Handbook" button.

3.3. Color Palettes

The color palette should convey professionalism, trustworthiness, and ease of use.

Primary Colors:

  • Deep Blue (#1A476F): Dominant color for headers, primary buttons, and branding elements. Represents trust, stability, and professionalism.
  • Light Gray (#F5F7FA): Background color for main content areas, providing a clean and spacious feel.
  • White (#FFFFFF): Background for cards, modals, and text areas, ensuring readability.

Accent Colors:

  • Teal/Aqua (#00A896): Secondary call-to-action buttons, progress indicators, highlights. Represents innovation, clarity, and growth.
  • Soft Gold/Amber (#F9C74F): Used sparingly for alerts, warnings, or important notifications that need to stand out without being aggressive.

Text Colors:

  • Dark Gray (#333333): Primary text color for body copy, ensuring high readability.
  • Medium Gray (#666666): Secondary text, labels, and less prominent information.

System/Feedback Colors:

  • Success Green (#4CAF50): For successful actions, confirmations.
  • Warning Yellow (#FFC107): For warnings, important notices.
  • Error Red (#F44336): For errors, critical alerts.

4. User Experience (UX) Recommendations

4.1. General Principles

  • Clarity & Simplicity: Use clear, concise language. Avoid jargon. Design elements should be straightforward.
  • Consistency: Maintain consistent UI elements, terminology, and interaction patterns across the entire application.
  • Feedback & Guidance: Provide immediate visual feedback for user actions (e.g., button clicks, save status). Offer contextual help and tooltips.
  • Efficiency: Streamline workflows to minimize steps and reduce cognitive load.
  • Accessibility: Ensure the interface is usable by individuals with diverse abilities (e.g., sufficient color contrast, keyboard navigation, clear labeling).

4.2. Specific Recommendations

  • Progress Indicators: Implement a clear, multi-step progress bar or visual indicator during the handbook creation process to show users where they are and what's next.
  • Contextual Help:

* Tooltips: Hover-over tooltips for complex fields or icons explaining their purpose.

* "What's This?" Links: Small info icons next to policy titles or sections that link to explanations or best practices.

* AI Assistant Panel: Keep the AI/Compliance assistant visible and accessible during content customization for on-demand help.

  • Inline Validation: Provide real-time feedback on form inputs (e.g., "Company Name is required").
  • Undo/Redo Functionality: Essential within the rich text editor for content modifications.
  • Search & Filter: Implement robust search and filtering options for policies, sections, and saved handbooks to aid navigation and management.
  • Responsive Design: Ensure the application is fully responsive and optimized for various screen sizes (desktop, tablet, potentially mobile for review).
  • Empty States: Design helpful empty states for sections like "Recent Handbooks" or "My Handbooks" that guide users on how to get started.
  • Confirmation Dialogs: Use for irreversible actions (e.g., "Delete Handbook").
  • Performance: Optimize loading times and responsiveness of the editor, especially when dealing with large handbooks or AI generation.
  • User Onboarding: A brief, optional guided tour for first-time users to highlight key features and walk them through the initial handbook creation.

This comprehensive analysis forms the foundation for the design and development of the "Employee Handbook Generator," ensuring a user-centric, powerful, and efficient tool.

gemini Output

This output delivers a comprehensive, detailed, and professionally structured Employee Handbook. It is designed to be ready for publishing, incorporating all requested sections with clear, actionable content.


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

Welcome to the Team!

Headline: Welcome to [Company Name]! Your Journey Starts Here.

Body Text:

On behalf of the entire leadership team, we extend a warm welcome to you! We are thrilled to have you join [Company Name] and become a vital part of our growing success story. This Employee Handbook is designed to be your essential guide, providing you with important information about our company culture, policies, benefits, and expectations.

At [Company Name], we believe that our employees are our greatest asset. We are committed to fostering a supportive, inclusive, and dynamic work environment where every individual can thrive, innovate, and contribute their best. We encourage you to read this handbook thoroughly, as it outlines the principles and practices that govern our workplace.

Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources Department. We are here to support you every step of the way.

Welcome aboard! We look forward to achieving great things together.

Sincerely,

The Leadership Team at [Company Name]


1. About [Company Name]

Headline: Our Vision, Mission, and Values: Building Our Future Together

Body Text:

[Company Name] is a leader in [briefly describe industry/mission]. Since our founding in [Year], we have been dedicated to [state core purpose or achievement]. Our success is built on a foundation of innovation, collaboration, and a deep commitment to our customers and our employees.

  • Our Mission: [Insert Company Mission Statement - e.g., "To innovate and deliver exceptional [products/services] that empower our customers and enrich their lives."]
  • Our Vision: [Insert Company Vision Statement - e.g., "To be the most trusted and respected [industry] leader, recognized for our integrity, quality, and community impact."]
  • Our Values: These core values guide our decisions, actions, and interactions every day:

* Integrity: We act with honesty and transparency.

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

* Collaboration: We believe in the power of teamwork and mutual respect.

* Innovation: We embrace creativity and continuous improvement.

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

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


2. Employment Basics

Headline: Understanding Your Employment at [Company Name]

Body Text:

This section provides fundamental information regarding your employment relationship with [Company Name].

2.1 Employment At-Will

[Company Name] maintains an "at-will" employment relationship. This means that either you or the company may terminate the employment relationship at any time, for any reason not prohibited by law, with or without cause or notice. This handbook is not a contract of employment, nor does it guarantee employment for any specific duration.

2.2 Equal Employment Opportunity (EEO)

[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 recruitment, hiring, training, promotion, compensation, benefits, and termination, are made without regard to race, color, religion, gender, sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other legally protected characteristic. We are dedicated to fostering an inclusive environment for all employees.

2.3 Americans with Disabilities Act (ADA) Compliance

[Company Name] complies with the Americans with Disabilities Act (ADA) and other applicable laws. We provide reasonable accommodations to qualified individuals with disabilities, enabling them to perform the essential functions of their jobs, unless doing so would impose an undue hardship on the company. Employees needing an accommodation should contact the Human Resources Department to discuss their needs.


3. Company Policies

Headline: Our Workplace Policies: Ensuring a Productive and Respectful Environment

Body Text:

These policies define the standards of conduct and operational guidelines that help us maintain a productive, safe, and respectful workplace for everyone.

3.1 Work Hours and Attendance

  • Standard Workday: Our standard business hours are [e.g., 9:00 AM to 5:00 PM], Monday through Friday. Specific department hours may vary and will be communicated by your manager.
  • Punctuality: Employees are expected to arrive at work on time and be ready to begin work at their scheduled start time.
  • Breaks and Lunch: Employees are entitled to [e.g., a 30-minute unpaid lunch break for shifts over 5 hours and two 15-minute paid rest breaks for an 8-hour shift].
  • Absence Notification: If you are unable to come to work due to illness or other unforeseen circumstances, you must notify your manager as soon as possible, ideally at least [e.g., one hour] before your scheduled start time. Failure to notify your manager may result in disciplinary action.
  • Excessive Absenteeism/Tardiness: Consistent or excessive absenteeism and tardiness can disrupt operations and may lead to disciplinary action, up to and including termination.

3.2 Dress Code

[Company Name] promotes a professional yet comfortable work environment.

  • General Guideline: Business casual attire is generally appropriate. This includes [e.g., slacks, skirts, blouses, button-down shirts, sweaters, and professional dresses].
  • Unacceptable Attire: Clothing that is overly revealing, ripped, stained, or displays offensive language or graphics is not permitted. Athletic wear, flip-flops, and excessively casual items are generally discouraged unless otherwise specified for specific roles or events.
  • Client Meetings/Special Events: For client meetings, presentations, or special company events, more formal business attire may be required. Your manager will provide guidance as needed.
  • Safety Requirements: Certain roles may require specific safety gear or uniforms, which will be provided and must be worn as directed.

3.3 Confidentiality and Data Security

  • Protection of Information: Employees are entrusted with confidential and proprietary information belonging to [Company Name], its clients, and partners. This includes, but is not limited to, financial data, strategic plans, customer lists, employee records, product designs, and trade secrets.
  • Non-Disclosure: Such information must not be disclosed to unauthorized individuals, either inside or outside the company, nor used for personal gain. This obligation continues even after employment with [Company Name] ends.
  • Data Security Practices: All employees must adhere to our data security protocols, including strong password practices, secure handling of physical and digital documents, and proper use of company systems and networks. Do not share login credentials.
  • Reporting Breaches: Any suspected breach of confidentiality or data security must be immediately reported to your manager and/or the IT Department.

3.4 Use of Company Property

  • Responsible Use: Company property, including computers, software, phones, vehicles, and equipment, is provided for business purposes. Employees are expected to use all company property responsibly, efficiently, and in accordance with company policies.
  • Personal Use: Limited personal use of company property (e.g., internet, email) is permitted, provided it does not interfere with job duties, violate any company policies, or incur significant cost to the company. Excessive personal use is prohibited.
  • Monitoring: Employees should have no expectation of privacy when using company-owned equipment or systems. [Company Name] reserves the right to monitor and inspect all data, files, and communications on company property and systems at any time, consistent with applicable laws.
  • Reporting Issues: Any damage, loss, or malfunction of company property must be reported immediately to your manager.

3.5 Communication and Social Media

  • Professional Communication: All internal and external communications should be professional, respectful, and reflect positively on [Company Name].
  • Social Media Guidelines:

* Personal Accounts: When using personal social media, exercise good judgment and respect the privacy of others. Do not post confidential company information, disparage the company, colleagues, clients, or partners.

* Company Association: If you identify yourself as an employee of [Company Name] on social media, ensure your content is consistent with our values and policies. Remember that your online conduct can reflect on the company.

* Company-Sponsored Social Media: Only authorized personnel may post on official company social media accounts. All content must be approved and adhere to brand guidelines.

3.6 Workplace Safety

  • Commitment to Safety: [Company Name] is committed to providing a safe and healthy work environment. We strive to prevent accidents and injuries through proactive measures and employee cooperation.
  • Employee Responsibility: All employees are responsible for adhering to safety rules and procedures, using equipment properly, and reporting any unsafe conditions, hazards, or incidents immediately to their manager or the designated safety officer.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, medical emergencies, or other crises.
  • First Aid: First aid kits are located at [specify locations]. In case of an emergency, contact [Emergency Contact Number] or [Designated First Aid Personnel].

3.7 Drug and Alcohol Policy

  • Drug-Free Workplace: [Company Name] is committed to maintaining a drug-free and alcohol-free workplace.
  • Prohibition: The unlawful manufacture, distribution, dispensation, possession, or use of illegal drugs, or the abuse of alcohol or prescription drugs, on company premises or during working hours, is strictly prohibited.
  • Impairment: Employees must not be under the influence of alcohol or illegal drugs while on duty or on company property, nor should they be impaired by legal substances (including prescription or over-the-counter medications) to an extent that affects their ability to perform their job safely and effectively.
  • Testing: [Company Name] reserves the right to conduct drug and alcohol testing as permitted by law, including pre-employment, reasonable suspicion, post-accident, and random testing [if applicable and legally permissible].
  • Support: Employees struggling with substance abuse are encouraged to seek assistance. Contact HR for information on available resources.

3.8 Harassment and Discrimination Prevention

  • Zero Tolerance: [Company Name] has a zero-tolerance policy for harassment and discrimination of any kind. This includes harassment based on race, color, religion, gender, sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other legally protected characteristic.
  • Definition: Harassment is unwelcome conduct that creates a hostile, intimidating, or offensive work environment. It can include verbal, physical, or visual conduct. Sexual harassment, including unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature, is strictly prohibited.
  • Reporting: Any employee who believes they have been subjected to or witnessed harassment or discrimination must report it immediately to their manager, Human Resources, or any member of the leadership team. All reports will be handled promptly, discreetly, and impartially.
  • No Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports harassment or discrimination in good faith or participates in an investigation.

3.9 Performance Management

  • Regular Feedback: We believe in continuous feedback and open communication to support employee growth and development. Managers will provide regular feedback and conduct formal performance reviews at least [e.g., annually].
  • Performance Improvement: If an employee's performance falls below expectations, the company will work with the employee to develop a Performance Improvement Plan (PIP) to address deficiencies and provide necessary support.
  • Disciplinary Action: Failure to meet performance expectations or adhere to company policies may result in disciplinary action, up to and including termination, depending on the severity and frequency of the issue.

4. Benefits Overview

Headline: Investing in You: Our Comprehensive Employee Benefits

Body Text:

[Company Name] is committed to offering a robust and competitive benefits package designed to support the health, well-being, and financial security of our employees and their families. Eligibility for certain benefits may depend on employment status (full-time, part-time) and length of service. Detailed information, including eligibility requirements and enrollment procedures, is available from the Human Resources Department.

4.1 Health and Wellness Benefits

  • Medical Insurance: Comprehensive medical plans with various coverage options, including [e.g., PPO and HMO plans].
  • Dental Insurance: Coverage for preventative, basic, and major dental services.
  • Vision Insurance: Coverage for eye exams, glasses, and contact lenses.
  • Life Insurance: Company-paid basic life insurance, with options for employees to purchase supplemental coverage.
  • Disability Insurance: Short-term and long-term disability plans to provide income protection in case of illness or injury.
  • Employee Assistance Program (EAP): Confidential counseling and support services for a wide range of personal and work-related issues.

4.2 Retirement Plans

  • 401(k) Retirement Savings Plan: Employees can contribute a portion of their pre-tax earnings to a 401(k) plan. [Company Name] offers a [e.g., matching contribution of 50% on the first 6% of employee contributions, vested after 3 years of service].
  • Financial Wellness Resources: Access to financial planning tools and resources to help employees plan for their future.

4.3 Paid Time Off (PTO)

  • Integrated PTO: [Company Name] offers an integrated Paid Time Off (PTO) policy that combines vacation, sick leave, and personal days into a single bank of hours. This provides flexibility for employees to manage their time off needs.
  • Accrual: PTO hours accrue based on length of service and employment status. [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, minor illnesses, or other personal needs. All PTO requests must be approved by your manager in advance, ideally with [e.g., two weeks'] notice for planned absences.
  • Carryover: [e.g., Up to Z hours of unused PTO may be carried over to the next calendar year.]
  • (Detailed leave policies are outlined in Section 6.)

4.4 Other Perks and Programs

  • Professional Development: Opportunities for training, workshops, and educational assistance to support career growth.
  • Employee Discounts: Access to special discounts on various products and services.
  • Wellness Programs: Initiatives to promote physical activity, healthy eating, and overall well-being.
  • Commuter Benefits: [e.g., Pre-tax transit and parking benefits.]
  • Service Awards: Recognition for significant employment milestones.

5. Code of Conduct

Headline: Our Commitment to Integrity: Upholding High Ethical Standards

Body Text:

Our Code of Conduct outlines the ethical principles and professional standards that guide our behavior and decisions at [Company Name]. Adherence to this code is essential for maintaining our reputation, fostering a positive workplace, and ensuring fair and ethical dealings with all stakeholders.

5.1 Ethical Behavior

  • Honesty and Integrity: Always act with honesty, integrity, and transparency in all business dealings. Avoid any conduct that could be perceived as dishonest, misleading, or unethical.
  • Compliance with Laws: Comply with all applicable laws, regulations, and company policies. Ignorance of the law is not an excuse for non-compliance.
  • Respect for Property: Respect the property rights of the company, colleagues, clients, and partners. Do not engage in theft, misuse, or destruction of property.

5.2 Professionalism

  • Respectful Workplace: Treat all colleagues, clients, vendors, and visitors with respect, courtesy, and dignity. Avoid personal attacks, insults, or any form of disrespectful behavior.
  • Positive Attitude: Contribute to a positive and collaborative work environment.
  • Accountability:
gemini Output

The following comprehensive Employee Handbook has been generated, incorporating essential company policies, benefits overviews, codes of conduct, leave policies, and compliance sections. This document is designed to serve as a foundational guide for all employees, fostering a clear understanding of expectations, rights, and responsibilities within [Your Company Name].


Employee Handbook

[Your Company Name]

Effective Date: [Date of Handbook Issuance/Last Update, e.g., October 26, 2023]


1. Welcome to [Your Company Name]

1.1 Welcome Message

Welcome to the team at [Your Company Name]! We are thrilled to have you join us. This handbook is designed to be a valuable resource, providing you with essential information about our company culture, policies, procedures, and benefits. We believe in fostering a collaborative, respectful, and productive work environment, and your understanding and adherence to the guidelines outlined here are crucial to our collective success. We look forward to your contributions and growth with us.

1.2 Purpose of This Handbook

This Employee Handbook serves as a guide for all employees of [Your Company Name]. It outlines our core values, sets expectations for conduct, details company policies, and provides an overview of the benefits available to eligible employees. Its purpose is to ensure a fair and consistent application of policies across the organization, promote a positive workplace culture, and help you understand your role and responsibilities.

1.3 Our Vision and Mission

  • Vision: [Insert Company Vision Statement - e.g., To be the leading innovator in sustainable technology solutions.]
  • Mission: [Insert Company Mission Statement - e.g., To empower our customers with cutting-edge, eco-friendly products and services, driven by a commitment to excellence and social responsibility.]
  • Values: [Insert Company Core Values - e.g., Integrity, Innovation, Collaboration, Customer Focus, Respect.]

1.4 At-Will Employment 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 law. No statement in this handbook or any other company document is intended to create a contract of employment or to modify the at-will nature of employment.

1.5 Equal Employment Opportunity (EEO)

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

2. Company Policies

2.1 Hours of Operation & Work Schedules

  • Standard Operating Hours: [e.g., Monday to Friday, 9:00 AM to 5:00 PM]
  • Work Schedules: Individual work schedules may vary based on department and role. Employees are expected to adhere to their assigned schedules. Any changes to a regular schedule must be approved by your manager in advance.
  • Flexible Work Arrangements: [Optional: Detail policy on remote work, flextime, etc., if applicable. e.g., Flexible work arrangements may be available for eligible positions, subject to management approval and business needs.]

2.2 Attendance & Punctuality

Regular attendance and punctuality are essential for the smooth operation of [Your Company Name].

  • Reporting Absences: Employees must notify their direct manager as soon as possible, and no later than [e.g., 30 minutes] before their scheduled start time, if they will be absent or late.
  • Unexcused Absences: Unreported or unapproved absences may lead to disciplinary action, up to and including termination.

2.3 Dress Code

[Your Company Name] promotes a professional yet comfortable work environment.

  • General Guidelines: Business casual attire is generally appropriate. Clothing should be clean, neat, and appropriate for a professional setting.
  • Specific Roles: Certain roles (e.g., client-facing, laboratory, manufacturing) may have specific dress requirements for safety or professional representation. Your manager will provide details.
  • Inappropriate Attire: Clothing that is overly revealing, contains offensive language or graphics, or is otherwise disruptive to the workplace is not permitted.

2.4 Workplace Safety & Health

The safety and well-being of our employees are paramount.

  • Safety Procedures: All employees are responsible for understanding and adhering to established safety procedures and protocols.
  • Reporting Hazards: Immediately report any unsafe conditions, incidents, or accidents to your manager or HR.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and emergency contact information.
  • First Aid: [Detail location of first aid kits and trained personnel.]

2.5 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 the abuse of alcohol, is prohibited in the workplace, on company property, or while conducting company business.
  • Testing: [Optional: Detail policy on drug/alcohol testing, if applicable and legally permissible.]
  • Consequences: Violations of this policy will result in disciplinary action, up to and including termination.

2.6 Smoking Policy

To ensure a healthy and safe environment, smoking (including e-cigarettes and vaping) is strictly prohibited within all company buildings and vehicles. Designated smoking areas, if any, will be clearly marked.

2.7 Visitors in the Workplace

  • All visitors must check in at [e.g., reception desk] and receive a visitor's badge.
  • Employees are responsible for their visitors and must ensure they are escorted at all times.
  • Unauthorized visitors are not permitted in restricted areas.

2.8 Company Property & Equipment

  • Responsible Use: Employees are entrusted with company property (e.g., computers, phones, tools, vehicles) and are expected to use it responsibly, safely, and solely for business purposes.
  • Maintenance: Report any damage, malfunction, or loss of company property immediately to your manager.
  • Return of Property: All company property must be returned upon termination of employment.

2.9 Confidentiality & Data Security

  • Protection of Information: Employees must maintain the confidentiality of all proprietary, sensitive, and confidential company information, including but not limited to trade secrets, customer lists, financial data, and employee records.
  • Data Handling: Adhere to all data security protocols, including strong password practices, secure document storage, and appropriate handling of electronic information.
  • Non-Disclosure: This obligation continues even after employment ends.

2.10 Social Media Policy

  • Professional Conduct: When engaging in social media, employees should exercise good judgment and professionalism. Do not post confidential company information, disparage the company or its employees, or engage in any activity that could negatively impact the company's reputation.
  • Personal Use: While personal use of social media during work hours is discouraged, incidental, non-disruptive use may be permitted during breaks.
  • Identification: If identifying yourself as an employee of [Your Company Name] on social media, clearly state that your opinions are your own and not those of the company.

2.11 Anti-Harassment & Discrimination Policy

[Your Company Name] is committed to providing a workplace free from harassment and discrimination of any kind.

  • Prohibition: Harassment or discrimination based on any protected characteristic (race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, etc.) is strictly prohibited.
  • Reporting: Any employee who believes they have been subjected to or witnessed harassment or discrimination should immediately report the incident to their manager, HR, or [specific contact person/department].
  • Investigation: All reports will be promptly and thoroughly investigated, with appropriate corrective action taken.
  • Non-Retaliation: Retaliation against anyone who reports harassment or discrimination in good faith, or participates in an investigation, is strictly prohibited.

2.12 Workplace Violence Prevention

[Your Company Name] has zero tolerance for any form of violence or threats of violence in the workplace.

  • Prohibition: This includes physical assault, verbal threats, intimidation, harassment, property damage, or any behavior that creates a hostile or unsafe environment.
  • Reporting: Immediately report any threats, violent acts, or suspicious behavior to your manager or HR.
  • Weapons: Possession of firearms or other weapons on company property or while conducting company business is strictly prohibited, except as required by law for authorized security personnel.

2.13 Open Door Policy / Grievance Procedure

  • Open Communication: We encourage open communication. Employees are encouraged to discuss work-related concerns, suggestions, or grievances with their direct manager.
  • Escalation: If a concern cannot be resolved with the direct manager, or if the concern involves the direct manager, employees should contact [HR Department/Senior Management].
  • Fair Resolution: All concerns will be treated seriously and handled in a fair, confidential, and timely manner.

3. Compensation & Benefits Overview

3.1 Payroll Information

  • Pay Periods: Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday].
  • Payday: Payday is [e.g., every other Friday]. If a payday falls on a holiday, employees will be paid on the last business day prior to the holiday.
  • Direct Deposit: Direct deposit is mandatory/highly encouraged. [Provide instructions for setting up/changing direct deposit.]
  • Pay Stubs: Pay stubs are available electronically via [Payroll Portal Name].
  • Tax Withholding: Employees are responsible for submitting accurate W-4 forms.

3.2 Overtime

  • Non-Exempt Employees: Non-exempt employees are eligible for overtime pay at a rate of one-and-one-half times their regular rate of pay for all hours worked over 40 in a workweek, as required by law. All overtime must be pre-approved by your manager.
  • Exempt Employees: Exempt employees are not eligible for overtime pay.

3.3 Benefits Eligibility

Eligibility for benefits varies based on employment status (full-time, part-time) and length of service. Details on specific eligibility requirements will be provided by HR.

3.4 Health & Dental Insurance

  • Medical Insurance: [Your Company Name] offers comprehensive medical insurance plans to eligible employees and their dependents. [Briefly mention provider or type of plan, e.g., PPO/HMO options through [Provider Name]].
  • Dental Insurance: Dental coverage is also available to eligible employees and their dependents.
  • Enrollment: Details regarding enrollment periods, plan options, and employee contributions are available from HR.

3.5 Life & Disability Insurance

  • Life Insurance: [Your Company Name] provides [e.g., basic life insurance coverage at no cost to eligible employees, with options to purchase supplemental coverage].
  • Short-Term Disability (STD): [Briefly describe STD, e.g., provides income replacement for eligible employees unable to work due to a non-work-related illness or injury for a limited period.]
  • Long-Term Disability (LTD): [Briefly describe LTD, e.g., provides income replacement for eligible employees with extended disabilities.]

3.6 Retirement Plan

  • [e.g., 401(k)] Plan: Eligible employees may participate in the company's [e.g., 401(k)] retirement savings plan.
  • Company Match: [Optional: Detail company matching contributions, e.g., The company offers a matching contribution of [X%] on eligible employee contributions, subject to a vesting schedule.]
  • Enrollment: Information on enrollment, investment options, and vesting schedules is available from HR.

3.7 Paid Time Off (PTO)

[Your Company Name] provides a comprehensive Paid Time Off (PTO) program, which combines vacation, sick leave, and personal days into a single bank of hours. (Detailed policies are in Section 5).

3.8 Company Holidays

[Your Company Name] observes the following paid holidays:

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

3.9 Employee Assistance Program (EAP)

[Your Company Name] offers a confidential Employee Assistance Program (EAP) to all employees and their immediate family members. The EAP provides professional counseling and referral services for a wide range of personal and work-related issues, including stress, anxiety, substance abuse, financial concerns, and family matters.

3.10 Other Perks & Benefits

  • Professional Development: Opportunities for training, workshops, and educational assistance may be available.
  • Wellness Programs: [Optional: Describe any wellness initiatives, e.g., discounted gym memberships, health screenings.]
  • Employee Discounts: [Optional: Mention any employee discount programs.]

4. Code of Conduct & Ethics

4.1 General Expectations

All employees are expected to uphold the highest standards of integrity, professionalism, and ethical conduct in all business dealings and interactions. This includes:

  • Treating colleagues, customers, partners, and the public with respect and fairness.
  • Acting honestly and transparently.
  • Complying with all applicable laws, regulations, and company
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);}});}