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

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

As part of the "Employee Handbook Generator" workflow, this deliverable outlines the comprehensive requirements and design specifications for generating a professional, detailed, and user-friendly employee handbook. This analysis ensures that the final output meets the highest standards of clarity, compliance, and aesthetic appeal.


Step 1: Analyze Requirements - Employee Handbook Generator

1. Design Specifications

This section details the core content, structural elements, and overarching design principles for the generated employee handbook.

1.1 Content Scope and Structure

The handbook will be structured into key sections, each with detailed sub-sections to cover all essential aspects of company operations and employee expectations.

  • Welcome and Introduction

* Welcome Message from Leadership

* Company Mission, Vision, and Values

* History and Culture Overview

* Purpose of the Handbook

  • Company Policies

* Employment At-Will Disclaimer (if applicable)

* Equal Employment Opportunity (EEO) Policy

* Anti-Harassment and Anti-Discrimination Policy (including Sexual Harassment)

* Workplace Safety and Health (OSHA compliance)

* Drug and Alcohol Policy

* Workplace Violence Prevention

* Confidentiality and Non-Disclosure Agreements

* Data Privacy and Security Policy

* Use of Company Property and Equipment (IT, vehicles, etc.)

* Social Media Policy

* Dress Code and Appearance

* Attendance and Punctuality

* Remote Work Policy (if applicable)

* Performance Management and Reviews

* Termination of Employment (Voluntary/Involuntary)

  • Benefits Overview

* Health Insurance (Medical, Dental, Vision)

* Life Insurance and Disability

* Retirement Plans (401k, etc.)

* Paid Time Off (PTO) - vacation, sick leave, holidays

* Employee Assistance Program (EAP)

* Other Perks (wellness programs, professional development, tuition reimbursement)

  • Code of Conduct and Ethics

* Ethical Principles and Business Conduct

* Conflict of Interest

* Reporting Misconduct (Whistleblower Policy)

* Anti-Bribery and Corruption

* Data Integrity and Accuracy

  • Leave Policies

* Family and Medical Leave Act (FMLA)

* Parental Leave (Maternity/Paternity)

* Bereavement Leave

* Jury Duty Leave

* Military Leave

* Voting Leave

* Other State-Mandated Leaves

  • Compliance and Legal

* Americans with Disabilities Act (ADA)

* Worker's Compensation

* COBRA Information

* HIPAA Privacy (if applicable)

* Immigration Law Compliance (I-9 verification)

* Disclaimer Regarding Handbook Updates and Legal Counsel Review

* Employee Acknowledgment Form

1.2 Tone and Language

  • Professional and Authoritative: Reflecting the company's commitment to fairness and compliance.
  • Clear and Concise: Using plain language, avoiding jargon where possible, and explaining complex terms.
  • Inclusive: Language that respects diversity and promotes an inclusive workplace.
  • Positive and Welcoming: While outlining rules, maintaining a tone that fosters a positive employee experience.
  • Actionable: Clearly stating expectations, procedures, and consequences.

1.3 Format and Presentation

  • Primary Output: High-quality PDF document, optimized for both digital viewing and printing.
  • Branding Integration: Seamless incorporation of company logo, primary/secondary brand colors, and specified fonts.
  • Consistency: Uniform formatting for headings, body text, bullet points, and images throughout.
  • Navigational Aids:

* Interactive Table of Contents with clickable links (for digital PDF).

* Consistent page numbering.

* Clear and hierarchical headings (e.g., H1 for sections, H2 for sub-sections).

  • Visual Elements: Appropriate use of white space, clean typography, and professional icons/graphics where beneficial for clarity.

1.4 Generator Inputs

The generator will require specific inputs from the user to tailor the handbook:

  • Company Name, Logo, and Branding Guidelines (colors, fonts).
  • Company Mission, Vision, and Values.
  • Specific details for each policy (e.g., PTO accrual rates, health plan names, 401k matching details, remote work eligibility criteria).
  • Jurisdiction (State/Country) for legal compliance.
  • Key contact information for HR, IT, and other departments.
  • Custom policies or specific company nuances not covered by standard templates.

2. Wireframe Descriptions

This section outlines the structural layout and presentation of the generated employee handbook as well as a brief conceptualization of the generator's user interface.

2.1 Generated Handbook Structure (Output Document)

  • Cover Page:

* Layout: Centered company logo at the top, large bold "Employee Handbook" title, company name, and effective date below. Clean, minimalist design.

* Purpose: Professional first impression, clearly identifies the document.

  • Table of Contents (ToC):

* Layout: Full-page dedicated to the ToC. Main sections (e.g., "Welcome," "Company Policies") in bold, followed by indented sub-sections. Page numbers aligned to the right.

* Purpose: Easy navigation, especially for digital versions with hyperlinked entries.

  • Section Header Page (Optional but recommended for major sections):

* Layout: A dedicated page for each major section (e.g., "Company Policies") with the section title prominently displayed, perhaps with a subtle graphic or brand element.

* Purpose: Visually breaks up the document, signals a new topic.

  • Policy Pages:

* Layout:

* Policy Title: Prominent H2 heading at the top of the page.

* Effective Date/Revision Date: Small font below the title.

* Purpose: Brief paragraph explaining why the policy exists.

* Scope: Who the policy applies to.

* Policy Statement: Detailed explanation of the policy, broken into digestible paragraphs.

* Procedures/Guidelines: Step-by-step instructions or behavioral expectations.

* Responsibilities: Who is accountable (e.g., employees, managers, HR).

* Consequences: Outline of disciplinary actions for non-compliance.

* Related Policies: Internal cross-references.

* Purpose: Clear, consistent presentation of each policy for easy understanding.

  • Benefits Overview Pages:

* Layout: Each benefit (e.g., "Health Insurance," "401k") gets a dedicated sub-section. Use bullet points or tables to summarize key details (eligibility, enrollment, brief description of coverage/matching).

* Call-to-Action: Direct employees to contact HR or specific providers for more details.

* Purpose: Provide a quick, digestible summary of available benefits.

  • Acknowledgment Form:

* Layout: Clearly separated section at the end. Employee Name, Signature Line, Date, and a statement confirming receipt and understanding of the handbook.

* Purpose: Legal and administrative record of employee acknowledgment.

2.2 Generator User Interface (Conceptual - for inputting requirements)

  • Layout: Multi-step wizard or tabbed interface.
  • Sections:

* Company Info: Fields for company name, logo upload, address, industry.

* Branding: Color pickers, font selection, upload custom CSS (optional).

* Policy Configuration: Checkboxes for standard policies to include/exclude. Text areas for customizing specific policy details (e.g., "PTO Accrual Rate: [Input Field] days/year").

* Benefits Details: Structured forms for entering health plan names, 401k matching percentages, etc.

* Legal & Compliance: Dropdowns for state/country selection, checkboxes for specific legal disclaimers.

* Review & Generate: A preview function to see the handbook before final generation.

  • Purpose: Streamline the input process, ensure all necessary data is captured, and provide a clear overview before generating the final document.

3. Color Palettes

The choice of color palette significantly impacts the perceived professionalism and readability of the handbook.

  • Primary Recommendation: Brand-Aligned Palette

* Description: Leverage the company's existing brand guide. Use the primary brand color for main headings, accents, and interactive elements (if digital). Use secondary brand colors for sub-headings, call-out boxes, or subtle background elements.

* Example: If the company's primary color is a deep blue, use that for H1 headings. A lighter blue or a complementary gray for H2 headings and accents.

* Rationale: Reinforces company identity and ensures consistency across all corporate communications.

  • Secondary Recommendation: Professional & Corporate (Default if no brand guide)

