please note the ordering of "helia:verified-fetch:trace Invoking plugin:"
/** | |
* Simple feature‑detection helpers | |
* (exported so test code can get 100 % coverage). | |
*/ | |
export const hasBroadcastChannel = (): boolean => | |
typeof globalThis.BroadcastChannel === "function"; | |
export const hasMessageChannel = (): boolean => | |
typeof globalThis.MessageChannel === "function"; |
const fs = unixfs(helia) | |
let barDir = await fs.addDirectory({ path: './bar' }) | |
const aFileHtml = await fs.addFile({ path: './bar/a-file.html', content: uint8ArrayFromString('<html><body>Hello world</body></html>') }) | |
barDir = await fs.cp(aFileHtml, barDir, 'a-file.html') | |
let fooDir = await fs.addDirectory({ path: './foo' }) | |
fooDir = await fs.cp(barDir, fooDir, 'bar') | |
let deepDirCid = await fs.addDirectory({}) | |
deepDirCid = await fs.cp(fooDir, deepDirCid, 'foo') |
While debugging streaming video with the helia-service-worker-gateway, I decided to set up a basic nodejs streaming server that we could ensure a basic test case is working in the browsers, so we knew what to target.
The basic server seems to work in all browsers except for safari.
The steps to generage the attached log files are as follows:
- run
node demo-video-server.js > <browser>.log
- open browser, start a new tab
openapi: 3.0.3 | |
info: | |
title: IPFS Gateway API | |
description: | | |
This is an OpenAPI 3.0 specification for the IPFS Gateway API, following the specs.ipfs.tech/http-gateways/path-gateway specification. | |
You can find more information about IPFS at [https://ipfs.tech](https://ipfs.tech). | |
version: 1.0.0 | |
servers: | |
- url: https://ipfs.io | |
paths: |
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
buildInputs = [ | |
pkgs.virtualenv | |
(pkgs.python3.withPackages (ps: with ps; [ | |
ps.pip | |
])) | |
]; |
Just a list of eligible usernames for the fluence.network FLT-DROP airdrop. Find out more at https://claim.fluence.network/
https://etherscan.io/token/0x6081d7f04a8c31e929f25152d4ad37c83638c62b
At the time of this writing, only 719 users have claimed their tokens, and the total number of elligible users is 108615
Run the install script at https://github.com/fluencelabs/dev-rewards/blob/main/install.sh which downloads some files
import { trustlessGateway } from '@helia/block-brokers' | |
import { createHeliaHTTP } from '@helia/http' | |
import { delegatedHTTPRouting } from '@helia/routers' | |
import { createVerifiedFetch } from '@helia/verified-fetch' | |
const helia = await createHeliaHTTP({ | |
blockBrokers: [ | |
trustlessGateway({ | |
gateways: ['https://cloudflare-ipfs.com', 'https://ipfs.io', 'https://trustless-gateway.link'] | |
}) |
#!/usr/bin/env node | |
// @ts-check | |
import { path } from 'kubo' | |
import {execa} from 'execa'; | |
// get input filename from command line | |
const filename = process.argv[2]; | |
console.log(`filename: `, filename); | |
const {stdout} = await execa('echo', ['unicorns']); |
#!/usr/bin/env bash | |
set -e | |
for domain in "blog.ipfs.tech" "blog.libp2p.io" "consensuslab.world" "docs.ipfs.tech" "docs.libp2p.io" "drand.love" "fil.org" "filecoin.io" "green.filecoin.io" "ipfs.tech" "ipld.io" "libp2p.io" "n0.computer" "probelab.io" "protocol.ai" "research.protocol.ai" "singularity.storage" "specs.ipfs.tech" "strn.network" "web3.storage"; do | |
# We want to output a list of IPFS links for all the DOMAINS using dig | |
# and return only the strings that match "dnslink=/ipfs/QmbKWyoaCK9nKDfSsNAkJQrbxMDLriyyqkXsTSSwt9B227" | |
dig +noall +answer TXT "_dnslink.${domain}" | ggrep -oP '/ipfs/[^"]+' | |
done |