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

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

This document details the comprehensive analysis of requirements for the "Employee Handbook Generator" workflow, focusing on design specifications, user experience, and visual aesthetics. This output serves as the foundational blueprint for the subsequent design and development phases, ensuring a professional, intuitive, and highly functional tool for generating company employee handbooks.


Employee Handbook Generator: Requirements Analysis & Design Vision

1. Executive Summary

This deliverable outlines the detailed requirements and initial design vision for the "Employee Handbook Generator." The primary goal is to create a robust, user-friendly application that enables companies to efficiently generate comprehensive employee handbooks. The tool will facilitate the inclusion of various essential sections, including company policies, benefits overviews, codes of conduct, leave policies, and compliance information, while offering extensive customization and a professional output. This analysis covers functional and non-functional requirements, detailed UX recommendations, wireframe concepts, and visual design elements.

2. Project Overview & Scope

The "Employee Handbook Generator" will be a web-based application designed to streamline the creation of professional employee handbooks. It will guide users through a structured process, from initial company information input to content selection, customization, branding, and final document generation. The scope includes:

  • Guided Workflow: A step-by-step process for handbook creation.
  • Content Library: Pre-written, editable templates for common policies and sections.
  • Customization: Ability to add, edit, remove, and reorder sections, and incorporate company-specific details.
  • Branding: Options for company logo, colors, and typography.
  • Preview Functionality: Real-time or near real-time preview of the handbook.
  • Export Options: Generation of professional documents (e.g., PDF, Word).
  • Progress Saving: Ability to save and resume handbook drafts.

3. Detailed Design Specifications (Functional & Non-Functional)

3.1 Functional Requirements (Design Perspective)

  • User Authentication & Dashboard:

* Secure user login/registration.

* Dashboard to manage multiple handbook projects (create new, load existing drafts).

  • Step-by-Step Workflow Navigation:

* Clear, sequential steps (e.g., Company Info -> Policies -> Sections -> Branding -> Review -> Export).

* Ability to navigate forward and backward between steps without losing data.

* Progress indicator for the current step within the workflow.

  • Company Information Input:

* Dedicated section for basic company details (name, address, mission, values, logo upload).

* Input fields with clear labels, validation, and help text.

  • Policy & Section Management:

* Content Library: A browsable/searchable library of pre-defined policy templates (e.g., Attendance, PTO, Remote Work, IT Usage, Harassment, Confidentiality, etc.).

* Selection: Checkbox or toggle-based selection for policies to include.

* Editing: Rich Text Editor (RTE) for customizing selected policy content.

* Standard formatting (bold, italics, underline, lists, headings).

* Hyperlink insertion.

* Placeholder support for company-specific data inserted from the Company Info section (e.g., [Company Name], [HR Contact]).

* Custom Content: Option to add entirely new, custom policy sections or pages.

* Reordering: Drag-and-drop interface for reordering sections within the handbook.

* Deletion: Option to remove unwanted sections.

  • Benefits Overview Integration:

* Structured input fields or a free-form RTE for describing company benefits (health, dental, vision, 401k, etc.).

* Ability to upload benefit summaries or links to external benefit portals.

  • Code of Conduct Section:

* Pre-defined template with customizable clauses.

* Space for company-specific ethical guidelines and values.

  • Leave Policies Section:

* Templates for various leave types (sick, vacation, FMLA, bereavement, parental).

* Input fields for specific company accrual rates, eligibility, and procedures.

  • Compliance Section:

* Templates for legal disclaimers, at-will employment statements, EEO statements, and other regulatory requirements.

* Guidance on critical compliance elements based on region/industry (if scope allows, otherwise generic).

  • Branding & Styling Options:

* Logo Upload: Primary company logo upload with preview.

* Color Palette Selection: Primary, secondary, and accent color pickers.

* Typography: Dropdown selection for heading and body fonts from a curated list (e.g., Google Fonts integration).

* Header/Footer Customization: Option to add custom text, page numbers, or branding elements.

* Table of Contents: Automatic generation of a clickable table of contents.

  • Preview Functionality:

* Dynamic, real-time preview of the handbook as content is added/edited.

* Option to view a full-page, paginated preview before export.

  • Export & Download:

* Generate handbook in PDF format (primary).

* Option to export in editable Word document format (secondary).

* Customizable filename for the generated document.

  • Save/Load Progress:

* Automatic saving of progress at each step.

* Manual save option.

* Ability to load previous drafts from the dashboard.

3.2 Non-Functional Requirements (Design Perspective)

  • Usability: Intuitive, easy-to-learn interface with minimal cognitive load. Clear instructions and contextual help.
  • Performance: Fast loading times for pages and content. Responsive UI interactions without noticeable lag. Efficient document generation.
  • Security: Secure user authentication, data encryption for sensitive company information, protection against common web vulnerabilities (XSS, CSRF).
  • Accessibility: Adherence to WCAG 2.1 AA standards. Keyboard navigation, screen reader compatibility, sufficient color contrast.
  • Responsiveness: Optimized for various screen sizes (desktop, tablet, mobile) to ensure a consistent user experience.
  • Reliability: Stable application with robust error handling and data recovery mechanisms.
  • Maintainability: Clean, modular codebase to facilitate future updates and feature additions.

4. User Experience (UX) Recommendations

  • Intuitive, Guided Workflow: Implement a clear, multi-step process with visual progress indicators (e.g., breadcrumbs, step-by-step wizard). Each step should have a focused task.
  • Clear Information Hierarchy: Use consistent headings, subheadings, and visual cues to organize content and make it scannable.
  • Contextual Help & Tooltips: Provide inline help text, tooltips for complex features, and links to a comprehensive help center or FAQ.
  • Real-time Feedback: Offer immediate visual feedback for user actions (e.g., successful save, validation errors, content updates in preview).
  • Undo/Redo Functionality: For content editing and structural changes, provide undo/redo options to prevent accidental data loss.
  • "Save Draft" and Auto-Save: Ensure users can save their progress at any point and that the system periodically auto-saves.
  • Error Prevention & Handling: Implement clear input validation with helpful error messages. Prevent users from progressing if critical information is missing or incorrect.
  • "What You See Is What You Get" (WYSIWYG) Editing: The Rich Text Editor should closely resemble the final output document for content sections.
  • Accessibility Considerations:

* High contrast ratios for text and UI elements.

* Keyboard navigability for all interactive components.

* Descriptive alt text for images (e.g., company logo).

* Semantic HTML for screen reader compatibility.

  • Positive Reinforcement: Use positive messaging for successful actions (e.g., "Handbook Saved!", "PDF Generated Successfully!").
  • User Control: Allow users to override defaults, customize templates, and have full control over the final content and appearance.

5. Wireframe Descriptions

The application will follow a multi-step wizard pattern. Below are descriptions of key screens/steps:

5.1 Screen 1: Welcome / Dashboard

  • Layout: Centered content area.
  • Elements:

* Header: "Welcome to the Employee Handbook Generator"

* Call to Action: "Create New Handbook" button (prominent).

* Existing Handbooks: A list/table of previously saved handbooks with "Edit," "Preview," "Download," and "Delete" options. Search/filter functionality for many handbooks.

* Help/Support Link: Clearly visible.

5.2 Screen 2: Company Information Input

  • Layout: Two-column or single-column form layout. Progress indicator at the top.
  • Elements:

* Step Indicator: "Step 1 of X: Company Information"

* Form Fields:

* Company Name (text input)

* Company Address (text area)

* Company Mission/Vision (text area/RTE)

* HR Contact Name/Email (text input)

* Company Logo Upload (file input with preview thumbnail)

* Legal Entity Type (dropdown)

* Industry (dropdown/text input)

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

* Save Draft: Button.

5.3 Screen 3: Policy Selection & Customization (Main Editor)

  • Layout: Three-column layout or split-panel:

* Left Panel: List of available policy categories (e.g., "General Conduct," "Leave," "Benefits," "IT Policy").

* Middle Panel: List of policies within the selected category. Each policy has a checkbox/toggle for inclusion and a "Customize" button/link.

* Right Panel (Contextual): Rich Text Editor (RTE) area that appears when a policy is selected for customization.

  • Elements:

* Step Indicator: "Step 2 of X: Policies & Content"

* Search Bar: To find specific policies.

* "Add Custom Policy" Button:

* RTE Features: Bold, Italic, Underline, Lists, Headings, Hyperlinks, Placeholder insertion tool.

* Navigation: "Back," "Next: Arrange Sections."

* Save Draft: Button.

5.4 Screen 4: Section & Content Review / Order

  • Layout: Single column, drag-and-drop list interface.
  • Elements:

