https://github.com/akiomik/xk6-nostr

An xk6 extension for nostr

https://github.com/akiomik/xk6-nostr

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.5%) to scientific vocabulary

Keywords

k6 k6-extension load-testing nostr xk6
Last synced: 5 months ago · JSON representation

Repository

An xk6 extension for nostr

Basic Info
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
k6 k6-extension load-testing nostr xk6
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

xk6-nostr

A load testing extension for Nostr using k6.

Build

  1. Download xk6:

bash go install go.k6.io/xk6/cmd/xk6@latest

  1. Build the k6 with extension:

xk6 build --with github.com/akiomik/xk6-nostr@latest

Development

Build

bash make build

Testing

bash make test

Execute example scripts

```bash

NOTE: k6 is built with make build

./k6 run --vus 5 --duration 1m examples/publish.js ```

Examples

You can find more examples in examples/.

```javascript import nostr from 'k6/x/nostr'; import event from 'k6/x/nostr/event'; import { check } from 'k6';

const relay = nostr.relayConnect("ws://127.0.0.1:7777"); const sk = nostr.generatePrivateKey();

export default function () { const now = Math.round(new Date().getTime() / 1000); const ev = event.sign({ content: Math.random(), kind: 1, created_at: now }, sk); const status = relay.publish(ev); check(status, { 'status is success': (s) => s.string() === 'success' }); }

export function teardown() { relay.close(); } ```

Owner

  • Name: Akiomi KAMAKURA
  • Login: akiomik
  • Kind: user
  • Location: Japan

Bird lover.

GitHub Events

Total
  • Delete event: 1
  • Push event: 1
  • Pull request event: 2
  • Create event: 1
Last Year
  • Delete event: 1
  • Push event: 1
  • Pull request event: 2
  • Create event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 months
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
Pull Request Authors
  • mstoykov (2)
  • dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
enhancement (2) dependencies (1)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
proxy.golang.org: github.com/akiomik/xk6-nostr
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 8.8%
Dependent repos count: 10.7%
Average: 15.9%
Forks count: 18.8%
Stargazers count: 25.3%
Last synced: 6 months ago

Dependencies

.github/workflows/go.yml actions
  • actions/checkout v3 composite
  • actions/setup-go v4 composite
go.mod go
  • github.com/btcsuite/btcd/btcec/v2 v2.2.0
  • github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
  • github.com/cespare/xxhash/v2 v2.2.0
  • github.com/decred/dcrd/crypto/blake256 v1.0.0
  • github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
  • github.com/dgraph-io/ristretto v0.1.1
  • github.com/dlclark/regexp2 v1.9.0
  • github.com/dop251/goja v0.0.0-20230919151941-fc55792775de
  • github.com/dustin/go-humanize v1.0.0
  • github.com/fatih/color v1.15.0
  • github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible
  • github.com/gobwas/httphead v0.1.0
  • github.com/gobwas/pool v0.2.1
  • github.com/gobwas/ws v1.2.0
  • github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
  • github.com/google/pprof v0.0.0-20230207041349-798e818bf904
  • github.com/josharian/intern v1.0.0
  • github.com/mailru/easyjson v0.7.7
  • github.com/mattn/go-colorable v0.1.13
  • github.com/mattn/go-isatty v0.0.19
  • github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd
  • github.com/nbd-wtf/go-nostr v0.24.2
  • github.com/onsi/ginkgo v1.16.5
  • github.com/onsi/gomega v1.28.0
  • github.com/pkg/errors v0.9.1
  • github.com/puzpuzpuz/xsync/v2 v2.5.0
  • github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e
  • github.com/sirupsen/logrus v1.9.3
  • github.com/spf13/afero v1.1.2
  • github.com/tidwall/gjson v1.16.0
  • github.com/tidwall/match v1.1.1
  • github.com/tidwall/pretty v1.2.1
  • go.k6.io/k6 v0.47.0
  • golang.org/x/exp v0.0.0-20221106115401-f9659909a136
  • golang.org/x/sys v0.11.0
  • golang.org/x/text v0.12.0
  • golang.org/x/time v0.3.0
  • gopkg.in/guregu/null.v3 v3.3.0
go.sum go
  • 171 dependencies