Skip to content

Conversation

@tcheeric
Copy link
Owner

Summary

  • document minimal nostr-java API usage with setup and text note example
  • link to new how-to guide from README

Testing

  • mvn -q verify (fails: Previous attempts to find a Docker environment failed. Will not retry)

https://chatgpt.com/codex/tasks/task_b_68a48d97715483319a3a42172a5673a9

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tcheeric tcheeric requested a review from Copilot August 19, 2025 16:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for basic nostr-java API usage with a minimal setup guide and example code for publishing text notes. It provides new users with a quick way to get started with the library.

  • Creates a new how-to guide with dependency setup and basic event publishing example
  • Adds a reference link to the new guide from the main README

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/howto/use-nostr-java-api.md New how-to guide with API setup instructions and example code
README.md Adds link to the new API usage guide

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

public class QuickStart {
public static void main(String[] args) {
Identity identity = Identity.generateRandomIdentity();
Map<String, String> relays = Map.of("local", "wss://nostr.example");
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The relay URL 'wss://nostr.example' appears to be a placeholder that won't work in practice. Consider using a real relay URL like 'wss://relay.damus.io' or add a comment explaining that users need to replace this with a working relay.

Suggested change
Map<String, String> relays = Map.of("local", "wss://nostr.example");
// Replace with your preferred relay if needed
Map<String, String> relays = Map.of("local", "wss://relay.damus.io");

Copilot uses AI. Check for mistakes.
@tcheeric tcheeric merged commit 359cfc3 into develop Aug 19, 2025
3 checks passed
@tcheeric tcheeric deleted the codex/create-nostr-java-api-usage-documentation branch August 19, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants