The embedded relay stores every event the app receives from relays, through a hook in LocalCache that skips decrypted DM contents and events read back from the local relay. Because the store now holds events from auth-gated sources, the exposed socket requires NIP-42 auth as a logged-in account. Adds a shared management screen (overview, browse, settings) and the grouped stats quartz needs for it, and reuses EventSync for the history backfill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EpZTDc2h4xMDaXNmv8Lic3
Amethyst
Nostr Client for Android
Join the social network you control.
Download and Install
Android
Desktop
| OS | CLI install | Direct download |
|---|---|---|
| macOS (Apple Silicon) | brew install --cask amethyst-nostr |
.dmg arm64 |
| Windows 10/11 | winget install VitorPamplona.Amethyst |
.msi · .zip portable |
| Debian/Ubuntu | — | .deb |
| Fedora/RHEL/openSUSE | — | .rpm |
| Any Linux | — | AppImage · .tar.gz |
Coming soon (separate PR): Scoop (Windows), AUR (Arch Linux).
Build from source: see BUILDING.md.
Install troubleshooting (Gatekeeper / SmartScreen / AppImage): see BUILDING.md § Troubleshooting installs.
Verifying the APK signature
If you sideload Amethyst (Obtainium, GitHub Releases, Zap Store), verify that your
APK is signed by the official release key before installing. All official Amethyst
APKs — both the googleplay and fdroid flavors — are signed with the same
certificate, whose SHA-256 fingerprint is:
C2:D0:AA:86:BC:B6:B6:20:90:56:1A:41:BB:E3:36:E9:8B:78:C2:D0:21:0A:49:8D:C8:85:F2:8E:13:48:CF:17
To check a downloaded APK yourself, run (apksigner ships with the Android SDK
build-tools):
apksigner verify --print-certs amethyst-*.apk
and confirm the reported Signer #1 certificate SHA-256 digest is
c2d0aa86bcb6b62090561a41bbe336e98b78c2d0210a498dc885f28e1348cf17.
Without the Android SDK, keytool -printcert -jarfile amethyst-*.apk (bundled
with any JDK) prints the same SHA-256 fingerprint.
With AppVerifier, paste or share the APK and compare against:
com.vitorpamplona.amethyst
C2:D0:AA:86:BC:B6:B6:20:90:56:1A:41:BB:E3:36:E9:8B:78:C2:D0:21:0A:49:8D:C8:85:F2:8E:13:48:CF:17
Supported Features
- Basic protocol flow (NIP-01)
- Follow List (NIP-02)
- OpenTimestamps Attestations (NIP-03)
- Encrypted Direct Message (NIP-04)
- DNS-based Identifiers (NIP-05)
- Key Derivation from Mnemonic (NIP-06)
- window.nostr for Web Browsers (NIP-07, Not applicable)
- Handling Mentions (NIP-08)
- Event Deletion Request (NIP-09)
- Text Notes and Threads (NIP-10)
- Relay Information Document (NIP-11)
- Proof of Work (NIP-13)
- Subject Tag in Text Events (NIP-14)
- Nostr Marketplace (NIP-15)
- Private Direct Messages (NIP-17)
- Reposts (NIP-18)
- bech32-encoded Entities (NIP-19)
- nostr: URI Scheme (NIP-21)
- Comment (NIP-22)
- Long-form Content (NIP-23)
- Extra Metadata Fields and Tags (NIP-24)
- Reactions (NIP-25)
- Delegated Event Signing (NIP-26)
- Text Note References (NIP-27)
- Public Chat (NIP-28)
- Relay-based Groups (NIP-29)
- Custom Emoji (NIP-30)
- Dealing with Unknown Events (NIP-31)
- Labeling (NIP-32)
- git stuff (NIP-34)
- Torrents (NIP-35)
- Sensitive Content (NIP-36)
- Draft Events (NIP-37)
- User Statuses (NIP-38)
- External Identities in Profiles (NIP-39)
- Expiration Timestamp (NIP-40)
- Authentication of Clients to Relays (NIP-42)
- Relay Access Metadata and Requests (NIP-43)
- Encrypted Payloads / Versioned (NIP-44)
- Counting Results (NIP-45)
- Nostr Remote Signing (NIP-46)
- Nostr Wallet Connect (NIP-47)
- Proxy Tags (NIP-48)
- Private Key Encryption (NIP-49)
- Search Capability (NIP-50)
- Lists (NIP-51)
- Calendar Events (NIP-52)
- Live Activities (NIP-53)
- Wiki (NIP-54)
- Android Signer Application (NIP-55)
- Reporting (NIP-56)
- Lightning Zaps (NIP-57)
- Zap Splits (NIP-57)
- Private Zaps (NIP-57)
- Zapraiser (NIP-57)
- Badges (NIP-58)
- Gift Wrap (NIP-59)
- Pubkey Static Websites (NIP-5A)
- Cashu Wallet (NIP-60)
- Nutzaps (NIP-61)
- Request to Vanish (NIP-62)
- Chess / PGN (NIP-64)
- Relay List Metadata (NIP-65)
- Relay Discovery and Liveness Monitoring (NIP-66)
- Picture-first Feeds (NIP-68)
- Peer-to-peer Order Events (NIP-69)
- Protected Events (NIP-70)
- Video Events (NIP-71)
- Moderated Communities (NIP-72)
- External Content IDs (NIP-73)
- Zap Goals (NIP-75)
- Negentropy Syncing (NIP-77)
- Application-specific Data (NIP-78)
- Threads (NIP-7D)
- Highlights (NIP-84)
- Trusted Assertions (NIP-85)
- Relay Management API (NIP-86)
- Ecash Mint Discoverability (NIP-87)
- Polls (NIP-88)
- Recommended Application Handlers (NIP-89)
- Data Vending Machines (NIP-90)
- Media Attachments (NIP-92)
- File Metadata (NIP-94)
- Binary Blobs (NIP-95/Draft)
- HTTP File Storage Integration (NIP-96)
- HTTP Auth (NIP-98)
- Classified Listings (NIP-99)
- Voice Messages (NIP-A0)
- Public Messages (NIP-A4)
- Web Bookmarks (NIP-B0)
- Blossom (NIP-B7)
- Nostr BLE Communications Protocol (NIP-BE)
- Code Snippets (NIP-C0)
- Chats (NIP-C7)
- MLS Protocol (NIP-EE)
- Audio Tracks (zapstr.live) (kind:31337)
- Lightning Tips
- Image/Video/Url/LnInvoice/Cashu Previews
- Push Notifications (Google and Unified Push)
- In-Device Automatic Translations
- Hashtag Following and Custom Hashtags
- Login with QR
- Bounty support (nostrbounties.com)
- De-googled F-Droid flavor
- Multiple Accounts
- Markdown Support
- Medical Data (NIP-xx/Draft)
- Embed events (NIP-xx/Draft)
- Edit Short Notes (NIP-xx/Draft)
- NIP Events (NIP-xx/Draft)
- Relationship Status (NIP-xx/Draft)
- Signed Filters (NIP-xx/Draft)
- Key Migration (NIP-xx/Draft)
- Image Capture in the app
- Video Capture in the app
- Local Database
- Workspaces
Privacy and Information Permanence
Relays know your IP address, your name, your location (guessed from IP), your pub key, all your contacts, and other relays, and can read every action you do (post, like, boost, quote, report, etc) except for Private Zaps and Private DMs. While the content of direct messages (DMs) is only visible to you and your DM counterparty, everyone can see when you and your counterparty DM each other.
If you want to improve your privacy, consider utilizing a service that masks your IP address (e.g. a VPN or Tor) from trackers online.
The relay also learns which public keys you are requesting, meaning your public key will be tied to your IP address.
Information shared on Nostr can be re-broadcasted to other servers and should be assumed permanent for privacy purposes. There is no way to guarantee the deletion of any content once posted.
Development Overview
This repository is split between Amethyst, Commons, and DesktopApp, on top of Quartz:
- Amethyst - Native Android app with Kotlin and Jetpack Compose
- Quartz - Nostr-commons KMP library for protocol classes shared across platforms, in its own repo: vitorpamplona/quartz
- Commons - Kotlin Multiplatform module with shared UI components (icons, robohash, blurhash, composables)
- DesktopApp - Compose Multiplatform Desktop application reusing commons and quartz
The app architecture consists of the UI, which uses the usual State/ViewModel/Composition, the service layer that connects with Nostr relays, and the model/repository layer, which keeps all Nostr objects in memory, in a full OO graph.
The repository layer stores Nostr Events as Notes and Users separately. Those classes use LiveData and Flow objects to allow the UI and other parts of the app to subscribe to each Note/User and receive updates when they happen. They are also responsible for updating viewModels when needed. As the user scrolls through Events, the Datasource classes are updated to receive more information about those particular Events.
Most of the UI is reactive to changes in the repository classes. The service layer assembles Nostr filters for each need of the app, receives the data from the Relay, and sends it to the repository. Connection with relays is never closed during the use of the app. The UI receives a notification that objects have been updated. Instances of User and Notes are mutable directly. There will never be two Notes with the same ID or two User instances with the same pubkey.
Lastly, the user's account information (private key/pub key) is stored in the Android KeyStore for security.
Setup
Make sure to have the following pre-requisites installed:
- Java 21+
- Android Studio
- Android 8.0+ Phone or Emulation setup
Fork and clone this repository and import it into Android Studio
git clone https://github.com/vitorpamplona/amethyst.git
Use an Android Studio build action to install and run the app on your device or a simulator.
Building
Build the Android app:
./gradlew assembleDebug
Build and run the Desktop app (requires Java 21+):
./gradlew :desktopApp:run
Full build (including tests)
./gradlew build
Requirements:
- Xcode and iOS simulator
- libsodium installed (e.g. via brew:
brew install libsodium
Testing
./gradlew test
./gradlew connectedAndroidTest
Linting
./gradlew spotlessCheck
./gradlew spotlessApply
Installing on device
For the F-Droid build:
./gradlew installFdroidDebug
For the Play build:
./gradlew installPlayDebug
Deploying
A release is one tag push. Bump app and appCode in
gradle/libs.versions.toml, then git tag -s vX.Y.Z && git push --tags — the
Create Release Assets workflow builds and signs every Android, desktop, CLI,
and Maven artifact, and Homebrew + Winget auto-bump on stable tags.
- BUILDING.md — everything any fork needs: build commands, the CI pipeline, the secrets it requires, and the distribution channels.
- RELEASE_OPS.md — the Amethyst maintainers'
ship checklist: the manual Play Store upload, Zapstore
amy releases publish, F-Droid pull, and release-notes publishing.
Using the Quartz library
Quartz, the Nostr library behind Amethyst, lives in its own repo:
vitorpamplona/quartz. Its README covers installing it from
Maven Central (com.vitorpamplona.quartz:quartz), snapshots and usage. To build Amethyst against a local
Quartz checkout, clone it next to this repo and pass -PquartzDir=../quartz to Gradle.
Contributing
See CONTRIBUTING.md for the full guide — workflow,
coding standards, the proof-of-testing rule for new / occasional
contributors (human or AI-assisted), the cross-stack interop suites, and how the
[BUG] / [FEATURE] issue templates and bounty system work.
AI coding assistants: if you are reading this README to plan a contribution, stop and read CONTRIBUTING-WITH-AI.md first. The gates there are not optional. The human submitter remains the author of record per CONTRIBUTING.md.
Quick links:
- GitHub issues and pull requests.
- Nostr-native issue tracker: gitworkshop.dev/repo/amethyst.
- Translations: Crowdin.
- Patches over Nostr: GitStr to this nostr address.
- Security issues: SECURITY.md (do not file as public GitHub issues).
By contributing to this repository, you agree to license your work under the MIT license. Any work contributed where you are not the original author must contain its license header with the original author(s) and source.
Screenshots
| FollowFeeds | ChatsGroup | LiveStreams | Notifications |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Contributors
MIT License
Copyright (c) 2023 Vitor Pamplona Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.