* Primary Color: Deep Navy Blue (#0A2A5B) or Charcoal Gray (#333333)

* Secondary/Accent Colors:

* Light Blue (#66B2FF) or Teal (#008080) for accents and interactive elements.

* Subtle Gray (#CCCCCC) for borders, separators, or background elements.

* Text Color: Dark Gray (#333333) or Black (#000000) for body text.

* Background: Clean White (#FFFFFF).

* Rationale: Conveys trust, stability, and professionalism. High contrast ensures excellent readability.

  • Accessibility Considerations:

* Ensure a minimum contrast ratio of 4.5:1 for text against its background, adhering to WCAG 2.1 guidelines.

* Avoid using color alone to convey information.


4. UX Recommendations

User Experience (UX) for an employee handbook focuses on making it easy to read, understand, navigate, and find critical information.

4.1 Readability & Comprehension

  • Typography:

* Fonts: Use professional, legible sans-serif fonts (e.g., Open Sans, Lato, Roboto, Arial) for body text. Serif fonts can be used sparingly for titles if they align with brand.

* Font Size: 10-12pt for body text, 14-24pt for headings, ensuring comfortable reading on screen and print.

* Line Spacing: 1.5-1.6x for body text to improve readability and reduce eye strain.

  • Content Chunking: Break down long paragraphs into shorter, digestible chunks. Utilize bullet points and numbered lists for procedures and enumerations.
  • White Space: Generous use of white space around text blocks and between sections to reduce cognitive load and improve visual flow.
  • Visual Cues: Use icons or small graphics to highlight important sections (e.g., a warning icon for "Consequences," a question mark for "FAQs").
  • Plain Language: Actively review content to eliminate jargon and legalistic language where possible. If technical terms are necessary, provide clear definitions.

4.2 Navigation & Discoverability

  • Interactive Table of Contents: For digital handbooks, every entry in the ToC should be a clickable link that jumps directly to the relevant section.
  • Clear Headings: Consistent use of H1, H2, H3 headings to create a logical hierarchy.
  • Search Functionality (if web-based): A robust search bar to quickly locate specific policies or keywords.
  • Cross-referencing: Hyperlinks within the document to related policies or external resources (e.g., benefits provider websites).
  • Glossary: An optional section defining common terms, acronyms, and legal jargon used throughout the handbook.

4.3 Engagement & User Satisfaction

  • Welcome Message: A warm, personal welcome from leadership helps set a positive tone.
  • Mission/Values Integration: Clearly articulate company values at the beginning to align employees with the company culture.
  • FAQs Section: Anticipate common employee questions and provide concise answers.
  • Contact Information: Clearly list who to contact for questions regarding HR, benefits, IT, etc., with names, departments, and contact methods.
  • Positive Framing: While policies are rules, frame them positively where possible, emphasizing fairness, support, and growth.

4.4 Compliance & Legal UX

  • Disclaimer Prominence: Ensure the legal disclaimer about the handbook not being a contract, and the company's right to modify policies, is clearly visible and understandable.
  • Acknowledgment Form: Design the acknowledgment form to be unambiguous, requiring a clear affirmation of understanding and agreement. For digital versions, an e-signature or checkbox with date/time stamp.
  • Version Control: Clearly display the handbook's version number and effective date on the cover and possibly in the footer of each page. Include a revision history log for significant updates.
  • Legal Review Recommendation: Explicitly state that the generated handbook should be reviewed by legal counsel in the relevant jurisdiction before official deployment.

By meticulously adhering to these design specifications, wireframe descriptions, color palette guidelines, and UX recommendations, the "Employee Handbook Generator" will produce a professional, comprehensive, and highly effective resource for any organization.

gemini Output

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

Welcome to [Company Name]!

Headline: Welcome Aboard: Your Journey Starts Here!

Body Text:

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 growing family. This Employee Handbook is designed to be your comprehensive guide, providing essential information about our company culture, policies, benefits, and expectations.

At [Company Name], we believe that our success is built on the talent, dedication, and collaboration of our employees. We are committed to fostering a supportive, inclusive, and dynamic work environment where every individual can thrive, contribute their best work, and achieve their professional goals.

Please take the time to read through this handbook carefully. It outlines important information that will help you understand your role, responsibilities, and the resources available to you. Should you have any questions, your supervisor or the HR Department is always available to assist you.

We look forward to a successful and rewarding journey together!

Call to Action: Dive in and discover how you can contribute to our shared success!


Section 1: Our Company – Mission, Vision & Values

Headline: Our Foundation: Who We Are and What We Stand For

Body Text:

Understanding our purpose and principles is key to aligning our efforts and achieving greatness together.

  • Our Mission: To [Clearly state company's primary purpose and what it aims to achieve for its customers/stakeholders, e.g., "innovate cutting-edge solutions that empower businesses to achieve digital transformation."].
  • Our Vision: To [Describe the future state the company aspires to reach, e.g., "be the global leader in sustainable technology solutions, recognized for our integrity and impact."].
  • Our Core Values: These values guide our decisions, actions, and interactions every day:

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

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

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

* Excellence: We strive for the highest quality in everything we do, exceeding expectations.

* Customer Focus: We are dedicated to understanding and delivering exceptional value to our customers.

* [Add other relevant company values]

Call to Action: Embrace our values and help us build a culture of excellence.


Section 2: Employment Policies

Headline: Setting the Standard: Fair and Respectful Employment Practices

Body Text:

These policies outline the fundamental principles governing employment at [Company Name], ensuring a fair, respectful, and legally compliant workplace for all.

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse and inclusive workplace where all employees and applicants are treated with respect and dignity. We do not discriminate on the basis of race, color, religion, sex (including pregnancy, childbirth, or related medical conditions), national origin, age, disability, genetic information, military status, sexual orientation, gender identity or expression, or any other characteristic protected by applicable federal, state, or local law. This commitment extends to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

2.2 Anti-Harassment and Anti-Discrimination Policy

[Company Name] has zero tolerance for harassment or discrimination of any kind. This includes unwelcome conduct, whether verbal, physical, or visual, that is based on any protected characteristic and creates a hostile work environment or interferes with an individual's work performance. Any employee who believes they have experienced or witnessed harassment or discrimination should report it immediately to their supervisor or the HR Department. All complaints will be investigated promptly and thoroughly, and appropriate corrective action will be taken. Retaliation against anyone reporting harassment or discrimination in good faith is strictly prohibited.

2.3 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, with or without cause, and with or without notice, subject to applicable law. This "at-will" relationship cannot be changed by any written document or by conduct unless a written agreement to that effect is signed by the CEO of [Company Name].

2.4 Recruitment and Hiring

[Company Name] is committed to attracting and hiring the most qualified candidates for all positions. Our hiring process is designed to be fair, transparent, and compliant with all EEO guidelines.

2.5 Orientation and Onboarding

New employees will undergo a comprehensive orientation and onboarding program designed to familiarize them with our company culture, policies, procedures, and their specific job responsibilities. This process is crucial for a smooth transition and successful integration into our team.

2.6 Performance Management

We believe in supporting our employees' growth and development. Performance is regularly reviewed through a structured process, including periodic performance appraisals, feedback sessions, and goal setting. This system aims to recognize achievements, identify areas for development, and align individual contributions with company objectives.

2.7 Disciplinary Action

To ensure a fair and consistent work environment, [Company Name] employs a progressive disciplinary action policy for addressing performance deficiencies or misconduct. Depending on the severity and nature of the issue, disciplinary actions may include verbal warnings, written warnings, suspension, or immediate termination.

2.8 Termination of Employment

Employment may be terminated by either the employee or [Company Name]. Employees are requested to provide at least two weeks' written notice of resignation. Upon termination, employees will receive their final paycheck, including any accrued but unused vacation time, in accordance with state law. Information regarding continuation of benefits will be provided by the HR Department.

Call to Action: Familiarize yourself with these policies to ensure a harmonious and productive workplace.


Section 3: Workplace Conduct and Expectations (Code of Conduct)

Headline: Our Shared Commitment: Professionalism, Respect, and Integrity

Body Text:

Our Code of Conduct outlines the behavioral expectations for all employees, fostering a positive, productive, and respectful work environment. Adherence to these principles is essential for maintaining our reputation and achieving our collective goals.

3.1 Professionalism and Respect

All employees are expected to conduct themselves professionally, treating colleagues, customers, partners, and the public with courtesy, respect, and dignity. This includes communication, collaboration, and conflict resolution.

3.2 Confidentiality and Data Protection

Employees must protect [Company Name]'s confidential and proprietary information, including but not limited to trade secrets, customer lists, financial data, and personal employee information. This obligation continues even after employment ends. Unauthorized disclosure or use of such information is strictly prohibited.

3.3 Use of Company Property and Resources

Company property, including equipment, vehicles, and supplies, is provided for business use. While incidental personal use may be permitted if it does not interfere with business operations, employees are expected to use all company resources responsibly, efficiently, and for legitimate business purposes.

3.4 Social Media Policy

Employees represent [Company Name] even outside of work hours. When engaging in social media, employees should exercise good judgment, maintain professionalism, and avoid posting confidential company information, disparaging remarks about the company or its employees, or content that could be perceived as harassing or discriminatory.

3.5 Conflict of Interest

Employees must avoid situations where their personal interests conflict with the best interests of [Company Name]. Any potential conflict of interest, such as outside employment, investments, or personal relationships that could influence business decisions, must be disclosed to your supervisor or HR.

3.6 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 on company premises or during working hours is strictly prohibited. Employees are also prohibited from being under the influence of alcohol or illegal drugs while at work.

3.7 Workplace Safety

Your safety is our priority. Employees are expected to adhere to all safety policies and procedures, report unsafe conditions or hazards immediately, and use provided safety equipment.

3.8 Dress Code

Employees are expected to dress appropriately for a professional business environment. Dress should be neat, clean, and in good repair, reflecting a professional image. Specific guidelines may vary by department or role; please consult your supervisor for details.

3.9 Attendance and Punctuality

Reliable attendance and punctuality are essential for effective team operations. Employees are expected to adhere to their scheduled work hours, communicate any anticipated absences or delays to their supervisor promptly, and follow established call-in procedures.

Call to Action: Uphold our standards and contribute to a thriving work culture.


Section 4: Compensation and Benefits Overview

Headline: Investing in You: Rewards for Your Dedication and Hard Work

Body Text:

At [Company Name], we value our employees and are committed to providing a competitive compensation and benefits package designed to support your financial well-being, health, and work-life balance.

4.1 Pay Periods and Direct Deposit

Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday/15th and last day of the month]. Direct deposit is mandatory for all employees, ensuring timely and secure access to your earnings.

4.2 Overtime

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

4.3 Health and Wellness Benefits

  • Medical Insurance: Comprehensive medical plans are offered to eligible employees and their dependents. Details on coverage options, deductibles, and co-pays are available through HR.
  • Dental Insurance: Options for dental coverage are available to promote oral health.
  • Vision Insurance: Plans for vision care, including eye exams and corrective lenses, are provided.
  • Employee Assistance Program (EAP): A confidential resource offering support for personal and work-related challenges, including counseling, financial advice, and legal consultation.

4.4 Retirement Plans

  • 401(k) Plan: Eligible employees can participate in our 401(k) retirement savings plan, with options for pre-tax and Roth contributions. [Company Name] offers a [e.g., matching contribution] to help you build your financial future. Enrollment details are provided by HR.

4.5 Life and Disability Insurance

  • Basic Life Insurance: Company-paid basic life insurance is provided for eligible employees.
  • Voluntary Life Insurance: Employees have the option to purchase additional life insurance coverage for themselves and their dependents.
  • Short-Term and Long-Term Disability: Coverage is provided to protect your income in the event of a qualifying illness or injury that prevents you from working.

4.6 Other Perks and Programs

  • Professional Development: We encourage continuous learning and offer opportunities for training, workshops, and conferences to enhance your skills and career growth.
  • Tuition Reimbursement: Eligible employees may receive reimbursement for approved courses or degree programs related to their role or future career path at [Company Name].
  • [Add other company-specific perks, e.g., gym memberships, employee discounts, wellness programs]

Call to Action: Explore your benefits options and take advantage of what we offer to support your well-being.


Section 5: Leave Policies

Headline: Taking Time: Supporting Your Work-Life Balance and Personal Needs

Body Text:

We understand the importance of time away from work for rest, personal matters, and family responsibilities. Our leave policies are designed to support your needs while ensuring business continuity.

5.1 Paid Time Off (PTO) / Vacation

[Company Name] offers a generous PTO program that combines vacation, personal days, and minor sick leave into a single bank.

  • Accrual: PTO is accrued on a [e.g., bi-weekly/monthly] basis, starting from your date of hire.
  • Usage: Employees must submit PTO requests to their supervisor for approval in advance, typically [e.g., two weeks] for vacation.
  • Carryover/Cash Out: [Specify policy regarding carryover limits, cash-out upon termination, etc.]

5.2 Sick Leave

Separate from PTO, [Company Name] provides dedicated sick leave for extended illness or medical appointments, in accordance with state and local laws.

  • Accrual: [Specify accrual rate and maximum accumulation].
  • Usage: Employees must notify their supervisor as soon as possible for any sick leave. Medical documentation may be required for absences exceeding [e.g., three] consecutive days.

5.3 Holidays

[Company Name] observes the following paid holidays:

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

Employees must be actively employed on the day before and the day after a holiday to receive holiday pay.

5.4 Family and Medical Leave Act (FMLA)

Eligible employees may take unpaid, job-protected leave for specified family and medical reasons, in accordance with the Family and Medical Leave Act (FMLA). This includes leave for the birth or adoption of a child, caring for a family member with a serious health condition, or for an employee's own serious health condition. Contact HR for eligibility requirements and application procedures.

5.5 Bereavement Leave

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

5.6 Jury Duty Leave

Employees summoned for jury duty will receive [e.g., paid/unpaid] leave for the duration of their service. Employees must provide a copy of the jury summons to their supervisor and HR as soon as possible.

5.7 Military Leave

[Company Name] complies with all applicable laws regarding military leave, including the Uniformed Services Employment and Reemployment Rights Act (USERRA). Employees called to active military service will be granted leave as required by law.

Call to Action: Plan your time off responsibly and understand your leave entitlements.


Section 6: Workplace Safety and Security

Headline: A Safe Haven: Ensuring a Secure Environment for Everyone

Body Text:

Your safety and security are paramount. [Company Name] is committed to providing a safe and healthy work environment and expects all employees to contribute to this effort.

6.1 Emergency Procedures

Familiarize yourself with emergency exits, assembly points, and procedures for fire, severe weather, and other emergencies. Emergency plans are posted throughout the workplace.

6.2 Workplace Violence Prevention

[Company Name] has zero tolerance for workplace violence, threats, or hostile behavior. Any employee who feels threatened or observes suspicious behavior must report it immediately to their supervisor or HR.

6.3 Reporting Incidents

All workplace accidents, injuries, or unsafe conditions, no matter how minor, must be reported to your supervisor immediately. This ensures proper documentation, investigation, and prevention of future incidents.

Call to Action: Stay informed, stay vigilant, and contribute to a safe workplace.


Section 7: Technology and Communication Policies

Headline: Digital Citizenship: Responsible Use of Company Technology

Body Text:

Technology is vital to our operations. These policies ensure its effective, secure, and ethical use.

7.

gemini Output

This deliverable provides a comprehensive, detailed, and professional Employee Handbook template. This document is designed to serve as a foundational guide for all employees at [Company Name], outlining key policies, expectations, benefits, and compliance information.


Employee Handbook: [Company Name]

Effective Date: [Month Day, Year]

1. Welcome to [Company Name]

Welcome to [Company Name]! We are thrilled to have you join our team. This Employee Handbook is designed to provide you with a clear understanding of our company culture, values, policies, and the benefits available to you. It serves as a guide to help you succeed in your role and contribute to a positive and productive work environment.

At [Company Name], we believe that our success is built upon the dedication, talent, and professionalism of our employees. We are committed to fostering a workplace where everyone feels valued, respected, and empowered to do their best work.

Please take the time to read this handbook carefully. If you have any questions, do not hesitate to contact your manager or the Human Resources Department.

Important Disclaimer: This handbook is not an employment contract and does not create any contractual rights or obligations between [Company Name] and its employees. [Company Name] reserves the right to modify, revoke, suspend, terminate, or change any policies, procedures, or benefits described herein, in whole or in part, at any time, with or without notice, at its sole discretion. Employment with [Company Name] is "at-will," which means that either the employee or the company can terminate the employment relationship at any time, with or without cause or notice, subject to applicable law.

2. Our Vision, Mission, and Values

2.1. Our Vision

[Company Name] envisions [Brief, aspirational statement about the future state the company aims to create or achieve, e.g., "being the leading innovator in [Industry] by consistently delivering exceptional value to our customers and fostering a culture of excellence."].

2.2. Our Mission

Our mission at [Company Name] is to [Brief, action-oriented statement describing what the company does, for whom, and why, e.g., "to develop cutting-edge [products/services] that empower our clients to [achieve specific outcome] through innovation, quality, and unparalleled customer service."].

2.3. Our Core Values

Our values guide our decisions, actions, and interactions. We are committed to:

  • Integrity: Upholding the highest ethical standards in all we do.
  • Respect: Treating everyone with dignity, courtesy, and fairness.
  • Collaboration: Working together as a team, sharing knowledge, and supporting each other.
  • Innovation: Embracing creativity and continuous improvement to drive progress.
  • Customer Focus: Prioritizing the needs of our customers and striving for their satisfaction.
  • Accountability: Taking responsibility for our actions and commitments.

3. Employment Policies

3.1. Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free from discrimination and harassment. All employment decisions, including hiring, promotion, discipline, and termination, are based on merit, qualifications, and business needs, without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other protected characteristic as defined by applicable law.

3.2. Anti-Harassment and Anti-Discrimination Policy

[Company Name] is committed to maintaining a work environment free from harassment and discrimination. This policy prohibits harassment and discrimination based on any protected characteristic. This includes, but is not limited to, unwelcome conduct that is offensive, intimidating, hostile, or abusive and that interferes with an individual's work performance or creates an intimidating, hostile, or offensive work environment.

  • Reporting Procedures: Any employee who believes they have been subjected to harassment or discrimination, or who witnesses such behavior, is encouraged to report it immediately to their direct supervisor, the Human Resources Department, or a senior manager. All reports will be handled promptly, discreetly, and impartially. Retaliation against any employee for reporting harassment or discrimination in good faith, or for participating in an investigation, is strictly prohibited.

3.3. Recruitment and Hiring

[Company Name] is dedicated to attracting and hiring the most qualified individuals. Our hiring process is fair, transparent, and compliant with all applicable laws. All offers of employment are contingent upon successful completion of background checks, reference checks, and verification of eligibility to work in [Country/Region].

3.4. Employment At-Will

As stated in the disclaimer, employment with [Company Name] is "at-will." This means that either the employee or [Company Name] may terminate the employment relationship at any time, for any reason or no reason, with or without notice, subject to applicable law.

3.5. Onboarding and Orientation

New employees will undergo an onboarding and orientation process to help them integrate smoothly into our team. This includes completing necessary paperwork, learning about company policies, understanding their role and responsibilities, and familiarizing themselves with the workplace.

3.6. Performance Management and Reviews

Regular performance feedback and annual performance reviews are integral to employee development and company success. These reviews provide an opportunity to discuss accomplishments, set goals, identify areas for improvement, and plan for career growth.

3.7. Disciplinary Action

[Company Name] maintains standards of conduct and performance necessary for a productive and harmonious work environment. When these standards are not met, disciplinary action may be taken, up to and including termination of employment. Disciplinary actions are typically progressive, but [Company Name] reserves the right to determine the appropriate level of discipline based on the severity and nature of the infraction.

3.8. Termination of Employment

Employment may be terminated by either the employee or [Company Name] in accordance with the "at-will" policy. Employees who resign are encouraged to provide at least two weeks' written notice to their supervisor and Human Resources to ensure a smooth transition. Upon termination, employees will receive information regarding final pay, benefits continuation (e.g., COBRA), and return of company property.

3.9. Confidentiality and Non-Disclosure

Employees are entrusted with confidential and proprietary information belonging to [Company Name], its clients, and partners. This includes, but is not limited to, trade secrets, financial data, customer lists, marketing strategies, product designs, and personnel information. Employees are required to maintain strict confidentiality of such information both during and after their employment. Unauthorized disclosure of confidential information is a serious offense and may result in disciplinary action, up to and including termination, and legal action.

4. Workplace Conduct and Expectations (Code of Conduct)

4.1. Professionalism and Respect

All employees are expected to conduct themselves professionally and respectfully towards colleagues, customers, vendors, and the public. This includes polite communication, constructive feedback, and a commitment to teamwork.

4.2. Attendance and Punctuality

Regular and punctual attendance is essential for the efficient operation of [Company Name]. Employees are expected to adhere to their scheduled work hours and notify their supervisor as soon as possible if they will be late or absent. Excessive absenteeism or tardiness may lead to disciplinary action.

4.3. Dress Code

Employees are expected to dress in a manner appropriate for a professional business environment. Dress should be neat, clean, and in good repair. Specific departmental requirements may apply and will be communicated by your manager.

4.4. Workplace Safety and Security

[Company Name] is committed to providing a safe and secure work environment. Employees are expected to follow all safety rules and procedures, report any unsafe conditions or incidents immediately, and participate in safety training. Access to company premises and sensitive information is restricted to authorized personnel.

4.5. Drug-Free Workplace

[Company Name] maintains a strict drug-free workplace policy. The use, possession, distribution, or sale of illegal drugs, or the abuse of alcohol or prescription medication, on company premises or while conducting company business, is strictly prohibited. Employees under the influence of drugs or alcohol are not permitted to work.

4.6. Use of Company Property and Resources

Company property, including equipment, vehicles, software, and supplies, is provided for business use. Incidental personal use may be permitted if it does not interfere with business operations, violate company policies, or incur significant costs. Employees are responsible for the proper care and security of company property.

  • Information Technology (IT) and Internet Use: Company IT resources, including computers, networks, internet access, and email, are provided primarily for business purposes. Employees should have no expectation of privacy when using company IT resources. All data transmitted or stored on company systems may be monitored and accessed by [Company Name]. Prohibited uses include, but are limited to, accessing illegal content, harassment, unauthorized downloads, and engaging in activities that violate company policy or law.

4.7. Social Media Policy

Employees are expected to exercise good judgment and professionalism when using social media, especially when discussing work-related topics or identifying as a [Company Name] employee. Content that is derogatory, harassing, discriminatory, confidential, or that could damage the company's reputation is strictly prohibited.

4.8. Conflict of Interest

Employees must avoid situations where their personal interests conflict, or appear to conflict, with the interests of [Company Name]. This includes, but is not limited to, engaging in outside employment or business ventures that compete with the company, accepting significant gifts from vendors, or using company resources for personal gain. Any potential conflict of interest must be disclosed to Human Resources.

4.9. Data Privacy and Security

[Company Name] is committed to protecting the privacy and security of personal and company data. Employees are expected to handle all data in accordance with company policies and applicable data protection laws (e.g., GDPR, CCPA if relevant). This includes safeguarding passwords, securing devices, and reporting any suspected data breaches.

4.10. Reporting Misconduct

Employees are encouraged to report any observed or suspected violations of company policy, legal requirements, or ethical standards. Reports can be made to a supervisor, Human Resources, or through [Company Name]'s designated anonymous reporting channel (if applicable). All reports will be treated with confidentiality to the extent possible, and employees who report in good faith will be protected from retaliation.

5. Compensation and Benefits Overview

5.1. Pay Periods and Direct Deposit

Employees are paid [weekly/bi-weekly/semi-monthly/monthly] on [specific day(s) or dates]. Direct deposit is mandatory for all employees, ensuring timely and secure payment of wages.

5.2. Overtime

Non-exempt employees are eligible for overtime pay at a rate of one and a half times their regular hourly rate for hours worked beyond 40 in a workweek, in accordance with the Fair Labor Standards Act (FLSA) and applicable state laws. All overtime must be pre-approved by a supervisor. Exempt employees are not eligible for overtime.

5.3. Benefits Eligibility

Eligibility for benefits varies based on employment status (full-time, part-time) and length of service. Detailed information on eligibility requirements is available from the Human Resources Department.

5.4. Health and Dental Insurance

[Company Name] offers comprehensive health and dental insurance plans to eligible employees and their dependents. Details regarding coverage, premiums, and enrollment procedures are provided during onboarding and are available through Human Resources.

5.5. Retirement Plans

Eligible employees may participate in the [e.g., 401(k) retirement savings plan]. [Company Name] may offer a matching contribution [if applicable]. Details on enrollment, vesting, and contribution limits are available through Human Resources.

5.6. Life and Disability Insurance

[Company Name] provides [e.g., basic life insurance and long-term disability (LTD) coverage] for eligible employees. Additional voluntary life and short-term disability (STD) insurance may be available for purchase.

5.7. Employee Assistance Program (EAP)

An Employee Assistance Program (EAP) is available to all employees and their immediate family members. The EAP provides confidential counseling and referral services for a wide range of personal and work-related issues, including stress, family problems, financial concerns, and substance abuse.

5.8. Other Perks and Programs

[Company Name] may offer additional benefits such as:

  • Professional Development and Training Opportunities
  • Wellness Programs
  • [Gym membership subsidies, commuter benefits, tuition reimbursement, etc.]

Note: This section provides a brief overview of benefits. Detailed information, including eligibility, costs, and plan documents, is available from the Human Resources Department. In the event of any conflict between this handbook and official plan documents, the official plan documents will govern.

6. Leave Policies

6.1. Paid Time Off (PTO) / Vacation / Sick Leave / Personal Days

[Company Name] provides a comprehensive Paid Time Off (PTO) program that combines vacation, sick leave, and personal days into a single bank of hours.

  • Accrual: PTO hours accrue based on [e.g., hours worked / length of service / a fixed annual grant].
  • Usage: Employees may use PTO for vacation, personal appointments, illness, or other personal needs.
  • Request Procedure: PTO requests should be submitted to your supervisor [e.g., at least two weeks in advance for vacation] for approval.
  • Carryover/Payout: [State policy on PTO carryover to the next year and/or payout upon termination].

6.2. Holidays

[Company Name] observes the following paid holidays:

  • New Year's Day
  • Memorial Day
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • Day after Thanksgiving
  • Christmas Day
  • [Add any other company-specific holidays, e.g., Martin Luther King Jr. Day, President's Day, Juneteenth, Floating Holidays]

Employees must be actively employed on the working days immediately preceding and following the holiday to receive holiday pay.

6.3. Family and Medical Leave Act (FMLA)

Eligible employees may take unpaid, job-protected leave for specific family and medical reasons under the Family and Medical Leave Act (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.

  • Eligibility: Employees must have worked for [Company Name] for at least 12 months and 1,250 hours within the past 12 months.
  • Duration: Up to 12 workweeks of leave in a 12-month period (
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);}});}