Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Importing GitHub project to Javascript web app

First off, I am still quite a beginner in Javascript, and the solution is most likely very obvious, but I just can't get it to work. I am trying to import this GitHub project: https://github.com/ProjectOpenSea/opensea-js. Installing it with npm and importing it in a script works fine using the following code:

import { OpenSeaPort, Network } from 'opensea-js'

However, how would I import and use these functions in a web based application?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The library itself cannot be imported into a web application to be run on the client side (aka run in the browser of the person visiting the site).

To interface with the library, you'd want to use something like Express.js. With Express, you could make a web server that acts like an API. A web application would request data from the API, the API/server runs the OpenSea library to do whatever you want, and then you send back whatever you want that OpenSea did back to the user.

However, you could also use OpenSea's own api, documented here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda