23 Commits
Author SHA1 Message Date
raucao 6ed067a973 Mention PWA installation and mark the kosmos deployment legacy
CI / Lint (pull_request) Successful in 57s
CI / Test (pull_request) Canceled after 1m26s
2026-11-29 16:40:23 +04:00
raucao 06c2849d6c Improve README, move development info to new doc
CI / Lint (pull_request) Successful in 57s
CI / Test (pull_request) Successful in 1m27s
2026-11-29 16:36:23 +04:00
raucao f554a04def Update the app handler description
Use the same about text as the app's kind-0 profile: "Unhosted maps app, enhancing OpenStreetMap with decentralized user data and content".
2026-11-28 17:51:48 +04:00
raucao c30e8cee72 Add NIP-05, category tags and the ngit repo to the app handler
CI / Lint (pull_request) Successful in 55s
CI / Test (pull_request) Failing after 1m16s
Set content.nip05 (marco@kosmos.org), a ["t","maps"] category tag, and a
kind-30617 `a` tag linking the ngit repository — the three fields NostrHub's
app listing reads. Add the values as config in scripts/nostr-common.sh.
2026-11-28 17:50:35 +04:00
raucao 38ca6ba296 Publish the app handler under the author's npub
CI / Lint (pull_request) Successful in 51s
CI / Test (pull_request) Successful in 1m11s
Move the handler identity from the dedicated app key to the author's own
npub (the same key that authors the NIP specs), and add
scripts/unpublish-app-handler.sh to delete an old handler via a NIP-09
kind-5 event. Document the identity and the retirement flow.
2026-11-28 17:33:53 +04:00
raucao ba804fa69b Advertise implemented NIPs in the NIP-89 app handler
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m14s
Add NIP references to Marco's kind 31990: an `i` tag per implemented
official NIP and an `a` tag for Marco's own kind-30817 Place Photos NIP,
shaped the way NostrHub's app directory reads them.

Also fix the stale note about the /e/ route being planned; it is
implemented.
2026-11-28 17:14:02 +04:00
raucao d62340c3b1 Note the /e/ handler and photo focus in the NIP-89 app handler doc
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m3s
2026-11-28 13:49:48 +04:00
raucao 2fce1f532e Add NIP-89 app handler docs and Nostr publishing scripts
Document Marco's NIP-89 app handler (kind 31990) and recommendation
(kind 31989), and how the place NIPs are published on Nostr as kind 30817
custom NIPs.

Add shell scripts that build and publish these events via nak: the app
handler, a recommendation, and the NIP specs. The publishing relay list
lives in scripts/nostr-relays.txt for easy editing. Signing requires an
explicit NOSTR_SECRET_KEY (nsec or NIP-46 bunker URL), and the scripts
refuse to publish from the wrong identity.
2026-11-28 12:39:28 +04:00
raucao 6b37db7d42 Speed up photo processing without noticeable quality loss
CI / Lint (pull_request) Successful in 54s
CI / Test (pull_request) Successful in 1m14s
Release Drafter / Update release notes draft (pull_request) Successful in 17s
Photo processing was slow on most devices because blurhash was encoded
from the full-resolution image, the original file was decoded up to five
times, and the Android fallback path skipped native resizing.

- Encode blurhash from a <=64px canvas instead of full resolution
- Process main image, thumbnail and blurhash in a single worker pass,
  decoding the original only once and deriving the thumbnail from the
  resized main image
- Retry createImageBitmap via an in-memory Blob before falling back to
  stepped software scaling, and validate the browser honored the resize
- Avoid the redundant full-resolution canvas and release intermediate
  canvases during stepped scaling
- Swap the preview to the processed thumbnail and decode it async
- Lower main image JPEG quality to 0.85