* Step Indicator: "Step 3 of X: Review & Order Sections"

* Section List: Each item represents a handbook section (e.g., "Welcome Message," "Code of Conduct," "PTO Policy").

* Drag Handle: For reordering.

* Edit Icon: To quickly jump back to the RTE for that section.

* Delete Icon: To remove a section.

* "Add New Section" Button:

* Navigation: "Back," "Next: Branding & Style."

* Save Draft: Button.

5.5 Screen 5: Branding & Styling

  • Layout: Two-column layout: Left for controls, Right for a live preview thumbnail.
  • Elements:

* Step Indicator: "Step 4 of X: Branding & Style"

* Left Panel (Controls):

* Logo Upload: (if not done previously, or override).

* Color Pickers: Primary, Secondary, Accent (with HEX/RGB input and color swatch).

* Font Selectors: Dropdowns for Heading Font and Body Font.

* Header/Footer Text Input: RTE for custom header/footer content.

* Page Numbering Toggle:

* Right Panel (Live Preview): A small, dynamic preview of how the handbook looks with current branding choices.

* Navigation: "Back," "Next: Final Review."

* Save Draft: Button.

5.6 Screen 6: Preview & Export

  • Layout: Large, central document viewer area. Side panel for export options.
  • Elements:

* Step Indicator: "Step 5 of X: Preview & Export"

* Full-Page Preview: Embedded PDF viewer or paginated HTML rendering of the complete handbook.

* Side Panel (Export Options):

* "Download PDF" button (prominent).

* "Download Word Document" button (secondary).

* Filename input field.

* Confirmation of company info, selected policies, and branding applied.

* Navigation: "Back," "Finish / Back to Dashboard."

* Save Draft: Button.

6. Color Palette Recommendations

The color palette should convey professionalism, trustworthiness, and clarity.

  • Primary Palette (Corporate & Professional):

* Main Primary: #004AAD (Deep Corporate Blue) - Authority, Trust, Stability.

* Secondary Primary: #1A73E8 (Vibrant Blue) - Modernity, Energy, Action.

* Tertiary Primary: #34495E (Dark Charcoal Gray) - Sophistication, Neutrality, Strong Text.

  • Accent Colors (For CTAs, Highlights, Icons):

* Primary Accent: #28A745 (Success Green) - Positive actions, completion, success.

* Secondary Accent: #FFC107 (Warning Yellow) - Caution, alerts (soft).

* Tertiary Accent: #DC3545 (Error Red)

gemini Output

This output provides a comprehensive, detailed, and professionally structured employee handbook content, ready for review and customization. It covers essential company policies, benefits, code of conduct, leave policies, and compliance sections, designed to be engaging and informative for employees.


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

Welcome to the Team!

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.

This Employee Handbook is designed to be your essential guide to our company's culture, policies, benefits, and expectations. It outlines what you can expect from us and what we expect from you, ensuring a clear and consistent understanding of our workplace environment.

At [Company Name], we believe that our greatest asset is our people. We are committed to fostering a supportive, inclusive, and dynamic environment where every employee can thrive, contribute their best work, and grow professionally. Your dedication, talent, and unique perspective are invaluable as we work together to achieve our mission and vision.

We encourage you to read this handbook thoroughly, as it contains important information that will help you understand your role, rights, and responsibilities as an employee of [Company Name]. Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources Department.

Welcome aboard! We look forward to a successful and rewarding journey together.

Sincerely,

The Leadership Team

[Company Name]


Table of Contents

  1. Our Company & Culture

* Mission, Vision, & Values

* Our Commitment to Diversity & Inclusion

* Open Door Policy

  1. Employment Basics

* Equal Employment Opportunity

* At-Will Employment

* Recruitment & Onboarding

* Performance Management & Reviews

* Employee Records & Privacy

  1. Compensation & Benefits

* Compensation Philosophy

* Pay Periods & Direct Deposit

* Overtime Policy

* Deductions & Withholdings

* Health & Wellness Benefits (Medical, Dental, Vision)

* Retirement Savings Plan ([e.g., 401(k)])

* Life & Disability Insurance

* Employee Assistance Program (EAP)

* Other Perks & Programs

  1. Workplace Conduct & Expectations (Code of Conduct)

* General Conduct & Professionalism

* Anti-Harassment & Non-Discrimination

* Workplace Violence Prevention

* Drug-Free Workplace

* Confidentiality & Proprietary Information

