Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Discoverability of Interaction Templates hosted on FLIX #18

Open
JeffreyDoyle opened this issue Mar 20, 2023 · 3 comments
Open
Assignees
Labels

Comments

@JeffreyDoyle
Copy link
Member

Issue to be solved

In order to promote composability of applications on Flow, we need a good way for developers to discover available Interaction Templates hosted on FLIX.

Suggest A Solution

Create a solution where developers can either programatically, or using a UI, discover existing Interaction Templates they can use that are already hosted on FLIX.

What are you currently working on that this is blocking?

No response

@bartolomej
Copy link

bartolomej commented Nov 4, 2023

@JeffreyDoyle Related to this, I think the current REST API is quite limiting for allowing discoverability as you can't search for a template without knowing either the exact source code, name, or ID (afaik).

I'm trying to integrate FLIX in Flowser, but the current API won't support our current use cases:

  • showing relevant FLIX templates for users' projects
    • this could be done by retrieving templates that depend on certain contracts (e.g. the ones used in users project)
  • allowing users to search for existing templates with a natural language query
    • this could be done by supporting full-text search (of name, description or even source code)

I guess the way to achieve this now, would be to read the templates from the Git repo (https://github.com/onflow/flow-interaction-template-service/tree/master/templates) and implement the searching functionality on our end (or forking and extending flow-interaction-template-service).

@bartolomej
Copy link

I think we could support our use case by simply adding the ability to retrieve all available templates. I've implemented this on our fork and also added some related thoughts: onflowser#2

It could be useful for the official service to also support some variant of this feature to allow greater discoverability of templates.

@bartolomej
Copy link

Related: onflow/flow-cli#1226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants