Git Product home page Git Product logo

nostrcheck-api-ts's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @quentintaranpino
  • ๐Ÿ‘€ Iโ€™m interested in build nostr apps
  • ๐ŸŒฑ Iโ€™m currently learning typescript
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on nostr
  • ๐Ÿ“ซ How to reach me, find me on nostr ๐Ÿ’œ

nostrcheck-api-ts's People

Contributors

quentintaranpino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nostrcheck-api-ts's Issues

Build / Install fails

Describe the bug
When installing app from install scripts the build fails a few places. First there's no instructions to run the initialize.sh script. But a bigger issue is npm run install fails.

To Reproduce
Steps to reproduce the behavior:

  1. Start with fresh debian install
  2. Run install.sh
  3. Run initalize.sh
  4. Run npm run start
  5. See error

Expected behavior
It should be able to find canvas.node but it can't... This prevents the app from running.

Additional context

npm run start

[email protected] start
node --enable-source-maps --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm ./dist/server.js

Error: Cannot find module '../build/Release/canvas.node'
Require stack:

  • /root/nostrcheck-api-ts/node_modules/canvas/lib/bindings.js
  • /root/nostrcheck-api-ts/node_modules/canvas/lib/canvas.js
  • /root/nostrcheck-api-ts/node_modules/canvas/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/root/nostrcheck-api-ts/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object. (/root/nostrcheck-api-ts/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Object.require.extensions. [as .js] (/root/nostrcheck-api-ts/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1119:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/root/nostrcheck-api-ts/node_modules/canvas/lib/bindings.js',
    '/root/nostrcheck-api-ts/node_modules/canvas/lib/canvas.js',
    '/root/nostrcheck-api-ts/node_modules/canvas/index.js'
    ]
    }

Potential issue with NIP-05 route

Describe the bug
Users added to the registered table are not able to validate their NIP-05 address at the server domain.

To Reproduce
Steps to reproduce the behavior:

  1. Add a user to the registered table
  2. Attempt to visit /.well-known/nostr.json?name=
  3. Receive an error about not being able to load /api/v2/nostraddress

Expected behavior
A JSON object containing the user's name and npub should be returned:
i.e.

https://sove.rent/.well-known/nostr.json?name=thesamecat

output:
{"names":{"thesamecat":"72f9755501e1a4464f7277d86120f67e7f7ec3a84ef6813cc7606bf5e0870ff3"}}

Desktop (please complete the following information):

  • OS: macOS Sonoma
  • Browser: Thorium, Gossip, Damus
  • Version: current (all)

Smartphone (please complete the following information):

  • Device: iPhone 15 Pro Max, iMac
  • OS: iOS 17.1, macOS Sonoma
  • Browser: Damus
  • Version: TestFlight

Additional context
I was able to temporarily fix this by adding:

        if (version == "v2"){
                app.get("/api/v2/nostraddress", Checknostraddress);
        }

to src/routes/nostraddress.route.ts

TAGS for galleries

Add the ability to create and modify tags for images uploaded by users. Create the necessary endpoints so that the nostr applications can search by tag in the galleries.

Uploaded media turns green

Describe the bug
Uploaded images and videos may turn green (or black, transparent). The original image is compressed on the left side.

To Reproduce
Steps to reproduce the behavior:

  1. Upload media to nostrcheck from the Nostr client or the nostrcheck website.
  2. Check the uploaded media to confirm that it has not been correctly resized or converted.

Expected behavior
Correctly resized and converted media is uploaded.

Screenshots
Screenshot of smartphone screen
Original Image Information
.png format
1080*2316
304KB
Image before uploading to nostrcheck
Screenshot_20231013_131026_One UI Home
Image after uploading to nostrcheck
https://nostrcheck.me/media/public/11beca1671697482372d2fb282287bcc068954ddbcfea529b5c575f05d22d0c8.webp

Desktop (please complete the following information):

  • OS: Windows10
  • Browser Chrome
  • Version 118.0.5993.70

Smartphone (please complete the following information):

  • Device: Galaxy Note20 Ultra 5G
  • OS: Android 13
  • Browser Chrome Beta
  • Version 119.0.6045.17

Additional context
Resizing issues? (Forecast, speculation)

  • Uploading originally small images does not cause bugs
  • If both vertical and horizontal pixel counts are divisible when scaling down, the bug will not occur (probably).

Threads that I uploaded images of various sizes to test and verify (sorry for the Japanese).
https://nostter.vercel.app/nevent1qqs8shg6r7dfmel47lkhy802z98kjj6sdm3a53uf5sz7e9dd06rxrds6lrmp5

Integrate server as bot for password recovery and help

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.