Employee Handbook Generator
Run ID: 69cc798f3e7fb09ff16a23b62026-04-01HR
PantheraHive BOS
BOS Dashboard

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

Step 1: Analyze Requirements - Employee Handbook Generator

This document outlines the comprehensive requirements analysis for the "Employee Handbook Generator" workflow. Our goal is to create a robust, user-friendly, and highly customizable tool that leverages advanced AI to generate professional employee handbooks, saving businesses significant time and resources.


1. Project Overview & Goal

The "Employee Handbook Generator" aims to provide a streamlined solution for companies to create detailed, compliant, and personalized employee handbooks. By integrating user input with AI-driven content generation, the system will produce a professional document covering essential company policies, benefits, code of conduct, leave policies, and compliance sections, tailored to the specific needs and context of each organization.

2. Core Requirements Analysis

2.1 Functional Requirements

The system must perform the following core functions:

  • User Onboarding & Authentication:

* Allow users to create accounts, log in, and manage their profile.

* Secure access to saved handbooks and drafts.

  • Company Information Input:

* Provide a guided interface for users to input core company details (e.g., Company Name, Industry, Location, Employee Count, Mission, Vision, Values).

* These details will personalize the handbook content.

  • Section-by-Section Customization:

* Enable users to select which standard sections to include (e.g., "Welcome Message," "Workplace Policies," "Compensation & Benefits," "Leave Policies," "Code of Conduct," "Compliance & Legal").

* For each section, offer:

* AI-Generated Drafts: Automatically generate policy text based on company inputs and industry best practices using Gemini.

* Template Selection: Offer pre-defined templates for common policies (e.g., remote work policy, harassment policy).

* Rich Text Editor: Allow users to extensively edit, add, or remove content within each policy section using a WYSIWYG editor.

* Custom Policy Creation: Enable users to add entirely new, custom policies.

* AI Suggestions/Improvements: Provide AI-driven suggestions for improving clarity, completeness, or compliance of user-edited content.

  • Content Generation & Integration:

* Utilize Gemini's capabilities to draft comprehensive, well-structured, and contextually relevant policy language.

* Ensure seamless integration of user-provided details into the generated text.

  • Preview Functionality:

* Offer a real-time or near real-time preview of the handbook as it is being built.

* Allow users to navigate through the full handbook preview before final generation.

  • Document Generation & Export:

* Generate the complete employee handbook in multiple professional formats:

* PDF: High-quality, print-ready document.

* DOCX: Editable Microsoft Word document.

* Web-based: Shareable link to an online version (optional, as a future enhancement).

* Ensure consistent formatting, branding, and table of contents generation across all output formats.

  • Save & Manage Handbooks:

* Allow users to save multiple handbook drafts.

* Provide a dashboard to view, edit, and duplicate existing handbooks.

* Implement version control for tracking changes (optional, as a future enhancement).

  • Legal & Compliance Disclaimers:

* Prominently display disclaimers stating that the generated content is for informational purposes and should be reviewed by legal counsel.

* Include a section within the handbook itself for legal disclaimer.

2.2 Non-Functional Requirements

  • Usability: Intuitive interface, clear instructions, and logical workflow for users of varying technical proficiency.
  • Performance: Fast content generation and document export times (target < 30 seconds for full handbook generation).
  • Security: Secure handling of user data and generated documents; robust authentication mechanisms.
  • Scalability: Ability to handle an increasing number of users and handbook generation requests.
  • Accuracy: While AI-generated, strive for high accuracy in policy language, acknowledging the need for legal review.
  • Maintainability: Modular architecture for easy updates, bug fixes, and feature enhancements.
  • Accessibility: Adherence to WCAG guidelines for users with disabilities.

3. User Experience (UX) Recommendations

3.1 User Flow

  1. Welcome/Dashboard: User logs in, sees options to "Create New Handbook" or "Continue Editing" a draft.
  2. Basic Company Info: User completes a multi-step form for company details (Name, Industry, Location, etc.).
  3. Section Selection: User selects desired handbook sections (e.g., Company Culture, Workplace Policies, Benefits).
  4. Section Configuration (Wizard-style):

* User navigates through each selected section via a progress bar or sidebar menu.

* For each policy within a section:

* AI drafts policy text.

* User reviews, edits, or selects alternative templates.

* User can add custom policies.

* Contextual help and AI suggestions are available.

  1. Review & Preview: User accesses a full, scrollable preview of the handbook.

* Navigation within the preview (e.g., Table of Contents links).

* Option to go back and edit specific sections.

  1. Generate & Download: User confirms, and the system generates the handbook in chosen format(s) for download.
  2. My Handbooks: User can access previously generated or drafted handbooks from their dashboard.

