Why Nostr? What is Njump?
2025-04-10 19:36:03

Sebastix on Nostr: New release for nostrphp 🤓 I'm already building a njump clone as a #Drupal module ...

New release for 🤓
I'm already building a njump clone as a #Drupal module on https://nostrver.se. So you can render a Nostr event with a bech32 encoded string (nevent1, naddr1 or note1 or just the event id) there in this format https://nostrver.se/e/[bech32-encoded-string-or-event-id].
For example: https://nostrver.se/e/nevent1qvzqqqqqqypzqpnrnguxe8qszsshvgkvhn6qjzxy7xsvx03rlrtddr62haj4lrm3qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg3waehxw309ahx7um5wgh8w6twv5hsqg98pttr998u423uktqndk3tqf0g3e383uuuee8yz2g5gatlmx5wp5j9c2rp which is the same as https://nostrver.se/e/note15u9dvv55lj428jevzdk69vp9az8xy78nnn8yusffz3r40lv63cxsd2n7ae and https://nostrver.se/e/a70ad63294fcaaa3cb2c136da2b025e88e6278f39cce4e4129144757fd9a8e0d (but this is a saved / cached Nostr event now in Drupal).

Source of the module here: https://gitlab.com/sebastix-group/nostr/nostrver.se/-/tree/develop/web/modules/custom/njump
Release 1.7.x it out with full NIP-19 support! #PHP
https://github.com/nostrver-se/nostr-php/releases/tag/1.7.0

Here are some example snippet how it can be used:
https://github.com/nostrver-se/nostr-php/blob/main/src/Examples/nip19-bech32-encoded-entities.php
https://github.com/nostrver-se/nostr-php/blob/main/src/Examples/nip19-bech32-decoded-entities.php

Many thanks to and for refactoring the bech32 low-level stuff so it support strings with a length higher than 90 characters up to 5000.
Author Public Key
npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe