Skip to content

protocols

askender edited this page Jun 23, 2021 · 10 revisions

Next generation of RSS, Creative Commons which support Web3 & Dweb would be fun.

A new version based on ERC721 Metadata JSON Schema: https://github.com/anwen/dweb-search/wiki/A-proposal-for-metadata-which-support-NFT-and-other-kinds-of-non-fungible-assets

This is still in design.

New jsonfeed/RSS/Atom which support web3

  • Basicly we follow https://jsonfeed.org/ , but we add some extention on it, which support all kinds of wallets easily.
  • The spec is still in design.

For example: https://dweb-search-api.anwen.cc/search?question=TED

{
    "id" : "ipfs://Qma6PaNWjN8kEN9zAWehiU6U3TfwheNuQrLf1DtmDYzwCu",
    "idx" : 961068,
    "publisher_id" : 1472850,
    "title" : "MusicNet Dataset",
    "filetype" : "zip",
    "license" : "CC0",
    "summary" : "A curated collection of labeled classical music.",
    "content_html" : null,
    "url" : "https://www.kaggle.com/imsparsh/musicnet-dataset",
    "tags" : [
        "musicnet",
        "kaggle",
        "dataset"
    ],
    "authors" : [ ],
    "deal_ids": [1932526]
    "data_cid" : "baga6ea4seaqdyutl422jkrk44lxjc4pn6wkkui7p2wcdelom2c645w73qdez6ba",
    "miner_ids" : [
        "f010088",
        "f019362"
    ]
}
{
    id: "ipfs://QmQPNEceZ5Bq1KzES6gVHBdbrvPkGqoCD8qMm8LSzbqEB2",
    idx: 960942,
    publisher_id: null,
    title: "...",
    filetype: "html",
    license: "CC-BY-SA",
    summary: "...",
    content_html: null,
    url: "https://matters.news/@askender/关于去中心化内容社区的思考与实验-bafyreihpg6mvxazcwcoon246ama5dxs2c7mt3uqjtclug6wzap7oo7osda",
    tags: ["..."],
    authors: [
        {
            name: "askender",
            url: "https://matters.news/@askender",
            wallet: {
            likeid: "askender",
            filecoin: f1xxx
            }
        }
    ],
    data_cid: null,
    miner_ids: [ ]
}

This is one of web2-wallet we suppport already:

https://like.co/in/widget/pay?to=guo-matters&amount=1&remarks=support~ipfs://QmP49v8shDQP4B6TM3Qq3KFQZ3gmhQx6kg3ZCMQJHgzxf2

we will support other web3-wallet donation too, such as:

https://likecoin.on.fleek.co/pay?to=cosmosxxx&amount=1&remarks=support~ipns://Qmyyy # support keplr, ledger ipns://likecoin.anwen.cc/pay?to=cosmosxxx&amount=1&remarks=supportipns://Qmyyy # same as above https://filecoin.on.fleek.co/pay?to=cosmosxxx&amount=1&remarks=support~ipns://Qmyyy # will fork one of the filecoin wallet ipns://filecoin.anwen.cc/pay?to=f1xxx&amount=1&remarks=supportipns://Qmyyy # same as above

New licences extend Creative Commons

  • If you add matadata in dweb-search, except licences in https://creativecommons.org/choose/, you could also choose from many licences such as CC-BY-MustPay, CC-BY-PleaseDonate, tell the curators pay for the curation.
  • And more interesting standards will come which using NFT and https://iscn.io/

New self-descriptive file-format

You can create a dir contain a manifest.json and your file. (and a README.md a thumbnail.jpg if you like) then ipfs add the_dir to got the_cid and ipfs dag export the_cid > the_cid.car

The simplest manifest.json:

{
    "title" : "The Title",
    "filetype" : "such as zip",
    "license" : "CC-BY-SA(or other licence)",
    "summary" : "write a simple description",
    "tags" : [
        "aaa",
        "bbb"
    ]
}

And we will write the spec of the manifest.json in detail soon. It will be same(or simpler) as the new RSS/Atom spec.

refs