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

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

Step 1: Analyze Requirements - Employee Handbook Generator

This document outlines the detailed requirements, design specifications, wireframe descriptions, color palettes, and user experience (UX) recommendations for the "Employee Handbook Generator." The goal is to create a robust, user-friendly, and comprehensive tool that enables businesses to efficiently generate professional employee handbooks tailored to their specific needs.


1. Detailed Design Specifications

The Employee Handbook Generator will be a web-based application designed to guide users through the process of creating a customized employee handbook.

1.1 Core Functionality

  • Guided Workflow: A multi-step process for inputting company information and policy details.
  • Template Library: Pre-built, industry-agnostic templates for common policies, with options for industry-specific variations (e.g., tech, retail, manufacturing).
  • Customization Engine:

* Ability to add, remove, and reorder standard handbook sections.

* In-line editing for all policy text.

* Option to add entirely new custom sections and policies.

* Upload company logo and branding elements.

  • Dynamic Content Generation: Policies and sections will dynamically populate based on user inputs and selections.
  • Compliance Prompts & Disclaimers: Integrated suggestions for common legal requirements (e.g., EEO, FMLA) and prominent disclaimers advising legal review.
  • Output Formats: Generate handbooks in industry-standard formats (e.g., PDF, DOCX).
  • Save & Resume: Allow users to save their progress and return to complete the handbook later.
  • Version Control (Future Enhancement): Track changes and different versions of generated handbooks.

1.2 Handbook Sections & Content Modules

The generator will be structured around key sections of a comprehensive employee handbook, with detailed sub-sections for user input and policy generation.

1.2.1 Company Overview & Introduction

  • Welcome Message: Customizable welcome from leadership.
  • Mission, Vision, Values: Fields for company's core principles.
  • Company History & Culture: Optional section for background and cultural tenets.
  • At-Will Employment Statement: Customizable boilerplate.
  • Acknowledgement of Receipt: Standard form for employee signature.

1.2.2 Company Policies

  • Workplace Safety: General safety rules, emergency procedures.
  • Anti-Harassment & Discrimination: Zero-tolerance policy, reporting procedures.
  • Equal Employment Opportunity (EEO): Statement of commitment.
  • Work Hours & Attendance: Standard workdays, clock-in/out procedures, tardiness.
  • Remote Work Policy: Eligibility, expectations, equipment (if applicable).
  • Dress Code: Professional, business casual, uniform requirements.
  • IT & Data Security: Acceptable use of company assets, data privacy, social media policy.
  • Confidentiality & Proprietary Information: Non-disclosure, intellectual property.
  • Performance Management: Review cycles, disciplinary actions, termination policy.
  • Workplace Violence Prevention: Policy and reporting.
  • Drug & Alcohol Policy: Workplace substance abuse policy.

1.2.3 Benefits Overview

  • Health & Dental Insurance: Eligibility, plan options, enrollment.
  • Retirement Plans: 401(k), pension, matching contributions.
  • Paid Time Off (PTO): Vacation, sick leave, personal days (accrual, carryover).
  • Holidays: Company-observed holidays.
  • Employee Assistance Programs (EAP): Mental health, wellness resources.
  • Other Perks: Gym memberships, tuition reimbursement, professional development.

1.2.4 Code of Conduct

  • Ethical Standards: Honesty, integrity, respect.
  • Professionalism: Workplace demeanor, communication.
  • Conflict of Interest: Disclosure requirements.
  • Gifts & Entertainment: Policy on receiving/giving gifts.
  • Use of Company Property: Guidelines for company assets.

1.2.5 Leave Policies

  • Family and Medical Leave Act (FMLA): Eligibility, types of leave, procedures.
  • Parental Leave: Maternity, paternity, adoption leave.
  • Bereavement Leave: Policy for grieving employees.
  • Jury Duty Leave: Policy and compensation.
  • Military Leave: USERRA compliance.
  • Unpaid Leave: Conditions and procedures.
  • Other Statutory Leaves: State-specific requirements (e.g., domestic violence leave).

1.2.6 Compliance & Legal Disclaimers

  • Americans with Disabilities Act (ADA): Accommodation policy.
  • Wage & Hour Laws (FLSA): Overtime, exempt/non-exempt classifications.
  • Whistleblower Protection: Policy for reporting unethical conduct.
  • Legal Disclaimer: Prominent notice advising users to consult legal counsel for review and local compliance.

2. Wireframe Descriptions

The user interface will follow a clear, sequential, and intuitive workflow, broken down into distinct steps.

2.1 Screen 1: Welcome & Company Information

  • Layout: Centralized form with clear headings.
  • Elements:

* Headline: "Create Your Employee Handbook"

* Introduction: Short text explaining the process.

* Input Fields: Company Name, Industry (dropdown), Number of Employees (dropdown).

* Upload Field: Company Logo (with preview).

* Call to Action: "Start Building Handbook" button.

  • Purpose: Gather essential company details and branding.

2.2 Screen 2: Handbook Sections Selection

  • Layout: Two-column layout or accordion menu.
  • Elements:

* Sidebar/Header: Progress indicator (e.g., "Step 2 of 5").

* Main Area:

* List of major handbook sections (e.g., "Company Policies", "Benefits Overview").

* Each section expands to show sub-sections.

* Checkboxes: To include/exclude specific sections or sub-sections.

* "Add Custom Section" Button: Allows users to create new, entirely custom sections.

* Preview Panel (Optional/Toggle): A mini-preview of the handbook's table of contents as sections are selected.

* Navigation: "Back" and "Next: Customize Policies" buttons.

  • Purpose: Allow users to select which policies and sections to include.

2.3 Screen 3: Policy Details & Customization (Iterative Screen)

  • Layout: Section-by-section form, with a clear navigation menu for selected sections.
  • Elements:

* Sidebar/Header: Progress indicator, list of selected sections with completion status.

* Main Area:

* Section Title: e.g., "Company Policies: Workplace Safety"

* Text Editor: Rich text editor for policy content.

* Pre-filled template text based on industry/company size.

* Options to insert dynamic fields (e.g., [Company Name], [Employee Name]).

* Formatting tools (bold, italics, lists, links).

* Input Fields/Checkboxes: For specific parameters (e.g., "Number of vacation days per year", "Eligibility period for FMLA").

* Contextual Help/Tooltips: Explanations for complex policies or legal considerations.

* Compliance Alerts: Small, non-intrusive warnings or suggestions for common compliance points.

* Navigation: "Previous Policy", "Next Policy", "Review Handbook" buttons.

  • Purpose: Enable detailed customization of each policy.

2.4 Screen 4: Review & Finalize

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

* Header: "Review Your Handbook"

* Interactive Table of Contents: Allows quick navigation to specific sections.

* Handbook Preview: Scrollable, interactive preview of the entire document.

* In-line editing functionality (click to edit specific paragraphs/sections, which takes them back to Screen 3 for that section).

* Checklist/Reminders: Prompts for legal review.

* Call to Action: "Generate & Download Handbook" button.

  • Purpose: Provide a comprehensive review opportunity before final generation.

2.5 Screen 5: Generate & Download

  • Layout: Simple confirmation and download screen.
  • Elements:

* Confirmation Message: "Your Employee Handbook is Ready!"

* Download Options: Buttons for "Download as PDF", "Download as DOCX".

* Save Option: "Save Progress & Exit" (for future edits).

* Optional: "Email Handbook" functionality.

  • Purpose: Deliver the final output to the user.

3. Color Palettes

Two professional and distinct color palettes are proposed to ensure a modern, trustworthy, and user-friendly aesthetic.

3.1 Palette 1: Corporate Professionalism

This palette emphasizes trust, clarity, and sophistication, suitable for a formal business tool.

  • Primary Blue: #0056B3 (Dark Blue - Buttons, primary accents, headers)
  • Secondary Blue: #007BFF (Medium Blue - Active states, links)
  • Neutral Dark Grey: #343A40 (Text, main headings)
  • Neutral Light Grey: #E9ECEF (Backgrounds, dividers)
  • Highlight Green: #28A745 (Success messages, completion indicators)
  • Warning Orange: #FFC107 (Alerts, important notices)
  • White: #FFFFFF (Content areas, text backgrounds)

3.2 Palette 2: Modern & Approachable

This palette offers a slightly softer, more contemporary feel while maintaining professionalism, using greens and muted tones.

  • Primary Teal: #1A73E8 (Deep Teal - Buttons, primary accents, headers)
  • Secondary Green: #3CB371 (Medium Green - Active states, links)
  • Neutral Charcoal: #2C3E50 (Text, main headings)
  • Neutral Off-White: #F8F9FA (Backgrounds, content areas)
  • Accent Yellow: #FFD700 (Highlight elements, warnings)
  • Success Dark Green: #008000 (Success messages)
  • White: #FFFFFF (Content areas, text backgrounds)

