Crypta is a privacy‑first, decentralized datastore and app platform — a modern fork of Hyphanet/Freenet.
Crypta is a platform for censorship‑resistant communication and publishing. It is a fork of Hyphanet (formerly Freenet) that builds on its core ideas while modernizing usability, performance, and developer experience. Crypta provides a peer‑to‑peer, distributed, encrypted, and decentralized datastore on top of which applications such as forums, chat, micro‑blogs, and websites can run without central servers.
Why fork? Hyphanet/Freenet pioneered privacy‑preserving routing and content‑addressed storage, but several long‑standing frictions hold it back:
- Usability and onboarding: confusing opennet/darknet concepts, painful first‑run setup, and limited, dated UIs make it hard for new users to join and stay.
- Performance for cold content: the anonymity model and multi‑hop routing can lead to slower retrievals, especially for infrequently accessed data; bootstrap and NAT traversal further compound early‑session latency.
- Observability without compromising privacy: network‑wide performance and health are hard to measure, making tuning and evolution slow and error‑prone.
Crypta’s vision is to keep the privacy and resilience, while making it pleasant, fast, and sustainable to use and build on:
- User experience first: a modern web UI, sensible defaults, and a one‑click guided onboarding that hides complexity (smart opennet bootstrap, optional darknet linking later).
- Faster routing and retrieval: adaptive, locality‑aware routing; popularity‑sensitive caching; opportunistic prefetch; and transport updates (e.g., QUIC/HTTP‑3, improved congestion control, and better NAT traversal) for lower tail latency.
- Safe observability: privacy‑preserving telemetry and reproducible benchmarking harnesses to inform tuning without leaking user data.
- A better platform: typed configuration and testable interfaces to make extending the network straightforward.
This repository contains the reference node (the “Crypta reference daemon”) that participates in the network, stores data, and serves applications.
- Overview
- Quick Start
- Building
- Testing
- Code Quality
- Running Your Build
- Development Guidelines
- Dependencies
- Spotless + Dependency Verification
- Versioning
- Branching & Releases
- Update System
- Architecture Overview
- License
Choose one of the following options.
-
Windows
- This repository does not build Windows installers. Use the portable distribution or the jpackage app image below. If a Windows installer is published on the project’s Releases page, you can install it by double‑clicking; if SmartScreen warns, click “More info” → “Run anyway”.
-
macOS (.dmg)
- Download the DMG from the Releases page and open it.
- Drag “Crypta.app” to Applications. If Gatekeeper blocks it, right‑click → Open (or allow in Settings → Privacy & Security).
- Launch “Crypta” from Applications/Launchpad.
-
Debian/Ubuntu (.deb)
- Install from a local .deb:
sudo apt install ./Crypta-<version>_amd64.deb # adjust arch/version
- Install from a local .deb:
-
Fedora/RHEL/openSUSE (.rpm)
- Install from a local .rpm:
sudo dnf install ./Crypta-<version>.x86_64.rpm # or: sudo zypper install ./...
- Install from a local .rpm:
-
Snap (.snap)
- Local snap install (not from store):
sudo snap install --dangerous ./crypta-<version>.snap
- Local snap install (not from store):
-
Flatpak (.flatpak or .flatpakref)
- Local Flatpak bundle:
flatpak install --user ./crypta-<version>-amd64.flatpak flatpak run network.crypta.cryptad//v1
- Local Flatpak bundle:
Linux servers (no desktop environment)
- On systems without a desktop environment, the installer (deb/rpm) creates a systemd unit
cryptad.serviceand enables it, but does not start it automatically. You must start it manually after installation:sudo systemctl start cryptad
After installation, start Crypta from your OS application launcher (on desktops). The app starts the daemon, opens the UI in your browser on the first successful start, and manages start/stop for you.
Build the portable distribution and run the Swing launcher without installing system packages:
./gradlew assembleCryptadDist
build/cryptad-dist/bin/cryptad-launcher # Windows: cryptad-launcher.batThe launcher starts the daemon, streams live logs, waits for a structured readiness file under the
resolved runtime directory (currently <runDir>/platform-ui.properties), and opens
http://localhost:<port>/ on the first successful start. If the readiness file cannot be used,
the launcher can still fall back to the legacy Starting FProxy on ...:<port> log line.
Shortcuts (global):
- ↑/↓ one row; PgUp/PgDn one page.
- ←/→ move focus among the three buttons (wrap‑around).
- Enter/Space click the focused button; s start/stop; q quit.
Notes
- Live output combines the wrapper’s console with tailing of the wrapper log file when configured, so JVM logs appear while the wrapper is running.
- On Unix/macOS the launcher uses a pseudo‑tty (via
script) when available to reduce buffering.
We use the Gradle Wrapper. If you trust the committed wrapper, you can build immediately.
Prerequisites:
- Java 25 or newer
- A POSIX shell or Windows terminal
Build the node JAR (prints SHA‑256 of the output):
./gradlew buildJarClean build:
./gradlew clean buildJarCryptad now uses a partial multi-project Gradle build.
- The root project remains the daemon/application project. It still owns the daemon JAR, tests,
run,runLauncher,assembleCryptadDist, and jpackage task graph. :foundation-supportowns the current stable generic support subset undernetwork.crypta.support,network.crypta.support.api,network.crypta.support.io,network.crypta.support.compress,network.crypta.support.math,network.crypta.support.transport.ip, andnetwork.crypta.support.http, plusnetwork.crypta.io.AddressIdentifier,network.crypta.io.WritableToDataOutputStream,network.crypta.node.FSParseException,network.crypta.node.FastRunnable,network.crypta.node.SemiOrderedShutdownHook, andnetwork.crypta.support.IllegalValueException.:foundation-store-contractsowns the neutralnetwork.crypta.storecontractsBlockMetadata,GetPubkey, andStorableBlock, plus the store-maintenance alert seam undernetwork.crypta.store.alerts.:foundation-crypto-keysownsnetwork.crypta.crypt,network.crypta.keys, and the crypto-adjacentnetwork.crypta.support.io.BucketToolsandnetwork.crypta.support.io.PrependLengthOutputStreamhelpers.:foundation-storeowns the reusablenetwork.crypta.storeimplementations plusnetwork.crypta.store.cachingandnetwork.crypta.store.saltedhash.:interop-wireowns the narrow wire/message/schema/version/probe nucleus: leaf-safenetwork.crypta.io.commmessage/schema classes,network.crypta.node.Version,network.crypta.node.probe.ErrorandType, andnetwork.crypta.support.Serializer.:foundation-configownsnetwork.crypta.config,network.crypta.l10n, and the mainnetwork/crypta/l10n/crypta.l10n.en.propertiesresource plus shared config helpers such asDatastoreSizingSupport. Its public APIs now export:foundation-supportand:foundation-fswhere config types exposeSimpleFieldSetor filesystem-facing value types.:foundation-fsownsnetwork.crypta.fs.:foundation-compatownsnetwork.crypta.compat, including compatibility helpers such as the extracted bandwidth-detection support undernetwork.crypta.compat.bandwidth.:kernel-contentowns the compile-neutral phase-1 content slice across selectednetwork.crypta.client,network.crypta.client.events,network.crypta.client.filter,network.crypta.client.async.alerts, and MIME helpernetwork.crypta.support.MediaTypeclasses that stay free of:runtime-node, adapter, and root-composition dependencies.:kernel-transportowns the compile-neutral phase-1 transport slice across selectednetwork.crypta.io,network.crypta.io.comm, andnetwork.crypta.io.xferhelpers such as address matching, allowlist parsing, listener abstraction, I/O statistics collection, transfer throttling, and partially received block assembly that stay free of:runtime-node, adapters, and root-composition dependencies.:kernel-routingowns the compile-neutral phase-1 routing/helper slice across selectednetwork.crypta.nodevalue, exception, callback, and request-item helper types such asBaseRequestThrottle,LowLevelGetException,LowLevelPutException,RequestClient,PeerStatusCounts, andSendableRequestItem*that stay free of:runtime-node, adapters, and root-composition dependencies.:runtime-spiownsnetwork.crypta.runtime.spiand the JDK-only runtime/config boundary used by higher layers, including detached FCP peer management plus the admin-HTTP config, connectivity, connections, queue, security-levels, shared page-chrome, core-update action, first-time-wizard, symlinker, and welcome-page slices.:platform-apiowns the transport-neutral read-only Platform API v1 undernetwork.crypta.platform.api. It sits above:runtime-spi, exposes detached runtime snapshots as JSON-oriented responses, and is currently mounted at/api/v1/through a thin legacy HTTP bridge in:adapter-http-legacy-admin. The initial read-only surface covers node info, peers, config export, connectivity, and security-level snapshots;GET /api/v1/configdefaults to the effectiveCURRENTsection whensections=is omitted.:runtime-nodeowns the remaining daemon runtime body across the still-cyclicnetwork.crypta.clientasync/request engine and high-level client APIs, large slices ofnetwork.crypta.nodeafter the phase-1 routing/helper move, the retained node-coupled transport/message execution code innetwork.crypta.io,network.crypta.io.comm, andnetwork.crypta.io.xfer,network.crypta.runtime.*, and the remaining daemon-couplednetwork.crypta.support/network.crypta.support.io/network.crypta.support.apisubset that has not moved into:foundation-support.:adapter-fcpownsnetwork.crypta.clients.fcp, includingnetwork.crypta.clients.fcp.bridge.:adapter-http-legacy-adminowns the current legacynetwork.crypta.clients.httptree plus the matchingnetwork/crypta/clients/http/**main resources such asstaticfiles/**andtemplates/**. The root project no longer owns that main source/resource tree, and the remaining legacy browse/FProxy shell inside this leaf is boundary-frozen until a later PR refines it further. That shell now also hosts the temporary/api/v1/mount for:platform-api; future Web Shell and AppHost work remain separate.:thirdparty-onionownscom.onionnetworksandlib/fec.properties.:thirdparty-legacyownsorg.bitpedia,org.sevenzip, andorg.spaceroots.:launcher-desktopownsnetwork.crypta.launcher,com.jthemedetecor,oshi, and launcher resources.- The daemon runtime body now spans extracted leaves plus a thin root composition layer. The root
project still owns the daemon/application build, packaging/runtime tasks, all tests,
network.crypta.tools, and root-local composition code such asnetwork.crypta.runtime.bootstrap.DefaultNodeRuntimeBridgeFactories. - Every extracted leaf keeps its aggregated-output ownership metadata in
<leaf>/gradle/owned-output-patterns.txt. When you move main classes or resources between root and a leaf, or between leaves, update that metadata and validate it with./gradlew verifySelectiveLeafOwnershipMetadata buildJarso stale non-owner outputs do not leak back into aggregated builds. - Higher-level infrastructure now crosses a narrower boundary through
network.crypta.runtime.spi.RuntimePorts, the minimal wire-sideMessageSourceseam used by leaf-owned messages, the new phase-1:kernel-contentcontent slice, the phase-1:kernel-transporthelper slice, the phase-1:kernel-routinghelper slice, client-owned seams such asnetwork.crypta.client.async.alertsandnetwork.crypta.client.async.persistence, and runtime-owned seams such asnetwork.crypta.runtime.alerts.feed,network.crypta.runtime.fcp,network.crypta.runtime.http,network.crypta.runtime.http.security,network.crypta.runtime.peers.reference, andnetwork.crypta.runtime.persistence. - Default production bridge selection now starts in
network.crypta.runtime.bootstrap.DefaultNodeRuntimeBridgeFactories. Concrete adapter implementations stay innetwork.crypta.clients.fcp.bridge,network.crypta.clients.http.bridge, andnetwork.crypta.clients.http.updater, while higher-level runtime code depends on runtime-owned seam types such asnetwork.crypta.runtime.endpoints.fcp.FcpEndpointHandle,network.crypta.runtime.http.HttpShellContainer, andnetwork.crypta.runtime.http.security.PasswordFormPageRenderer. For HTTP, this bootstrap factory remains the production binding site that imports the concrete bridge classes from the extracted adapter leaf.
The wrapper validates the distribution URL (validateDistributionUrl=true in
gradle/wrapper/gradle-wrapper.properties). To also verify the download by checksum, add
distributionSha256Sum=<sha256> for the chosen Gradle distribution.
- Run all tests:
./gradlew test- Run a specific test class:
./gradlew test --tests *TestClassName- Run a specific test method:
./gradlew test --tests *TestClassName.methodNameFor extraction and boundary work, run the focused root boundary tests that freeze current leaf ownership and import rules:
./gradlew test --tests *KernelTransportBoundaryTest --tests *KernelContentBoundaryTest --tests *KernelRoutingBoundaryTest --tests *RuntimeNodeKernelSplitPrepBoundaryTest --tests *HttpLegacyAdminBoundaryTestThose tests also enforce the current extracted-leaf documentation convention that production
packages in :kernel-content and :runtime-node keep a package-info.java.
- Compile only:
./gradlew compileJava- Formatting via Spotless is configured; see the Spotless and Dependency Verification section if verification blocks resolution.
- Gradle daemon is enabled by default; avoid passing
--no-daemon.
To try your local build of Crypta:
- Build it with
./gradlew buildJar. - Stop your running node.
- Replace the existing node JAR with
build/libs/cryptad.jarproduced by the build. - Start your node again.
If you want to test the launcher without the real daemon, build with a dummy script that simulates output (including the FProxy line):
./gradlew -PuseDummyCryptad=true assembleCryptadDist
build/cryptad-dist/bin/cryptad-launcher
Distribution (Java Service Wrapper):
- Build a portable distribution (downloads the Tanuki wrapper and assembles bin/conf/lib):
./gradlew assembleCryptadDist
- Package it as a tar.gz:
./gradlew distTarCryptad
The resulting tree at build/cryptad-dist contains:
bin/cryptadand wrapper binariesbin/cryptad-launcher(andcryptad-launcher.baton Windows)conf/wrapper.confconfigured to uselib/*.jarlib/cryptad.jar, runtime dependencies, andlib/wrapper.jar
The launcher defers config path resolution to the runtime via AppEnv (no hard‑coded
cryptad.ini), adapting to system services or per‑user environments.
Use the repo’s Gradle defaults for daemon, parallelism, and JVM settings. Avoid --no-daemon,
--parallel, and ad-hoc CLI JVM tuning when running local builds.
Build a minimal JRE image that embeds the Cryptad distribution using direct jlink/jdeps tasks (no external runtime plugin):
# 1) Build the wrapper-based dist the jlink step consumes
./gradlew assembleCryptadDist
# 2) Create the jlink image and zip/tar.gz archives
./gradlew distJlinkCryptad
# Result:
# - build/cryptad-jlink-image/ (runnable image)
# - build/distributions/cryptad-jlink-v<version>.zip
# - build/distributions/cryptad-jlink-v<version>.tar.gz
# Launch using the embedded runtime (no system JRE required):
build/cryptad-jlink-image/bin/cryptad-launcher # Windows: cryptad-launcher.batNotes
- The jlink image includes
bin/cryptad-launcherwhich prefers the embeddedbin/javaand useslib/*for classpath. - We explicitly include key modules (e.g.,
jdk.crypto.ec,java.net.http,jdk.unsupported,java.desktop) and calljlinkdirectly. - This does not alter the existing wrapper-based distribution; it is an additional, self-contained runtime option.
bin/cryptad-launcherandcryptad-launcher.batnow auto-detect the embedded runtime: when run from the jlink image they preferimage/bin/java; outside the image they fall back to$JAVA_HOME/bin/javaorjavaonPATH.
Build a desktop app image and (on macOS/Linux) native installers with jpackage. The image embeds a minimal runtime and
bundles the portable distribution under app/cryptad-dist/ so the GUI can invoke the wrapper reliably.
Commands
# Build includes the jpackage app image.
# On Linux and macOS, it also builds native installers when tooling is present
# (Linux: DEB/RPM via `dpkg-deb`/`rpmbuild`; macOS: DMG). On Windows, installers
# are not built by `build`.
./gradlew build
# App image only
./gradlew jpackageImageCryptad
# Native installer (macOS: .dmg; Linux: .deb or .rpm)
# - Auto-picks type on Linux (prefers rpm when available)
./gradlew jpackageInstallerCryptad
# Force a specific Linux package type
./gradlew jpackageInstallerRpm # requires rpmbuild
./gradlew jpackageInstallerDeb # requires dpkg-deb
# Or override the auto-detected Linux type
./gradlew -PlinuxInstaller=rpm jpackageInstallerCryptadOutputs (macOS example)
- App image:
build/jpackage/Crypta.app - Installer:
build/jpackage/Crypta-<numeric>.dmg
Details
- App metadata: Name
Crypta, Vendorcrypta.network, App IDnetwork.crypta.cryptad. - Main entry:
network.crypta.launcher.Launcher. - Icons:
src/jpackage/macos/cryptad.icns,src/jpackage/windows/cryptad.ico,src/jpackage/linux/cryptad.png. - Included docs:
LICENSE.txt,EULA.txt(fromLICENSE),README.txt(fromREADME.md). - App layout: the launcher config (
Crypta.cfg) sets classpath toapp/cryptad-dist/lib/*.jar; jars are not duplicated inapp/. - Versioning note: jpackage enforces numeric
--app-version(e.g.,1). Installer filenames follow jpackage defaults (e.g.,Crypta-<version>.<ext>). Note: Windows installers are not built; Windows builds produce only the app image.
Linux notes
- RPM builds require
rpmbuildto be installed and on PATH. - When both
dpkg-debandrpmbuildare installed, the default task prefers RPM. You can force DEB/RPM using the tasks above or-PlinuxInstaller=<deb|rpm>. - The
buildtask on Linux now depends on building all available Linux installers (DEB/RPM) and will skip any installer type whose tool is missing.
macOS notes
- The
buildtask on macOS now also builds a.dmgviajpackage. - Unsigned DMGs are fine for local testing; macOS may require right‑click → Open or removing quarantine to run the app the first time.
Linux behavior and service
- Install location: the app image installs under
/opt/cryptad/Cryptaand the launcher/scripts expect/opt/cryptad. - Server vs. desktop detection:
- Considered a “desktop” only when a display manager (
display-manager.service) exists and is enabled or active. - As a fallback, presence of session files (
/usr/share/xsessions/*.desktopor/usr/share/wayland-sessions/*.desktop) also counts as desktop. - This avoids mislabeling headless servers that happen to default to
graphical.target.
- Considered a “desktop” only when a display manager (
- Install‑time actions:
- Server (no desktop): install a systemd unit at
/etc/systemd/system/cryptad.service, thensystemctl daemon-reloadandenableit. The service is NOT auto‑started; start it manually when ready. - Desktop: install a
.desktopentry at/usr/share/applications/crypta.desktopand refresh caches when tools are present (update-desktop-database,gtk-update-icon-cache).
- Server (no desktop): install a systemd unit at
- Accounts and data:
- Creates an explicit system group
cryptad, then a system usercryptadwith primary groupcryptad(home/var/lib/cryptad, shellnologin). - Ensures
/var/lib/cryptadexists and is owned bycryptad:cryptad(0750). Application state/log/cache directories defined in the systemd unit (e.g.,StateDirectory=cryptad) are managed by systemd on first start.
- Creates an explicit system group
- Removal and cleanup:
- DEB
postrm/RPM%preundisable and stop the unit only when it is enabled or active (race‑free check), remove the unit file, and rundaemon-reload. - Desktop caches are refreshed;
.desktopis removed when present. Scripts tolerate missing desktop tooling. - The
cryptaduser/group and data directory are preserved to avoid data loss. Remove them manually if desired.
- DEB
Manual service control (Linux)
Service management (Linux):
sudo systemctl status cryptad
sudo systemctl start cryptad # start explicitly after installation
sudo systemctl stop cryptad
sudo systemctl disable --now cryptadPackage removal behavior (Linux)
- DEB removal: disables/stops the service if enabled/active, removes
/etc/systemd/system/cryptad.service, reloads systemd, and removes the desktop entry if present. Thecryptaduser/group and/var/lib/cryptadremain. - RPM removal:
%preunperforms the same service cleanup; the user/group and data remain.
To remove the account and data explicitly (optional):
sudo systemctl disable --now cryptad || true
sudo rm -f /etc/systemd/system/cryptad.service && sudo systemctl daemon-reload
sudo rm -rf /var/lib/cryptad
sudo userdel cryptad 2>/dev/null || true
sudo groupdel cryptad 2>/dev/null || trueTroubleshooting (macOS)
- Unsigned app first‑run: right‑click → Open, or clear quarantine:
xattr -dr com.apple.quarantine "build/jpackage/Crypta.app"- See launcher logs by running the Mach‑O launcher in Terminal:
build/jpackage/Crypta.app/Contents/MacOS/Crypta 2>&1 | tee /tmp/crypta-run.log- Run the embedded JRE directly to isolate classpath issues:
cd build/jpackage/Crypta.app/Contents
./runtime/bin/java -cp "app/cryptad-dist/lib/*" network.crypta.launcher.Launcher- The Windows batch launcher (
bin/cryptad.bat) passes a per‑user anchor location to the wrapper:"wrapper.anchorfile=%LOCALAPPDATA%\Cryptad.anchor". - The Swing launcher requests a graceful stop by deleting that file; the Java Service Wrapper notices and shuts down the JVM cleanly (running shutdown hooks, flushing logs, etc.).
- If the process tree is still alive after ~25 seconds, the launcher escalates to
taskkill(first without/F, then with/F). - Advanced: To change the anchor path, customize the batch file, or pass a different property on the command line; a value in
wrapper.confis overridden by the batch property.
- Env override: set
CRYPTAD_PATHto an absolute path or a path relative to your current working directory to force a specific wrapper script, e.g.export CRYPTAD_PATH=bin/cryptad. - Default resolution order (first match wins):
- From the running
cryptad.jardirectory:<jarDir>/cryptad. - From the assembled distribution layout:
<jarDir>/../bin/cryptad. - Fallbacks from
user.dir:./bin/cryptad, then./cryptad.
- From the running
- Primary language: Java
- Code style:
- Tests: JUnit; target 80%+ coverage
- Documentation: Add or update Javadoc when editing Java files
- Runtime: Java 25+
- Tooling: Gradle Wrapper (provided in this repo)
- External libraries are managed via Gradle.
- Dependency verification is enabled. When adding or updating libraries:
- Declare versions in
gradle/libs.versions.tomland add usages inbuild.gradle.kts. - Update verification metadata so
gradle/verification-metadata.xmland keyrings reflect the new artifacts; use the commands in “Spotless + Dependency Verification” below.
- Declare versions in
Root build also includes:
:foundation-support: extracted stable support/api/io/compress/math/transport subset plusnetwork.crypta.support.http,network.crypta.io.AddressIdentifier,network.crypta.io.WritableToDataOutputStream,network.crypta.node.FSParseException,network.crypta.node.FastRunnable,network.crypta.node.SemiOrderedShutdownHook, andnetwork.crypta.support.IllegalValueException.:foundation-store-contracts: neutral store contracts plus the store-maintenance alert seam shared by store code and root runtime/UI adapters.:foundation-crypto-keys: extractednetwork.crypta.crypt,network.crypta.keys, and the adjacentBucketTools/PrependLengthOutputStreamhelpers.:foundation-store: extracted reusablenetwork.crypta.storeimplementations, caching, and salted-hash storage code.:interop-wire: extracted wire/message/schema/address/version/probe nucleus plusnetwork.crypta.support.Serializer.:foundation-config: extracted config/l10n code, main l10n resources, and shared sizing helpers such asDatastoreSizingSupport. Its public APIs re-export:foundation-supportand:foundation-fswhere required.:launcher-desktop: Swing launcher code and desktop/theme detection dependencies.:thirdparty-onion: Onion FEC and related vendored sources/resources.:thirdparty-legacy: Bitpedia, SevenZip, and Spaceroots vendored code.:kernel-content: compile-neutral phase-1 content leaf spanning selectednetwork.crypta.client,network.crypta.client.events,network.crypta.client.filter,network.crypta.client.async.alerts, andnetwork.crypta.support.MediaType.:kernel-transport: compile-neutral phase-1 transport leaf spanning selectednetwork.crypta.io,network.crypta.io.comm, andnetwork.crypta.io.xferhelpers such as allowlist parsing, listener abstraction, statistics collection, throttling, and partially received block assembly.:kernel-routing: compile-neutral phase-1 routing/helper leaf spanning selectednetwork.crypta.nodevalue, exception, callback, and request-item helper types such asBaseRequestThrottle,LowLevelGetException,LowLevelPutException,RequestClient,PeerStatusCounts, andSendableRequestItem*.:runtime-spi: JDK-only runtime ports plus immutable config snapshot/value types used by FCP and other infrastructure code.:platform-api: transport-neutral read-only Platform API v1 built on top of:runtime-spi, currently mounted under/api/v1/through the legacy HTTP admin adapter.:runtime-node: extracted daemon runtime body across the remaining cyclic/high-levelnetwork.crypta.clientbody, the remaining peer/request/routing-engine and transport-heavynetwork.crypta.node/network.crypta.runtime.*slices, the retained node-coupled transport/message execution code innetwork.crypta.io*, and the remaining daemon-coupled support helpers.:adapter-fcp: extractednetwork.crypta.clients.fcpadapter code, includingnetwork.crypta.clients.fcp.bridge.:adapter-http-legacy-admin: extracted legacynetwork.crypta.clients.httpadapter code plusnetwork/crypta/clients/http/**main resources. The root project no longer owns that main HTTP source/resource tree, and the remaining browse/FProxy shell in this adapter is boundary-frozen for now.:foundation-fsand:foundation-compat: extracted filesystem/environment and compatibility leaf modules used by the root daemon.:foundation-compatalso carries the wizard-neutral bandwidth-detection helpers now used by first-time setup flows.
When Gradle dependency verification is strict, Spotless may fail to resolve formatter artifacts (e.g., google-java-format). If that happens:
- Temporarily set verification to lenient in
gradle.properties:org.gradle.dependency.verification=lenient
- Write verification metadata (SHA256 + PGP):
./gradlew --write-verification-metadata sha256,pgp spotlessApply- Optional exact version refresh:
./gradlew --refresh-dependencies --write-verification-metadata sha256,pgp spotlessApply
- Faster alternative (no formatting run):
./gradlew --write-verification-metadata sha256,pgp spotlessInternalRegisterDependencies
- Confirm entries in
gradle/verification-metadata.xmlforcom.google.googlejavaformatand trusted keys. - Restore strict mode:
org.gradle.dependency.verification=strict
- Validate:
./gradlew spotlessApply
Tip: Keep the Spotless formatter at the intended version (currently googleJavaFormat("1.28.0")). If verification still blocks, re‑write metadata including pgp and ensure a group‑level trusted key entry. Commit updated verification keyring files as appropriate.
- The build number is a single integer in
build.gradle.kts(e.g.,version = "<int>"). - During build, tokens are replaced into the generated version source file (e.g.,
@build_number@,@git_rev@). - Version strings support both Cryptad and Fred formats for wire compatibility; protocol compatibility enforces minimum builds.
- Standard branching and release workflow: see
docs/standard-git-branching-and-release-workflow.md(validated copy). The original wiki page is also available: https://github.com/crypta-network/cryptad/wiki/Standard-Git-Branching-and-Release-Workflow-for-Cryptad - Release workflow and operations runbook
- Core updates use a package‑based updater (“CoreUpdater”). It subscribes to an
info/<N>JSON descriptor via the existing update USK, selects an OS/arch‑specific installer (deb/rpm/dmg/exe/flatpak/snap), and downloads tonodeDir/updates/core/<version>/. - Installing the OS package is a user/OS action. On Linux, the UI may hand off to the system’s software center or PackageKit. On macOS/Windows, follow the platform guidance shown in the UI.
- JAR Update‑over‑Mandatory (UOM) for the core is disabled in favor of the package flow.
- For developer testing, replacing
build/libs/cryptad.jarmanually (as noted above) is fine; for production use CoreUpdater and platform packages.
- Build/module layout:
- Root project
:cryptadremains the daemon/application build and still owns the strongly coupled composition layer, all tests, packaging/runtime tasks, root-local bridge selection, andnetwork.crypta.tools. - Leaf subprojects are
:foundation-support,:foundation-store,:foundation-store-contracts,:foundation-crypto-keys,:interop-wire,:foundation-config,:foundation-fs,:foundation-compat,:kernel-content,:kernel-transport,:kernel-routing,:runtime-spi,:platform-api,:runtime-node,:adapter-fcp,:adapter-http-legacy-admin,:thirdparty-onion,:thirdparty-legacy, and:launcher-desktop.
- Root project
- Core network (
network.crypta.node):Node,PeerNode,PeerManager,PacketSender,RequestStarter,RequestScheduler,NodeUpdateManager. - Storage (
network.crypta.store):FreenetStore,CHKStore,SSKStore,SlashdotStore.:foundation-storenow owns the reusable store implementations, cache layer, and salted-hash storage code.:foundation-store-contractsowns the neutral contracts plus thenetwork.crypta.store.alertsseam used by root runtime/UI adapters such asUserAlertManagerStoreAlertSink. - Crypto (
network.crypta.crypt): AES, DSA/ECDSA, SHA‑256,RandomSource/Yarrow. This package now lives in:foundation-crypto-keys. - Keys (
network.crypta.keys):ClientCHK,ClientSSK,FreenetURI, USK. This package now lives in:foundation-crypto-keys. - Wire/message nucleus (
network.crypta.io.comm,network.crypta.node.Version,network.crypta.node.probe,network.crypta.support.Serializer)::interop-wireowns the leaf-safe message/schema/address/version/probe subset, includingMessage,MessageType,Peer,FreenetInetAddress,Version, and the probe enums.:kernel-transportnow owns the compile-neutral transport helper slice across selectednetwork.crypta.io,network.crypta.io.comm, andnetwork.crypta.io.xferclasses such asAllowedHosts,NetworkInterface,IOStatisticCollector,SocketHandler,PacketThrottle, andPartiallyReceivedBlock.:kernel-routingnow owns the compile-neutral phase-1network.crypta.nodehelper/value slice, includingBaseRequestThrottle,LowLevelGetException,LowLevelPutException,RequestClient,PeerStatusCounts,RecentlyFailedReturn, andSendableRequestItem*.:runtime-nodekeeps the node-coupled transport/socket/filter side ofnetwork.crypta.io*plus the remaining peer, scheduler, request-sender, and routing-engine side ofnetwork.crypta.node, andMessagenow depends on the minimalMessageSourceseam rather than directly onPeerContext. - Clients:
network.crypta.client, FCP (network.crypta.clients.fcp), HTTP (network.crypta.clients.http).:kernel-contentnow owns the compile-neutral phase-1 content slice: selected client value/archive/helper classes, immutable client event values, a conservative subset of filter helper/parser types, the fullnetwork.crypta.client.async.alertsseam, and the MIME helpernetwork.crypta.support.MediaType.:runtime-nodestill owns the cyclic async scheduler/request engine, high-level client APIs, and the remaining filter/archive surfaces that still depend on runtime-owned request and node types. The async client layer also retains client-local seams undernetwork.crypta.client.async.persistenceso runtime bridges can recover durable requests without owning those contracts.network.crypta.clients.fcpnow lives in:adapter-fcp. It consumes execution, randomness, transfer policy, lifecycle, config access, and detached peer mutations throughRuntimePortsand FCP-local adapters instead of reaching directly into daemon internals for those concerns. FCP bootstrap now flows throughFcpServerDependenciesandCoreFcpServerDependenciesFactory, with package-local seams such asFcpServerRuntimeSupport,FcpMessageRuntimeSupport,FcpFetchRuntimeSupport, andFcpInsertRuntimeSupportsplitting server-owned, message-owned, GET/fetch, and insert/USK concerns. Runtime-owned FCP seam types now live undernetwork.crypta.runtime.fcpandnetwork.crypta.runtime.endpoints.fcp, while concrete persistent-request services, queue adapters, alert-feed adapters, and endpoint-handle wrappers now live undernetwork.crypta.clients.fcp.bridge.network.crypta.clients.httpnow lives in:adapter-http-legacy-admintogether with itsstaticfiles/**andtemplates/**resources. The migrated HTTP management and shell slices cross the boundary in three layers:RuntimePortsfor JDK-only detached runtime state,:platform-apifor the read-only Platform API v1 router and JSON surface currently mounted at/api/v1/, runtime-owned shell and password-prompt seams undernetwork.crypta.runtime.httpandnetwork.crypta.runtime.http.security, and client-local helpers such asBookmarkRuntimeSupport,FProxyRuntimeSupport,HttpShellFProxyBootstrap, andFProxyRegistrarDependencies. Concrete HTTP shell, bookmark, GeoIP, security-page, and updater-action adapters now live undernetwork.crypta.clients.http.bridgeandnetwork.crypta.clients.http.updater, while root-local bridge selection stays inDefaultNodeRuntimeBridgeFactories. The remaining legacy browse/FProxy tree inside:adapter-http-legacy-adminis intentionally boundary-frozen until a later PR refines it further, and production code outside the adapter should keep depending on runtime seams rather than taking newnetwork.crypta.clients.http.*dependencies. - Runtime SPI (
network.crypta.runtime.spi): JDK-only ports and detached DTOs such asRuntimePorts,ConfigPort,NodeInfoPort,PeerPort,ConnectionsPagePort,ConnectionsSupportPort,DarknetConnectionsPort,DarknetMessagingPort,QueuePagePort,QueueDownloadPort,QueueInsertPort,QueueMutationPort,QueueSupportPort,QueueCompletionPort,SecurityLevelsPort,PageChromePort,CoreUpdateActionPort,FirstTimeWizardPort,ToadletSymlinkPort,WelcomePagePort,WelcomeActionPort,ConfigSnapshot,ConfigFieldSet,QueuePageSnapshot,QueueInsertOutcome,SecurityLevelsSnapshot,PageChromeSnapshot,FirstTimeWizardSnapshot,FirstTimeWizardCurrentBandwidthLimits,ToadletSymlinkEntry, andWelcomePageSnapshot. - Runtime package families (
network.crypta.runtime.*): most behaviorful runtime code now lives in:runtime-node, including startup/CLI wiring such asNodeStarter,NodeBootstrap,NodeCli, andNodeConfigManager; core SPI adapters such asLegacyRuntimePorts,LegacyConfigPort,LegacyConnectivityPort,LegacyNodeInfoPort,LegacyPeerPort,LegacyRequestQueuePort,LegacySecurityLevelsPort, andLegacyCoreUpdateActionPort; page-oriented admin adapters such asLegacyConnectionsPagePort,LegacyQueuePagePort,LegacyPageChromePort,LegacyFirstTimeWizardPort, andLegacyWelcomePagePort; endpoint glue such asClientEndpoints,NodeClientCoreInit, andNodeClientPersistence; shell/password seams underruntime.http; and updater classes such asNodeUpdateManagerandCoreUpdater. The root project keeps the composition classDefaultNodeRuntimeBridgeFactories, which selects the concrete FCP and HTTP bridge implementations from the extracted adapter leaves. - Config + localization leaf (
:foundation-config):network.crypta.config,network.crypta.l10n, and the main l10n properties. Its public APIs re-export:foundation-supportand:foundation-fswhere config surfaces exposeSimpleFieldSetor filesystem-facing types. Shared setup helpers such asDatastoreSizingSupportnow also live in this leaf. Higher layers should still preferRuntimePorts#config()and the rootnetwork.crypta.runtime.core.LegacyConfigPortbridge instead of reaching through daemon internals. - Support foundation leaf (
:foundation-support): stable generic support, support-api, support-io, support-compress, support-math, transport-IP, and support-http classes plusnetwork.crypta.io.AddressIdentifier,network.crypta.io.WritableToDataOutputStream,network.crypta.node.FSParseException,network.crypta.node.FastRunnable,network.crypta.node.SemiOrderedShutdownHook, andnetwork.crypta.support.IllegalValueException. - Support (
network.crypta.support): logging, data structures, threading, and helpers are now split between:foundation-supportand the root project. Keep generic reusable utilities in the foundation leaf; daemon-coupled support code still remains in the root. - Launcher/Desktop:
:launcher-desktopprovidesnetwork.crypta.launcher,com.jthemedetecor, launcher resources, and desktop-theme integration. - Extracted foundations:
:foundation-supportprovides the stable generic support subset,:foundation-store-contractsprovides neutral store contracts and alert seams,:foundation-crypto-keysprovidesnetwork.crypta.cryptandnetwork.crypta.keys,:foundation-storeprovides reusable store implementations,:interop-wireprovides the wire/version/probe nucleus,:foundation-configprovides config/l10n plus datastore-sizing helpers,:foundation-fsprovidesnetwork.crypta.fs, and:foundation-compatprovidesnetwork.crypta.compatplus compatibility helpers such as the extracted bandwidth-detection support. - Runtime boundary leaves:
:kernel-contentprovides the compile-neutral phase-1 content slice across selectednetwork.crypta.client*classes plusnetwork.crypta.support.MediaType;:kernel-transportprovides the compile-neutral phase-1 transport slice across selectednetwork.crypta.io*helpers;:kernel-routingprovides the compile-neutral phase-1network.crypta.nodehelper slice across selected request/routing value, exception, callback, and request-item types;:runtime-spiprovidesnetwork.crypta.runtime.spi;:platform-apiprovides the transport-neutral read-only Platform API v1;:runtime-nodeprovides the extracted daemon runtime body across the remaining cyclic/high-levelnetwork.crypta.clientbody, the remaining peer/request/routing-enginenetwork.crypta.node/network.crypta.runtime.*slices, the retained node-coupled transport/message execution code, and the remaining daemon-coupled support helpers;:adapter-fcpprovidesnetwork.crypta.clients.fcp; and:adapter-http-legacy-adminprovides the current legacynetwork.crypta.clients.httpclasses and resources. - Vendored libraries:
:thirdparty-onionprovidescom.onionnetworks,:thirdparty-legacyprovidesorg.bitpedia,org.sevenzip, andorg.spaceroots.
You generally do not need to install libraries manually; Gradle resolves them.
Crypta is free software licensed under the GNU General Public License, version 3 only. See LICENSE for the full text.
Some bundled components may be under permissive licenses (e.g., Apache‑2.0, BSD‑3‑Clause). These are compatible with GPLv3 and included under their respective terms.