3.2 Key Features & Interactions

  • Progress Indicator: A clear visual indicator (e.g., step-by-step wizard, percentage complete) to guide users through the handbook creation process.
  • Contextual Help: Tooltips, inline explanations, and a dedicated help section for legal terms, policy best practices, and system functionalities.
  • AI Suggestion Button: A prominent button within the text editor to request AI to "Improve Wording," "Expand on this point," or "Check for Compliance Gaps" (with disclaimers).
  • Template Library: A searchable and filterable library of common policy templates.
  • Intuitive Navigation: A persistent sidebar or top navigation for easy access to different handbook sections during configuration.
  • "Save Draft" Functionality: Easily accessible at any point in the workflow.

3.3 Content Generation Strategy

  • Initial Draft via Gemini: Gemini will generate initial policy drafts based on the company's industry, size, location, and any specific keywords or values provided by the user.
  • Iterative Refinement: After the initial draft, users can interact with Gemini to refine sections, ask questions, or request alternative wording.
  • Legal & Best Practices Database: The AI will draw upon a curated database of common legal requirements (e.g., FMLA, ADA, EEO) and HR best practices to inform its generated content, always emphasizing the need for legal review.
  • Dynamic Placeholders: The generated content will intelligently incorporate company-specific placeholders (e.g., [Company Name], [HR Department]).

4. Design Specifications

4.1 Wireframe Descriptions

  • Dashboard / Landing Page:

* Layout: Clean, minimalist, with a prominent call-to-action "Create New Handbook."

* Elements: "My Handbooks" list (title, last modified, status), "Start New Handbook" button, user profile/settings.

* Focus: Quick access to ongoing projects and initiation of new ones.

  • Company Information Form (Multi-Step Wizard):

* Layout: One step per screen, clear progress indicator at the top.

* Elements: Input fields with clear labels and placeholder text, "Next" / "Previous" buttons, "Save Draft" button.

* Focus: Gathering essential company data efficiently.

  • Handbook Section Configuration (Main Editor Interface):

* Layout: Two-column layout.

* Left Sidebar: Navigation tree for handbook sections and individual policies within each section. Includes a progress indicator for the entire handbook.

* Main Content Area: Rich text editor for the currently selected policy, AI suggestion buttons, template selection dropdown, contextual help.

* Elements: Section title, policy title, WYSIWYG editor, "Add Custom Policy" button, "AI Assistant" button, "Save Draft."

* Focus: Detailed customization and AI-assisted content creation.

  • Preview & Export Page:

* Layout: Full-width display of the handbook preview.

* Elements: Interactive Table of Contents on the left (or as a collapsible element), scrollable handbook content on the right, "Edit Section" buttons within the preview, "Download PDF," "Download DOCX" buttons, "Go Back to Editor" button.

* Focus: Final review and document generation.

4.2 Color Palette

  • Primary Brand Color: #007BFF (A professional, trustworthy blue) - Used for primary buttons, active states, key headings.
  • Secondary Accent Color: #28A745 (A vibrant green) - Used for success messages, "Generate" buttons, positive feedback.
  • Neutral Palette:

* Backgrounds: #F8F9FA (Light off-white)

* Text: #343A40 (Dark charcoal for body text), #6C757D (Medium gray for secondary text/labels)

* Borders/Dividers: #DEE2E6 (Light gray)

  • Alert/Warning: #DC3545 (Red for errors), #FFC107 (Yellow for warnings)

Rationale: This palette evokes professionalism, trust, and clarity, while providing clear visual cues for user actions and feedback.

4.3 Typography

  • Headings (H1, H2, H3): Montserrat (or similar modern sans-serif like Lato/Open Sans)

* H1: 2.5em, Bold, Primary Brand Color

* H2: 2em, Semi-Bold, Dark Charcoal

* H3: 1.5em, Medium, Dark Charcoal

  • Body Text: Open Sans (or similar highly readable sans-serif like Roboto/Lato)

* Base Size: 1em (16px)

* Line Height: 1.5

* Color: Dark Charcoal

  • Buttons/Labels: Montserrat or Open Sans, slightly bolder.

Rationale: A combination of a slightly more distinctive sans-serif for headings and a highly legible one for body text ensures a professional and comfortable reading experience.

4.4 Iconography

  • Style: Flat or Line-Art icons.
  • Consistency: Use a single icon library (e.g., Font Awesome, Material Icons) for uniform style.
  • Examples:
gemini Output

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


Welcome to the [Company Name] Family!

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

Body Text:

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

At [Company Name], we believe that our employees are our greatest asset. We are committed to fostering a supportive, inclusive, and dynamic work environment where you can thrive, grow, and contribute your best. This handbook outlines the framework that helps us maintain a fair, respectful, and productive workplace for everyone.

Please take the time to read through this handbook carefully. It contains important information about your employment, benefits, and the standards of conduct that uphold our collective success. If you have any questions, please do not hesitate to reach out to your manager or the HR Department.

We are excited about your future with us and look forward to achieving great things together!

Call to Action:

"Embrace your role, explore this guide, and let's build an amazing future together!"


Section 1: About [Company Name]

Headline: Our Foundation: Mission, Vision, and Values

Body Text:

Understanding the core of [Company Name] is crucial to aligning your efforts with our collective goals. We are more than just a company; we are a community driven by a shared purpose.

1.1 Our Mission

Our mission is to [Insert Company Mission Statement Here - e.g., "innovate sustainable solutions that empower businesses to achieve unparalleled efficiency and growth."] We are dedicated to [Elaborate on mission, e.g., "delivering exceptional value to our customers, fostering a culture of continuous improvement, and making a positive impact on the communities we serve."].

1.2 Our Vision

Our vision is to [Insert Company Vision Statement Here - e.g., "be the global leader in [Industry/Service], recognized for our pioneering technology, unwavering commitment to quality, and transformative customer experiences."] We aspire to [Elaborate on vision, e.g., "shape the future of our industry by pushing boundaries and setting new benchmarks for excellence."]

1.3 Our Core Values

Our values are the guiding principles that define who we are and how we operate. They influence every decision we make and every interaction we have. We encourage every employee to embody these values daily:

  • Integrity: We act with honesty, transparency, and ethical conduct in all our dealings. We build trust by doing the right thing, even when no one is watching.
  • Innovation: We embrace creativity, challenge the status quo, and continuously seek better ways to solve problems and create value. We encourage curiosity and learning.
  • Collaboration: We believe in the power of teamwork. We respect diverse perspectives, communicate openly, and work together to achieve common goals.
  • Excellence: We are committed to delivering high-quality results and striving for continuous improvement in everything we do. We take pride in our work and aim to exceed expectations.
  • Customer Focus: Our customers are at the heart of our business. We listen to their needs, anticipate their challenges, and provide solutions that help them succeed.
  • Respect: We treat everyone with dignity, courtesy, and fairness. We value diversity and foster an inclusive environment where all voices are heard and valued.

Call to Action:

"Reflect on these values and consider how you can integrate them into your daily work."


Section 2: Employment Basics

Headline: Laying the Foundation: Your Employment at [Company Name]

Body Text:

This section outlines the fundamental aspects of your employment, ensuring clarity on our mutual understanding and commitment.

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to providing a workplace free of discrimination and harassment. All employment decisions, including those related to recruiting, hiring, training, promotion, compensation, benefits, and termination, are made without regard to race, color, religion, gender, sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other characteristic protected by applicable law. We are dedicated to creating an inclusive environment for all employees.

2.2 Employment At-Will

In accordance with applicable law, 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 laws. This "at-will" status cannot be modified by any oral or implied agreement.

2.3 Employment Classifications

To help clarify your role and eligibility for benefits, [Company Name] classifies employees as follows:

  • Full-Time Exempt: Typically works 40 hours or more per week, holds a salaried position, and is exempt from overtime pay under federal and state wage and hour laws.
  • Full-Time Non-Exempt: Typically works 40 hours or more per week, is paid hourly, and is eligible for overtime pay for hours worked over 40 in a workweek.
  • Part-Time Non-Exempt: Works fewer than 40 hours per week, is paid hourly, and is eligible for overtime pay for hours worked over 40 in a workweek (if applicable by state law, though unlikely for part-time).
  • Temporary/Contract: Engaged for a specific project or limited duration. Eligibility for benefits may vary as outlined in their specific contract.

2.4 Personnel Records

Your personnel file contains important documents related to your employment. It is essential that your records are accurate and up-to-date. Please notify the HR Department promptly of any changes to:

  • Address or contact information
  • Marital status
  • Number of dependents
  • Beneficiary designations
  • Emergency contacts
  • Qualifications, certifications, or licenses

Your personnel file is confidential and accessible only to authorized personnel. You may review your personnel file by scheduling an appointment with the HR Department.

Call to Action:

"Ensure your personal information is current. Contact HR for any updates."


Section 3: Workplace Policies & Conduct

Headline: Our Shared Commitment: Upholding a Professional and Respectful Workplace

Body Text:

