Skip to main content
Home
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
a year ago (0.1.2)

Mostr Signer

Nostr HTTP signer program used by mostr.pub.

Usage

MOSTR_SECRET="123..." deno run -A jsr:@soapbox/mostr-signer/server

GET /mostr/:apId

Get pubkey for the given ActivityPub ID.

{
  "pubkey": "fb8ef9f5ec3e4eeb0987ab2907d5480c341345401468a3d64ef06a539971b1ba",
  "relays": {
    "wss://relay.mostr.pub/": {
      "read": true,
      "write": true
    }
  }
}

POST /mostr/:apId

Sign an event. POST an event template in the request body to get a signed event in the response body.

{
  "kind": 1,
  "content": "hello world",
  "tags": [],
  "created_at": 0,
  "id": "fad39840bcb9eabd4501e7def10bdea25480f26d18cfa61671cdad2b748fdf87",
  "pubkey": "fb8ef9f5ec3e4eeb0987ab2907d5480c341345401468a3d64ef06a539971b1ba",
  "sig": "02cdd12975b4d9b7aebb9de50d9a6eec9b94b5d4a1041f55f0fcf08f59baa79ed74216cb24132cac7860bfef2544e4e29d3d30e1c5417d83e0e54b46a148fefd"
}

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@soapbox/mostr-signer

Import symbol

import * as mostr_signer from "@soapbox/mostr-signer";
or

Import directly with a jsr specifier

import * as mostr_signer from "jsr:@soapbox/mostr-signer";

Add Package

pnpm i jsr:@soapbox/mostr-signer
or (using pnpm 10.8 or older)
pnpm dlx jsr add @soapbox/mostr-signer

Import symbol

import * as mostr_signer from "@soapbox/mostr-signer";

Add Package

yarn add jsr:@soapbox/mostr-signer
or (using Yarn 4.8 or older)
yarn dlx jsr add @soapbox/mostr-signer

Import symbol

import * as mostr_signer from "@soapbox/mostr-signer";

Add Package

npx jsr add @soapbox/mostr-signer

Import symbol

import * as mostr_signer from "@soapbox/mostr-signer";

Add Package

bunx jsr add @soapbox/mostr-signer

Import symbol

import * as mostr_signer from "@soapbox/mostr-signer";