2508 Commits

Author SHA1 Message Date
Gigi
b245a11ade fix: implement proper NIP-51 bookmark fetching from nostr relays
- Add RelayPool to connect to nostr relays (damus.io, nos.lol, snort.social)
- Fix bookmark fetching to actually query relays instead of empty local store
- Use eventStore.filters() with Observable subscription to fetch kind 10003 events
- Add proper RxJS imports for takeUntil and timer
- Implement 5-second timeout for relay queries
- Add applesauce-relay dependency for relay connectivity
- Fix critical bug where bookmarks were never fetched from network

This ensures we're actually displaying kind:10003 bookmark events from the
logged-in user as specified in NIP-51, not just querying an empty local store.
2025-10-02 07:28:12 +02:00
Gigi
0369ece6f4 refactor: migrate to applesauce-accounts for proper account management
- Replace manual WebSocket connections with applesauce-accounts
- Use ExtensionAccount.fromExtension() for nostr browser extension integration
- Add AccountsProvider to component tree for account management
- Use useActiveAccount hook to get current user account
- Simplify user display to show formatted public key (profile fetching TODO)
- Remove manual profile fetching WebSocket code
- Improve architecture with proper applesauce account system
- Add applesauce-accounts dependency to package.json

This provides a more robust and standardized approach to nostr account
management using the applesauce ecosystem.
2025-10-02 07:24:37 +02:00
Gigi
496b19f021 feat: display user profile name instead of public key
- Fetch user profile from nostr relay on login
- Display NIP-05, display name, or username instead of public key
- Priority: NIP-05 > name > username > public key
- Add WebSocket connection to fetch profile events (kind 0)
- Update Login component to fetch and pass profile data
- Update Bookmarks component to show user-friendly display name
- Fallback to formatted public key if no profile available
- Improve user experience with recognizable identity
2025-10-02 07:21:55 +02:00
Gigi
fe35f45a42 feat: display user public key after successful login
- Add userPublicKey state to App component
- Pass public key from Login to App to Bookmarks
- Display formatted public key in bookmarks header
- Show 'Logged in as: abc12345...xyz67890' format
- Update header layout to accommodate user info
- Add styling for user info display
- Improve login success feedback for users
2025-10-02 07:19:35 +02:00
Gigi
f99c29ce78 chore: set initial version to 0.0.1
- Update package.json version from 0.1.0 to 0.0.1
- This represents the initial MVP release of markr
2025-10-02 07:18:34 +02:00
Gigi
16a95facc5 chore: remove vite cache files from tracking
- Remove .vite/deps_temp_* files that were previously tracked
- These files are now properly ignored by .gitignore
- Clean up repository to exclude build artifacts
2025-10-02 07:18:18 +02:00
Gigi
4af9cd646b chore: add comprehensive .gitignore file
- Ignore node_modules and dependency files
- Exclude build outputs (dist/, build/, .vite/)
- Ignore environment variables and secrets
- Exclude IDE/editor files (.vscode/, .idea/)
- Ignore OS generated files (.DS_Store, Thumbs.db)
- Exclude logs, cache, and temporary files
- Add TypeScript and Vite specific ignores
2025-10-02 07:18:04 +02:00
Gigi
5d53a827e0 feat: initialize markr nostr bookmark client
- Add project structure with TypeScript, React, and Vite
- Implement nostr authentication using browser extension (NIP-07)
- Add NIP-51 compliant bookmark fetching and display
- Create minimal UI with login and bookmark components
- Integrate applesauce-core and applesauce-react libraries
- Add responsive styling with dark/light mode support
- Include comprehensive README with setup instructions

This is a minimal MVP for a nostr bookmark client that allows users to
view their bookmarks according to NIP-51 specification.
2025-10-02 07:17:07 +02:00