These policies define the behavioral standards and expectations for all employees, ensuring a safe, respectful, and productive work environment.

3.1 Code of Conduct & Ethics

Our Code of Conduct is built on our core values and outlines the expected behavior for all employees. We expect every individual to act with honesty, integrity, and professionalism. This includes:

  • Treating colleagues, customers, partners, and vendors with respect and courtesy.
  • Adhering to all company policies, procedures, and applicable laws.
  • Avoiding conflicts of interest.
  • Protecting company assets and information.
  • Contributing to a positive and collaborative work environment.

3.2 Harassment & Discrimination Policy

[Company Name] has zero tolerance for any form of harassment or discrimination. This includes, but is not limited to, harassment based on race, color, religion, gender, sexual orientation, gender identity or expression, national origin, age, disability, genetic information, veteran status, or any other protected characteristic. Harassment can include offensive jokes, slurs, epithets, physical assaults or threats, intimidation, ridicule, insults, offensive objects or pictures, and interference with work performance.

Any employee who believes they have been subjected to harassment or discrimination, or has witnessed such behavior, is strongly encouraged to report it immediately to their manager, the HR Department, or [Specific Anonymous Reporting Channel, if applicable]. All reports will be investigated promptly and confidentially, and appropriate corrective action will be taken.

3.3 Non-Retaliation Policy

[Company Name] strictly prohibits retaliation against any employee who, in good faith, reports a concern, participates in an investigation, or exercises their rights under this handbook or applicable law. Any employee found to have engaged in retaliation will face disciplinary action, up to and including termination of employment.

3.4 Workplace Safety

Your safety is paramount. We are committed to providing a safe and healthy work environment and expect all employees to adhere to safety guidelines and procedures.

  • Report any unsafe conditions, incidents, or injuries immediately to your manager or [Safety Officer/HR].
  • Familiarize yourself with emergency procedures, including evacuation routes and first aid locations.
  • Use all equipment and machinery properly and safely.
  • Do not work under the influence of alcohol or illegal drugs.

3.5 Drug-Free Workplace

[Company Name] is committed to maintaining a drug-free workplace to ensure the safety, health, and productivity of all employees. The use, possession, distribution, or sale of illegal drugs, or the abuse of alcohol or prescription medications, on company premises or during working hours, is strictly prohibited. Violation of this policy will result in disciplinary action, up to and including termination.

3.6 Confidentiality & Data Security

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

You are required to protect this information and not disclose it to unauthorized individuals or use it for personal gain. This obligation continues even after your employment with [Company Name] ends. All company data, whether electronic or physical, must be handled according to our data security protocols.

3.7 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, holding financial interests in competing companies, accepting significant gifts from vendors, or using company resources for personal business ventures. Any potential or actual conflict of interest must be disclosed to your manager or HR Department immediately.

3.8 Dress Code

While we encourage individuality, we expect employees to present a professional image appropriate for our workplace environment. The general dress code is [e.g., "business casual"]. Specific requirements may vary by department or role. If you are unsure, please consult your manager.

3.9 Attendance & Punctuality

Consistent attendance and punctuality are essential for team productivity and operational efficiency. Employees are expected to arrive on time, be prepared to work at the start of their shift, and adhere to scheduled breaks and lunch periods. If you are unable to report to work or will be late, you must notify your manager as soon as possible, preferably [e.g., "at least two hours"] before your scheduled start time. Excessive absenteeism or tardiness may result in disciplinary action.

3.10 Work Hours & Overtime

The standard workweek at [Company Name] is [e.g., "40 hours, Monday through Friday, 9:00 AM to 5:00 PM"]. Specific schedules may vary by department or role.

  • 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 per federal and state laws. All overtime must be pre-approved by your manager.
  • Exempt Employees: Are paid a salary and are not eligible for overtime pay. Their work expectations are based on job responsibilities rather than specific hours.

3.11 Use of Company Property & Resources

Company property, including computers, software, vehicles, tools, and supplies, is provided for business use. Incidental personal use may be permitted if it does not interfere with work duties, violate company policies, or incur significant cost to the company. Employees are responsible for the proper care and security of all company property. Misuse or damage due to negligence may result in disciplinary action.

3.12 Social Media Policy

Employees are encouraged to be responsible and professional when using social media. While we respect your right to personal expression, remember that your online presence can reflect on [Company Name]. When using social media:

  • Do not disclose confidential or proprietary company information.
  • Do not post anything that could be considered harassing, discriminatory, or defamatory towards colleagues, customers, or the company.
  • Clearly state that your opinions are your own and not those of [Company Name] if discussing work-related topics.
  • Be respectful and thoughtful in your online interactions.

