                             DANUBE LICENSE
                         Version 1.1, October 2026

             SPDX short identifier: LicenseRef-DANUBE-1.1

  Copyright (c) 2023-2026 Yuriy Lobarev (ANYKS). All rights reserved.
  Website: https://anyks.com

  Danube is source-available software, not open-source software.

  The Applications published by the Licensor - the "dan" console
  archiver and the applications built on Danube, including the
  graphical application - are free of charge for any use that is not
  Commercial Exploitation. Organisations of any kind, commercial ones
  included, may use them for their own needs. Nobody may sell them or
  make money from them without a Commercial License.

  Linking the Danube Library into Your Product, statically or
  dynamically, is available only under a paid Commercial License.


0. DEFINITIONS

   "Licensor" means Yuriy Lobarev (ANYKS), the author and copyright
   holder of the Software.

   "Software" means the software project Danube (DAN), taken as a
   whole, including its source code, header files, build system,
   documentation, the Library and the Applications, as published by the
   Licensor. The Software does NOT include Third-Party Software as
   defined below, even where such software is bundled with, vendored
   into, referenced as a submodule of, or statically linked into the
   Software or any build of it.

   "Third-Party Software" means any software included in, vendored into,
   referenced by or built together with the Software that was not
   authored by the Licensor and that carries the copyright notice or
   license of another party. This includes, by way of example and
   without limitation, the git submodules of the project, the code
   under the contrib directory, any build artifact of the foregoing
   installed into the project tree, and any external dependency the
   Software is linked against. Authorship, not location in the project
   tree, determines whether something is Third-Party Software.

   "Library" means the Danube library in any form: its binary builds
   (such as libdanube.a, libdanube.so, libdanube.dylib, libdanube.dll,
   danube.lib, danube.dll) together with its public header files, and
   the source code from which they are built. The Library does NOT
   include the Read-only Edition defined below.

   "Read-only Edition" means the read-and-extract-only build of the
   Danube library, published by the Licensor as danube_ro: the binary
   module itself (such as libdanube_ro.so, libdanube_ro.dylib or
   danube_ro.dll), the C interface header danube_read.h, the import
   library needed to link against it (such as danube_ro.lib or
   libdanube_ro.a), and the archives that publish them together with
   their license texts. The read-and-extract-only character of the
   Read-only Edition is a property of the built module, not a promise:
   the symbols that write to a container are absent from its export
   table, and the Licensor verifies that table on every platform it
   builds. Building the Software without the read-only switch yields
   the Library, not the Read-only Edition.

   "Applications" means the executable programs built on the Library
   and published by the Licensor, including the "dan" console archiver
   and its sample utilities, the graphical application and any other
   application the Licensor publishes as part of Danube or built on it.
   A program You build Yourself from the unmodified source code of an
   Application, as published by the Licensor, is also an Application.

   "Component" means any part of the Software taken in isolation: an
   individual source or header file, a module, a class, a function, an
   algorithm implementation, a data structure, or any other subset of
   the Software that is less than the Software as a whole.

   "You" means the individual or legal entity exercising the rights
   granted by this License. For a legal entity, "You" includes its
   employees and contractors acting on its behalf.

   "Your Product" means any software, service, device or other product
   that is not an Application and that is developed, distributed or
   operated by You or on Your behalf.

   "Your Data" means the files, archives, containers and any other data
   that You create, store, process or extract by means of the Software.

   "Commercial License" means a separate written agreement between You
   and the Licensor that grants rights beyond those of this License in
   exchange for a fee.

   "Commercial Exploitation" means any of the following, whether
   performed directly or through another party:

   (a) selling, renting, leasing, lending for a fee, sublicensing or
       otherwise transferring the Applications, or access to them, for
       money or any other consideration;

   (b) distributing, bundling or pre-installing the Applications with,
       or as part of, a product, device, service, subscription or
       support offering that is provided for a fee or any other
       consideration;

   (c) operating the Applications to provide a service to third parties
       for a fee or any other consideration, including advertising
       revenue - for example, a paid archiving, backup, storage, data
       transfer, deduplication or file search service;

   (d) otherwise receiving money or other financial benefit where the
       Applications, or the Software, are the subject of the transaction
       or a material means of delivering what is paid for.

   Internal use is NOT Commercial Exploitation. An individual or an
   organisation of any kind, including a commercial organisation, that
   uses the Applications to process its own data for its own needs -
   archiving, backing up, storing, transferring or searching its own
   files and those of its employees - does not engage in Commercial
   Exploitation, even though the organisation as a whole operates for
   profit.


