1.2.1 • Published 11 months ago

nostrmini v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

nostrmini

Very small in-memory nostr relay server that uses a dequeue store for events

Written for tests but could also be used as a base for more complex memory routing, for example.

# run from the cli

yarn install
yarn start:dev

Or use as a lib

Add to project:

yarn add nostrmini

Use in tests with a dynamic port:

import NostrMini from 'nostrmini'
const srv = new NostrMini()
srv.listen(0)
const port = srv.address().port
const url = `ws://127.0.0.1:${port}`

// be sure to close all your connections too
afterAll(()=>{
  srv.close()
})
1.2.0

11 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.1.3

12 months ago

1.0.4

1 year ago

1.2.1

11 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago