HappyFile Free-to-Use Software License (Version 1.0)
====================================================

Copyright (c) 2026 HappyFile / The HappyFile Author. All rights reserved.

Official Website: https://www.happyfileapp.com
Contact Email:    happyfileapp@gmail.com

IMPORTANT — PLEASE READ CAREFULLY:
By downloading, installing, copying, or using HappyFile (including the `happyfile`
client, the `hf-server` directory/relay server, and any accompanying documentation,
collectively the "Software"), you ("User" or "You") agree to be bound by the terms
of this License. If you do not agree to these terms, do not download, install, or
use the Software.

1. GRANT OF FREE-TO-USE LICENSE
   Subject to your compliance with this License, HappyFile / The HappyFile Author
   ("Author") grants you a personal, worldwide, non-exclusive, royalty-free,
   non-transferable, revocable license to download, install, and run the Software
   free of charge for personal, educational, non-profit, and commercial use.

2. REDISTRIBUTION OF UNMODIFIED OFFICIAL BINARIES
   You may share or mirror unmodified, official binary distributions of the Software
   free of charge, provided that:
   (a) the Software is distributed completely unaltered and verbatim, accompanied by
       this LICENSE file and THIRD_PARTY_NOTICES.md;
   (b) no fee, subscription, donation gate, or consideration is charged for the
       Software itself;
   (c) the Software is not bundled with adware, spyware, malware, unwanted software,
       or third-party download wrappers/installers; and
   (d) clear attribution and a link to the official website
       (https://www.happyfileapp.com) are preserved.

3. OWNERSHIP & RESTRICTIONS (AUTHOR PROTECTION)
   The Software is licensed, not sold. Except for the limited rights expressly
   granted in Sections 1 and 2, the Author retains all right, title, copyright,
   source-code rights, and intellectual property rights in and to the Software.
   You may NOT:
   (a) sell, rent, lease, sublicense, or commercially resell the Software, or offer
       the Software as a paid hosted or commercial service, without prior written
       permission from the Author (happyfileapp@gmail.com);
   (b) modify, patch, repackage, rebrand, or distribute altered, tampered, or
       derivative binaries under the HappyFile name or imply official endorsement
       by the Author;
   (c) remove, obscure, or alter any copyright notices, license notices, version
       information, or cryptographic/security verification prompts or warnings; or
   (d) reverse engineer, decompile, or disassemble the Software, except to the
       strict extent expressly permitted by mandatory applicable law notwithstanding
       this limitation.

4. TRADEMARKS & BRANDING
   "HappyFile", the HappyFile name, logos, and the domain www.happyfileapp.com are
   and remain the exclusive property of the Author. This License grants no license
   or permission to use the Author's trademarks, trade names, or branding except as
   strictly necessary to provide truthful attribution under Section 2(d).

5. PEER-TO-PEER ARCHITECTURE, USER RESPONSIBILITY & LAWFUL USE
   (a) Neutral Decentralized Tool: HappyFile is a peer-to-peer communication and
       file-transfer tool. The Author does NOT host, store, transmit, monitor,
       index, control, moderate, or possess access to any rooms, messages,
       encryption keys, or files exchanged between users.
   (b) Sole User Responsibility: You are solely responsible for:
       (i)   all files, messages, and content you share, transmit, download, or
             store using the Software;
       (ii)  verifying the cryptographic fingerprints of peers before trusting or
             admitting them;
       (iii) protecting and backing up your local data and private keys (including
             `identity.key`); and
       (iv)  complying with all applicable local, national, and international laws,
             including copyright, intellectual property, privacy, data-protection,
             and encryption/export-control regulations.
   (c) Third-Party & Self-Hosted Infrastructure: The Author has no control over and
       assumes no responsibility or liability for third-party relays, public iroh/n0
       discovery or relay servers, or any user-operated `hf-server` directories or
       relays.

6. DISCLAIMER OF WARRANTY ("AS IS")
   THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITH ALL FAULTS AND WITHOUT
   WARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE
   AUTHOR EXPRESSLY DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS, IMPLIED, STATUTORY,
   OR OTHERWISE, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, QUIET ENJOYMENT,
   ACCURACY, AND NON-INFRINGEMENT. THE AUTHOR DOES NOT WARRANT THAT THE SOFTWARE
   WILL BE UNINTERRUPTED, ERROR-FREE, COMPATIBLE WITH ALL SYSTEMS OR NETWORKS, OR
   COMPLETELY IMMUNE FROM CRYPTOGRAPHIC, NETWORK, OR SECURITY VULNERABILITIES.
   YOU USE THE SOFTWARE ENTIRELY AT YOUR OWN RISK.

7. LIMITATION OF LIABILITY
   TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE AUTHOR
   BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR
   CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, LOSS OF DATA,
   CORRUPTED OR LOST FILES, LOSS OF PROFITS, BUSINESS INTERRUPTION, LOSS OF PRIVACY,
   UNAUTHORIZED ACCESS, SECURITY BREACHES, OR THIRD-PARTY CLAIMS) ARISING OUT OF OR
   IN ANY WAY RELATED TO THE USE OF OR INABILITY TO USE THE SOFTWARE, WHETHER BASED
   ON CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR ANY OTHER LEGAL
   THEORY, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
   BECAUSE THE SOFTWARE IS PROVIDED FREE OF CHARGE, THE AUTHOR'S TOTAL AGGREGATE
   LIABILITY FOR ALL CLAIMS RELATING TO THE SOFTWARE SHALL NOT EXCEED ZERO DOLLARS
   ($0.00) OR THE MINIMUM AMOUNT REQUIRED BY NON-WAIVABLE APPLICABLE LAW.

8. INDEMNIFICATION
   To the fullest extent permitted by applicable law, you agree to defend,
   indemnify, and hold harmless the Author from and against any and all claims,
   demands, actions, damages, losses, liabilities, and reasonable legal fees
   arising out of or relating to: (a) your unlawful or unauthorized use of the
   Software, (b) any content or files you share, send, receive, or distribute using
   the Software, or (c) your breach of this License.

9. THIRD-PARTY OPEN-SOURCE SOFTWARE
   HappyFile incorporates third-party open-source libraries governed by their own
   permissive licenses (such as MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC,
   Zlib, and Unicode-3.0). Full attributions and license notices are provided in
   THIRD_PARTY_NOTICES.md. Nothing in this License limits or restricts your rights
   under the respective licenses of those third-party open-source components.

10. NO SUPPORT OBLIGATION, UPDATES & TERMINATION
    The Author has no obligation to provide maintenance, technical support, bug
    fixes, security patches, or updates, and may modify, suspend, or discontinue
    the Software or its website at any time without notice. Your rights under this
    License terminate automatically without notice if you materially breach any of
    its terms; upon termination, you must stop using and destroy all copies of the
    Software in your possession.

11. SEVERABILITY, SURVIVAL & ENTIRE AGREEMENT
    If any provision of this License is held invalid or unenforceable under
    applicable law, that provision shall be enforced to the maximum extent
    permissible to protect the Author, and the remaining provisions shall remain in
    full force and effect. Sections 3 through 11 shall survive any termination of
    this License. This License constitutes the entire agreement between you and the
    Author regarding your use of the Software.

For permissions, security reports, or inquiries, contact:
  Email:   happyfileapp@gmail.com
  Website: https://www.happyfileapp.com