1. FREE USE OF THE APPLICATIONS

   Subject to Sections 2, 3 and 4, the Licensor hereby grants You a
   worldwide, royalty-free, non-exclusive, non-transferable license,
   perpetual unless terminated under Section 11, to:

   (a) install, run and use the Applications on any operating system,
       hardware platform and architecture, without any limitation on the
       number of installations, users, servers, cores or instances, for
       any purpose other than Commercial Exploitation;

   (b) automate the Applications for Your own internal use, for example
       by scripts, scheduled jobs or Your own internal tools that run
       the Applications as separate processes;

   (c) reproduce and distribute exact, unmodified copies of the
       Applications, and of the Software as a whole, free of charge,
       provided that this License accompanies every copy and that the
       distribution is not itself Commercial Exploitation;

   (d) build the Applications from the source code of the Software. To
       the extent that building an Application links the Library into
       that Application, such linking is permitted by this Section and
       does not require a Commercial License;

   (e) modify the Software for Your own internal use - for example, to
       fix a defect or to build it on a platform the Licensor does not
       support - provided that the modified version is not distributed
       or made available to any third party.

   No fee, registration, notification or separate permission from the
   Licensor is required to exercise these rights.


2. NOTICES (MANDATORY CONDITION)

   The rights granted in Sections 1 and 3.4 are conditional upon
   compliance with this Section.

   2.1 You must retain, in unmodified form, all copyright notices,
       authorship notices and license notices contained in the Software,
       including the file headers of its source and header files. A copy
       of this License must accompany any distribution of the Software
       or of the Applications.

   2.2 You must not remove, hide or alter the name of the Software, the
       copyright notice, the authorship information or the license
       information displayed by the Applications, such as their
       "--version" or "--help" output or their "About" screen.

   2.3 You must not state or imply that the Licensor endorses, sponsors
       or supports You or Your Product.


3. THE LIBRARY AND THE READ-ONLY EDITION

   3.1 Linking requires a Commercial License. Except for the Read-only
       Edition licensed under Section 3.4, this License grants NO right
       to link, embed or incorporate the Library into Your Product.
       Each of the following requires a Commercial License, whether Your
       Product is commercial or free of charge, proprietary or open
       source, distributed or used only internally:

       (a) linking the Library into Your Product statically (such as
           libdanube.a or danube.lib) or dynamically (such as
           libdanube.so, libdanube.dylib or danube.dll), including
           loading it at run time;

       (b) compiling the source code of the Library, or any part of it,
           into Your Product;

       (c) calling the programming interface of the Library from Your
           Product by any means, including through bindings, wrappers
           or foreign function interfaces written for another
           programming language.

   3.2 Products built around the Applications. Distributing Your
       Product, or making it available to third parties as a service,
       where Your Product relies on the Applications for its function -
       for example, a front end, a plugin or a service that runs the
       Applications as separate processes on behalf of its users -
       requires a Commercial License. Automation for Your own internal
       use under Section 1(b) remains free of charge.

   3.3 Commercial License terms. The scope, price and any other terms
       of a Commercial License, including any attribution Your Product
       must carry, are set by the written agreement concluded with the
       Licensor. Requests: forman@anyks.com

   3.4 The Read-only Edition is free of charge. The Licensor hereby
       grants You a worldwide, royalty-free, non-exclusive,
       non-transferable license, perpetual unless terminated under
       Section 11, to use the Read-only Edition for any purpose,
       commercial ones included, and in particular to:

       (a) link, embed or incorporate the Read-only Edition into Your
           Product, statically or dynamically, or load it at run time,
           whether Your Product is distributed free of charge or for a
           fee, proprietary or open source, and whether You operate it
           for Your own needs or as a service to third parties;

       (b) call the programming interface of the Read-only Edition from
           Your Product by any means, including through bindings,
           wrappers or foreign function interfaces written for another
           programming language;

       (c) reproduce and distribute exact, unmodified copies of the
           Read-only Edition as published by the Licensor, together
           with the archives that carry it, free of charge or as part
           of Your Product, provided that this License accompanies
           every copy;

       (d) build the Read-only Edition from the unmodified source code
           of the Software by means of the Software's own official
           build system and its read-only switch, and to use, link and
           distribute that build under this Section.

       These rights reach the Read-only Edition and nothing else.
       Building the Software without the read-only switch, linking the
       Library, calling its C++ interface, or taking into Your Product
       any part that can write to a container remains governed by
       Section 3.1 and requires a Commercial License. This is not a
       distinction on paper: the Read-only Edition carries no writing
       symbols at all, they are absent from the export table of the
       built module, and the Licensor measures that table on every
       platform it publishes. Sections 4.1 and 4.2 do not restrict this
       Section: the Read-only Edition is an edition the Licensor
       publishes, not a Component taken out of the Software by You.


