pmrcunha on Nostr: There is no build script in the package json of nostr tools. But it’s still simple ...
There is no build script in the package json of nostr tools. But it’s still simple enough. Clone the repo, install bun, and run:
$ bun run build.js
$ tsc
(You can probably use node instead of bun)
Then the bundle file will be in the lib folder and you can just serve it with the rest of your app
Published at
2025-03-31 06:05:29Event JSON
{
"id": "8befb6ecd81d0d0e0d939771452ec52ba4c75135695e6f97f32b4a2523882153",
"pubkey": "b299876ba85e33da57269247f7f91aee025f5bd2bc229aa85c7908f37c10c838",
"created_at": 1743401129,
"kind": 1,
"tags": [
[
"e",
"d433dc4c2268cd0469e9f14ab71b13f978db591ccb6b15ef0935400314c10224",
"wss://a.nos.lol",
"root"
],
[
"e",
"2997affd6c780fe0b7c2f923ede5a1106d832356022a8c3243c8a326a3448a43",
"",
"reply"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"p",
"be7358c4fe50148cccafc02ea205d80145e253889aa3958daafa8637047c840e"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
]
],
"content": "There is no build script in the package json of nostr tools. But it’s still simple enough. Clone the repo, install bun, and run:\n\n$ bun run build.js\n$ tsc\n\n(You can probably use node instead of bun)\n\nThen the bundle file will be in the lib folder and you can just serve it with the rest of your app",
"sig": "821d66e7fccef0f86ebf2040f095a5af60ee0016ed40e2e01b7036d56328f8a32649fd9160bf7725567a40dea7c9c108ed88a64739522ee1cd76352908e1672b"
}