{"id":19851324,"url":"https://github.com/spekulatius/faasd-franc","last_synced_at":"2026-06-09T02:02:04.865Z","repository":{"id":55582117,"uuid":"317303653","full_name":"spekulatius/faasd-franc","owner":"spekulatius","description":"faasd function for franc lib","archived":false,"fork":false,"pushed_at":"2021-01-13T11:06:16.000Z","size":179,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T13:16:18.546Z","etag":null,"topics":["faas","faas-platform","faasd","franc"],"latest_commit_sha":null,"homepage":"https://releasecandidate.dev/posts/2021/discovery-faasd-and-openfaas/","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/spekulatius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"spekulatius","custom":"https://www.buymeacoffee.com/spekulatius"}},"created_at":"2020-11-30T17:55:11.000Z","updated_at":"2023-07-05T09:00:17.000Z","dependencies_parsed_at":"2022-08-15T03:40:11.471Z","dependency_job_id":null,"html_url":"https://github.com/spekulatius/faasd-franc","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/spekulatius%2Ffaasd-franc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekulatius%2Ffaasd-franc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekulatius%2Ffaasd-franc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekulatius%2Ffaasd-franc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spekulatius","download_url":"https://codeload.github.com/spekulatius/faasd-franc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241232145,"owners_count":19931268,"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":["faas","faas-platform","faasd","franc"],"created_at":"2024-11-12T13:29:23.177Z","updated_at":"2026-06-09T02:01:59.847Z","avatar_url":"https://github.com/spekulatius.png","language":"JavaScript","funding_links":["https://github.com/sponsors/spekulatius","https://www.buymeacoffee.com/spekulatius"],"categories":[],"sub_categories":[],"readme":"# faasd function for Franc\n\n**This is part of [my personal exploring](https://github.com/spekulatius/hacks) and probably not production ready. Use at own risk!**\n\n## Preface\n\n[faasd](https://github.com/openfaas/faasd) has been really interesting to explore and work with. It's a low-footprint no/low-maintenance Function as a Service toolkit. Broadly speaking, faasd's goal is to simplify the required setup and run functions easier.\n\nI wanted to build a super simple api endpoint to familiarize myself more with the concepts and learn. I picked the [Franc](https://github.com/wooorm/franc) npm package. Franc is a npm lib which allows you to detect the language of a given piece of text.\n\nThe faasd function for franc is the result. It should work, but no guarantees.\n\n## Building Your Own Version\n\n1. You can easily build your own version and host it on your faasd instance:\n\n   ```bash\n   git clone git@github.com:spekulatius/faasd-franc.git \u0026\u0026 cd faasd-franc\n   ```\n\n2. Create the secret:\n\n   ```bash\n   echo $(head -c 16 /dev/urandom | shasum | cut -d \"-\" -f1) \u003e token.txt\n   ```\n\n3. Store it on the server:\n\n   ```bash\n   faas-cli secret create franc-token --from-file token.txt --gateway http://yourfaasd.somewhere.com:8080\n   ```\n\n4. Deploy as usual:\n\n   ```bash\n   faas-cli up --gateway http://yourfaasd.somewhere.com:8080\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspekulatius%2Ffaasd-franc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspekulatius%2Ffaasd-franc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspekulatius%2Ffaasd-franc/lists"}