{"id":19761201,"url":"https://github.com/falkz/portl","last_synced_at":"2026-05-14T15:33:39.680Z","repository":{"id":115191148,"uuid":"241382124","full_name":"FalkZ/portl","owner":"FalkZ","description":"0 configuration backend, for serving js functions and generators","archived":false,"fork":false,"pushed_at":"2020-02-24T13:53:32.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T23:27:31.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://deno.land/x/portl/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FalkZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-18T14:27:41.000Z","updated_at":"2020-02-24T13:54:44.000Z","dependencies_parsed_at":"2023-07-12T03:01:22.417Z","dependency_job_id":null,"html_url":"https://github.com/FalkZ/portl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fportl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fportl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fportl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fportl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FalkZ","download_url":"https://codeload.github.com/FalkZ/portl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241094024,"owners_count":19908626,"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","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-11-12T03:39:58.460Z","updated_at":"2026-05-14T15:33:39.630Z","avatar_url":"https://github.com/FalkZ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# portl\n\n0 configuration backend, for serving js functions and generators\n\n## Usage\n\n1. Create a file that exports the functions you want to expose.\n\n    ```javascript\n    // serve.js\n\n    export const fn = (input) =\u003e input + \" postfix\";\n\n    export const it = async function*(mul) {\n        const arr = [1, 2, 3];\n\n        while (arr.length) {\n            yield new Promise((resolve) =\u003e {\n                setTimeout(() =\u003e resolve(mul * arr.shift()), 1000);\n            });\n        }\n    };\n    ```\n2. Run the server script with the file `./serve.js` as argument\n\n    ```bash\n    deno --allow-net --allow-read https://deno.land/x/portl/portl-server.js ./serve.js\n    ```\n3. Import the client script and call the functions\n   ```js\n    import portl from \"https://gitcdn.xyz/repo/FalkZ/portl/master/portl-client.js\";\n\n    portl.fn('from client').then(console.log)\n    // =\u003e from client postfix\n\n    portl.it(3).subscribe(console.log)\n    // =\u003e 3\n    // =\u003e 6\n    // =\u003e 9\n\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkz%2Fportl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffalkz%2Fportl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkz%2Fportl/lists"}