{"id":15061735,"url":"https://github.com/treethought/fani","last_synced_at":"2026-01-30T06:07:57.787Z","repository":{"id":78924301,"uuid":"527042826","full_name":"treethought/fani","owner":"treethought","description":"ipfs-FAN implemtation","archived":false,"fork":false,"pushed_at":"2022-08-20T23:29:25.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T02:15:00.646Z","etag":null,"topics":["ipfs","wasm"],"latest_commit_sha":null,"homepage":"","language":"Go","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/treethought.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":"2022-08-20T21:24:12.000Z","updated_at":"2022-10-29T15:48:42.000Z","dependencies_parsed_at":"2023-02-25T08:00:25.492Z","dependency_job_id":null,"html_url":"https://github.com/treethought/fani","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/treethought%2Ffani","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Ffani/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Ffani/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Ffani/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treethought","download_url":"https://codeload.github.com/treethought/fani/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243723216,"owners_count":20337338,"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":["ipfs","wasm"],"created_at":"2024-09-24T23:24:21.103Z","updated_at":"2026-01-30T06:07:57.747Z","avatar_url":"https://github.com/treethought.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fani\n\nFANi is a [Function Addressable Compute Network](https://youtu.be/NWGC4S-eZW4) implementation. This repository is strongly inspired on [ipfs-compute](https://github.com/adlrocha/ipfs-compute).\n\n## Status\n\nCurrently just a very rough POC.\n\n## Overview\n\nThe goal of this project is to extend the proof of concept linked above to provide an easy to use CLI and framework to deploy functions to the IPFS-FAN network, and an (ideally) WASM-compatible basic node implementation to execute FAN computations\n\nLike ipfs-compute, FANi utilizes an [ipfs-lite](https://github.com/hsanjuan/ipfs-lite) peer to interact with the network.\n\n## WASM Function Compatibility\n\nThis project is currently using the excellent [sat](https://github.com/suborbital/sat) and [subo](https://docs.suborbital.dev/subo/usage) tools from [suborbital](https://suborbital.dev/) to execute wasm modules. Any \"runnable\" built using the [subo](https://docs.suborbital.dev/subo/) CLI should work out of the box.\n\nWhile FANi currently deals only with the wasm modules directly. So while you may develop your functions using subo/atmo, the directives or runnable.yaml files will not be used at all.\n\nIntegrating the CLI with suborbital directives or perhaps a more generic configuration/declaration could be a possibility to orchestrate more complex computations and provide metadata about how individual functions should be executed.\n\n## Usage\n\nFollow the [subo](https://docs.suborbital.dev/subo/usage) documentation to create a basic helloworld rust function wasm module.\n\n```\n➜ subo create runnable rs-runnable\n➜ subo build rs-runnable\n```\n\nThen deploy the compiled wasm function\n\n```\n➜ ./fani deploy rs-hello rs-runnable/rs-runnable.wasm\ncreated libp2p host:  QmTw68adhzSKncUW4y79kmvhcjEnezwJBo8xL1boYaGojC\nlistenting on:  /ip4/192.168.86.54/tcp/37551\nadded bytecode bafybeicfd7o3glgy6746vkhg54syzwaf5bvdplo5iz63df3w45h4ljunom\nadded abi bafybeicon5jwwcukiy7pyuqnjltbtrgyswv7iggqrghy6zndtrtmb5ir2m\nsitting idle to provide deployed dag\n```\n\nKeep fani running, so it's ipfs-lite peer can provide the function content\n\nIn a second terminal, call the function via it's ABI CID\n\n```\n➜ ./fani call bafybeicon5jwwcukiy7pyuqnjltbtrgyswv7iggqrghy6zndtrtmb5ir2m\n\ncreated libp2p host:  QmTtxyw8tji2Ncae7tNjPGPChvb7hH8MbGr3WZvLAGpbVM\nlistenting on:  /ip4/192.168.86.54/tcp/37795\nresolving ABI:  bafybeicon5jwwcukiy7pyuqnjltbtrgyswv7iggqrghy6zndtrtmb5ir2m\n{ID:rs-hello ByteCode:bafybeicfd7o3glgy6746vkhg54syzwaf5bvdplo5iz63df3w45h4ljunom Args:[]}\ngetting bytecode\nresult:\nhello\nresult added to network:  bafybeiauirvsiecy5h6spipofhjsqpz26mxj65yazekpvw4w3askiflr2i\n```\n\nYou may also pass args after the function CID. They will be added to the\nnetwork, and their content retrieved via CID will be passed to the function\n\n```\n➜ ./fani call bafybeicon5jwwcukiy7pyuqnjltbtrgyswv7iggqrghy6zndtrtmb5ir2m \"world, \\nlove fani\"\n\ncreated libp2p host:  QmXsBCLexfzRbRitkmKjWomiAwFhAsmL9axjxQMgX1y8CT\nlistenting on:  /ip4/192.168.86.54/tcp/36715\nresolving ABI:  bafybeicon5jwwcukiy7pyuqnjltbtrgyswv7iggqrghy6zndtrtmb5ir2m\ndiscovered new peer: QmZeEFgBZivfHc4cXig99MgaWWR2MkYHbvAvajvdGoL2ah\n{ID:rs-hello ByteCode:bafybeicfd7o3glgy6746vkhg54syzwaf5bvdplo5iz63df3w45h4ljunom Args:[]}\ngetting bytecode\nresult:\nhello world, \\nlove fani\nresult added to network:  bafybeibwt4ul52ct2azbteljy2c6sp7iidqwiitdxfmacao6dvsgrd6cdy\n```\n\nYou can then open a third terminal, and retrieve the result from ipfs\n\n```\n➜ ipfs cat bafybeibwt4ul52ct2azbteljy2c6sp7iidqwiitdxfmacao6dvsgrd6cdy\nhello world, \\nlove fani\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreethought%2Ffani","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreethought%2Ffani","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreethought%2Ffani/lists"}