* Information Technology & Communications Systems Usage

* Social Media Policy

* Dress Code

* Workplace Safety & Health

  1. Time Off & Leave Policies

* Paid Time Off (PTO) / Vacation Policy

* Sick Leave

* Company Holidays

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Family and Medical Leave Act (FMLA)

* Other Leaves of Absence

  1. General Workplace Policies

* Attendance & Punctuality

* Remote Work / Hybrid Work Policy

* Expense Reimbursement

* Travel Policy

* Company Property

* Problem Resolution & Grievance Procedure

* Disciplinary Action

* Resignation & Termination

* Exit Procedures

  1. Compliance & Legal Information

* Disclaimer

* Employee Acknowledgment Form


1. Our Company & Culture

Mission, Vision, & Values

Our Mission:

[Insert Company Mission Statement here. Example: To innovate solutions that empower our customers, foster a collaborative environment, and contribute positively to our community.]

Our Vision:

[Insert Company Vision Statement here. Example: To be the leading provider of [industry/service] globally, recognized for our excellence, integrity, and impact.]

Our Core Values:

These values guide our decisions, actions, and interactions every day:

  • [Value 1]: [Brief description. Example: Integrity: We act with honesty, transparency, and ethical principles in all we do.]
  • [Value 2]: [Brief description. Example: Innovation: We embrace creativity, continuous learning, and forward-thinking solutions.]
  • [Value 3]: [Brief description. Example: Collaboration: We believe in the power of teamwork, mutual respect, and shared success.]
  • [Value 4]: [Brief description. Example: Customer Focus: We prioritize understanding and exceeding the expectations of our customers.]
  • [Value 5]: [Brief description. Example: Accountability: We take ownership of our commitments and strive for excellence in execution.]

Our Commitment to Diversity & Inclusion

[Company Name] is an Equal Opportunity Employer and is committed to fostering a diverse, equitable, and inclusive workplace. We believe that a variety of backgrounds, experiences, and perspectives enriches our environment, fuels innovation, and strengthens our team. We are dedicated to creating a workplace where all employees feel valued, respected, and empowered to bring their authentic selves to work.

Open Door Policy

We maintain an "Open Door Policy" to encourage open communication, feedback, and problem-solving. Employees are encouraged to discuss work-related issues, suggestions, or concerns with their immediate supervisor. If for any reason an employee is uncomfortable discussing an issue with their supervisor, or if the issue remains unresolved, they are welcome to speak with their department head, a member of the Human Resources Department, or any member of the leadership team. Our goal is to resolve issues promptly and fairly.


2. Employment Basics

Equal Employment Opportunity

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment based on race, color, religion, age, sex (including pregnancy, childbirth, or related medical conditions), sexual orientation, gender identity or expression, national origin, disability, genetic information, veteran status, marital status, or any other legally protected status. Our commitment extends to all employment practices, including recruitment, hiring, promotions, transfers, compensation, benefits, training, and termination.

At-Will Employment

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 is intended to create a contract of employment, express or implied, for any definite term.

Recruitment & Onboarding

Our recruitment process is designed to attract, select, and hire the most qualified candidates who align with our values and contribute to our success. Once hired, our comprehensive onboarding program helps new employees integrate smoothly into their roles and the company culture. This includes orientation, training, and introductions to key team members and resources.

Performance Management & Reviews

We believe in continuous feedback and development. Performance reviews are conducted [e.g., annually, semi-annually] to assess performance, provide constructive feedback, recognize achievements, identify areas for improvement, and set goals for professional growth. Managers are also encouraged to provide ongoing feedback and coaching throughout the year.

Employee Records & Privacy

[Company Name] maintains employee records in a confidential manner. Employees are responsible for notifying HR promptly of any changes to personal information (e.g., address, phone number, emergency contacts, marital status, beneficiaries). Employees may review their own personnel file by scheduling an appointment with the Human Resources Department.


3. Compensation & Benefits

Compensation Philosophy

Our compensation philosophy is designed to attract, motivate, and retain top talent. We aim to provide competitive salaries and a comprehensive benefits package that recognizes individual contributions, rewards performance, and aligns with market standards.

Pay Periods & Direct Deposit

Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday, the 15th and 30th of each month]. Direct deposit is mandatory for all employees, ensuring timely and secure payment. Pay stubs are accessible online via [Payroll System Name/Link].

Overtime Policy

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

Deductions & Withholdings