4. UX Recommendations

To ensure an optimal user experience, the following recommendations will be integrated into the design and development.

  • Intuitive Step-by-Step Workflow: Clearly define each stage of the handbook generation process with progress indicators, making it easy for users to understand where they are and what's next.
  • Clear and Concise Language: Use plain language for instructions, policy descriptions, and prompts. Avoid jargon where possible.
  • Contextual Help & Tooltips: Provide small 'i' icons or hover-over tooltips next to complex fields or legal disclaimers to offer immediate, relevant information without cluttering the interface.
  • Real-time Preview: Implement a dynamic preview panel or section that updates as the user makes changes, allowing them to see the handbook taking shape.
  • "Save & Resume" Functionality: Crucial for large documents, enabling users to save their progress and return at any time.
  • Smart Defaults & Pre-filled Content: Based on industry and company size, pre-populate policy text with common, legally sound boilerplate language that users can then customize. This reduces initial effort.
  • Error Prevention & Validation: Implement immediate feedback for invalid inputs (e.g., required fields, data format errors) to prevent frustration.
  • Responsive Design: Ensure the application is fully functional and visually appealing across various devices (desktops, tablets, laptops) for maximum accessibility.
  • Accessibility (WCAG Compliance): Design with accessibility in mind, including keyboard navigation, sufficient color contrast, and screen reader compatibility.
  • Prominent Legal Disclaimers: Clearly communicate that the generated handbook is a template and should be reviewed by legal counsel to ensure compliance with all applicable local, state, and federal laws. This should appear at multiple points (start, review, download).
  • Feedback Mechanism: Include an option for users to provide feedback on the generator itself, allowing for continuous improvement.
  • Undo/Redo Functionality: For text editing within policies, provide standard
gemini Output

As a deliverable for the "Employee Handbook Generator" workflow, we have generated a comprehensive and professionally structured employee handbook for your organization. This document is designed to provide clarity on company policies, benefits, expected conduct, and compliance requirements, ensuring a consistent and fair work environment.


[Your Company Name] Employee Handbook

Welcome to the Team!

At [Your Company Name], we believe that our greatest asset is our people. We are thrilled to welcome you to our growing team and look forward to the valuable contributions you will make. This Employee Handbook serves as your essential guide to our company culture, policies, benefits, and expectations. It's designed to help you understand your role, your rights, and the resources available to you, fostering a productive, respectful, and inclusive workplace for everyone.

Please take the time to read this handbook thoroughly. It is a living document, and while it covers a wide range of topics, it cannot address every possible situation. We encourage you to ask questions and seek clarification from your manager or the HR Department whenever needed.

Welcome aboard! We’re excited to achieve great things together.

Sincerely,

The Leadership Team at [Your Company Name]


1. Our Company Culture & Values

At [Your Company Name], our culture is built on a foundation of shared values that guide our actions and decisions every day. We strive to create an environment where every employee feels valued, respected, and empowered to contribute their best work.

Our Mission