3.13 Outside Employment

Employees may engage in outside employment, provided it does not interfere with their performance at [Company Name], create a conflict of interest, or utilize company resources or confidential information. If you engage in outside employment, you must inform your manager and the HR Department.

3.14 Performance Management & Discipline

[Company Name] is committed to fostering a culture of continuous improvement. Our performance management process includes regular feedback, performance reviews, and opportunities for professional development. When performance issues or policy violations occur, we utilize a progressive disciplinary process, which may include verbal warnings, written warnings, performance improvement plans, suspension, and ultimately, termination of employment. The specific action taken will depend on the severity and frequency of the issue.

3.15 Grievance Procedure

If an employee has a workplace concern or grievance, we encourage open communication. Please follow these steps:

  1. Discuss the issue with your immediate supervisor.
  2. If the issue remains unresolved or involves your supervisor, contact the HR Department.
  3. All concerns will be treated seriously, investigated promptly, and handled with discretion.

Call to Action:

"Familiarize yourself with these policies to ensure a harmonious and productive work environment for all."


Section 4: Compensation & Benefits

Headline: Investing in You: Your Compensation and Benefits at [Company Name]

Body Text:

We believe in rewarding our employees fairly and providing a comprehensive benefits package that supports your well-being and financial security.

4.1 Pay Periods & Direct Deposit

Employees are paid [e.g., "bi-weekly"] on [e.g., "Friday"]. Pay stubs are accessible [e.g., "through our online payroll portal"]. Direct deposit is mandatory for all employees, ensuring timely and secure payment. Please ensure your bank account information is up-to-date with the HR Department.

4.2 Performance Reviews & Salary Adjustments

Regular performance reviews are conducted [e.g., "annually"] to assess performance, provide feedback, discuss career development, and set goals. Salary adjustments are typically considered during the annual review process, based on individual performance, market conditions, and company financial performance.

4.3 Employee Benefits Overview

[Company Name] offers a competitive benefits package designed to support the health, financial security, and work-life balance of our eligible employees. Eligibility for specific benefits may vary based on employment classification and length of service. Details for each plan are available through the HR Department or our benefits portal.

  • Health Insurance: Comprehensive medical, dental, and vision plans.
  • Life Insurance: Company-paid basic life insurance, with options for supplemental coverage.
  • Disability Insurance: Short-term and long-term disability plans to protect your income during extended illness or injury.
  • Retirement Plan: [e.g., "401(k) retirement plan"] with a [e.g., "company match"] to help you save for your future.
  • Wellness Programs: Initiatives and resources to promote physical and mental well-being.
  • Employee Assistance Program (EAP): Confidential counseling and support services
gemini Output

As the final step in the "Employee Handbook Generator" workflow, this deliverable provides a comprehensive, detailed, and professionally polished Employee Handbook template. This document covers essential company policies, benefits overviews, codes of conduct, leave policies, and crucial compliance sections, designed to be easily customizable for your organization.


[Company Name] Employee Handbook

Effective Date: [Date of Issuance/Update]

Welcome to the [Company Name] team! This handbook is designed to provide you with important information about our company's policies, procedures, benefits, and expectations. It serves as a guide to help you understand your role, our culture, and what it means to be a valued member of [Company Name]. We believe in fostering a positive, productive, and respectful work environment, and this handbook outlines the principles that guide our interactions and operations.

Please read this handbook carefully. It is an important resource that outlines your rights and responsibilities as an employee of [Company Name].


Table of Contents

  1. Welcome Message
  2. About [Company Name]

* Our Mission, Vision, and Values

* Company History and Culture

  1. Employment Basics

* Employment-at-Will Disclaimer

* Equal Employment Opportunity (EEO)

* Anti-Discrimination and Anti-Harassment Policy

* Workplace Safety and Health

* Confidentiality and Non-Disclosure

* Data Privacy and Protection

* Background Checks and Drug Testing

  1. Workplace Conduct & Expectations

* Code of Conduct and Ethics

* Professionalism and Respect

* Attendance and Punctuality

* Dress Code

* Use of Company Property and Resources

* Social Media Policy

* Conflict of Interest

* Drug-Free and Alcohol-Free Workplace

* Workplace Violence Prevention

* Solicitation and Distribution

  1. Compensation & Benefits Overview

* Pay Periods and Direct Deposit

* Overtime Policy

* Performance Reviews and Salary Adjustments

* Employee Benefits (Health, Dental, Vision, Life, Disability Insurance)

* Retirement Savings Plans (e.g., 401k)