Required deductions include federal, state, and local income taxes, as well as Social Security and Medicare taxes. Other deductions may include health insurance premiums, retirement plan contributions, and any other deductions authorized by the employee or required by law.

Health & Wellness Benefits

[Company Name] offers a comprehensive suite of health and wellness benefits to eligible employees:

  • Medical Insurance: [Brief description, e.g., Choice of PPO or HMO plans with prescription drug coverage.]
  • Dental Insurance: [Brief description, e.g., Coverage for preventative, basic, and major services.]
  • Vision Insurance: [Brief description, e.g., Coverage for eye exams, glasses, and contact lenses.]
  • Wellness Programs: [Brief description, e.g., Access to wellness challenges, discounted gym memberships, or health screenings.]

For detailed information on eligibility, coverage, and enrollment, please refer to the official plan documents available through the Human Resources Department or our benefits portal.

Retirement Savings Plan ([e.g., 401(k)])

Eligible employees can participate in our [e.g., 401(k)] retirement savings plan, which allows for pre-tax or Roth contributions. [Company Name] offers a [e.g., matching contribution] to help you save for your future.

For full details on eligibility, vesting, and contribution limits, please consult the plan administrator's documents.

Life & Disability Insurance

  • Company-Paid Life Insurance: [Brief description, e.g., Basic life insurance coverage is provided at no cost to eligible employees.]
  • Voluntary Life Insurance: [Brief description, e.g., Employees may purchase additional life insurance for themselves and their dependents.]
  • Short-Term Disability (STD): [Brief description, e.g., Provides income replacement for qualifying non-work-related illnesses or injuries.]
  • Long-Term Disability (LTD): [Brief description, e.g., Provides income replacement for extended periods of disability.]

Employee Assistance Program (EAP)

Our EAP provides confidential counseling and referral services to employees and their immediate family members for a wide range of personal and work-related issues, including stress, anxiety, family concerns, and financial advice. This service is free and confidential.

Contact HR for EAP provider details.

Other Perks & Programs

  • [Example: Professional Development & Training]: We support employee growth through various training programs, workshops, and tuition reimbursement opportunities.
  • [Example: Employee Recognition Programs]: We celebrate employee achievements and contributions through formal and informal recognition programs.
  • [Example: Commuter Benefits]: Pre-tax options for public transportation or parking.
  • [Example: Employee Discounts]: Access to various discounts through our vendor partners.

4. Workplace Conduct & Expectations (Code of Conduct)

General Conduct & Professionalism

All employees are expected to conduct themselves in a professional, respectful, and ethical manner at all times. This includes interactions with colleagues, supervisors, customers, vendors, and the public. We expect employees to:

  • Treat others with courtesy and respect.
  • Maintain a positive and collaborative work environment.
  • Communicate openly and honestly.
  • Adhere to all company policies and procedures.
  • Represent [Company Name] positively in all professional settings.

Anti-Harassment & Non-Discrimination

[Company Name] has zero tolerance for harassment or discrimination of any kind. This includes, but is not limited to, harassment based on race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, or veteran status. Harassment can include offensive jokes, slurs, epithets or name-calling, physical assaults or threats, intimidation, ridicule or mockery, insults or put-downs, offensive objects or pictures, and interference with work performance.

Any employee who believes they have experienced or witnessed harassment or discrimination should immediately report the incident to their supervisor, the Human Resources Department, or any member of management. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against anyone who reports harassment or participates in an investigation is strictly prohibited.

Workplace Violence Prevention

[Company Name] is committed to providing a safe and secure workplace free from violence or threats of violence. Any act or threat of violence, including verbal threats, intimidation, physical assault, or property damage, will not be tolerated. Employees who witness or are subjected to any form of workplace violence or threats must immediately report the incident to their supervisor or the Human Resources Department. Appropriate action will be taken, which may include disciplinary action up to and including termination of employment, and/or legal action.

Drug-Free Workplace

[Company Name] is committed to maintaining a safe, healthy, and productive work environment. The unlawful manufacture, distribution, possession, or use of illegal drugs, or the abuse of alcohol or prescription medication, on company premises or during working hours, is strictly prohibited. Employees are expected to report to work fit for duty and free from the influence of any substance that could impair their ability to perform their job safely and effectively. We reserve the right to conduct drug and alcohol testing in accordance with applicable laws.

Confidentiality & Proprietary Information

