一个小型、去中心化的工具,用于探索小型网络。
A tiny, decentralised tool to explore the small web

原始链接: https://codeberg.org/susam/wander

## 漫游:一个去中心化的网页探索工具 漫游是一个可自托管的网页控制台,让用户可以发现一个由个人网站组成的网络。它作为一个客户端工具运作——无需服务器端设置——只需将两个文件(`index.html` 和 `wander.js`)添加到你的Web服务器(理想情况下在 `/wander/` 目录中)。 漫游控制台会显示社区推荐的随机页面,并可以链接到*其他*漫游控制台,从而创建一个去中心化的浏览体验。`wander.js` 文件是你整理推荐的地方——列出网站/页面以及要链接到的其他控制台。 用户通过点击按钮“漫游”,在控制台和它们的推荐之间跳转,有效地探索一个策划的“小型网络”。它是一种轻量级的方式来分享和发现有趣的个人网站,促进社区驱动的浏览网络。 你可以在 [https://susam.net/wander/](https://susam.net/wander/) 找到一个示例,并在 [https://codeberg.org/susam/wander/archive/main.zip](https://codeberg.org/susam/wander/archive/main.zip) 下载代码。它采用 MIT 许可证,是免费且开源的。

黑客新闻 新的 | 过去的 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 一个微小、去中心化的工具,用于探索小型网络 (codeberg.org/susam) 14 分,由 carte_blanche 发表于 33 分钟前 | 隐藏 | 过去的 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Wander is a small, decentralised, self-hosted web console that lets your visitors explore random pages from a community of personal websites.

Wander

Each Wander console loads personal websites and pages recommended by the Wander community. Further, each Wander console can link to other Wander consoles, forming a lightweight, decentralised network for browsing the small web of personal websites.

Visit https://susam.net/wander/ to see an example of Wander console.

How It Works

A Wander console does two things:

  1. Wander pages: It loads a random page from a list of websites and pages recommended by the community.

  2. Wander consoles: It can send the visitor to another Wander console on a different website, where they can continue wandering the Web using the new Wander console.

A Wander console is just a directory on your web server with two files:

  • index.html - This is the HTML tool that implements the Wander console.
  • wander.js - This is where you define the list of websites and pages you recommend and the other Wander consoles you want your console to link to.

The most interesting aspect of Wander console is that everything happens on the client-side, on the user's web browser. As a website owner, you do not need to set up any server-side components. The only thing you need to do is place the above two files somewhere on your webserver, preferrably, at the directory /wander/.

Wandering the Web

A visitor begins at a Wander console. This might be your own console or someone else's. For example, you could start at https://susam.net/wander/ right now.

Once on a Wander console, the visitor can click the Wander button at the top left to visit websites and pages recommended by the community.

The first time you wander, the recommendation comes from the current console. The second time you wander, it comes from another console linked by the first. The third time you wander, it comes from a console linked by the second, and so on. In each hop, a console is chosen at random from those linked by the previous one. A website recommendation is then chosen at random from that console. In this way, each hop takes you deeper and deeper into the Wander network.

Setup

  1. Download this bundle: https://codeberg.org/susam/wander/archive/main.zip

  2. Extract the following files:

  3. Place them on your website, for example:

    wander
    ├── index.html
    └── wander.js
    
  4. Open wander.js and edit the following JavaScript object:

    window.wander = {
      consoles: [
      ],
      pages: [
      ],
    }
    

    The value for the pages property is a list of websites and pages you recommend to the community.

    The vlaue for the consoles property is a list of consoles your console should link to.

    Please see https://susam.net/wander/wander.js for an example.

  5. Once your console is live, share it with others in the following community thread:

    #1

    Hopefully, someone will link to your console and then visitors to their console may receive recommendations from your wander.js.

Licence

This is free and open source software. You can use, copy, modify, merge, publish, distribute, sublicence and/or sell copies of it, under the terms of the MIT Licence. See LICENCE.md for details.

This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or implied. See LICENCE.md for details.

联系我们 contact @ memedata.com