* Workers' Compensation

* Employee Assistance Program (EAP)

* Tuition Reimbursement/Professional Development

  1. Leave Policies

* Paid Time Off (PTO)/Vacation

* Sick Leave

* Company Holidays

* Bereavement Leave

* Jury Duty Leave

* Military Leave (USERRA)

* Family and Medical Leave Act (FMLA)

* Other Statutory Leaves (e.g., Parental Leave, State-Specific Leaves)

  1. Technology & Communication

* Company Email and Internet Usage

* Data Security and Acceptable Use Policy

* Communication Guidelines

* Monitoring of Company Systems

  1. Performance Management & Development

* Performance Review Process

* Training and Development Opportunities

* Disciplinary Action Policy

* Grievance and Open-Door Policy

  1. Separation of Employment

* Resignation Procedures

* Termination of Employment

* Exit Interviews

* Final Paycheck and Benefits Continuation

* Return of Company Property

  1. Compliance & Legal Disclaimers

* Americans with Disabilities Act (ADA)

* Whistleblower Protection Policy

* Child Labor Laws

* Immigration Law Compliance (I-9 Verification)

* Handbook Disclaimer and Right to Modify

* Acknowledgement of Receipt


1. Welcome Message

Dear [Company Name] Team Member,

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

This Employee Handbook is your guide to understanding our workplace culture, policies, and the resources available to you. It outlines our commitment to a fair, respectful, and productive environment, and details the expectations we have for all employees. We encourage you to familiarize yourself with its contents, as it is a crucial resource for navigating your journey with us.

At [Company Name], we believe in [mention 1-2 key values, e.g., innovation, collaboration, customer satisfaction]. We are confident that you will find [Company Name] to be a rewarding place to work and grow your career. If you have any questions, please do not hesitate to reach out to your manager or the HR department.

Welcome aboard!

Sincerely,

[CEO/President Name]

[Title]


2. About [Company Name]

Our Mission, Vision, and Values

  • Mission: [Insert Company Mission Statement - e.g., To empower businesses with innovative solutions that drive growth and efficiency.]
  • Vision: [Insert Company Vision Statement - e.g., To be the leading provider of enterprise software solutions globally, recognized for excellence and customer satisfaction.]
  • Values: These core values define who we are and how we operate:

* 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 achieving success together.

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

* Respect: We value diversity and treat everyone with dignity and professionalism.

* [Add other relevant values]

Company History and Culture

[Company Name] was founded in [Year] with the vision of [brief history/founding principle]. Since then, we have grown into [describe current status/achievements]. Our culture is built on [describe company culture - e.g., open communication, continuous learning, empowerment, work-life balance]. We encourage an environment where every employee feels valued, heard, and inspired to contribute their best.


3. Employment Basics

Employment-at-Will 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 for no reason), with or without notice, subject to applicable federal and state laws. Nothing in this handbook is intended to create, nor should be construed as creating, an express or implied contract of employment between [Company Name] and any employee.

Equal Employment Opportunity (EEO)

