~/Code/burrito.space 4s
❯ cd peek/
Can't find an installed Node version matching v24.11.1.
Do you want to install it? answer [y/N]: y
Installing Node v24.11.1 (arm64)
00:00:02 ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 24.98 MiB/24.98 MiB (11.59 MiB/s, 0s)
Using Node v24.11.1
peek on main 7s parq is homebrew for data.
- Its input is wild data. Any csv, xls, json, xml source.
- Its output is a reproducible parquet dataset saved in an OCI registry, like docker images or [homebrew] bottles.
It's a low co-ordination way to let anyone who cares about a dataset publish a tidier version of it in parquet: a format designed to be nice to query locally or over http. (vs e.g. xml, a format designed for modelling hierarchies)
How we get from the S3 API specifications to a vendor-neutral, machine-readable subset.
The gist
- Filter the AWS smithy spec down to the operations defined in tier-1.yml
- Rewrite the API docs to be vendor neutral and coherent for that subset
- Merge the new docs with the bare bones smithy spec to create the new one
- Translate the smithy spec into an openAPI spec.
---
title: w3 writes
---
flowchart TD
w3infra --> |upload/add rootCid,carCid|r2-dudewhere
api.web3.storage -->|PUT carCid/carCid.idx|r2-satnav[(R2 satnav \n bucket)]
api.web3.storage -->|PUT carCid/carCid.car|r2-carpark[(R2 carpark \n bucket)]
api.web3.storage -->|PUT carCid/carCid.idx|s3-carpark[(S3 carpark \n bucket)]
api.web3.storage -->|PUT rootCid/carCid|r2-dudewhere[(R2 dudewhere \n bucket)] ---
title: w3s upload
# w3up-client upload sequence
---
sequenceDiagram
Agent ->> w3up: store/add (carCid)
w3up -->> Agent: signed carURL
Agent ->> R2: PUT to carURL
Agent ->> w3up: store/add (indexCarCid)---
title: w3 indexing pipeline
---
flowchart TD
s3-dotstorage[(S3 dotstorage\nbucket)] -->|ObjectCreated fa:fa-car| bucket-to-indexer(bucket-to-indexer ƛ)
bucket-to-indexer -->|region/bucket/cid/cid.car| indexer-queue[/indexer queue/]
indexer-queue --> indexer(Indexer ƛ)
indexer --> |zQmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn| multihash-queue[/multihash queue/]
multihash-queue --> ipni-advertisment-content(ipni advertisment content ƛ)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import readline from 'node:readline' | |
| import cliProgress from 'cli-progress' | |
| const COUNT_PER_FILE = 1_000_000 | |
| const inputCounts = new Map([ | |
| ['nft-30.json', 196294], | |
| ['web3-4.json', 576770] | |
| ]) | |
| function getCountPerFile (file) { | |
| return inputCounts.get(file) ?? COUNT_PER_FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fs from 'fs' | |
| import { CarBufferWriter } from '@ipld/car' | |
| import { CID } from 'multiformats/cid' | |
| import * as json from 'multiformats/codecs/json' | |
| import * as raw from 'multiformats/codecs/raw' | |
| import { sha256 } from 'multiformats/hashes/sha2' | |
| /** | |
| * @param {CID} root | |
| * @param {Block[]} blocks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as idb from 'idb-keyval' | |
| import { CID } from 'multiformats' | |
| import { BytesReader } from '@ipld/car/lib/coding' | |
| import { createDecoder, asyncIterableReader } from '@ipld/car/lib/decoder.js' | |
| export class CarReaderIdb { | |
| _version: number; | |
| _roots: Array<CID>; | |
| constructor (version: number, roots: Array<CID>) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openrpc": "1.2.6", | |
| "info": { | |
| "title": "Lotus RPC API", | |
| "version": "1.7.0-dev" | |
| }, | |
| "methods": [ | |
| { | |
| "name": "Filecoin.BeaconGetEntry", | |
| "description": "```go\nfunc (s *FullNodeStruct) BeaconGetEntry(p0 context.Context, p1 abi.ChainEpoch) (*types.BeaconEntry, error) {\n\treturn s.Internal.BeaconGetEntry(p0, p1)\n}\n```", |
NewerOlder