4. RESTRICTIONS

   4.1 No Commercial Exploitation. You must not engage in Commercial
       Exploitation of the Applications or of the Software without a
       Commercial License. This Section does not apply to the Read-only
       Edition, which Section 3.4 licenses for commercial use free of
       charge.

   4.2 Integrity of the Software. You must NOT extract, copy, split off,
       port, translate, transcribe, adapt or otherwise reuse any
       Component separately from the Software. In particular, and
       without limitation, You must not:

       (a) copy source files or portions of source code of the Software
           into another project, library, framework or code base;

       (b) publish, distribute or make available any Component as a
           standalone library, package, module, plugin, snippet or
           example, whether in source or binary form;

       (c) mechanically or manually derive a separate work from a
           Component, including by machine translation to another
           programming language or by automated code generation.

       Build-time configuration of the Software by means of its own
       official build system (for example, disabling optional features
       or optional third-party dependencies) is expressly permitted and
       does not constitute a violation of this Section.

       This Section applies exclusively to material authored by the
       Licensor. It places no restriction whatsoever on Third-Party
       Software. It does not restrict the Read-only Edition, which the
       Licensor publishes as its own edition under Section 3.4.

   4.3 No repackaging or re-licensing. You must not distribute the
       Software, the Applications or any Component under a different
       name, present them as Your own work, or sublicense or re-license
       them under any other terms. You must not distribute modified
       versions of the Software or of the Applications.

   4.4 Trademarks. This License grants no rights to use the names
       "ANYKS", "Danube", "DAN", the Licensor's name, or any associated
       logos or trade dress, except to identify the Software truthfully
       as the origin of the Applications You use or distribute under
       Section 1(c), or of the Read-only Edition You use or distribute
       under Section 3.4.


5. YOUR DATA

   Your Data belongs to You. The Licensor claims no right in Your Data,
   and this License places no restriction on how You use it: You may
   store, transfer, publish, sell or otherwise exploit Your Data,
   including archives and containers created by the Applications, for
   any purpose, commercial ones included. Using Your Data in this way
   is not Commercial Exploitation of the Applications.

   Nothing in this License requires You to disclose, publish or license
   the source code of Your own software or grants the Licensor any right
   in it.


6. CODE SHARED WITH AWH

   Some parts of the Software are also published by the Licensor as
   part of AWH (ANYKS Web Hub) under the AWH License. Within Danube they
   are licensed under this License. This License does not limit any
   right You obtain in AWH when You receive AWH itself from the
   Licensor under the AWH License, and the AWH License grants no right
   in Danube.


7. THIRD-PARTY SOFTWARE

   The Software uses and may bundle Third-Party Software (including,
   without limitation, compression, cryptography and text-processing
   libraries), each of which is distributed under its own license terms.
   They are listed in the file THIRD-PARTY-LICENSES.md.

   This License applies solely to the material authored by the Licensor.
   It does not modify, restrict or extend the terms applicable to
   Third-Party Software, and it grants the Licensor no rights in it.
   Nothing in this License - and in particular nothing in Sections 3 and
   4 - may be construed as limiting any right You have in Third-Party
   Software under its own license, including the right to use it
   separately from the Software.

   In the event of a conflict, the terms of the respective third-party
   license govern that third-party software, and You are responsible for
   complying with them.


8. DISCLAIMER OF WARRANTY

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
   NONINFRINGEMENT. THE ENTIRE RISK AS TO THE QUALITY, PERFORMANCE,
   SECURITY AND SUITABILITY OF THE SOFTWARE IS WITH YOU, INCLUDING THE
   RISK OF LOSS OR CORRUPTION OF YOUR DATA. THE LICENSOR IS UNDER NO
   OBLIGATION TO PROVIDE SUPPORT, MAINTENANCE, UPDATES OR BUG FIXES,
   UNLESS A COMMERCIAL LICENSE PROVIDES OTHERWISE.