[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, national origin, disability status, genetics, protected veteran status, sexual orientation, gender identity or expression, or any other characteristic protected by federal, state, or local laws. This policy applies to all terms and conditions of employment, including recruiting, hiring, placement, promotion, termination, layoff, recall, transfer, leaves of absence, compensation, and training.

Anti-Discrimination and Anti-Harassment Policy

[Company Name] is committed to maintaining a work environment free from all forms of harassment and discrimination. This includes sexual harassment, racial harassment, and any other form of harassment or discrimination based on protected characteristics. All employees are expected to treat colleagues, customers, vendors, and visitors with respect and dignity. Any employee who believes they have been subjected to harassment or discrimination, or who witnesses such behavior, should immediately report it to their manager or Human Resources. All complaints will be investigated promptly and confidentially, and appropriate corrective action will be taken. Retaliation against any employee who reports a complaint or participates in an investigation is strictly prohibited.

Workplace Safety and Health

The safety and health of our employees are paramount. [Company Name] is committed to providing a safe and healthy work environment in compliance with all applicable federal, state, and local safety regulations.

  • Employee Responsibility: All employees are responsible for adhering to safety rules, reporting unsafe conditions or hazards immediately, and participating in safety training.
  • Accident Reporting: All work-related injuries, illnesses, or near-misses, no matter how minor, must be reported to a supervisor immediately.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and evacuation procedures. Emergency plans are posted in [mention specific locations, e.g., common areas, HR office].

Confidentiality and Non-Disclosure

During your employment, you may have access to confidential and proprietary information belonging to [Company Name], its customers, and partners. This includes, but is not limited to, trade secrets, financial data, customer lists, product designs, marketing strategies, software, and intellectual property. Employees are required to maintain strict confidentiality of all such information, both during and after their employment with [Company Name]. Unauthorized disclosure of confidential information is a serious breach of policy and may result in disciplinary action, up to and including termination, and legal action. You may be required to sign a separate Confidentiality and Non-Disclosure Agreement.

Data Privacy and Protection

[Company Name] is committed to protecting the privacy of personal and sensitive data, including employee, customer, and company data. Employees must adhere to all data protection policies and procedures, including those related to data access, storage, transmission, and disposal. Any suspected data breach or privacy incident must be reported immediately to [IT Department/HR/Compliance Officer].

Background Checks and Drug Testing

As a condition of employment, [Company Name] may conduct background checks, including criminal history, employment verification, and educational verification, for all new hires and, where permissible by law, for current employees. [Company Name] may also conduct pre-employment and/or random drug testing, as permitted by state and federal law, to ensure a safe and productive work environment. Refusal to cooperate with these policies may result in withdrawal of an offer of employment or disciplinary action, up to and including termination.


4. Workplace Conduct & Expectations

Code of Conduct and Ethics

Our Code of Conduct outlines the ethical principles and professional standards expected of every employee. We operate with honesty, integrity, and transparency.

  • Honesty and Integrity: Always act truthfully and ethically in all business dealings.
  • Respect: Treat all colleagues, customers, partners, and competitors with respect and dignity.
  • Compliance: Adhere to all applicable laws, regulations, and company policies.
  • Accountability: Take responsibility for your actions and decisions.

Professionalism and Respect

Employees are expected to maintain a professional demeanor and show respect for others at all times. This includes:

  • Communication: Engaging in courteous and constructive communication, whether verbal, written, or electronic.
  • Collaboration: Working cooperatively with colleagues and contributing positively to team efforts.
  • Conflict Resolution: Addressing workplace conflicts in a constructive and professional manner, seeking assistance from supervisors or HR when necessary.

Attendance and Punctuality

Regular and punctual attendance is an essential requirement of employment at [Company Name]. Excessive absenteeism or tardiness places an undue burden on colleagues and operations.

  • Reporting Absences: Employees must notify their supervisor as soon as possible, preferably at least [e.g., two hours] before their scheduled start time, if they will be absent or late.
  • Scheduled Time Off: All requests for planned time off (e.g., vacation) must be submitted and approved in advance according to the company's leave policies.

Dress Code

Employees are expected to dress in a manner appropriate for a professional business environment. The dress code for [Company Name] is [e.g., Business Casual]. This generally includes [provide examples, e.g., collared shirts, blouses, slacks, skirts, dresses, appropriate footwear. Avoid overly casual attire like shorts, flip-flops, ripped jeans, or clothing with offensive graphics]. Specific departments may have additional requirements based on their roles (e.g., safety gear). If you are unsure about the appropriateness of an outfit, please consult your supervisor.

Use of Company Property and Resources

Company property, including equipment, vehicles, computers, software, networks, and supplies, is provided for business use. While incidental personal use may be permitted, it should not interfere with work duties, violate company policy, or incur significant costs to the company. Employees are responsible for safeguarding company property and ensuring its proper use and maintenance. Unauthorized removal, misuse, or damage to company property may result in disciplinary action.

Social Media Policy

Employees are free to use social media in their personal lives, but should exercise good judgment and professionalism. When engaging in social media, employees must:

  • Refrain from posting confidential or proprietary company information.
  • Avoid making disparaging or offensive comments about [Company Name], its employees, customers, or competitors.
  • Ensure personal social media activities do not interfere with work responsibilities or reflect negatively on the company's reputation.
  • Clearly state that personal opinions are their own and not those of [Company Name] if discussing work-related topics.

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 activities that compete with the company, accepting significant gifts or favors from vendors or clients, or using company resources for personal gain. Any potential conflict of interest must be disclosed to your supervisor or HR immediately.

Drug-Free and Alcohol-Free Workplace

[Company Name] is committed to maintaining a drug-free and alcohol-free workplace to ensure the safety and productivity of all employees. The unlawful manufacture, distribution, possession, or use of controlled substances, or the consumption of alcohol, on company premises or during working hours, is strictly prohibited. Employees under the influence of drugs or alcohol while at work will be subject to disciplinary action, up to and including termination.

Workplace Violence Prevention

[Company Name] is committed to preventing workplace violence and maintaining a safe environment for all employees. Threats, intimidation, harassment, or acts of violence are strictly prohibited. Any employee who experiences or witnesses any form of workplace violence or threat should report it immediately to their supervisor, HR, or a member of management. All reports will be taken seriously and investigated promptly.

Solicitation and Distribution

To maintain a productive work environment, solicitation by employees or outside parties, and the distribution of non-work-related materials, are generally prohibited during working time or in work areas. Non-employees are prohibited from soliciting or distributing materials on company premises at any time.


5. Compensation & Benefits Overview

Pay Periods and Direct Deposit

Employees are paid on a [e.g., bi-weekly/semi-monthly] basis. Payday is [e.g., every other Friday/the 15th and 30th of each month]. Direct deposit is mandatory for all employees, ensuring timely and secure payment directly into your designated bank account

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
"); 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' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); 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' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

) } export default App "); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e} .app{min-height:100vh;display:flex;flex-direction:column} .app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px} h1{font-size:2.5rem;font-weight:700} "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` ## Open in IDE Open the project folder in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- 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",'{ "name": "'+pn+'", "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, "dependencies": { "vue": "^3.5.13", "vue-router": "^4.4.5", "pinia": "^2.3.0", "axios": "^1.7.9" }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "typescript": "~5.7.3", "vite": "^6.0.5", "vue-tsc": "^2.2.0" } } '); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': resolve(__dirname,'src') } } }) "); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]} '); zip.file(folder+"tsconfig.app.json",'{ "compilerOptions":{ "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"], "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true, "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue", "strict":true,"paths":{"@/*":["./src/*"]} }, "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"] } '); zip.file(folder+"env.d.ts","/// "); zip.file(folder+"index.html"," "+slugTitle(pn)+"
"); 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' import { createPinia } from 'pinia' import App from './App.vue' import './assets/main.css' const app = createApp(App) app.use(createPinia()) app.mount('#app') "); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue"," "); 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} "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` Open in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- 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",'{ "name": "'+pn+'", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test" }, "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.0.0", "@angular/cli": "^19.0.0", "@angular/compiler-cli": "^19.0.0", "typescript": "~5.6.0" } } '); zip.file(folder+"angular.json",'{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "'+pn+'": { "projectType": "application", "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/'+pn+'", "index": "src/index.html", "browser": "src/main.ts", "tsConfig": "tsconfig.app.json", "styles": ["src/styles.css"], "scripts": [] } }, "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"} } } } } '); zip.file(folder+"tsconfig.json",'{ "compileOnSave": false, "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"]}, "references":[{"path":"./tsconfig.app.json"}] } '); zip.file(folder+"tsconfig.app.json",'{ "extends":"./tsconfig.json", "compilerOptions":{"outDir":"./dist/out-tsc","types":[]}, "files":["src/main.ts"], "include":["src/**/*.d.ts"] } '); zip.file(folder+"src/index.html"," "+slugTitle(pn)+" "); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig) .catch(err => console.error(err)); "); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; } "); 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'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = '"+pn+"'; } "); zip.file(folder+"src/app/app.component.html","

