Projects
+Contribute
++ Open a pull request with a focused addition to the awesome list. Prefer active, + source-linked projects with a clear relationship to libp2p. +
+ +diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..8576c1f --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,32 @@ +name: Check + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + links: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Build site + run: npm run build + + - name: Check links + uses: lycheeverse/lychee-action@v2 + with: + args: --verbose --no-progress README.md dist/index.html + fail: true diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..2a4c383 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,46 @@ +name: Deploy Pages + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Build site + run: npm run build + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ec8e75 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +dist/ +node_modules/ + +.DS_Store +.env +.env.* +*.log diff --git a/README.md b/README.md index 5e4c2ed..660fb5b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Awesome IPFS [](https://github.com/sindresorhus/awesome) +# Awesome Libp2p [](https://github.com/sindresorhus/awesome) This is a community list of awesome projects, protocols, networks, apps, tools, and services related to libp2p. @@ -6,6 +6,18 @@ This is a community list of awesome projects, protocols, networks, apps, tools, ## Implementations +- [go-libp2p](https://github.com/libp2p/go-libp2p) +- [js-libp2p](https://github.com/libp2p/js-libp2p) +- [rust-libp2p](https://github.com/libp2p/rust-libp2p) +- [py-libp2p](https://github.com/libp2p/py-libp2p) +- [nim-libp2p](https://github.com/vacp2p/nim-libp2p) +- [zig-libp2p](https://github.com/zen-eth/zig-libp2p) +- [cpp-libp2p](https://github.com/libp2p/cpp-libp2p) +- [swift-libp2p](https://github.com/swift-libp2p/swift-libp2p) +- [jvm-libp2p](https://github.com/libp2p/jvm-libp2p) +- [dotnet-libp2p](https://github.com/NethermindEth/dotnet-libp2p) +- [c-libp2p](https://github.com/Pier-Two/c-libp2p) +- [litep2p](https://github.com/paritytech/litep2p) ## Networks / Blockchains @@ -14,30 +26,34 @@ This is a community list of awesome projects, protocols, networks, apps, tools, - [Venus](https://github.com/filecoin-project/venus) - [Forest](https://github.com/ChainSafe/forest) - Ethereum - - https://github.com/sigp/lighthouse - - https://github.com/ChainSafe/lodestar + - [Lighthouse](https://github.com/sigp/lighthouse) + - [lodestar](https://github.com/ChainSafe/lodestar) - Polkadot - - https://github.com/paritytech/polkadot-sdk - - https://github.com/smol-dot/smoldot - - https://github.com/ChainSafe/gossamer + - [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) + - [smoldot](https://github.com/smol-dot/smoldot) + - [gossamer](https://github.com/ChainSafe/gossamer) - [Flow](https://github.com/onflow/flow-go) -- Celestia - https://github.com/celestiaorg/celestia-node -- Starknet - https://github.com/eqlabs/pathfinder -- Pactus - https://github.com/pactus-project/pactus -- Fuel - https://github.com/FuelLabs/fuel-core -- Madara - https://github.com/keep-starknet-strange/madara -- Avail - https://github.com/availproject/avail -- Starcoin - https://github.com/starcoinorg/starcoin -- Magi - https://github.com/a16z/magi -- Spacemesh - https://github.com/spacemeshos/go-spacemesh -- Optimism - https://github.com/ethereum-optimism/optimism -- Mantle - https://github.com/mantlenetworkio/mantle-v2 -- Algorand - https://github.com/algorand/go-algorand +- [Celestia](https://github.com/celestiaorg/celestia-node) +- [Starknet](https://github.com/eqlabs/pathfinder) +- [Pactus](https://github.com/pactus-project/pactus) +- [Fuel](https://github.com/FuelLabs/fuel-core) +- [Madara](https://github.com/keep-starknet-strange/madara) +- [Avail](https://github.com/availproject/avail) +- [Starcoin](https://github.com/starcoinorg/starcoin) +- [Optimism](https://github.com/ethereum-optimism/optimism) +- [Mantle](https://github.com/mantlenetworkio/mantle-v2) +- [Algorand](https://github.com/algorand/go-algorand) ## Apps +- [IPFS Kubo](https://github.com/ipfs/kubo) +- [IPFS Helia](https://github.com/ipfs/helia) +- [Gnosis VPN](https://github.com/gnosis/gnosis_vpn-client/) +- [OrbitDB](https://github.com/orbitdb/orbitdb) +- [Peerbit](https://github.com/dao-xyz/peerbit) +- [Ceramic](https://github.com/ceramicnetwork/js-ceramic) +- [Peergos](https://github.com/Peergos/Peergos) +- [Berty](https://github.com/berty/berty) +- [Hopr](https://github.com/hoprnet/hoprnet) - [Seed Hypermedia](https://github.com/seed-hypermedia/seed) -## Application Developer Tools - -- [Canvas](https://canvas.xyz/) diff --git a/package.json b/package.json new file mode 100644 index 0000000..2dfdc63 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "awesome-libp2p", + "private": true, + "type": "module", + "scripts": { + "build": "node scripts/build-site.mjs" + }, + "engines": { + "node": ">=20" + } +} diff --git a/scripts/build-site.mjs b/scripts/build-site.mjs new file mode 100644 index 0000000..4ae9b22 --- /dev/null +++ b/scripts/build-site.mjs @@ -0,0 +1,165 @@ +import { cp, mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +const root = resolve(dirname(fileURLToPath(import.meta.url)), ".."); +const source = resolve(root, "site"); +const output = resolve(root, "dist"); +const readmePath = resolve(root, "README.md"); +const indexPath = resolve(output, "index.html"); + +await rm(output, { force: true, recursive: true }); +await mkdir(output, { recursive: true }); +await cp(source, output, { recursive: true }); + +const readme = await readFile(readmePath, "utf8"); +const index = await readFile(indexPath, "utf8"); +const { description, title, sections } = parseReadme(readme); +const projectsHtml = renderProjects(sections); + +await writeFile( + indexPath, + index + .replace(/
[\s\S]*?<\/p>/, + `
\n ${escapeHtml(description)}\n
`, + ) + .replace( + /[\s\S]*/, + `\n${projectsHtml}\n `, + ), +); + +console.log(`Built site: ${source} -> ${output}`); + +function parseReadme(markdown) { + const lines = markdown.split(/\r?\n/); + const titleLine = lines.find((line) => line.startsWith("# ")) ?? "# Awesome libp2p"; + const title = stripMarkdown(titleLine.replace(/^#\s+/, "")).trim(); + const description = lines.find((line) => line.trim() && !line.startsWith("#"))?.trim() ?? ""; + const sections = []; + let currentSection = null; + let currentItem = null; + + for (const line of lines) { + const heading = line.match(/^##\s+(.+)$/); + + if (heading) { + currentSection = { items: [], title: heading[1].trim() }; + sections.push(currentSection); + currentItem = null; + continue; + } + + const item = line.match(/^(\s*)-\s+(.+)$/); + + if (!item || !currentSection) { + continue; + } + + const indent = item[1].length; + const text = item[2].trim(); + + if (indent === 0) { + currentItem = { children: [], text }; + currentSection.items.push(currentItem); + continue; + } + + if (currentItem) { + currentItem.children.push(text); + } + } + + return { description, sections, title }; +} + +function renderProjects(sections) { + const renderedSections = sections + .filter((section) => section.items.length > 0) + .map((section, index) => { + const number = String(index + 1).padStart(2, "0"); + const items = section.items.map(renderItem).join("\n"); + + return `Community curated
+
+ + A community list of awesome projects, protocols, networks, apps, tools, + and services related to libp2p. +
+ ++ Open a pull request with a focused addition to the awesome list. Prefer active, + source-linked projects with a clear relationship to libp2p. +
+ +