GNU General Public License v3.0

项目介绍

sdl60660/river-runner 是一个托管在 GitHub 上的开源项目,主要使用 Svelte 编写,采用 GNU General Public License v3.0 许可证,目前获得 456 个 Star、34 次 Fork。

仓库全名
sdl60660/river-runner
开源许可证
GNU General Public License v3.0
Star 数
456
Fork 数
34
未关闭 Issue
9

README 摘要

River Runner This project visualizes the path of a rain droplet from any point in the world to its end point (usually an ocean or an inland water features). It will find the closest river/stream flowline coordinate to a click/search and then animate along that flowline's downstream path. The data used in this project comes from the River Runner API, which is based on several open source projects and datasets…

完整内容见 GitHub 原始 README 或本页 。

常见问题

river-runner 用什么语言开发?

主要使用 Svelte 编写,采用 GNU General Public License v3.0 许可证,目前有 456 个 Star。

river-runner 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 river-runner 的源码?

可以直接克隆仓库:git clone https://github.com/sdl60660/river-runner.git,默认分支为 main;安装与运行步骤见仓库 README。

river-runner 最近还在维护吗?

仓库最近一次更新为 2025年11月30日,当前有 9 个未关闭 Issue;Star 数为 456,可作为社区活跃度的参考。

关于

Uses USGS/MERIT Basin data to visualize the path of a rain droplet to its endpoint.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

CSS
GLSL
HTML
JavaScript
Procfile
Python
SCSS
Svelte

贡献者

README

River Runner

This project visualizes the path of a rain droplet from any point in the world to its end point (usually an ocean or an inland water features). It will find the closest river/stream flowline coordinate to a click/search and then animate along that flowline’s downstream path. The data used in this project comes from the River Runner API, which is based on several open source projects and datasets. Similar data, initially used for the project, came from the USGS’s NHDPlus data and their NLDI API

I’ve used mapbox to animate the downstream path, but needed to make all sorts of adjustments for elevation and bearing changes to prevent jerkiness/nausea (just moving from point to point feels a little like flying through turbulence while shaking your head side-to-side).

I’ve hosted a dataset with NHDPlus Value Added Attributes on Firebase, which allows me to group flowlines into their parent features and determine distances quickly.

Note: The newly-released, global version of this project is in beta. We currently have relatively poor coverage of river names outside of the United States, which we are hoping to fill out, as well as some UX edge-cases and bugs that we hope to resolve.

Examples

Here are a couple of examples of what it looks like in action.

This is a section of the path from eastern Turkey to the Persian Gulf:

Screenshot of the river runner in progress from eastern Turkey to the Persian Gulf. Mountain features and river are visible.

Here’s part of the path from Southwest Arizona down to the Mexican border:

Screenshot of the river runner in progress from Southwest Arizona to Mexican border. Mountain features, desert, and river are visible.

You can look at a heatmap of previous searches here or find a list of some of our favorite paths here

Running this on your own

If you’d like to run this locally and play around with it, just run the following commands in your terminal (assuming you have npm installed):

  1. git clone https://github.com/sdl60660/river-runner.git
  2. cd river-runner
  3. npm install
  4. npm run dev (then follow the link to the local server, probably http://localhost:5000).
  5. If you’re running this on your own or forking into a new app, please replace the Mapbox Access Token strings in src/access_tokens.js with your own. You can generate a couple of tokens (for free), by creating a Mapbox account and visiting this page. You’ll need to generate two separate tokens to replace the ones in the existing file, but it does not matter which serves as the primary token and which serves as the secondary token.

Supporters

Thank you to Mapbox for sponsoring this project!

mapbox-logo-black

Updates

  • January 2022: The global version of this tool is now released and in beta! While some lingering issues are resolved and it remains in beta, it can be found on this branch, while the original, US-only version is preserved here in Github, and at its original URL: https://river-runner.samlearner.com/. This is to avoid any breaking changes to existing share links/paths due to any discrepancies and because minor US issues persist on the global version, mainly when paths involve dams, canals, or conduits.

If you’d like to be notified about major updates to the tool, you can sign up for an email list here.

评论

暂无评论