"+slugTitle(pn)+"

Built with PantheraHive BOS

"); 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} "); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes) ] }; "); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router'; export const routes: Routes = []; "); 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)+" Generated by PantheraHive BOS. ## Setup ```bash npm install ng serve # or: npm start ``` ## Build ```bash ng build ``` Open in VS Code with Angular Language Service extension. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local .angular/ "); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/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(" "):"# add dependencies here "; zip.file(folder+"main.py",src||"# "+title+" # Generated by PantheraHive BOS print(title+" loaded") "); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python main.py ``` "); zip.file(folder+".gitignore",".venv/ __pycache__/ *.pyc .env .DS_Store "); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/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)+" "; zip.file(folder+"package.json",pkgJson); var fallback="const express=require("express"); const app=express(); app.use(express.json()); app.get("/",(req,res)=>{ res.json({message:""+title+" API"}); }); const PORT=process.env.PORT||3000; app.listen(PORT,()=>console.log("Server on port "+PORT)); "; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000 "); zip.file(folder+".gitignore","node_modules/ .env .DS_Store "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash npm install ``` ## Run ```bash npm run dev ``` "); } /* --- 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:" "+title+" "+code+" "; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */ *{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e} "); zip.file(folder+"script.js","/* "+title+" — scripts */ "); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Open Double-click `index.html` in your browser. Or serve locally: ```bash npx serve . # or python3 -m http.server 3000 ``` "); zip.file(folder+".gitignore",".DS_Store node_modules/ .env "); } /* ===== 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(/ {2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. Files: - "+app+".md (Markdown) - "+app+".html (styled HTML) "); } 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);}});}