Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!