-
Ah chorus also supports blossom, nice.
-
Minibits + nwc + own mint
Not bad at all.
-
Well now when rss readers start to support nostr: lets get the opml ready and see which one of y'all writes long forms 🤣 also good luck to njump loading ol that 🤣
https://cdn.nostrcheck.me/3970657ccb35e30e56e9bcdee0be283b0e853fa31a0be9b5a98c77262583f42f.jpeg
-
Feeder is alright.
https://cdn.satellite.earth/3f8f6a26287c2cd51ea061dea2069dc1838070e144372f94021b1eeb44532639.mp4
-
:bitcoin_spin:
https://blossom.puhcho.me/21b9dcdc58ad344105388f3348c1c3761a4148afab77c4b8604c7e3fd4da852d.jpeg
-
AntennaPod is fine
https://cdn.nostrcheck.me/743c5d5175ce1388aec4370f1a8f563a218cd11a69fa5d6af4e7f2c224e4990a.jpeg
-
https://blossom.puhcho.me/32148464d24bf8bd0cb618f97a74931a44e59136ee3f619e3fe248cb05b2f894.mp4
-
Bahahahah
https://cdn.nostrcheck.me/327badcadac0e0af4579e2f8159789a2a001351cd7ee8f2dbfabf86cc9cbf4e0.jpeg
https://cdn.nostrcheck.me/4c2f846e0bd1248e17ab7bc71a91b2dfa73a23bb01cf336e24183c4b9dd627a8.jpeg
nostr:nevent1qqsgew37ft2rjntmmyswcztm2kqstvvcz4ctkxj89064hkq7wntezncppemhxue69uhkummn9ekx7mp0qgsqght7u0cqpkg92pyx7vpcr9ekv0k6heahanxxwj2ll84a7x5mamqrqsqqqqqp82lfgj
-
The best article about #nostr user experience for the last year, hands down 🤙
nostr:nevent1qqs0qfffnuan4jymuukdw9u7a4pj9hnwdd8zs44q3mxj05g2eu8jcdqprfmhxue69uhkx6rjdahxjcmvv5h8qatgvd5x7tndv5hsygrt7tfrjpyaqqspzf2pas2g3699zgh3xuph9xvaxpn720f3kgrgkupsgqqqqqqsjv96ep
-
https://youtu.be/BL5vUVQvmX4
-
..
-
http://blossom.puhcho.me/1c01c7e3117aa537265787d3d489d6967f4cbfad1d443eee52e8a8dcee575d43.gif
-
If you make it longer, we may go nuts 🤙
nostr:nevent1qqsfvhuxr8rjf5ll48tecvyfsxlqyyqrqranegcfgfhfpyuxceflssgpzemhxue69uhksctkv4hzuur4dp3ksmewd4jj7q3qf49twdlzlw667r74jz6t06xxlemd8gp2j7g77l76easpl8jsltvqxpqqqqqqznf60g3
-
#catstr
nostr:nevent1qqszjq3fs20vxcfyga88xvvj0udju8w8lncddttx2nfcz6pxayye4acprdmhxue69uhkummnw3ezuumpw35x7ctjv3jhytnrdakj7q3qj42rxzt0eg3r72ddl4f2psk7q73u2t4ksrumfk0td3rdjxtv2s8qxpqqqqqqzwmr2ax
-
Btw teemux on the phone compiles amethyst pretty nicely. Hot but nice, going for the ocean 🤣
-
Like I said preference. Same opinion is about pronouns.
-
No prob. Termux is your fren +
https://github.com/hzrd149/blossom-server.git
There is blossom-drive as well if you want it. But with many nostr clients who support blossom like amethyst, nostomo and nostrudel, its up to a preference. Haven and chronicle relays also can run there which save the other bits, and support it.
-
Well I run one blossom on the phone as a true degen 🤣 thankful for the upstreams.
-
Where swarmstr go?
-
nostr:nprofile1qqs0r7dsn9k5ludlwhneunxg2a7gn6mr8e5yzhrl4a6v79aq00uqhkqpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszythwden5te0dehhxarj9emkjmn99uqsuamnwvaz7tmwdaejumr0dshsjxxttw you good?
-
One go as blossom.puhcho.me is configured to upstream to the others. I should put cdn.satellite.earth in there but I use it with an alt pub. Anyways 🌸💜
-
Lfg 🌸🔥
Uploaded to blossom, went to haven 🌊, and nostrcheck without the extention, fuck knows what hash is on primal 😂.
http://blossom.puhcho.me/3b3cd28aa8fd5f2f9dfad973c7cfe6a5e3f61f5d6e3600a2257f4300f4aa636d.jpeg
-
nostr:nprofile1qqsqgc0uhmxycvm5gwvn944c7yfxnnxm0nyh8tt62zhrvtd3xkj8fhgprdmhxue69uhkwmr9v9ek7mnpw3hhytnyv4mz7un9d3shjqgcwaehxw309ahx7umywf5hvefwv9c8qtmjv4kxz7gpzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7s3al0v and this may help a bit:
https://github.com/nbd-wtf/go-nostr/tree/master/nip86
-
I'm still running an older vers of hostr but blossoms will be great. 5394, 93, 92 and so on...
https://github.com/studiokaiji/nostr-webhost/tree/main
-
Baths,amigo, baths.
https://image.nostr.build/441e33e2b465921c343088c8dbde7e8460d21966452d49b6cd0109e209759e7e.jpg
-
https://video.nostr.build/9f2a5e004bce4379af4d779fac9d15a3176d7b7d740f2f0c5dd55c973945e4ec.mp4
-
Amethyst 🌸 support incoming in 3,2,1 ... 🔥
Fyi cdn.nostrcheck.me and cdn.satellite.earth will do great in your options, plus if you run haven. As because I am too lazy to hop to the strudel and nostromo just for the blossom support. Btw if primal stops fucking up the hash, blossom.primal.net will do too. The whole point is to find the file everywhere and to get delivered no matter which one of the 🌸 works at the time.
nostr:nevent1qqs8gl8t88hvc90xcgnw6qmsm7xnf73mcg72l8r54h54q7ydgf7v3hsqcdk57
-
:rock_it:
https://cdn.satellite.earth/2f4f99c4277f5afcb9cc1f7ec2bd614f361e0b25878c3340931fd49e0d60e302.jpg
-
🍌
-
Bahahahah
-
Anything that uses nostr-login really ( nostr.band , amethyst.social , hivetalk etc). The bunker url is buried in advanced though.
-
My study shows that cats have 32 muscles in each ear to help them do exactly the above.
-
https://image.nostr.build/fd7daa50c22c5442f65f0bf6fea5fedf2a3d43428f1f062d436d14052d8a1614.png
-
🔥
nostr:nevent1qqsg2nc9xw0v7xw7vxzrzdhezzhyavkex9wgtzmdfkgpefzpq9gdu6spzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtczyze2pfgua0c0j0ws0dc7y8a4qzsjvuh24atndtv23vvhsq8tr2dnsqcyqqqqqqgum4z45
-
PV #catstr 🤘
nostr:nevent1qqs2chyt8768duf7rgmstyvrv4yaxhtxlc98eudfyckr8trcuvs9frgpzpmhxue69uhkummnw3ezumt0d5hsygy42sesjm72ygljnt0a22sv9hs850zjad5qlx6dn6mvgmv3jmz5pcpsgqqqqqqs4hmx80
-
"Access-Control-Allow-Methods": "GET,HEAD,PUT,POST,OPTIONS", "Access-Control-Allow-Headers": "Authorization, Content-Type"
-
🤙
https://haven.puhcho.me/302013b538527f37c86c836c87bcdbd9542a1865d5fdc9bac2d3375eee40aa02.jpg
-
nostr:nevent1qqsxsuldhc6y4x6raj6ygxtv9l8fw459evecvkrp9pnf2mg39pgrw5gppemhxue69uhkummn9ekx7mp0qgsf24pnp9hu5g3l9xkl654qct0q0g7996mgp7d5m84kc3ker9k9grsrqsqqqqqp8eetwq
-
Yes, now!
-
Catstrr looks great there nostr:nprofile1qqs0r7dsn9k5ludlwhneunxg2a7gn6mr8e5yzhrl4a6v79aq00uqhkqpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszythwden5te0dehhxarj9emkjmn99uqsuamnwvaz7tmwdaejumr0dshsjxxttw
nostr:nevent1qqsqqq84rcushjlhfkpg8xfve83fqpdccly46nmgncl4xncjkx73m3qpy9mhxue69uhhyetvv9ujumr90p5kuem5dahxy6t5vdhkjm3wdaexwtczyqalp33lewf5vdq847t6te0wvnags0gs0mu72kz8938tn24wlfze6qcyqqqqqqgx24mcc
-
Absolutely. Especially on government waters.
-
https://cdn.nostrcheck.me/1dee665e409f902037cd354ba751a6d23273cc7c65f58043f962f7e01cdc0777
-
nostr:nprofile1qqs0wa4ucy38r0nel3cmv40ne0lt829pd8enacfntlxqcg5znyqa5jsprdmhxue69uhhyetvv9ujumtpva5kxcmfw3ujumrfwejj7qg5waen5te0wfjkccte9ehx7um5wghxyee0qy2hwumn8ghj7un9d3shjtnwdaehgu3wvfnj7g263rs
-
Try to, microapps for different things, also the idea is for frens to get onboarded to nostr. Which reminds me onosendai and fanfares.io should be in there too.
-
Yeah that's my deck 🃏 the idea is from webcore.live but wanted straight easier management. I find the N fallback funnier and don't want an api.
https://image.nostr.build/9c281ac482006a564c2649bc66ad023f15f2da1a2d0247aaba656b28b33da8ae.jpg
-
Yes 🤣
https://image.nostr.build/a9b6d9d5f78b19ed5d292bbfa570a359a13af85a246a721bed6baa615ae5893f.jpg
-
nostr:naddr1qqjrxvf3x3jnve3k943nzepk956xzen994sngve495ukvdpk8qmkxcecx43x2q3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxw7m6kla
-
https://cdn.satellite.earth/7d70aeb344a04b8185f34ec62aede724dd2571e28aa90ea6d9261cdf6c569857.gif
-
Second. They are already in gallery if shared. The ui would be good to have quote in note from that but amethyst is not there yet. So you just put the note id like this
nostr:nevent1qqstqfhggxlfdj7s8t03e6z85nep86dtrzand3f7ppdxck3lh088t6gprdmhxue69uhkg6t5w3hjuur4dp3ksmewd4jj7un9d3shjq3qj42rxzt0eg3r72ddl4f2psk7q73u2t4ksrumfk0td3rdjxtv2s8qxpqqqqqqzy8csdf
-
Catstr is very popular in the hosehold, also the mandalorian 🤣 then quoting the note id the gif is in from the gallery in a note, reply etc. If you already have a gif folder, that goes up easy. Or scraping tenor etc for old movies gifs and so on.
nostr:nevent1qqs0s2l0gj5xx9s3yv20q4xfkugqz5klrp790wmamumww5wve7aduaspy9mhxue69uhkxenjv4kxz7fwwp6kscmgduh8wmmjddjhyuewv3jhvtczyzj3f2ema7m4974wk5mpjtgyjswuykuggk8gjsrlj5umhz0nnkhhsqcyqqqqqqge6s7yn
-
Autoupload them to blossoms for the kids so they can send whatever they like to amethyst's gallery. Then note id etc.
https://video.nostr.build/94e07f0010d96c85d033e11b6cfa92ff82aa33769d9a089f3ce007be4454267f.mp4
-
nostr:nprofile1qqsp7utc64te4chwhsyst8suj8ung9x3uryu873gru7phfuujkwd2kgpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7qg6waehxw309aex2mrp0yhxwctvw3ekwatvvd5zucmr9utjc7hj we need nostrava 🤙
nostr:nevent1qqsvx473hd495kj5amh0xl95ut9k9kwp5alvjgaqpxt08yx9k4mawwqpr9mhxue69uhhyetvv9ujumn0wd68ytnrdakjuct49upzq8m30r240xhza67qjpv7rjgljdq568svnsl69q0ncxa8nj2ee42eqvzqqqqqqyqytc8y
-
Tr
-
Mmm iris.to is becoming a goto client. Need cashu zaps.
https://image.nostr.build/445961ae98a7d9094240ca49cd85d571e4469b4b90fd078998a4f289a428303b.jpg
nostr:nevent1qqsgdl8wc4a35s2l4ey6y09wd348wq4nl5qvdjvl2sj34083n9s83kqpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsygz9ywl935u4kxced2dceq4s8zmgjh9s9d5r6rp98224q6xm58av6qpsgqqqqqqs6k9u0y
-
Me, playing with enhanced rss to listen to frens pubs from the podcasts apps and zap them from there(pulls the lud16).
Some podcast apps are... that is not just for e mail, bitch. Catch the f up.
nostr:nevent1qqsdpakeyfjv555krhcwufp46948a5sa38yk8nzlxze3va98586np9gpzpmhxue69uhkummnw3ezumt0d5hsyg89fn7azqc90hdl92j7m2uspg0dhjyzqk3lrjhl289dvzu7s66n8spsgqqqqqqs85r48k
nostr:nevent1qqsr672g6950r3rkr7vcuzasl22p5033fd226qudrf40s6ppttac8zcpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczyrj5elw3qvzhmklj4f0d4wgq58kmezpqtgl3etl4rjkkpw0gddfncqcyqqqqqqg4q4gtr
-
Starting with basics #onosendai
https://v.nostr.build/q4pb1nHAyEFugCR3.mp4
-
Hello from https://lumilumi.vercel.app/
https://nostrcheck.me/media/955433096fca223f29adfd52a0c2de07a3c52eb680f9b4d9eb6c46d9196c540e/d57d9a372276cb57c5ba7503fe6dc30d6e06c12e11d464f8a90df7f360a8f4cd.mp4
-
The relay, THE RELAY 🤣🔥
nostr:nevent1qqstdeudu2kfw55eueeyzmcq9tng76wpr32s7xtxhvwk84udwrgztaqpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczyrclnvyed48lr0m4u70yejzh0jy7kce7dpq4cla0wn830grmlq9asqcyqqqqqqgew9h0m
-
Flare.pub for music videos.
Fanfares.io for podccasting (mp3 supports etc)
You can host yoyr files on cdn.satellite.earth (small sat fee per GB/month) and post the links in nostr notes or elsewhere.
-
Yeah I don't care about some dickhead that every now and then discovers spamster or makes one, I like the reply girls that are a fan of nostr:nprofile1qqsr9cvzwc652r4m83d86ykplrnm9dg5gwdvzzn8ameanlvut35wy3gpzpmhxue69uhkummnw3ezuamfdejsz9rhwden5te0wfjkccte9ejxzmt4wvhxjmcpz4mhxue69uhhyetvv9ujumt0wd68ytnsw43qdwkdtx and blossom up the ai response (the primal one). Now that's an effort hahah.
https://image.nostr.build/a7e76025376f2266935313b80145eb582ef2c69c27cc14c89786e6514b00fa38.jpg
-
Ahaha gotta love nostr. nostr:nprofile1qqspcxtmzt9feczptdcwwszmjac0pmrtena4nvetvw406sktyshpvssprdmhxue69uhhw6r9v96zu6rpwpc8jarpwejhym3wvdhj7qg4waehxw309aex2mrp0yhxgctdw4eju6t09uqsuamnwvaz7tmwdaejumr0dshsm8xw8z check this out. Wanted to play with nostr:nprofile1qqsw2n8a6yps2lwm7249ak4eqzs7m0ygypdr789075w26c9eap44x0qpzpmhxue69uhkummnw3ezumt0d5hsz9thwden5te0wfjkccte9ejxzmt4wvhxjme0qy88wumn8ghj7mn0wvhxcmmv9upz06yf nostr-rss (which nostter.app uses, but could be used with any web nostr client) to turn some(any) pubs rss(with media in notes) to be used by podbean and podcast republic which handle video (antennapod trots the m3u8 support as well so meh) and now you are on my podbean playlist so keep the good stuff coming 🤣🤙 Sharing from the pod apps to oxchat and geting the dms on amethyst is 🔥
https://cdn.satellite.earth/7863513e4d61f7eeb52ba1c9c83070ac57264616bcbc2ec9432b9680da506180.mp4
-
```
import { NSecSigner, NRelay1, NSchema as n } from '@nostrify/nostrify';
import { BlossomUploader } from '@nostrify/nostrify/uploaders';
import * as nip19 from 'nostr-tools/nip19';
// Helper function to convert a hex string to Uint8Array
function hexToUint8Array(hex: string): Uint8Array {
if (hex.length % 2 !== 0) {
throw new Error("Hex string must have an even length");
}
const array = new Uint8Array(hex.length / 2);
for (let i = 0; i < hex.length; i += 2) {
array[i / 2] = parseInt(hex.substr(i, 2), 16);
}
return array;
}
// Function to read uploaded files from JSON
async function readUploadedFiles(uploadedFilesPath: string): Promise<Set<string>> {
try {
const data = await Deno.readTextFile(uploadedFilesPath);
return new Set(JSON.parse(data));
} catch {
return new Set();
}
}
// Function to write uploaded files to JSON
async function writeUploadedFiles(uploadedFiles: Set<string>, uploadedFilesPath: string) {
await Deno.writeTextFile(uploadedFilesPath, JSON.stringify(Array.from(uploadedFiles)));
}
// Function to append a URL to a text file
async function appendUrlToFile(fileUrl: string, urlFilePath: string) {
try {
await Deno.writeTextFile(urlFilePath, fileUrl + '\n', { append: true });
console.log(`Appended URL to file: ${fileUrl}`);
} catch (error) {
console.error('Error appending URL to file:', error);
}
}
// Function to sign, parse, and upload a media file
async function signAndUploadMedia(
filePath: string,
uploadedFiles: Set<string>,
urlFilePath: string,
signer: NSecSigner,
relays: { relay: NRelay1; url: string }[]
) {
try {
// Check if the file has already been uploaded
if (uploadedFiles.has(filePath)) {
console.log(`File ${filePath} has already been uploaded. Skipping.`);
return;
}
// Get the public key from the signer
const pubkey = await signer.getPublicKey();
// Initialize the uploader
const uploader = new BlossomUploader({
servers: [
'https://cdn.satellite.earth',
'https://nstore.nostrver.se',
'https://blossom.puhcho.me',
'https://blossom.primal.net',
'https://cdn.nostrcheck.me'
],
signer: signer,
});
// Read the file
const fileBuffer = await Deno.readFile(filePath);
const file = new File([fileBuffer], filePath.split('/').pop()!);
// Upload the file and get the tags
const tags = await uploader.upload(file);
// Find the URL in the tags
let fileUrl = 'Unknown URL';
for (const tag of tags) {
if (tag[0] === "url" && tag[1]) {
fileUrl = tag[1];
break;
}
}
// Append the URL to the text file
await appendUrlToFile(fileUrl, urlFilePath);
// Create event data
const eventData = {
kind: 1,
content: `${fileUrl}`,
tags: tags,
created_at: Math.floor(Date.now() / 1000),
};
// Sign the event to get id and sig
const signedEvent = await signer.signEvent(eventData);
const completeEventData = {
...eventData,
id: signedEvent.id,
pubkey: pubkey,
sig: signedEvent.sig,
};
// Parse and validate the complete event data using NSchema
const event = n.event().parse(completeEventData);
console.log('Parsed and validated event:', event);
// Send the event to each relay
for (const { relay, url } of relays) {
try {
console.log(`Sending event to relay ${url}`);
await relay.event(event);
console.log(`Event sent successfully to ${url}`);
} catch (error) {
console.error(`Error sending event to relay ${url}:`, error);
} finally {
try {
await relay.close();
console.log(`Relay ${url} closed`);
} catch (closeError) {
console.error(`Error closing relay ${url}:`, closeError);
}
}
}
// Add the file to the uploaded files set and update the JSON file
uploadedFiles.add(filePath);
await writeUploadedFiles(uploadedFiles, './uploaded_files.json');
console.log("Done!");
} catch (error) {
console.error('Error signing and uploading media:', error);
}
}
// Function to select a random valid file from a folder
async function getRandomValidFileFromFolder(folderPath: string, uploadedFiles: Set<string>): Promise<string | null> {
const validExtensions = ['jpg', 'mp4', 'webp', 'gif'];
const files: string[] = [];
for await (const dirEntry of Deno.readDir(folderPath)) {
if (dirEntry.isFile) {
const extension = dirEntry.name.split('.').pop()?.toLowerCase();
if (extension && validExtensions.includes(extension)) {
files.push(dirEntry.name);
}
}
}
// Filter out files that have already been uploaded
const unuploadedFiles = files.filter(file => !uploadedFiles.has(`${folderPath}/${file}`));
if (unuploadedFiles.length === 0) {
console.log('All files have been uploaded. Selecting a random URL to publish.');
return null;
}
const randomIndex = Math.floor(Math.random() * unuploadedFiles.length);
return `${folderPath}/${unuploadedFiles[randomIndex]}`;
}
// Function to publish a Nostr event with a random URL
async function publishRandomUrlEvent(urlFilePath: string, signer: NSecSigner, relays: { relay: NRelay1; url: string }[]) {
try {
const urls = (await Deno.readTextFile(urlFilePath)).trim().split('\n');
if (urls.length === 0) {
console.error('No URLs found in the URL file.');
return;
}
const randomUrl = urls[Math.floor(Math.random() * urls.length)];
// Create event data
const eventData = {
kind: 1,
content: `${randomUrl}`,
tags: [],
created_at: Math.floor(Date.now() / 1000),
};
// Sign the event to get id and sig
const signedEvent = await signer.signEvent(eventData);
const completeEventData = {
...eventData,
id: signedEvent.id,
pubkey: await signer.getPublicKey(),
sig: signedEvent.sig,
};
// Parse and validate the complete event data using NSchema
const event = n.event().parse(completeEventData);
console.log('Parsed and validated event:', event);
for (const { relay, url } of relays) {
try {
console.log(`Sending event to relay ${url}`);
await relay.event(event);
console.log(`Event sent successfully to ${url}`);
} catch (error) {
console.error(`Error sending event to relay ${url}:`, error);
} finally {
try {
await relay.close();
console.log(`Relay ${url} closed`);
} catch (closeError) {
console.error(`Error closing relay ${url}:`, closeError);
}
}
}
console.log("Published random URL event successfully!");
} catch (error) {
console.error('Error publishing random URL event:', error);
}
}
// Main function to execute the script
async function main() {
const hexSecretKey = Deno.env.get('SECRET_KEY_HEX');
if (!hexSecretKey) {
console.error('Environment variable "SECRET_KEY_HEX" is not set.');
Deno.exit(1);
return;
}
const secretKey: Uint8Array = hexToUint8Array(hexSecretKey);
// Initialize the signer with your secret key
const signer = new NSecSigner(secretKey);
// Define the relay URLs
const relayUrls = [
'wss://nostr.mom',
'wss://nos.lol',
'wss://relay.primal.net',
'wss://e.nos.lol',
'wss://relay.damus.io',
'wss://nostr.lu.ke',
'wss://nostr.oxtr.dev',
'wss://relay.nostrcheck.me',
'wss://nostr.data.haus',
'wss://ditto.puhcho.me/relay',
'wss://offchain.pub',
'wss://strfry.iris.to'
];
// Create an array of NRelay1 instances with their URLs
const relays = relayUrls.map(url => ({ relay: new NRelay1(url), url }));
// Path to the JSON file that stores uploaded files
const uploadedFilesPath = './home/user/test_bloom/uploaded_files.json';
// Path to the text file that stores uploaded URLs
const urlFilePath = './home/user/test_bloom/uploaded_urls.txt';
// Example usage
const folderPath = Deno.env.get('MEDIA_FOLDER_PATH');
if (folderPath) {
try {
const uploadedFiles = await readUploadedFiles(uploadedFilesPath);
const randomFilePath = await getRandomValidFileFromFolder(folderPath, uploadedFiles);
if (randomFilePath) {
await signAndUploadMedia(randomFilePath, uploadedFiles, urlFilePath, signer, relays);
} else {
await publishRandomUrlEvent(urlFilePath, signer, relays);
}
} catch (error) {
console.error('Error during execution:', error);
} finally {
Deno.exit();
}
} else {
console.error('Environment variable "MEDIA_FOLDER_PATH" is not set.');
Deno.exit(1);
}
}
// Execute main function
main();
```
Better as it was uploading to just one blossom.
-
Yo, my favorite new blossom+deno to nostr shit is to scrape tenor #catstr gifs and 🌸 them up now that nostrcheck is in as well, thanks to nostr:nprofile1qqszv6q4uryjzr06xfxxew34wwc5hmjfmfpqn229d72gfegsdn2q3fgpz9mhxue69uhkummnw3ezuamfdejj7qg6waehxw309ahx7um5wgh8g6r9wdsk6etrv96zu6t09uqsuamnwvaz7tmwdaejumr0dshs9h69jx nostr:nprofile1qqsqgc0uhmxycvm5gwvn944c7yfxnnxm0nyh8tt62zhrvtd3xkj8fhgprdmhxue69uhkwmr9v9ek7mnpw3hhytnyv4mz7un9d3shjqgcwaehxw309ahx7umywf5hvefwv9c8qtmjv4kxz7gpzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7s3al0v and the heads up of nostr:nprofile1qqsgdp0taan9xwxadyc79nxl8svanu895yr8eyv0ytnss8p9tru047qpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wwa5kuegzls3js instagram script.
nostr:nevent1qqsq5t4scgw95pma9w0gk8tk0j5t07mu9lel3qv4ssa7p40a95gg5fgpzfmhxue69uhkummnw3ezumr49e4k2tczyz24gvcfdl9zy0ef4h749gxzmcr683fwk6q0ndxeadkydkged32quqcyqqqqqqg3phnsz
```
import { NSecSigner, NRelay1, NSchema as n } from '@nostrify/nostrify';
import { BlossomUploader } from '@nostrify/nostrify/uploaders'; import * as nip19 from 'nostr-tools/nip19'; // Helper function to convert a hex string to Uint8Array function hexToUint8Array(hex: string): Uint8Array { if (hex.length % 2 !== 0) { throw new Error("Hex string must have an even length"); } const array = new Uint8Array(hex.length / 2); for (let i = 0; i < hex.length; i += 2) { array[i / 2] = parseInt(hex.substr(i, 2), 16); } return array; } // Retrieve the secret key from an environment variable const hexSecretKey = Deno.env.get('SECRET_KEY_HEX');
if (!hexSecretKey) { throw new Error('Environment variable "SECRET_KEY_HEX" is not set.'); } const secretKey: Uint8Array = hexToUint8Array(hexSecretKey); // Initialize the signer with your secret key const signer = new NSecSigner(secretKey);
// Define the relay URLs
const relayUrls = [
'wss://nostr.mom', 'wss://nos.lol', 'wss://relay.primal.net', 'wss://e.nos.lol', 'wss://relay.nostr.band' ];
// Create an array of NRelay1 instances const relays = relayUrls.map(url => new NRelay1(url)); // Path to the JSON file that stores uploaded files
const uploadedFilesPath = './uploaded_files.json'; // Function to read uploaded files from JSON async function readUploadedFiles(): Promise<Set<string>> {
try { const data = await Deno.readTextFile(uploadedFilesPath); return new Set(JSON.parse(data)); } catch { return new Set();
} }
// Function to write uploaded files to JSON
async function writeUploadedFiles(uploadedFiles: Set<string>) { await Deno.writeTextFile(uploadedFilesPath, JSON.stringify(Array.from(uploadedFiles))); }
// Function to sign, parse, and upload a media file async function signAndUploadMedia(filePath: string, uploadedFiles: Set<string>) { try {
// Check if the file has already been uploaded if (uploadedFiles.has(filePath)) {
console.log(`File ${filePath} has already been uploaded. Skipping.`); return; }
// Get the public key from the signer const pubkey = await signer.getPublicKey();
// Initialize the uploader const uploader = new BlossomUploader({
servers: [ 'https://cdn.satellite.earth',
'https://nstore.nostrver.se',
'https://blossom.puhcho.me',
'https://blossom.primal.net', 'https://files.v0l.io/', 'https://cdn.nostrcheck.me' ],
signer: signer, // Use the signer for authentication
}); // Read the file const fileBuffer = await Deno.readFile(filePath);
const file = new File([fileBuffer], filePath.split('/').pop()!);
// Upload the file and get the tags const tags = await uploader.upload(file);
// Find the URL in the tags let fileUrl = 'Unknown URL';
for (const tag of tags) {
if (tag[0] === "url" && tag[1]) {
fileUrl = tag[1];
break; } } // Create event data
const eventData = { kind: 1,
content: `${fileUrl}`,
tags: tags, created_at: Math.floor(Date.now() / 1000), };
// Sign the event to get id and sig
const signedEvent = await signer.signEvent(eventData);
const completeEventData = {
...eventData, id: signedEvent.id, pubkey: pubkey, sig: signedEvent.sig,
};
// Parse and validate the complete event data using NSchema
const event = n.event().parse(completeEventData); console.log('Parsed and validated event:', event);
// Send the event to each relay for (const relay of relays) { console.log('Sending event to relay:', relay); console.log(await relay.event(event));
await relay.close(); } // Add the file to the uploaded files set and update the JSON file uploadedFiles.add(filePath); await writeUploadedFiles(uploadedFiles);
console.log("Done!");
} catch (error) {
console.error('Error signing and uploading media:', error);
} } // Function to select a random valid file from a folder
async function getRandomValidFileFromFolder(folderPath: string, uploadedFiles: Set<string>): Promise<string | null> { const validExtensions = ['jpg', 'mp4', 'webp', 'gif']; const files: string[] = []; for await (const dirEntry of Deno.readDir(folderPath)) { if (dirEntry.isFile) {
const extension = dirEntry.name.split('.').pop()?.toLowerCase(); if (extension && validExtensions.includes(extension)) { files.push(dirEntry.name); } }
} // Filter out files that have already been uploaded const unuploadedFiles = files.filter(file => !uploadedFiles.has(`${folderPath}/${file}`));
if (unuploadedFiles.length === 0) { console.error('No unuploaded valid files found. Please add new JPG, MP4, or WEBP files.');
return null; } const randomIndex = Math.floor(Math.random() * unuploadedFiles.length);
return `${folderPath}/${unuploadedFiles[randomIndex]}`;
}
// Example usage
const folderPath = Deno.env.get('MEDIA_FOLDER_PATH');
if (folderPath) { readUploadedFiles().then((uploadedFiles) => {
getRandomValidFileFromFolder(folderPath, uploadedFiles).then((randomFilePath) => { if (randomFilePath) {
signAndUploadMedia(randomFilePath, uploadedFiles);
}
});
});
} else {
console.error('Environment variable "MEDIA_FOLDER_PATH" is not set.');
}
```
Also puts amethyst gallery to good use:
https://v.nostr.build/ICPPrle8VODjFOPV.mp4
-
Lets see
-
Shinoa is playing.
nostr:nevent1qqsf6d4699lfm3fjp9lwzw0ua59ka65hv05cr85nf83y0addkl6q2lqpzpmhxue69uhkummnw3ezumt0d5hsygztc7vzcnhyq79j4kjngzhxw0cc6wm2ve93l9lg6eueucr5edwrn5psgqqqqqqsfazdz3
-
Nah, just for that 1.23.0 is fine.
-
Termux
-
Citrine is ok.
-
Running utxo's relay on the phone to see how it will "go". The go vers was too up, and had to change the db to sqlite, but overall ok. Khartu runs well there, could be onioned, changed some prefered relays 🤙
https://image.nostr.build/b1ce886834915ce4c4f806e207758b136f05935da1479b7b70a56997ca0ec365.jpg
-
Amethyst. Just open the pic post itself. The geotag is there.
-
London is London.
https://image.nostr.build/6dd28566e92bc814d496e126bc565a76ec0dd454ea4799e6e27bfb8b3dadb2ec.jpg
-
nostr:nevent1qqs2md35gjmzdce7ya3wyt22c97snz6uwt2e5mfhppglhsmp2za5j9qprfmhxue69uhhyetvv9ujuam9d3kx7unyv4ezumn9wshsygyxsh477ejn8rwkjv0zen0ncxwe7rj6zpnujx8j9ecgrsj43786lqpsgqqqw7vsqjke0p
nostr:nevent1qqs9s5l0tcq7pfajf6egv7pvc6pjnszkm944m8u93tqazjugyqejwjspzfmhxue69uhkummnw3ezumr49e4k2tczyzrgt6l0vefn3htfx83veheur8vlpedpqe7frrezuuypcf2clra0sqcyqqqqqqgp4s42k
-
Run you own or join the ditto pub. It's fun 🤙
https://gitlab.com/soapbox-pub/ditto
-
wss://cobrafuma.com/relay
nostr:nevent1qqs8wqlmnqga7efjadjpuzr3yzga9guvfysy0c34czdlnegdecgf6mgpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczyqzxrl97e3xrxazrnyeddw83zf5uekmue9e667js4cmzmvf4536d6qcyqqqqqqgvz8s2g
-
Ditto:
https://cdn.satellite.earth/65721a07c13d86daa88d4b100398830394372aa91cb364e50f64cb9a5fe15c83.mp3
-
You build your own global with this to include the feeds of the pubs you like to see on your ditto. Nice.
nostr:nevent1qqs8csv78xfskncklwnuygzh2q9wmqepmfxf8wmkv0ahqxgthw9w7lspzfmhxue69uhkummnw3ezumr49e4k2tczyqrx8x3cdjwpq9ppwc3ve085pyyvfudqcvlz87xk668540m9t78hzqcyqqqqqqgxs59cs
-
Yeah. The problem with the general rss is that for the podcasts it needs the enclosure url part to be able to play. So till fanfares.io is ready 🔥(npub.pro does the rss just for whoever makes a site there), I just used nostter rss generation tool from Snowcait's nostr-rss with a little add :
https://image.nostr.build/bbb0c5541aa21a391ad2907e87276e44a1dc61e23679eac2d7297ff27ecd8962.jpg
That way it plays the links in the kind 1 in antennapod, podcast republic, podcast addict etc. Like supertestnet's hit (hosted on satellite) 🔥🤣 from nostr:nprofile1qqsw2n8a6yps2lwm7249ak4eqzs7m0ygypdr789075w26c9eap44x0qpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszyrhwden5te0v5hxummn9ekx7mp0qyg8wumn8ghj7mn0wd68ytnddakj7rajwhn or turns any pub to podcaster as long as they have the links in the notes. Could be nostter, nostrudel, nostr band etc. Works with forked notes as well.
Like this on antennapod:
https://video.nostr.build/b71b245ccdd99b3ad3f0c0101632212b4470bfc5f7314b457913afd3362c1547.mp4
This ran on localhost for the test, the general rss pull will be whatever domain/npub with the modified tool. Fountain picks up the feed but does not play it, not sure as the app crashes for me.
-
💔
-
nostr:nprofile1qqsrmd0ph8d22lxx5l2492r2sat5a63xtcr4nh0tsl2yupe8770d3rgpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszxnhwden5te0wfjkccte9ehx7um5wghxyctwvshkzmrvhjyw74 could that type of list eventually open in the app as well from the naddr to filter the map for the specific npub? Would be pretty cool 🔥
-
nostr:nprofile1qqsvyxc6dndjglxtmyudevttzkj05wpdqrla0vfdtja669e2pn2dzuqppemhxue69uhkummn9ekx7mp0qywhwumn8ghj7mn0wd68ytnzd96xxmmfdejhytnnda3kjctv9uq3xamnwvaz7tm0venxx6rpd9hzuur4vghsxsrv29 's pollerama ? https://pollerama.fun/
-
🌸 nostrcheck 🔥
nostr:nevent1qqsdw58g7ezvcmv2lh53nq3xqpg3lg5j30twu5eyr8mhskpjavkfwwqprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hsygyfu997f8ksqu76swm8sfuu62d6ttvxeuqqk63arfxrm392flws9spsgqqqqqqsct5k57
-
Stuff in progress:
https://github.com/orgs/HORNET-Storage/repositories
-
Possibly on zap.store ?
-
Shit, one good cat. His relay is still up, so who knows...
-
Well I know that supertestnet said it is not practical for zaps but I wanted to spin a nutshell mint on the phone to test between amethyst and oxchat and then bankify it to zap some catstr content. Not bad at all. Apart from the extentions concern, at least the mint can rugpull only if the backend goes bye.
https://image.nostr.build/ada61bde061c770cb3d99f62f3146ef40a2b74b3adfe7ae57dceae5d3f9d5a28.jpg
https://image.nostr.build/a8dd0a47681e4a634aa9ecf8e64408d88044c9f0ecb2ed87c7aa951ccc78aca7.jpg
-
Nice. Other clients may adopt 🤙
https://image.nostr.build/0c130aff5edb9cd529faab9a86209a89eed30d7879f25000745107fe32da68a1.jpg
-
Stay ungovernable 🔥🤙
https://image.nostr.build/b3c2d1372c44c4801fbabb278eb470c5e3983e770e5973f353e5e9ffee979293.jpg
-
Forget the spoot. That's groovy.
https://blob.satellite.earth/d40a636c09786312e9c43326ad5002e938a378fc5695bb88e387b64f12b868fc
-
You can get the online ones at the moment from https://api.nostr.watch/v1/online clean up the list a bit and use something like :
```
#!/bin/bash
input_file="cleaned_relays.txt"
output_file="relay_nips_output.txt"
specific_nip=45
> "$output_file"
while IFS= read -r relay; do echo "Querying $relay"
relay_name=$(echo "$relay" | awk -F[/:] '{print $4}')
response=$(curl -s --max-time 10 -H "Accept: application/nostr+json" "$relay")
nips=$(echo "$response" | jq '.supported_nips | @csv' | tr -d '"')
if echo "$nips" | grep -q "\b$specific_nip\b"; then echo "Supported NIPs for $relay_name ($relay): $nips"
echo "Relay Name: $relay_name" >> "$output_file" echo "Relay URL: $relay" >> "$output_file" echo "Supported NIPs: $nips" >> "$output_file" echo "" >> "$output_file"
fi done < "$input_file"
```
Takes awhile but will give you something like this:
https://image.nostr.build/03fb659b72c322044036c9838879451dc3c526fc07c55c9f1d0bf3e04706745b.jpg
-
nostr:nevent1qqs08002jt9xrqd76cazxj2mp3g82her5rw3qpefghdmngdxzqcleugpr4mhxue69uhkummnw3ezucnfw33k76twv4ezuum0vd5kzmp0qgsfmd476kacwlqe920d9qrwazqrxpm3flwy85p2y3sj50qcexcvfmcrqsqqqqqp38t6ml
nostr:nevent1qqsv4d0z6tn2a9q2f5lvu2dmg4mycfj8vxm8j2ajytqp42r2kpd0aqgpzemhxue69uhkummnw3ezuerpw3sju6rpw4ej7q3qnkmta4dmsa7pj25762qxa6yqxvrhzn7ug0gz5frp9g7p3jdscnhsxpqqqqqqzt3nxpl
-
Oh yeah #nostr tip 🔥
https://image.nostr.build/07b2b491adb3b70965e551199db513ba9fed255fba96c6cbbd1a536f105ea611.jpg
https://image.nostr.build/5f8724cacf95c000256aa57faeec8af4663e8e9b411ab80fe598ee39197143a1.jpg
nostr:nevent1qqsqe2tcckdlh84uwhgx5gcawh6ezmpddt49k56qsha07g2jrgnqk4gpr4mhxue69uhkummnw3ez6vp39eukz6mfdphkumn99e3k7mf0qgsxue9c8s0kwnaspf03nqtv99akg99lvlcptz2wqnw5cet7jsgza6qrqsqqqqqph3fqrx
-
🔥🔥🔥 nostr:nprofile1qqszy58kj62v9fpe98nhuh0q76np4e0r0g0wd44rhth3wphdnyqjfzcpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3wamnwvaz7tmjv4kxz7fwvd6hyun9de6zuenedyq3yamnwvaz7tmwdaehgu3wwccxctnfduyrnr5s help this man to get to the 58k ladies 🤣
nostr:nevent1qqstektmke56wn7rgsc3hc848wy48sjs74q2n6wcsdkgk9ydkwn4l7spr9mhxue69uhhyetvv9ujuumwdae8gtnnda3kjctv9upzqgvra9r4sjqapufyl0vnc4kv4fz70e29em4c655y37vz206f0wt4qvzqqqqqqyfydq7g
-
No no need for local, I can see the get req to damus. Was just wondering about the nostr settings are for as it does not seem to ask anything on the user side.
-
Yeah looks good. Anon 🤙 the nostr gen anon keys does not stick in there though, work in progress?
https://image.nostr.build/92d257a1b2f29cc8bbf16cdd3c33c7a555eab153fbc39d8c3fbad1164e499c18.jpg
https://image.nostr.build/d1074bb6823fc5c7cdb508520c8f5b4d3513670fb3a397d3beb1d2ba258ceaf2.jpg
-
Anyone there still want to try that? 🤙
nostr:nevent1qqs9pee3jexptp8ntlkhlen0ypwhzw6a93hd2s9evxyuylq38j2qjagpzpmhxue69uhkztnwdaejumr0dshsygyh4snarvafl3ssvzjc6suqhvupyan0yu5sl9msyxf4cvsxr9jrkupsgqqqqqqsfr32zk
-
Nice. Zapped on mobile as it works with kiwi and lemur in desktop mode. But a native mobile friendly view would be great 🤙
https://image.nostr.build/0252d34ff6aaa340ba5bea463d688e3ae66e0bbc5b95523699cb977341953903.jpg
-
Apparently it could mean loosing money. The good news? It's fiat, not bitcoin 🤣
-
This shit is nutz 🤙
https://blob.satellite.earth/0f60dcd70034191641a1935d15bf31cae26400929e54824829f734c811828023
-
Use these:
https://nstore.nostrver.se/73e5883d39d71ba6c53443683e3a500895cbb66cc94f9ec6888515c26f808181.jpeg
PastaGringo had some issues and closed the fractalized one but the rest work, apart from the last one(it is limitted by npub for my personal use). Thanks hzrd, the server works great 🤙
-
Zapped directly on wavlake. Great music 🤙