The Gitcoin Passport SDK is comprised of a set of libraries distributed on npm to help developers interact with Passport data living on Ceramic.

Overview

Gitcoin Passport SDK

Intro

The Gitcoin Passport SDK is comprised of a set of libraries distributed on npm to help developers interact with Passport data living on Ceramic.

For more information on Gitcoin Passport or to interact with a live instance, please visit passport.gitcoin.co.

Packages

--

Comments
  • fix(passport-sdk-types): update types to match passport repo types

    fix(passport-sdk-types): update types to match passport repo types

    • Keeping the verified type on the Stamp will make the verifier sdk adaptable. The verified option is also set to optional. This way the type is only populated after the verified sdk is used.

    Closes https://github.com/gitcoinco/passport/issues/325 Closes https://github.com/gitcoinco/passport/issues/327

    opened by farque65 0
  • test(passport-sdk-writer): generate a new random DID for writer ceramic integration tests

    test(passport-sdk-writer): generate a new random DID for writer ceramic integration tests

    test(passport-sdk-writer): generate a new random DID for writer ceramic integration tests

    When using the same DID for all test runs, the tests will eventually slow down and time out due to ever-increasing number of updates to apply. Replacing this with a newly generated DID each time results in fast-enough integration tests that pass more consistently.

    opened by shavinac 0
  • [verifier] allow verification of stamps issued to DID PKHs outside of Eth Mainnet

    [verifier] allow verification of stamps issued to DID PKHs outside of Eth Mainnet

    the verifyStamp method assumes that stamps are issued to a user's DID PKH on Eth Mainnet (chainId 1), and will fail to verify stamps issued to non-mainnet PKHs

    https://github.com/gitcoinco/passport-sdk/blob/1b30f28575b1f6fe5a35fe400265775b4be15317/packages/verifier/src/verifier.ts#L70

    Since the passport-sdk reader allows non-mainnet networks (constructor), and passport-sdk writer doesn't enforce the network by itself, we should be able to support other networks for the verifier too

    opened by shavinac 0
  • [types] Add additional provider names to types

    [types] Add additional provider names to types

    https://github.com/gitcoinco/passport-sdk/blob/1b30f28575b1f6fe5a35fe400265775b4be15317/packages/types/src/index.d.ts#L122

    Gitcoin Passport now supports additional providers like "Brightid" | "Github" (see https://github.com/gitcoinco/dPopp/blob/main/types/src/index.d.ts#L125)

    We should also consider accepting any string for the passport-sdk PROVIDER_ID type, to allow other developers to easily use their own applications

    opened by shavinac 0
  • docs: Clarity improvement on reader usage

    docs: Clarity improvement on reader usage

    PassportReader doesn't have a default export, so you need to either just import { PassportReader } or do something like reader.PassportReader

    I updated the README to use the former. As written in the README currently, a user could get the following error: TypeError: PassportReader is not a constructor

    opened by lucianHymer 0
  • [BUG] passport-sdk-reader returns error 500 for some addresses (too many stamps?)

    [BUG] passport-sdk-reader returns error 500 for some addresses (too many stamps?)

    The Bankless Academy platform uses passport-sdk-reader to read the stamps of a user.

    Some users have reported issues with their accounts.

    Example of addresses: 0x5B1899D88b4Ff0Cf5A34651e7CE7164398211C66 0xd9c1570148E36FF9657b67AcE540052341DDF7de 0x1EC1CcEF3e1735bdA3F4BA698e8a524AA7c93274

    Response example when using passport-sdk-reader: error 500

    response: {
        status: 500,
        statusText: 'Internal Server Error',
        ...
          method: 'post',
          url: 'https://ceramic.passport-iam.gitcoin.co/api/v0/multiqueries',
          data: '{"queries":[{"streamId":"ceramic://kjzl6cwe1jw147z0koiofaosm1yw9z8hhuk93zwwyuq8hajwugi5x3148mk7h7d"},{"streamId":"ceramic://kjzl6cwe1jw147utnxds8xn6nonknxwsnebu4acxoqi3betmr02g9eqqcmxzx5z"},{"streamId":"ceramic://kjzl6cwe1jw147ktjrjk4ax3evsest5gimzq4d47uvrq96zb9e2y381pjlk6kl5"},{"streamId":"ceramic://kjzl6cwe1jw149zs34uwe3vvorbp5f6yaotv9tgaqxhc8rpj9kwl6ivnbu1hnd9"},{"streamId":"ceramic://kjzl6cwe1jw14bk4y7vo3pwxsmzlglyr03vgwksh05gfvdo52j0ay8g6b0lmjrc"},{"streamId":"ceramic://kjzl6cwe1jw148o92cqjs5sikxzbbq3iw81ftye6lwfdguwglbk2osjhwvg9xgk"},{"streamId":"ceramic://kjzl6cwe1jw1464bybt7ysusnra1gpxd2tfk8b92g8dw7gs7env2jbfestj5kfw"},{"streamId":"ceramic://kjzl6cwe1jw149dd84rfqyny1732s8md9jk210rsy41j7b7p7djsgdmsn7ajmg3"},{"streamId":"ceramic://kjzl6cwe1jw146f6cllpgllan7qwkntbg2elxn5wv0srv4dfi6rkvnjwxtl2f4x"},{"streamId":"ceramic://kjzl6cwe1jw146by5t3sfbsianulmdje5lom0rbdawj7373trz5bm7cycz6rmb2"},{"streamId":"ceramic://kjzl6cwe1jw145xyxe8wohfka0lhmpw481z1ixwo0rajhxxuzb8qoiu3yu6ukum"},{"streamId":"ceramic://kjzl6cwe1jw146pxsyum09d4v9j8ugv3hin30vsw4pb7joge4ycy95r19vk0k5g"},{"streamId":"ceramic://kjzl6cwe1jw14ape9gnqtkuk4k47i0i5x90lf7maw128dicsudedpcodn50aowh"},{"streamId":"ceramic://kjzl6cwe1jw146pd7l13kd403cgqx3mglizgsd7ddpmz84sdikeue50si4y2867"},{"streamId":"ceramic://kjzl6cwe1jw14ahjojuimnu0ilww7ydhcex5azojopaay3xqoatu1z9okintngs"},{"streamId":"ceramic://kjzl6cwe1jw14b9mgcb0fksr5di7ps9wiaajbuje9uqh11ovs3l7j93qw392hsa"},{"streamId":"ceramic://kjzl6cwe1jw145j7mp4gjc7t3owlhvz4wco83ku9byynj47yrnniatfryss3qa1"},{"streamId":"ceramic://kjzl6cwe1jw148qnbunb8778uzh7k57smihmrbysbjhpz8rszxuyac0zy4d6w0n"},{"streamId":"ceramic://kjzl6cwe1jw145y2b8gxyqq81ez0g7varcl3mwu8r2olsr71bgdix5hv68t855p"},{"streamId":"ceramic://kjzl6cwe1jw145as84tymdtjfnb035j5omswr8rgma8ryf1m1xxu6wn0n2umsoy"},{"streamId":"ceramic://kjzl6cwe1jw149czqfq1puj2w96irj5nfqkecefjazdw00dqxkv5874osmqo7fc"},{"streamId":"ceramic://kjzl6cwe1jw14648qnz5apbyj9j7vthx3sxrq1h1j5advelnog9uhhrgav3xk1z"},{"streamId":"ceramic://kjzl6cwe1jw1493wi9lpc5ih5kvx3kxmkqu06l3dquni23j49429j1dikeutmtq"},{"streamId":"ceramic://kjzl6cwe1jw146dt3114ml6es5hik4i2kgpkzg0ep3f2x3qbgwik6seqskdxnku"},{"streamId":"ceramic://kjzl6cwe1jw14759ttwh5lyqwp3w7mfn00yglo06kelaly3n3es8k5u2udyph56"},{"streamId":"ceramic://kjzl6cwe1jw14a6gq4h7r38o8rbh20qlvvaryfseil40ngkjbl4hj0kkjkfx8a1"},{"streamId":"ceramic://kjzl6cwe1jw145z8tyweb9n44m88unwkmhlawle81gtapive7jx50yvy5n59fzf"},{"streamId":"ceramic://kjzl6cwe1jw148ht8hiayc2yvvrn06l7vvjp1gd1tdjsrmr9vqna57b9dzt6b6f"},{"streamId":"ceramic://kjzl6cwe1jw148sj85giaex1eem6tpbsto6jub0xpvemcwe628a1n8zqpz6etrd"},{"streamId":"ceramic://kjzl6cwe1jw1473bv9ws6nixxkaytxsif2vpfbvjt2x1d81hjb2nxs5jvp2p7on"},{"streamId":"ceramic://kjzl6cwe1jw14bbo4ojr4jvahbx22hwsxgugc0cchl87dj3vz8bi2db5oec245b"},{"streamId":"ceramic://kjzl6cwe1jw149omsbr8eqirtgfyfg6cvj8o2h3agi53wt2cgo9edqiierq3ov1"},{"streamId":"ceramic://kjzl6cwe1jw14a72gz1uk7m0si02ezcxiat3p7udi3fj7ugw6cznj0pchzutawe"},{"streamId":"ceramic://kjzl6cwe1jw146sdnpjv3cf6a6qr9nkqppu7wol74kdssmc6f307appf0gjp2zf"},{"streamId":"ceramic://kjzl6cwe1jw146r7y45s3s92jph0bhtl0wzhvdne0897s48mi041yw2duqratq2"},{"streamId":"ceramic://kjzl6cwe1jw145nl6mcb9shfk4ia0runhj36monkl2toz8tvonz1up4x07b95v7"},{"streamId":"ceramic://kjzl6cwe1jw148yghbva41w9tssdcrnwc0joklhqpe426bukgxbap2ttcyt4fy6"},{"streamId":"ceramic://kjzl6cwe1jw14b0o2lqtntinup1a2w30whzcapid6tpprc648zytmcdtayl50kf"},{"streamId":"ceramic://kjzl6cwe1jw1461hjnhgm07u5dzqhmcy08a9begi0ft8fivwl1tfpphdswnyyn8"},{"streamId":"ceramic://kjzl6cwe1jw147pj6wrnyo7px8xipae2kdj25t9gse0ablk0gsp7q3mmncf7ehy"},{"streamId":"ceramic://kjzl6cwe1jw1488ldqgipzhogf4gatii7j1ypif82eeri0yzc443h0x6pvw1ct6"},{"streamId":"ceramic://kjzl6cwe1jw148bj150lsj82hei0maxukqbfkl0195txjkaebyqjkdeq9x9ivh3"},{"streamId":"ceramic://kjzl6cwe1jw147mavpgi62kjgeqj2l2qwmsts5mkosxntn4x8gyyawmcg16f0bs"},{"streamId":"ceramic://kjzl6cwe1jw1467vu48wzrumf8as81jiwr7ee0udaapt4top1qeb7wcbsgi09nn"},{"streamId":"ceramic://kjzl6cwe1jw1483hr4e427v2qdt5egh4m9yw0m6lcg6w5dmqrb4xsoevt931gjb"},{"streamId":"ceramic://kjzl6cwe1jw1472y4krjkzvfjx0xkw9qh40r2vrsenbqo80mx4grg9hz7ohmb4s"},{"streamId":"ceramic://kjzl6cwe1jw145levul352vc9d7zh9r9u58kke7o54rogedc74vlskxa11jtvnv"},{"streamId":"ceramic://kjzl6cwe1jw146eds9t7szhx1414epdm8uqw2fk3xiwol0frvhykiu4fu0irzkz"},{"streamId":"ceramic://kjzl6cwe1jw14ahu2bwg9f1rkbetu3ntpw6sixvfqihbwe6ane1ytj10bty3ap4"},{"streamId":"ceramic://kjzl6cwe1jw145i7yk5hk34jmc1utmwfkhqftwj6ajv2jroe71tj8l1ey0mzzqy"},{"streamId":"ceramic://kjzl6cwe1jw147f0frpl43pl0x5nl5k6mw8tmz8gu1kzo3lhlhi74p5pl6tty8v"},{"streamId":"ceramic://kjzl6cwe1jw14b1m7krzjmjnezu8o3qlh1hjq92w3xwpp585k745vfey45oz81d"},{"streamId":"ceramic://kjzl6cwe1jw14a30i00gj2r4suiw8nid5jyay994466l2em1klpq2h42mt9febi"},{"streamId":"ceramic://kjzl6cwe1jw14967wt4xygke4vtessnozpmq15fj2by08roe8q8m5cs57yj0b5b"},{"streamId":"ceramic://kjzl6cwe1jw145bbdou4v76cfc4u43th8yrirvkxtwb07ns3j9ez2p2jsqbgpzv"},{"streamId":"ceramic://kjzl6cwe1jw148wd4j2jicytf9t2kxypbznt4t3f621urk3c982oucok7z3if2h"},{"streamId":"ceramic://kjzl6cwe1jw147otjzxzidn1pvc968g457m5cmw8z2lhzsnak11i77pdvskpuaa"},{"streamId":"ceramic://kjzl6cwe1jw149zu7gum5p43zkny1asg6zuxn39dqkzawnoknpmtgi62kx296f2"},{"streamId":"ceramic://kjzl6cwe1jw1495sv37cgo9u2lh8odjmht8dq7q4hrh076ev9y5xcx3y6m4sx3r"},{"streamId":"ceramic://kjzl6cwe1jw148i3cggd3vrs2me718nfreaaik7sxz19a8096hrepb5mt8eiuwc"},{"streamId":"ceramic://kjzl6cwe1jw147pqickljgr5lglyj2c6wode7y8rtipvpff5uq0zl0gbbgwe3p9"},{"streamId":"ceramic://kjzl6cwe1jw14bkk6cku9463ezctxndp9sasm1mc4ulan4dlkc4yn2dcq0ih4cb"},{"streamId":"ceramic://kjzl6cwe1jw145c564k0s07aopo7i8p3olw4uc6ng808j2p26n8lakretsvkjr9"},{"streamId":"ceramic://kjzl6cwe1jw14a1o1z3e7e57m8ib74983b7foekqrx4vi0j0batplzb7yjvxj2q"},{"streamId":"ceramic://kjzl6cwe1jw14681lp19kcjy8u0jet2g4j6h9iaarcln90srfl4xr7wbldetu2p"},{"streamId":"ceramic://kjzl6cwe1jw146g9vw0lzy7n93cfnpum6juxc5bonjno4cy75bjvx7jlzygf0jm"},{"streamId":"ceramic://kjzl6cwe1jw146hu48senpyrp4sk9rn76bbe7pfli9ggeutobqck4yeqi8zm9qm"},{"streamId":"ceramic://kjzl6cwe1jw149pe57htehzks2ur4k1ab2fedz9fckslnd13k9asx5z1d79j770"},{"streamId":"ceramic://kjzl6cwe1jw148x07myth4a3z7tuufx0kbzqwf7rc4swz6g48nz0ik1s84s85sg"},{"streamId":"ceramic://kjzl6cwe1jw14b7f5zwbqq0guvxoyq6ggfmr1vswrijv3z5gwvlzlz6j5t2j190"},{"streamId":"ceramic://kjzl6cwe1jw146k2kcw7o4eh8jufau453t3vy3fhpaf8si2d06naga6m0wun4qw"},{"streamId":"ceramic://kjzl6cwe1jw1487v828crsb8sbovj0s4uefbyfpbahrbcqgfic96ojg17fhuh72"},{"streamId":"ceramic://kjzl6cwe1jw146lxrl25bw47yza8oouhfpw02w3it2lqune7ninc66tfdrxyxam"},{"streamId":"ceramic://kjzl6cwe1jw14ax39hr4f8w4ng9p69sbot5yuaq75so2labqna62wy0yrui3cxv"},{"streamId":"ceramic://kjzl6cwe1jw149llg2ilfha4whhzxck1la94uu5mrekpiyua50fvuy32d3ec685"},{"streamId":"ceramic://kjzl6cwe1jw14b6bj5kyogwsy6o2lel2wxod8mcntoav5bjo7pzkas8x3v636l8"},{"streamId":"ceramic://kjzl6cwe1jw146os2t51ezn89t3c7m11dzf2nkaryvhj8xg6l1vjh5xl9yv1gfj"},{"streamId":"ceramic://kjzl6cwe1jw14ayv08p5ovvh8dix7owjc0i8mxq2emzeaiqzrejykamjvkdhkb1"},{"streamId":"ceramic://kjzl6cwe1jw148yqlcoac3nl0rqs3psjo48rwa3knduqkxewzl729i7tzt0zim5"},{"streamId":"ceramic://kjzl6cwe1jw14avaltv9zcmzzmgtosgwb0vz9lc5gusa4e6z11cnfaw2ewhxkey"},{"streamId":"ceramic://kjzl6cwe1jw14azjosf8ccci7qfwzw0z22430hg36yoolnf44g47rkub0vgqzf6"},{"streamId":"ceramic://kjzl6cwe1jw149dpdvnx6pgesxyxqoy2xvuwnlwri3mxesqcxtfydq0r5fbmkyx"},{"streamId":"ceramic://kjzl6cwe1jw147hvwnmsbvwqx261ag1o898l3xmu84yb5t9yx58cnppo7abb490"},{"streamId":"ceramic://kjzl6cwe1jw149hyhrrhtr8wqb1uzli35vuadl4ulhxjx3r54mr481x4n91pzea"},{"streamId":"ceramic://kjzl6cwe1jw145ri0vmidox1igr5l98cs8fy6aohm31ynbh7g2053t210dbm4vd"},{"streamId":"ceramic://kjzl6cwe1jw146ztjibybtjuq7l1g1uolwqrwyj7oasqbx58vld7mv0okkpm71q"},{"streamId":"ceramic://kjzl6cwe1jw14601xeumnjvb34m545z4whu9muzzclhud1lsz41snvimod4qddp"},{"streamId":"ceramic://kjzl6cwe1jw147e2ugn45p7r1b6x8kga9k00edoocv0dwqjiabgtqtzk0jibl3q"},{"streamId":"ceramic://kjzl6cwe1jw14a637xjd8qw3bflbhrxsrra2x9xdk9ixie56tyqywj5dv7p1u7n"},{"streamId":"ceramic://kjzl6cwe1jw147o62au0pzdfwqxskni4p7nha9n219y8dgybxkgsjnqu5rkodq9"},{"streamId":"ceramic://kjzl6cwe1jw149qz7uuti4pnpe10dhbk5pm3pwvor2ihrmnqq3wjp1m44h9htsy"},{"streamId":"ceramic://kjzl6cwe1jw147evik6au6171jk5b2ns9wgoyr2iq75am55t2zr4d5yrhe9lfgj"},{"streamId":"ceramic://kjzl6cwe1jw148l5h16thldx3l3b3jdra76p5i653pbxvrl20wk7wniiyihf3tr"},{"streamId":"ceramic://kjzl6cwe1jw1494dt5mtfbx2wg3su3itio2k0zncbof97uj5e4hg66mpm1q7hhc"},{"streamId":"ceramic://kjzl6cwe1jw1477eny1mu1x9d8kvlvyl2fxqj6c8wbctyag1m3syfadj4hfolt0"},{"streamId":"ceramic://kjzl6cwe1jw1479z3l6illcn7wfhuwsnza10njodozaxtrmk4sq527z1xyjcwxo"},{"streamId":"ceramic://kjzl6cwe1jw1476e0w1mvuujvvhcnwpfudsuzj6ws6xt3xg64dy9uy6n8h7pftw"},{"streamId":"ceramic://kjzl6cwe1jw149pay3rvtz4oqmjx31s2g3ocsmay8560gz4rgpcz3hmoquh2f8i"},{"streamId":"ceramic://kjzl6cwe1jw148wday0t283cf4i5f0czw65w4zd6y7jz5bku6j3b4k357w4p026"},{"streamId":"ceramic://kjzl6cwe1jw145vg2mu43d873guh5gymbx8gmx51bwxxmp47le3xuvzwaehsroj"},{"streamId":"ceramic://kjzl6cwe1jw145ubyxtqv31tfi5qhaast1ymlle2lhg7tdbt02vrmltucwtwxuo"},{"streamId":"ceramic://kjzl6cwe1jw146udn36ybxvud5szq2bnnq36swgagve69bfikyrzxagcmzjisd2"},{"streamId":"ceramic://kjzl6cwe1jw1487sow14oq57ah8eue6oyyyczxfhcyn9jdn59py9irdqng2i6ct"},{"streamId":"ceramic://kjzl6cwe1jw1492n3c4igt4cthrfbsp3szzv476jetcxu1e82z6i2p9nq87ufx2"},{"streamId":"ceramic://kjzl6cwe1jw14bgcv88yxbgk5p87hd7tlke8anawfb6n9i7h81nhd75mgsy27fu"},{"streamId":"ceramic://kjzl6cwe1jw149tbyaotg04zn0gfi4cxyi5hg748ien546sk5vqyw3m5e4hhs5a"},{"streamId":"ceramic://kjzl6cwe1jw147rz4ht64zzc88ns339c5ng11med2unhybjhafkjsmjs808p2k6"},{"streamId":"ceramic://kjzl6cwe1jw14968uhff53hg7rzwev9x70668ujtsx2dpx1hdqp6y95dt5abuzk"},{"streamId":"ceramic://kjzl6cwe1jw147oelyn7jo00eh89ga2532itc93hyfxz7f6bpnmlu3proah0fjw"},{"streamId":"ceramic://kjzl6cwe1jw147f8yu07pfcnv0kotjkvnnest7v3dbqiejp2uwibquraommcaxs"},{"streamId":"ceramic://kjzl6cwe1jw149y1kyctj7af3y5tjv0nxxfh2b37akuc8t5jmcmdljvol83patq"},{"streamId":"ceramic://kjzl6cwe1jw14b6t7myna5j22iusdwqtf8y2308efipy0v6r18igjz9sbckvdur"},{"streamId":"ceramic'... 16179 more characters
        },
        data: {
          error: 'Can not verify signature for commit bagcqcera3htjd4m65q7wt4sxzbnjexqcs2phpvgrty3nci6iikqjapiyqciq: CACAO has expired'
    

    I suspect these accounts to have too many stamps saved, making it impossible to return the stamps.

    At some point I manage to get the stamps for 0x5B1899D88b4Ff0Cf5A34651e7CE7164398211C66 and it returned me more than 200 stamps!

    I'm not sure what happens when stamps are updated with Gitcoin Passport but it might be better to remove old stamps and only keep the latest version instead of keeping all the stamps.

    I expect this PR https://github.com/gitcoinco/passport/issues/580 to be a walk-around for this issue as it might allow a user to delete stamps it hasn't been merged yet.

    opened by didierkrux 0
  • [verifier] fails to work in NodeJS

    [verifier] fails to work in NodeJS

    @gitcoinco/passport-sdk-verifier fails to work under NodeJS because of the @spruceid/didkit-wasm dependency. According to the documentation on https://www.npmjs.com/package/@spruceid/didkit-wasm-node, you need to use the @spruceid/didkit-wasm-node package instead.

    I was getting this error message when I tried:

    $ yarn run test
    /home/remyroy/Projects/ethstaker-discord-bot/.yarn/cache/@spruceid-didkit-wasm-npm-0.2.1-1bec27787d-53d5fb9ab0.zip/node_modules/@spruceid/didkit-wasm/didkit_wasm.js:1
    import * as wasm from "./didkit_wasm_bg.wasm";
    ^^^^^^
    
    SyntaxError: Cannot use import statement outside a module
        at Object.compileFunction (node:vm:360:18)
        at wrapSafe (node:internal/modules/cjs/loader:1055:15)
        at Module._compile (node:internal/modules/cjs/loader:1090:27)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
        at Object.require$$0.Module._extensions..js (/home/remyroy/Projects/ethstaker-discord-bot/.pnp.cjs:14394:33)
        at Module.load (node:internal/modules/cjs/loader:1004:32)
        at Function.require$$0.Module._load (/home/remyroy/Projects/ethstaker-discord-bot/.pnp.cjs:14234:14)
        at Module.require (node:internal/modules/cjs/loader:1028:19)
        at require (node:internal/modules/cjs/helpers:102:18)
        at Object.<anonymous> (/home/remyroy/Projects/ethstaker-discord-bot/.yarn/cache/@gitcoinco-passport-sdk-verifier-npm-0.2.1-8807a49570-df97f50af3.zip/node_modules/@gitcoinco/passport-sdk-verifier/dist/verifier.js:74:27)
    

    I did some tests in my own fork on https://github.com/remyroy/passport-sdk/tree/nodejs-fix and it fixed my issues when running under NodeJS.

    To make this reliable and working in both NodeJS and the browser, it might be needed to polyfill the path and fs packages if you want to depend on that @spruceid/didkit-wasm-node package.

    opened by remyroy 1
  • Issue loading passport-sdk-writer

    Issue loading passport-sdk-writer

    I'm able to work with Reader, Verifier, and Scorer just fine.

    But, I cannot load the Writer module.

    At first I got an error about mjs files, but I modified webpack to tell it how to load these (craco used in this example)

    ...
    webpackConfig.module.rules.push({
            test: /\.mjs$/,
            include: /node_modules/,
            type: "javascript/auto",
          })
    ...
    

    I think I did the right thing there.

    But now I get the following error:/ image

    I've been stuck here. I notice that the package.json for passport-sdk-writer has "dist/esm/src/index.js" as main, but I don't have that esm directory. I think that's the crux of the issue.

    I wonder if this is all related, since it all seems to do with modules? If I hack that package.json and remove "esm" from the path, it actually seems to be working (or at least building and running, I haven't successfully written yet), but that seems very wrong haha.

    Is it possible that something got left out of the NPM publish? Or do the devs for this have something set up in their environment that makes this work? Or am I just missing something?

    Thank you!

    opened by lucianHymer 0
Owner
Gitcoin Core
Grow Open Source
Gitcoin Core
SaseulJS is a collection of libraries that allow developers to interact with a local or remote SASEUL node using HTTP.

SaseulJS - SASEUL Javascript API Library Getting Started SaseulJS is a collection of libraries that allow developers to interact with a local or remot

SASEUL 11 Sep 14, 2022
npm i uuid, npm i nodemon, npm i commander

goit-nodejs-hw-01 Получаем и выводим весь список контактов в виде таблицы (console.table) node index.js --action list Получаем контакт по id node inde

Oksana Banshchykova 3 Jul 5, 2022
Example of a ceramic app to showcase dynamic NFT capability

This is an example application that uses Ceramic, based on Next.js. Fork it freely. Getting Started Install dependencies. Create local ENV file with y

Ceramic Studio 12 Sep 6, 2022
Decentralized Twitter prototype built with Polygon, GraphQL, Next.js, Ceramic, Arweave, and Bundlr

Titter - Web3 Social chat beta as fuck ?? Built with Next.js, Arweave, Bundlr, Ceramic, GraphQL, & Polygon How it works This is a working prototype of

Nader Dabit 154 Dec 14, 2022
SET Revision is a website to help you identify "sets" in the card game SET.

Welcome to SET Revision! SET Revision is a website to help you identify "sets" in the card game SET. The code in this repository is aimed for learners

Benjamin Piper 2 Oct 3, 2022
e-ONG, an authorial project, whose objective is to help ONGs to find people who need help or would like to help them

This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: npm start Runs the app in the developmen

Lucas Lima 2 Nov 11, 2022
Web3 NPM library to interact with Soonaverse.

Soonaverse - Soonaverse JavaScript/Typescript API - APLHA Please note this is APLHA and we might introduce breaking changes. Library to interact with

SoonLabs 15 Oct 28, 2022
Web3 NPM library to interact with Soonaverse.

Soonaverse - Soonaverse JavaScript/Typescript API - APLHA Please note this is APLHA and we might introduce breaking changes. Library to interact with

Soonaverse 12 Apr 27, 2022
Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's `move-ts`.

Movehat Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's move-ts. Movehat aspires to b

Pentagon 10 Sep 30, 2022
A comprehensive collection of useful tools developed with the help of Ethers.js to interact with the Ethereum Blockchain to develop great DeFi apps as quickly and easily as possible.

hudi-packages-ethersfactory How to install Installing with npm For more information on using npm check out the docs here. npm i @humandataincome/ether

HUDI 6 Mar 30, 2022
Shield is a development framework for circom developers. The core reason is to provide libraries, plugins, and testing tools to ensure code quality and security.

SHIELD Shield is a development framework for circom developers but we plan it to other languages such as CAIRO, SNARKYJS etc. The core reason is to pr

Xord 41 Dec 22, 2022
Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications.

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.

cornerstone.js 141 Dec 22, 2022
This SDK helps developers get started with the on-chain tools provided by Metaplex.

Metaplex JavaScript SDK ⛔️ DO NOT USE IN PRODUCTION, THIS SDK IS IN VERY EARLY ALPHA STAGES! This SDK helps developers get started with the on-chain t

Metaplex Foundation 263 Dec 27, 2022
Cupcakes SDK to allow developers access to Authentication & Smart Contract Wallets

Introduction Cupcakes allow DAPPs developers access to Smart Contract Wallets. These wallets can be DAPPs specific or User specific. You must read abo

null 7 Nov 26, 2022
We are creating a Library that would ensure developers do not reinvent the wheel anymore as far as Authentication is concerned. Developers can easily register and download authentication codes that suits their need at any point.

#AuthWiki Resource Product Documentation Figma Database Schema First Presentation Live Link API Documentation Individual Contributions User Activity U

Zuri Training 17 Dec 2, 2022
A set of useful helper methods for writing functions to handle Cloudflare Pub/Sub messages (https://developers.cloudflare.com/pub-sub/)

pubsub A set of useful helper methods for writing functions to handle Cloudflare Pub/Sub messages. This includes: A isValidBrokerRequest helper for au

Cloudflare 18 Dec 4, 2022
A simple API to interact with Stacks and CityCoins data.

CityCoins API Probably Nothing CF Workers + IttyRouter + micro-stacks + TypeScript ...and it feels good! Things to Note uses simple typed responses an

CityCoins 9 Oct 10, 2022