Adds unit tests for the image-processor service and documents the design
in doc/dev/photo-upload-performance.md.
2026-11-28 02:52:57 +04:00
raucao 748bc626a8 Publish and consume x tags on kind 360 place photos
CI / Lint (pull_request) Successful in 59s
CI / Test (pull_request) Successful in 1m24s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Emit top-level x tags for the primary media and thumbnail SHA-256 hashes (with the primary also inside imeta) when publishing. Parsed photos expose the hash set, and photo deletion prefers it over extracting hashes from Blossom URLs, keeping URL extraction as a fallback for legacy events.
2026-11-27 19:23:16 +04:00
raucao 98f361e2d5 Document queryable x media hashes in kind 360 NIP
Add top-level x tags carrying the SHA-256 of the primary media and thumbnail, following NIP-68's queryable-hash pattern. The imeta x anchors which hash is primary; parsing, deletion, querying and examples are covered.
2026-11-27 19:23:11 +04:00
raucao 52fd5c1b15 Add submission-relay client support
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m11s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Default write relay, untrusted read relay, kind-5 author checks
2026-11-18 13:41:03 +04:00
raucao 4823df9f37 Reference NIP-73's osm: scheme now that it is registered
CI / Test (pull_request) Successful in 1m14s
CI / Lint (pull_request) Successful in 1m19s
Release Drafter / Update release notes draft (pull_request) Successful in 13s
NIP-73 now defines the `osm:<type>:<id>` external content ID (merged
2026-11-16, PR #2224, commit bec0fc8), with `osm:node`/`osm:way`/
`osm:relation` and the `k` value `osm`.

The place NIPs no longer need to claim the scheme as their own or propose
it for inclusion in NIP-73; they now simply reference it.
2026-11-16 22:00:06 +04:00
raucao 33670283d1 Finalize Place Photos and Reviews NIP drafts
CI / Lint (pull_request) Successful in 50s
CI / Test (pull_request) Successful in 1m9s
Release Drafter / Update release notes draft (pull_request) Successful in 31s
Photos (kind 360):
- scope to photos and videos; title "Place Photos and Videos"
- osm: scheme framed as extending NIP-73 (proposed upstream); geo:-vs-g and
  OSM-mutability rationale
- geohash: define high precision as length >= 9; resolutions 4/6/7/9
- content: MUST be empty or exactly the primary url; document the NIP-92 override
- imeta: NIP-92/94 field citations, alt as the only description channel,
  video guidance (place documentation, not social video), top-level m MAY
- add Querying, Client Behavior, Security Considerations, Future Work sections
- drop published_at; drop k; json fences; relative links on first mention

Reviews (kind 30360):
- same i/g/querying/terminology fixes; correct NIP-73 title
- fix missing addressable d tag (d = i; one review per author/place) and
  add update/deletion semantics

notes: refresh stale NIP-73/osm note, add live-data line
2026-11-11 21:22:22 +04:00
raucao 7fccc56c92 Document place icon system 2026-09-20 14:49:25 +02:00
raucao 474bc8cd63 Add relay trust settings, provenance cache
By default, only automatically show photos for relays marked as trusted
(which by default is the required read relay). For other relays, only
show the user's own events by default, but allow showing all events via
link in place details (drawer bottom)
2026-08-26 18:06:06 -06:00
raucao 95961e680f Add rationale for kind numbers
CI / Test (push) Successful in 58s
CI / Lint (push) Successful in 31s
2026-04-22 15:37:45 +04:00
raucao 9468a6a0cc Revise photos NIP draft
CI / Lint (push) Successful in 32s
CI / Test (push) Successful in 58s
2026-04-22 15:31:24 +04:00
raucao d8fa30c74b Revert to single photo per upload and event
See NIP changes for reasoning. It also keeps the UI a bit cleaner and
we don't have to queue processing on mobile for mass uploads.
2026-04-22 10:18:47 +04:00
raucao 2268a607d5 Format docs 2026-04-18 18:35:45 +04:00
raucao f01b5f8faa Add place photos NIP, update reviews NIP 2026-04-18 17:30:25 +04:00
raucao 9075089221 Update notes 2026-04-18 12:47:33 +04:00
raucao 5ad702e6e6 Add planning docs for Nostr place reviews 2026-04-18 11:35:29 +04:00