Employees may have access to confidential and proprietary information, including but not limited to, customer lists, financial data, product designs, marketing strategies, trade secrets, and employee data. This information is critical to our business and must be protected. Employees are required to:

  • Keep all confidential information strictly confidential, both during and after employment.
  • Not disclose, use, or copy any confidential information for personal gain or the benefit of any third party.
  • Take all reasonable steps to safeguard company information and property.
  • Return all company property and confidential information upon termination of employment.

Information Technology & Communications Systems Usage

Our IT systems, including computers, networks, email, internet access, and software, are provided for business purposes. Incidental and occasional personal use is permitted, provided it does not interfere with work duties, violate company policies, or involve illegal or inappropriate content. Employees should have no expectation of privacy when using company systems. [Company Name] reserves the right to monitor, access, and review all data and communications on its systems. Prohibited activities include:

  • Accessing, downloading, or transmitting offensive, harassing, or illegal material.
  • Unauthorized software installation or system modification.
  • Sending unsolicited mass emails ("spam").
  • Using company systems for personal business or commercial gain without explicit permission.

Social Media Policy

Employees are free to express themselves on social media in their personal lives, but should exercise good judgment and discretion. When engaging in social media, employees must:

  • Be mindful that
gemini Output

Employee Handbook: [Company Name]

Version: 1.0

Effective Date: [Date]


Welcome to [Company Name]!

On behalf of the entire team, we extend a warm welcome to you! We are thrilled to have you join [Company Name] and become a part of our mission to [Insert Company Mission/Vision Statement Briefly].

This Employee Handbook is designed to be a comprehensive resource, providing you with essential information about our company's policies, procedures, benefits, and expectations. It serves as a guide to help you understand our workplace culture, your role within it, and the resources available to you.

At [Company Name], we believe in fostering a supportive, inclusive, and productive environment where every employee can thrive and contribute to our collective success. We encourage you to read this handbook carefully, as it contains important information that will help you navigate your journey with us.

Should you have any questions, please do not hesitate to reach out to your manager or the Human Resources Department.

Welcome aboard!

Sincerely,

The Leadership Team

[Company Name]


Disclaimer

This Employee Handbook is intended to provide general guidance and information about [Company Name]'s policies, procedures, and benefits. It is not an employment contract, and the policies described herein are subject to change at the sole discretion of [Company Name], with or without notice, except as required by law.

Nothing in this handbook should be construed as creating a contract of employment, express or implied, between [Company Name] and any employee. Employment with [Company Name] is "at-will," meaning that either the employee or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable laws.

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


1. About [Company Name]

1.1 Our Mission, Vision, and Values

  • Our Mission: [Insert Company's Mission Statement - e.g., To innovate sustainable solutions that empower businesses to achieve their full potential.]
  • Our Vision: [Insert Company's Vision Statement - e.g., To be the global leader in sustainable technology, recognized for our commitment to excellence and positive impact.]
  • Our Core Values:

* Integrity: We uphold the highest standards of honesty and ethical conduct.

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

* Collaboration: We believe in teamwork and mutual respect to achieve shared goals.

* Customer Focus: We are dedicated to understanding and exceeding our customers' expectations.

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

* Diversity & Inclusion: We value unique perspectives and foster an inclusive environment where everyone feels welcome and respected.

1.2 Company History and Structure

  • Brief History: [Provide a brief overview of the company's founding, key milestones, and growth.]
  • Organizational Structure: [Briefly describe the company's departmental structure or hierarchy, or refer to an organizational chart.]

2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer and is committed to creating a diverse and inclusive workplace. We do not discriminate on the basis of 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 applicable federal, state, or local laws. This policy applies to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

2.2 At-Will Employment

Employment with [Company Name] is "at-will." This means that either you or [Company Name] may terminate the employment relationship at any time, for any reason, with or without cause, and with or without notice, subject to applicable law. This at-will relationship cannot be changed by any oral statement or by any written statement unless it is an individualized written employment contract signed by both the employee and an authorized officer of [Company Name].

2.3 Employment Classifications

Employees are classified based on their work status and eligibility for benefits:

  • Full-Time Exempt: Typically works 40+ hours per week, salaried, not eligible for overtime.
  • Full-Time Non-Exempt: Typically works 40+ hours per week, hourly, eligible for overtime.
  • Part-Time Exempt: Works fewer than 40 hours per week, salaried, not eligible for overtime.
  • Part-Time Non-Exempt: Works fewer than 40 hours per week, hourly, eligible for overtime.
  • Temporary/Contract: Engaged for a specific project or limited duration. Eligibility for benefits varies.

Your employment classification will be communicated to you upon hire.

2.4 Recruitment and Hiring

[Company Name] is committed to attracting, hiring, and retaining the best talent. Our recruitment process focuses on matching skills, experience, and cultural fit to ensure a successful placement for both the candidate and the company. All offers of employment are contingent upon successful completion of background checks, reference checks, and any other pre-employment requirements.

2.5 Onboarding and Orientation

New employees will participate in a structured onboarding and orientation program designed to help you integrate smoothly into the company. This includes reviewing company policies, understanding your role, meeting colleagues, and setting up necessary tools and accounts.

2.6 Performance Management

We believe in continuous feedback and development. Performance reviews are conducted [e.g., annually, semi-annually] to discuss accomplishments, identify areas for growth, set goals, and ensure alignment with company objectives. Your manager will provide regular feedback and support to help you succeed.

2.7 Employee Records

It is crucial to keep your personal information updated with HR (e.g., address, phone number, emergency contacts, marital status, beneficiaries). Please notify the HR Department immediately of any changes. Your records are confidential and accessible only to authorized personnel.

2.8 Resignation and Termination

  • Resignation: Employees are requested to provide at least two (2) weeks' written notice to their manager and HR when resigning. This allows for a smooth transition and knowledge transfer.
  • Termination: Employment may be terminated by [Company Name] for various reasons, including but not limited to performance issues, policy violations, restructuring, or business needs, consistent with the at-will employment policy and applicable laws.
  • Exit Process: Upon separation, an exit interview may be conducted, and information regarding final paychecks, benefits continuation (e.g., COBRA), and return of company property will be provided.

3. Company Policies

3.1 Work Hours and Attendance

  • Standard Workday: Our standard work hours are [e.g., Monday to Friday, 9:00 AM to 5:00 PM], with a [e.g., 30-minute, 1-hour] unpaid lunch break. Specific department schedules may vary.
  • Punctuality: Employees are expected to be punctual and ready to begin work at their scheduled start time.
  • Absences: If you are unable to report to work, you must notify your manager and/or department head as early as possible, ideally at least [e.g., one hour] before your scheduled start time. Follow established departmental procedures for reporting absences.
  • Overtime: Non-exempt employees are eligible for overtime pay at one-and-a-half times their regular rate for all hours worked over 40 in a workweek, as required by law. All overtime must be pre-approved by your manager.

3.2 Remote Work Policy (If Applicable)

[Company Name] supports flexible work arrangements where business needs and job functions allow.

  • Eligibility: Remote work eligibility is determined by job function, performance, and management approval.
  • Expectations: Remote employees are expected to maintain the same level of productivity, communication, and professionalism as in-office employees.
  • Equipment: [Company Name] will provide necessary equipment (e.g., laptop, monitor) for remote work. Employees are responsible for maintaining a safe and secure home workspace and reliable internet connection.
  • Policy Details: Refer to the full "Remote Work Policy" document for detailed guidelines, security protocols, and approval procedures.

3.3 Workplace Safety

[Company Name] is committed to providing a safe and healthy work environment for all employees.

  • Responsibility: Workplace safety is everyone's responsibility. Employees are expected to adhere to all safety rules, use protective equipment, and report any unsafe conditions, hazards, or accidents immediately to their manager or HR.
  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, earthquake, or other emergencies.
  • Accident Reporting: All work-related injuries, no matter how minor, must be reported to your manager and HR immediately.

3.4 Drug and Alcohol Policy

[Company Name] maintains a drug-free and alcohol-free workplace.

  • Prohibition: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances, or the use of alcohol, in the workplace or while on company business, is strictly prohibited.
  • Impairment: Employees must not be under the influence of alcohol or illegal drugs, or any substance (legal or otherwise) that impairs their ability to perform their job safely and effectively, while at work or on company property.
  • 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.
  • Consequences: Violations of this policy may result in disciplinary action, up to and including termination of employment.

3.5 Workplace Violence Prevention

[Company Name] has zero tolerance for any form of workplace violence.

  • Prohibition: Threats, intimidation, harassment, physical aggression, or any act that creates a hostile or unsafe work environment will not be tolerated.
  • Reporting: Any employee who experiences or witnesses workplace violence, threats, or suspicious behavior must report it immediately to their manager, HR, or a member of the leadership team.
  • Response: All reports will be investigated promptly and thoroughly, and appropriate action will be taken to ensure the safety and well-being of our employees.

3.6 Data Security and Privacy

Protecting company and customer data is paramount.

  • Confidentiality: Employees must maintain the confidentiality of all proprietary, sensitive, and personal information belonging to [Company Name], its customers, and other employees.
  • System Use: Company computers, networks, and internet access are provided for business purposes. Employees must use these resources responsibly and in accordance with the "IT Acceptable Use Policy" and "Data Security Policy."
  • Protection: Do not share passwords, leave devices unsecured, or store sensitive data on unauthorized personal devices. Report any suspected data breaches or security incidents immediately.

3.7 Use of Company Property

  • Responsible Use: Company property, including equipment, vehicles, software, and supplies, is provided for business use. Employees are expected to use all company property responsibly, protect it from damage or theft, and return it upon request or termination of employment.
  • Personal Use: Limited, reasonable personal use of company resources (e.g., internet, phone) may be permitted, provided it does not interfere with job duties, violate any company policies, or incur significant cost to the company.
  • Monitoring: [Company Name] reserves the right to monitor the use of all company property, including computer systems, internet usage, and communications, as permitted by law and policy.

3.8 Travel and Expense Policy

  • Business Travel: All business travel must be pre-approved by your manager.
  • Expenses: Employees are expected to incur only necessary and reasonable expenses while traveling for business. All expenses must be properly documented with receipts and submitted for reimbursement according to the "Travel and Expense Policy."
  • Company Cards: If issued, company credit cards are for business use only.

3.9 Dress Code

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

  • General Guidelines: Employees are expected to dress in a manner that is appropriate for our professional setting and reflects positively on the company. This generally means business casual attire.
  • Client Meetings/Events: For client meetings, external events, or specific internal occasions, more formal business attire may be required. Your manager will advise on such occasions.
  • Safety: Certain roles may require specific safety attire or equipment, which must be worn as directed.
  • Hygiene: Good personal hygiene is expected from all employees.

3.10 Anti-Harassment and Discrimination Policy

[Company Name] is committed to maintaining a workplace free from harassment and discrimination.

  • Prohibition: Harassment or discrimination of any kind, based on any protected characteristic (as listed in Section 2.1 EEO), is strictly prohibited. This includes verbal, physical, visual, and electronic harassment.
  • Sexual Harassment: Sexual harassment, including unwelcome sexual advances, requests for sexual favors, and other verbal or physical harassment of a sexual nature, is explicitly prohibited.
  • Reporting Procedure: If you experience or witness harassment or discrimination, you must report it immediately to your manager, the HR Department, or any member of the leadership team. All reports will be handled with discretion and investigated promptly and thoroughly.
  • Non-Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports harassment or discrimination in good faith or participates in an investigation.

3.11 Whistleblower Policy

[Company Name] encourages employees to report any unethical, illegal, or unsafe activities without fear of retaliation.

  • Reporting: If you have concerns about potential violations of law, company policy, or ethical standards, you are encouraged to report them to your manager, HR, or through our designated anonymous reporting channel [e.g., hotline number, email address].
  • Protection: [Company Name] will protect employees who make good faith reports from any form of retaliation.
  • Investigation: All reported concerns will be investigated thoroughly and confidentially, and appropriate action will be taken.

3.12 Social Media Policy

Employees are encouraged to engage responsibly on social media platforms.

  • Professional Conduct: When identifying yourself as an employee of [Company Name] online, remember that your actions and words reflect on the company. Maintain professionalism, respect, and adhere to all company policies.
  • Confidentiality: Do not disclose confidential or proprietary company information, trade secrets, or unreleased product information on social media.
  • Harassment/Discrimination: Do not post content that is harassing, discriminatory, defamatory, or otherwise violates company policies or applicable laws.
  • Personal Views: Clearly state that your opinions are your own and do not represent those of [Company Name].

4. Code of Conduct

Our Code of Conduct outlines the ethical principles and professional standards we expect from all employees.

4.1 Ethical Behavior

  • Act with honesty, integrity, and transparency in all business dealings.
  • Comply with all applicable laws, regulations, and company policies.
  • Avoid any activity that could harm the company's reputation or interests.

4.2 Conflict of Interest

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