[Insert your company's mission statement here. Example: "To innovate and deliver exceptional solutions that empower our customers and enrich our community."]

Our Vision

[Insert your company's vision statement here. Example: "To be the leading provider in our industry, recognized for our integrity, innovation, and unwavering commitment to excellence."]

Our Core Values

  • Integrity: We act with honesty and strong moral principles in everything we do.
  • Innovation: We embrace creativity, continuously seek new ideas, and challenge the status quo.
  • Collaboration: We believe in teamwork, open communication, and mutual support to achieve common goals.
  • Excellence: We are committed to delivering high-quality results and striving for continuous improvement.
  • Respect: We treat everyone with dignity, valuing diverse perspectives and fostering an inclusive environment.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our clients.

2. General Company Policies

These policies are established to ensure a safe, productive, and professional work environment for all employees.

2.1 Workplace Conduct

We expect all employees to conduct themselves professionally and respectfully at all times. This includes interactions with colleagues, clients, vendors, and the public. Disruptive, disrespectful, or unprofessional behavior will not be tolerated.

2.2 Confidentiality and Proprietary Information

Employees may have access to confidential and proprietary information, including but not limited to trade secrets, customer lists, financial data, product development plans, and employee records. All such information must be treated with the utmost confidentiality and not disclosed to unauthorized individuals or used for personal gain. Your obligation of confidentiality continues even after your employment with [Your Company Name] ends.

2.3 Data Privacy and Security

[Your Company Name] is committed to protecting the privacy and security of all personal and company data. Employees are responsible for adhering to all data security protocols, including strong password practices, secure handling of sensitive information, and prompt reporting of any suspected data breaches or security incidents.

2.4 Use of Company Property and Resources

Company-provided equipment (computers, phones, vehicles, software, etc.) and resources are intended for business use. Incidental personal use is permitted as long as it does not interfere with job duties, violate company policies, or incur significant costs to the company. All company property must be treated with care and returned upon termination of employment.

2.5 Electronic Communications and Internet Usage

Company electronic communication systems (email, instant messaging, internet access) are provided for business purposes. While some incidental personal use is permitted, employees should have no expectation of privacy regarding their use of company systems. [Your Company Name] reserves the right to monitor these systems to ensure compliance with company policies and legal obligations. Prohibited uses include accessing inappropriate content, engaging in illegal activities, or transmitting offensive material.

2.6 Dress Code

Our dress code is business casual, reflecting a professional yet comfortable work environment. Employees should always present themselves in a neat, clean, and appropriate manner. Specific roles may require different attire (e.g., safety gear, client-facing formal wear), which will be communicated by your manager.

2.7 Performance Reviews

Regular performance reviews are conducted to provide constructive feedback, recognize achievements, set goals, and identify areas for development. These reviews typically occur [e.g., annually, semi-annually] and involve a discussion between the employee and their manager.

2.8 Disciplinary Action

[Your Company Name] maintains a fair and consistent approach to addressing performance or conduct issues. Disciplinary actions, which may include verbal warnings, written warnings, suspension, or termination, will be taken as necessary to ensure compliance with company policies and maintain a productive work environment. The severity of the action will depend on the nature and frequency of the infraction.

2.9 Employment Termination

Employment with [Your Company Name] is "at-will" (where applicable by law), meaning either the employee or the company can terminate the employment relationship at any time, with or without cause or notice, subject to applicable laws. Upon termination, employees are expected to return all company property and may be subject to exit interviews.


3. Compensation & 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 and their families.

3.1 Compensation

  • Pay Periods: Employees are paid [e.g., bi-weekly, semi-monthly] on [Day of the week/Date].
  • Direct Deposit: Direct deposit is mandatory for all employees. Please ensure your banking information is up-to-date with HR.
  • Overtime: Non-exempt employees are eligible for overtime pay at one and a half times their regular rate for hours worked over 40 in a workweek, in accordance with federal and state laws. All overtime must be pre-approved by your manager.

3.2 Health and Wellness Benefits

  • Medical Insurance: [Your Company Name] offers comprehensive medical insurance plans through [Provider Name]. Details regarding coverage options, employee contributions, and enrollment periods are available from HR.
  • Dental Insurance: Dental coverage is provided through [Provider Name].
  • Vision Insurance: Vision coverage is provided through [Provider Name].
  • Wellness Programs: We encourage employee well-being through various wellness initiatives, including [e.g., discounted gym memberships, health challenges, EAP services].

3.3 Retirement Planning

  • 401(k) Plan: Employees are eligible to participate in our 401(k) retirement savings plan after [e.g., 90 days of employment]. [Your Company Name] offers a [e.g., matching contribution of X%]. Details on eligibility, vesting schedules, and investment options are available from HR.

3.4 Paid Time Off (PTO) & Holidays

  • Vacation/PTO: Employees accrue [e.g., X days/hours] of PTO annually, which can be used for vacation, personal appointments, or minor illnesses. PTO accrual rates may increase with tenure. Specific details on accrual, carryover, and usage policies are available from HR. All PTO requests must be submitted and approved by your manager in advance.
  • Company Holidays: [Your Company Name] observes [Number] paid holidays annually. A list of observed holidays will be distributed at the beginning of each calendar year.

* [List example holidays: New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Day after Thanksgiving, Christmas Day]

3.5 Other Benefits & Perks

  • Life Insurance: Basic life insurance coverage is provided to all eligible employees at no cost.
  • Short-Term & Long-Term Disability: Disability insurance is available to provide income protection during periods of extended illness or injury.
  • Professional Development: We support employee growth through training programs, workshops, and opportunities for continuing education.
  • Employee Assistance Program (EAP): A confidential EAP is available to help employees and their families with personal and work-related challenges.
  • [Add other unique perks, e.g., Tuition Reimbursement, Commuter Benefits, Employee Discounts, Free Snacks/Coffee]

4. Code of Conduct

Our Code of Conduct outlines the ethical principles and professional standards expected of every employee. Adherence to this code is fundamental to maintaining our reputation and fostering a positive work environment.

4.1 Ethics and Integrity

All employees are expected to act with the highest level of honesty, integrity, and ethical conduct. This includes being truthful, transparent, and fair in all business dealings.

4.2 Anti-Harassment and Anti-Discrimination Policy (EEO)

[Your Company Name] is committed to providing a workplace free from discrimination and harassment. We prohibit discrimination based on race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, or any other characteristic protected by law. Harassment of any kind, including sexual harassment, will not be tolerated. Any employee who believes they have been subjected to discrimination or harassment should report it immediately to their manager or HR. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken.

4.3 Conflict of Interest

Employees must avoid situations where their personal interests conflict, or appear to conflict, with the interests of [Your Company Name]. This includes, but is not limited to, engaging in outside employment that competes with the company, using company resources for personal gain, or accepting gifts that could influence business decisions. Any potential conflicts of interest must be disclosed to your manager or HR.

4.4 Whistleblower Policy

[Your Company Name] encourages employees to report any suspected illegal, unethical, or unsafe activities without fear of retaliation. This policy protects employees who report concerns in good faith from adverse employment actions. Reports can be made to your manager, HR, or through our confidential reporting channel [e.g., dedicated email, hotline].

4.5 Drug-Free Workplace

[Your Company Name] is committed to maintaining a safe, healthy, and productive work environment. The unlawful manufacture, distribution, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Employees reporting to work under the influence of illegal drugs or alcohol will be subject to disciplinary action, up to and including termination.


5. Leave Policies

[Your Company Name] provides various leave options to support employees during significant life events and personal needs, in accordance with applicable federal and state laws.

5.1 Sick Leave

Employees accrue [e.g., X hours/days] of paid sick leave annually, which can be used for personal illness, injury, or to care for an immediate family member. Specific accrual rates, carryover limits, and usage guidelines are available from HR. A doctor's note may be required for absences exceeding [e.g., 3 consecutive days].

5.2 Family and Medical Leave Act (FMLA)

Eligible employees may be entitled to up to 12 weeks of unpaid, job-protected leave for specific family and medical reasons, in accordance with the FMLA. Reasons include the birth or adoption of a child, caring for a spouse, child, or parent with a serious health condition, or the employee's own serious health condition. Employees should contact HR for eligibility requirements and application procedures.

5.3 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). Additional unpaid leave may be granted at the discretion of the company.

5.4 Jury Duty Leave

Employees required to serve on jury duty will be granted paid leave for the period of service. Employees must provide a copy of their summons to their manager and HR as soon as possible.

5.5 Military Leave

Employees who are members of the uniformed services will be granted leave for military service in accordance with the Uniformed Services Employment and Reemployment Rights Act (USERRA). Employees must provide advance notice of military service whenever possible.


6. Compliance and Safety

[Your Company Name] is dedicated to operating in full compliance with all applicable laws and regulations, and to providing a safe and secure environment for all employees.

6.1 Equal Employment Opportunity (EEO)

[Your Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse workforce and providing equal employment opportunities to all qualified individuals without regard to race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, or any other characteristic protected by law.

6.2 Americans with Disabilities Act (ADA)

[Your Company Name] complies with the ADA and provides reasonable accommodations to qualified individuals with disabilities, unless doing so would cause undue hardship. Employees requiring an accommodation should contact HR to discuss their needs.

6.3 Worker's Compensation

In the event of a work-related injury or illness, employees are covered by Worker's Compensation insurance. All work-related injuries, no matter how minor, must be reported to your manager and HR immediately.

6.4 Workplace Safety and Health

We are committed to maintaining a safe and healthy workplace. Employees are responsible for adhering to all safety rules and procedures, using personal protective equipment (PPE) when required, and immediately reporting any unsafe conditions, hazards, or accidents to their manager. Emergency procedures and contacts are posted throughout the workplace.

6.5 Reporting Violations

Employees are encouraged and expected to report any suspected violations of company policies, legal requirements, or ethical standards. Reports can be made to your manager, HR, or through the confidential whistleblower channel mentioned in Section 4.4. All reports will be handled with discretion and investigated appropriately.


Employee Acknowledgment

I acknowledge that I have received, read, and understand the policies and guidelines set forth in the [Your Company Name] Employee Handbook. I understand that this handbook is a guide, not an employment contract, and that my employment with [Your Company Name] is "at-will" (where applicable by law).

I agree to familiarize myself with the contents of this handbook and to comply with all company policies, procedures, and rules. I understand that [Your Company Name] reserves the right to revise, modify, or delete any policies or provisions in this handbook at any time, with or without notice.

I understand that if I have any questions about the contents of this handbook, I should contact my manager or the HR Department.


Employee Name (Printed):

____________________________________

Employee Signature:

____________________________________

Date:

____________________________________


Next Steps for Your Organization:

  • Review and Customize: Please review this draft handbook carefully and customize all bracketed placeholders [ ] with your company's specific information, policies, and values.
  • Legal Counsel Review: We highly recommend having your legal counsel review the final version of this handbook to ensure full compliance with all federal, state, and local employment laws applicable to your jurisdiction.
  • Distribution: Once finalized, distribute the handbook to all employees and ensure new hires receive it during their onboarding process.
  • Acknowledgement Collection: Collect signed acknowledgment forms from all employees to confirm their receipt and understanding of the handbook.

This comprehensive handbook provides a strong foundation for your employee relations. Please let us know if you require any further assistance or modifications.

gemini Output

This document outlines a comprehensive and detailed Employee Handbook for [Company Name], designed to provide employees with a clear understanding of our company culture, policies, benefits, and expectations. This handbook serves as a vital resource to ensure a positive, productive, and compliant work environment.


Employee Handbook: [Company Name]

Welcome to [Company Name]!

Dear Employee,

On behalf of the entire leadership team, I extend a warm welcome to you! We are thrilled to have you join [Company Name] and become a part of our growing family. Your skills, dedication, and unique perspective are valuable assets, and we are excited about the contributions you will make to our collective success.

At [Company Name], we believe that our employees are our greatest strength. We are committed to fostering a workplace that is inclusive, respectful, innovative, and supportive, where everyone feels empowered to thrive and reach their full potential. Our mission is [Insert Company Mission Statement Here, e.g., "to revolutionize the industry by delivering exceptional products/services and fostering a culture of continuous improvement and customer satisfaction."]

This Employee Handbook is designed to be your guide, providing essential information about our company’s policies, procedures, benefits, and expectations. It outlines the principles that govern our operations, ensuring a fair and consistent environment for everyone. We encourage you to read it thoroughly, as understanding its contents is crucial for a successful and harmonious working relationship.

Should you have any questions or require clarification on any policy, please do not hesitate to reach out to your manager or the HR Department. We are here to support you every step of the way.

We are confident that you will find [Company Name] to be a rewarding place to work, and we look forward to achieving great things together.

Welcome aboard!

Sincerely,

[CEO Name]

CEO, [Company Name]


Important Disclaimer

This Employee Handbook contains statements of company policies, practices, and procedures. It is intended to provide general information and guidance. This handbook is not a contract of employment, expressed or implied, nor should it be construed as such.

Employment with [Company Name] is "at-will," meaning 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 alters the at-will nature of employment.

[Company Name] reserves the right to modify, add, or delete any of the policies, procedures, benefits, or provisions described in this handbook at any time, with or without notice, except for the at-will employment relationship, which can only be modified in a written agreement signed by the CEO of [Company Name]. Employees will be notified of significant changes as they occur.

This handbook supersedes all previous handbooks, policies, and verbal representations. In the event of any conflict between this handbook and applicable federal, state, or local laws, the law shall govern.


1. Company Policies

1.1 Employment Basics

  • Equal Employment Opportunity (EEO):

* [Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, veteran status, or any other characteristic protected by federal, state, or local law.

  • Anti-Harassment and Anti-Discrimination:

* [Company Name] strictly prohibits any form of harassment or discrimination, including sexual harassment. This includes unwelcome conduct that is offensive, intimidating, hostile, or interferes with an individual's work performance. Harassment can be verbal, physical, or visual.

* Reporting Procedure: Employees who believe they have been subjected to harassment or discrimination, or who witness such conduct, must report it immediately to their manager, the HR Department, or any member of the leadership team. All reports will be investigated promptly and confidentially to the extent possible, and appropriate corrective action will be taken. Retaliation against anyone reporting harassment or discrimination in good faith is strictly prohibited.

  • Workplace Conduct:

* Employees are expected to conduct themselves professionally and respectfully at all times. This includes respectful communication, collaboration, and adherence to company policies. Disruptive or disrespectful behavior will not be tolerated.

  • Drug and Alcohol Policy:

* [Company Name] is committed to maintaining a drug-free and alcohol-free workplace. The use, possession, distribution, or sale of illegal drugs or unauthorized alcohol on company premises or during work hours is strictly prohibited. Employees are prohibited from working under the influence of illegal drugs or alcohol. Violation of this policy may result in disciplinary action, up to and including termination.

  • Workplace Violence Prevention:

* [Company Name] has zero tolerance for workplace violence. Threats, intimidation, physical altercations, or any other acts of violence or aggression are strictly prohibited. Employees who observe or experience any potentially violent or threatening behavior must report it immediately to their manager or HR.

  • Confidentiality and Non-Disclosure:

* Employees are required to maintain the confidentiality of [Company Name]'s proprietary and confidential information, including but not limited to trade secrets, customer lists, financial data, product development, and internal strategies. This obligation continues even after employment ends. Employees may be required to sign a separate Non-Disclosure Agreement (NDA).

  • Data Privacy and Security:

* Employees must adhere to all data privacy and security protocols to protect company and customer information. This includes safeguarding passwords, using secure networks, and reporting any suspected data breaches or security vulnerabilities immediately.

  • Social Media Policy:

* Employees are expected to exercise good judgment and professionalism when using social media, especially when identifying as a [Company Name] employee. Do not disclose confidential company information, disparage the company, colleagues, or customers, or engage in any online activity that could negatively impact [Company Name]'s reputation or business interests.

  • Remote Work Policy (if applicable):

* Employees approved for remote work are expected to maintain productivity, availability, and adherence to all company policies as if working in the office. Remote work arrangements require prior approval and may be revoked at the company's discretion. Specific guidelines regarding equipment, security, and communication will be provided separately.

  • Internet and Email Usage:

* Company-provided internet and email systems are primarily for business use. Incidental personal use is permitted but should not interfere with work duties or violate any company policies. Employees should have no expectation of privacy when using company systems, and all usage may be monitored. Prohibited activities include accessing inappropriate content, engaging in illegal activities, or sending mass unsolicited emails.

  • Company Property:

* Company property (e.g., laptops, phones, vehicles, tools) is provided for business use and must be treated with care and respect. Employees are responsible for safeguarding company property assigned to them and returning it upon termination of employment.

  • Dress Code:

* [Company Name] expects employees to dress in a manner that is appropriate for our professional work environment and reflective of our brand. [Specify Dress Code, e.g., "Business Casual is generally appropriate. Please ensure clothing is clean, neat, and professional. Specific departments or roles may have additional guidelines."]

  • Performance Reviews:

* Regular performance reviews will be conducted [e.g., annually, semi-annually] to provide constructive feedback, discuss career development, and set goals. This process is designed to support employee growth and ensure alignment with company objectives.

  • Progressive Discipline:

* [Company Name] utilizes a progressive discipline policy to address performance or conduct issues. This may include verbal warnings, written warnings, performance improvement plans, suspension, and ultimately, termination of employment. The specific steps taken will depend on the severity and nature of the infraction.

  • Termination of Employment:

* Employment may be terminated by either the employee or [Company Name] at any time, with or without cause or notice, in accordance with the at-will employment policy. Upon termination, employees are expected to return all company property and will receive their final paychecks and any accrued, unused vacation time as required by law.

1.2 Work Hours & Attendance

  • Work Schedule:

* The standard workweek for full-time employees is [e.g., 40 hours, Monday through Friday, 9:00 AM to 5:00 PM]. Specific departmental schedules may vary and will be communicated by your manager.

  • Punctuality:

* Employees are expected to be at their workstations and ready to begin work at their scheduled start time. Chronic tardiness or early departures are disruptive and will be addressed through the progressive discipline policy.

  • Attendance Reporting:

* In the event of an absence or tardiness, employees must notify their manager as soon as possible, preferably [e.g., at least one hour] before their scheduled start time. Failure to notify management of an absence may be considered a "no-call, no-show" and could result in disciplinary action.

  • Overtime Policy:

* Non-exempt employees are eligible for overtime pay at [e.g., one and a half (1.5)] times their regular hourly rate for all hours worked over [e.g., 40] in a workweek. All overtime must be pre-approved by a manager. Exempt employees are not eligible for overtime pay.

  • Meal and Rest Breaks:

* Employees working [e.g., more than six (6) hours] are generally provided an unpaid meal break of [e.g., 30-60 minutes]. Employees working [e.g., more than four (4) hours] may also be provided paid rest breaks of [e.g., 10-15 minutes]. Specific break requirements comply with applicable federal and state laws.


2. Benefits Overview

[Company Name] is proud to offer a comprehensive benefits package designed to support the well-being of our employees and their families. Eligibility for certain benefits may vary based on employment status (full-time, part-time) and length of service. Detailed information on each benefit, including eligibility requirements and enrollment procedures, is available from the HR Department.

  • Health Insurance:

* Medical Insurance: [Brief description, e.g., "We offer comprehensive medical plans (HMO/PPO options) with employer contributions to premiums."]

* Dental Insurance: [Brief description, e.g., "Dental coverage includes preventative, basic, and major services."]

* Vision Insurance: [Brief description, e.g., "Vision plans cover eye exams, glasses, and contact lenses."]

  • Life Insurance:

* [Brief description, e.g., "Company-paid basic life insurance coverage is provided for all eligible employees. Optional supplemental life insurance may be purchased."]

  • Disability Insurance:

* Short-Term Disability (STD): [Brief description, e.g., "Provides income protection for temporary non-work-related illnesses or injuries."]

* Long-Term Disability (LTD): [Brief description, e.g., "Offers extended income protection for qualifying long-term disabilities."]

  • Retirement Plans:

* 401(k) Plan: [Brief description, e.g., "Eligible employees can participate in our 401(k) plan, including a company match of [e.g., 50% on the first 6% of contributions]."]

  • Paid Time Off (PTO):

* [Brief description, e.g., "A unified PTO policy allows employees to use accrued time for vacation, personal appointments, or minor illnesses. Details on accrual and usage are in the Leave Policies section."]

  • Holidays:

* [Brief description, e.g., "The company observes [e.g., 10] paid holidays annually. A list of observed holidays is provided in the Leave Policies section."]

  • Employee Assistance Program (EAP):

* [Brief description, e.g., "A confidential resource offering counseling, referrals, and support for personal and work-related issues, available to employees and their families."]

  • Other Perks and Programs:

* Professional Development: [Brief description, e.g., "Opportunities for training, workshops, and tuition reimbursement for approved courses."]

* Wellness Programs: [Brief description, e.g., "Initiatives promoting physical and mental well-being, such as fitness challenges or health screenings."]

* Commuter Benefits: [Brief description, e.g., "Pre-tax options for transit and parking expenses."]

* Employee Discount Programs: [Brief description, e.g., "Access to various discounts on products and services."]


3. Code of Conduct

Our Code of Conduct reflects the values and principles that guide our actions and decisions at [Company Name]. It is a commitment to fostering an ethical, respectful, and productive environment for all.

  • Core Values:

* [List 3-5 Company Core Values, e.g.:]

* Integrity: Act with honesty, transparency, and strong moral principles.

* Respect: Treat all colleagues, customers, and partners with dignity and consideration.

* Excellence: Strive for the highest quality in everything we do, continuously seeking improvement.

* Collaboration: Work together effectively, sharing knowledge and supporting collective goals.

* Innovation: Embrace creativity and new ideas to drive progress and solve challenges.

  • Ethical Behavior:

* Employees are expected to uphold the highest standards of ethical conduct in all business dealings. This includes honesty, fairness, and compliance with all applicable laws and regulations.

  • Conflict of Interest:

* Employees must avoid situations where their personal interests conflict with, or appear to conflict with, the interests of [Company Name]. This includes engaging in outside activities or relationships that could influence business decisions or compromise loyalty to the company. Any potential conflicts must be disclosed to your manager or HR.

*

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