9. LIMITATION OF LIABILITY

   IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN CONTRACT, TORT,
   NEGLIGENCE OR OTHERWISE, SHALL THE LICENSOR BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES,
   INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, LOSS OF DATA, BUSINESS
   INTERRUPTION OR COMPUTER FAILURE, ARISING OUT OF THE USE OF OR
   INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   SUCH DAMAGES. TO THE EXTENT THAT APPLICABLE LAW DOES NOT ALLOW THE
   EXCLUSION OF CERTAIN LIABILITY, THE LICENSOR'S TOTAL AGGREGATE
   LIABILITY SHALL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY YOU TO THE
   LICENSOR FOR THE SOFTWARE, WHICH MAY BE ZERO.


10. COMMERCIAL LICENSE PRECEDENCE

   Where You hold a Commercial License, its terms prevail over this
   License to the extent they differ. Rights not granted by a Commercial
   License remain governed by this License.


11. TERM AND TERMINATION

   11.1 This License is effective until terminated.

   11.2 Your rights under this License terminate automatically if You
        breach any of its terms, in particular Sections 2, 3 and 4.

   11.3 If the breach is curable and You cure it within thirty (30)
        days of becoming aware of it, Your rights are reinstated
        automatically and retroactively, unless the Licensor has
        terminated Your rights expressly and in writing for a repeated
        breach.

   11.4 Upon termination, You must cease all use and distribution of
        the Software and of the Applications. Sections 5, 7, 8, 9 and 12
        survive termination; Your Data remains Yours.


12. MISCELLANEOUS

   12.1 If any provision of this License is held unenforceable, it shall
        be reformed only to the extent necessary to make it enforceable,
        and the remaining provisions shall remain in full force.

   12.2 Failure by the Licensor to enforce any provision is not a waiver
        of that provision.

   12.3 The Licensor may publish new versions of this License for future
        releases of the Software. Each release of the Software is
        governed by the version of the License distributed with it; You
        may also choose to use any later version published by the
        Licensor.

   12.4 This License, together with any Commercial License You hold, is
        the entire agreement between You and the Licensor concerning the
        Software and supersedes any prior understanding.


                          END OF TERMS AND CONDITIONS


-------------------------------------------------------------------------
SUMMARY (informative, not part of the License)

  YOU MAY:      use the "dan" archiver and the other Danube applications,
                including the graphical one, free of charge on any OS,
                on any number of machines - at home, in a non-profit or
                in a commercial company - for your own needs; script
                them for internal use; share unmodified copies for free.
                You may also embed the read-only edition of the library
                (danube_ro, with danube_read.h) into your own product -
                free of charge, for non-commercial AND commercial use,
                including a product you sell, as long as you ship the
                unmodified edition and this license text with it.

  YOU MAY NOT:  sell the applications, ship them as part of a paid
                product or service, or run them to provide a paid
                service to others; link the Danube library itself into
                your own product (statically or dynamically) - both need
                a paid Commercial License (forman@anyks.com). The paid
                rule covers the library that can WRITE containers; the
                read-only edition above is free. Also no taking Danube
                apart, no distributing modified versions, no repackaging
                or re-licensing. One exception to that last clause is
                spelled out on purpose: building the read-only edition
                from unmodified sources with Danube's own build system
                and its read-only switch is allowed, and that build is
                distributed under Section 3.4.

  YOUR DATA:    archives and files you create with Danube are yours to
                use in any way, commercial uses included.

  NOTE:         all of the above concerns the code written by the author
                of Danube only. Bundled third-party libraries (A-NTS,
                zlib, Zstandard, PCRE2 and so on) keep their own
                licenses and are not restricted by this one in any way.

  VERSIONS:     1.0, September 2026 - the first published text.
                1.1, October 2026 - the read-only edition (danube_ro)
                became free of charge for every use, commercial ones
                included: Section 3.4 and the matching definition in
                Section 0, with the read-only edition carved out of
                Sections 2, 3.1, 4.1, 4.2, 4.4 and this summary. Rights
                concerning the library that writes containers did not
                change. Under Section 12.3 each release stays governed
                by the license shipped with it, and a later version may
                be chosen instead.
-------------------------------------------------------------------------
