a nostr web interface in vanilla JS https://nostr.ch/
 
 
 
 
 
Go to file
OFF0 b86cf6f687
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
pwa: add manifest and related app icons
That nostr.ch has a pretty app icon when adding to home screen.
2022-12-11 11:06:25 +01:00
src pwa: add manifest and related app icons 2022-12-11 11:06:25 +01:00
tools add an about page 2022-12-09 01:04:36 +01:00
.gitignore initial 2022-11-06 02:35:27 +01:00
.woodpecker.yml add an about page 2022-12-09 01:04:36 +01:00
LICENSE initial 2022-11-06 02:35:27 +01:00
README.md about: link to the original write up on nostr protocol 2022-12-09 23:28:20 +01:00
esbuildconf.js pwa: add manifest and related app icons 2022-12-11 11:06:25 +01:00
package-lock.json 0.0.10 2022-12-10 16:57:21 +01:00
package.json 0.0.10 2022-12-10 16:57:21 +01:00

README.md

nostr web client

this is a web interface to nostr. a live instance is hosted at https://nostr.ch/

some useful resources:

dev

nodejs v18.x and npm v8.x are recommended.

after npm install, start by running a dev server with:

npm run serve

and point a browser to http://127.0.0.1:8001/

the serve command injects a live reload snippet. to build a "production" copy, execute

npm run build

the build is done using esbuild, with a config in esbuildconf.js. the result is placed in dist directory.

release

  1. make sure version field in package.json as seen by remote git on master branch matches the tag created in the next step.
  2. tag a commit on master branch with a git tag v<vesion>.
  3. push the tag to the remote: git push --tags.

the CI then receives a git tag event, executes npm run build, creates a tar.gz with all the files found in dist directory and uploads it as a new release artifact. the release is named after the tag name.

the idea is that nostr web instances are then notified about a new release, download the tar.gz archive and update their local copies. this is not yet implemented. at the moment, the CI symply rsync's dist/ with a remote on https://nostr.ch.