Skip to content

【开源自荐】Denoflow - 简单、强大、无服务器的自动化工作流工具,基于yaml配置文件和Deno, 配置即代码 #2176

Open
@theowenyoung

Description

@theowenyoung

Denoflow是一个简单、强大、无服务器的配置即代码工具,可以使用简单的yaml来配置一个强大的工作流,运行在Deno上,你可以使用任何Deno模块、Typescript/Javascript代码,Denoflow会按照你的要求执行你的工作流。

项目地址: https://github.com/denoflow/denoflow
在线体验:通过Online Playground在线尝试和探索 Denoflow

简体中文文档: https://github.com/denoflow/denoflow/blob/main/README-ZH.md

能做什么:

  • 比如做一个Github Webhook来在服务器同步部署最新代码
  • 比如监听RSS的更新,发送到Telegram或者Discord等
  • 以及其他一切可以通过API互相调用的流程

再比如我使用Denoflow,在三小时内搭建了三个Hacker News的中文网站,通过API获取Hacker News文章的更新,通过翻译API翻译标题,然后生成网站:

一个典型的工作流配置文件长这样:

sources:
  - from: https://deno.land/x/[email protected]/mod.ts
    use: get
    args:
      - https://test.owenyoung.com/slim.json
    itemsPath: data.hits
    key: objectID
    limit: 1
steps: 
  - run: console.log('item', ctx.item)
  # Open: <https://requestbin.com/r/enyvb91j5zjv9/23eNPamD4DK4YK1rfEB1FAQOKIj> , See live webhook request.
  - from: https://deno.land/x/[email protected]/mod.ts
    use: post
    args:
      - https://enyvb91j5zjv9.x.pipedream.net/
      -  ${{ctx.item}}
      - headers:
          'Content-Type': 'application/json'

多谢阮老师提供的平台,已经在这里推出过4个项目了!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions