1.2.1 • Published 3 years ago

nostrmini v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years 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

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.1.3

3 years ago

1.0.4

3 years ago

1.2.1

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago