{"id":15561849,"url":"https://github.com/doodzik/frp-dsl","last_synced_at":"2025-08-14T19:04:00.054Z","repository":{"id":57242125,"uuid":"46233666","full_name":"doodzik/frp-dsl","owner":"doodzik","description":"an abstraction for adding minimal functional reactive middelware functionality","archived":false,"fork":false,"pushed_at":"2015-11-17T16:15:01.000Z","size":32,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T03:22:55.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doodzik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-15T20:06:14.000Z","updated_at":"2022-02-05T21:24:07.000Z","dependencies_parsed_at":"2022-09-04T19:23:56.988Z","dependency_job_id":null,"html_url":"https://github.com/doodzik/frp-dsl","commit_stats":null,"previous_names":["doodzik/frp-middleware"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/doodzik/frp-dsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Ffrp-dsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Ffrp-dsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Ffrp-dsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Ffrp-dsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodzik","download_url":"https://codeload.github.com/doodzik/frp-dsl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Ffrp-dsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270467643,"owners_count":24588806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T16:10:24.244Z","updated_at":"2025-08-14T19:04:00.015Z","avatar_url":"https://github.com/doodzik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FRP Middelware \n\n[![Build Status](https://travis-ci.org/doodzik/frp-middleware.svg?branch=master)](https://travis-ci.org/doodzik/frp-middleware)\n\nThis module aims to ease building middleware DSL's.\nIt implements a basic functional reactive programming Interface.\n\n# Installation\n\n```bash\n$ npm install frp-middelware --save\n```\n\n# Usage\n\n### how to use an Stream\n```javascript\nlet stream = new SomeStream()\n\nstream.map(data  =\u003e data + '!!!') // =\u003e hello world!!!\n      .fork(data =\u003e data + '???') // =\u003e hello world!!!???\n      .map(data  =\u003e data + '...') // =\u003e hello world!!!...\n\n// invokes the stream\nstream.subscribe()\n```\n\n### how to write your own Stream\n```javascript\nimport Middleware from 'frp-middleware'\n\nclass SomeStream extends Middleware {\n  subscribe() { // or you could use the 'emit' method. it is the same thing\n    const middleware = super.subscribe()\n    setIntervall(() =\u003e middleware('hello world'), 500)\n  }\n}\n```\n\n# API\n\n### \\#map\nchanges the data in the stream and passes the altered data to the next function in the pipeline\n\n### \\#fork\nForks a stream and applies a function to it.\nThe child stream runs independently of the parent stream.\n\n### \\#subscribe\nReturns the middleware function\nShould be implemented as a way to start listening to the stream.\n\n### \\#emit\nReturns the middleware function.\nShould be implemented as a way to fire events on the stream.\n\n# Examples\n\n[plain-tcp](https://github.com/doodzik/plain-tcp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Ffrp-dsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodzik%2Ffrp-dsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Ffrp-dsl/lists"}