0.0.1 • Published 10 months ago

ostrich-script-js v0.0.1

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

OstrichScript

OstrichScript is a convention for extending nostr clients with user-defined functionality. Extensions are written in lua so that they are easy to write, and easy to sandbox in any client.

The basic idea is that a script can export any number of functions which can then be called from javascript to augment a client's functionality with highly customized user scripts.

You can learn lua by following along with programming in lua.

You can write, edit, publish, and delete extensions using Ostrich Editor.

Interface

A script may export any of the following functions:

filterEvent(event: NostrEvent): boolean

Functions are expected to be synchronous, but are awaited by this library.

Implementations

Currently OstricScript is implemented in the following clients:

(none yet)

0.0.1

10 months ago