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

feat: Browser usage docs/example #461

Open
DougAnderson444 opened this issue Oct 30, 2023 · 10 comments
Open

feat: Browser usage docs/example #461

DougAnderson444 opened this issue Oct 30, 2023 · 10 comments
Labels
enhancement New feature or request triage To be triaged

Comments

@DougAnderson444
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The problem is I would like to try to run Wick components in the browser, but it's unclear to me if that's possible and how.

Propose a solution
Possible solution is a basic example in the examples folder and/or details in the docs on how-to.

Describe alternatives you've considered
I did find the https://www.npmjs.com/package/@candlecorp/wick package, but it lacks a README or any docs.

@DougAnderson444 DougAnderson444 added enhancement New feature or request triage To be triaged labels Oct 30, 2023
@jsoverson
Copy link
Contributor

Thanks for the issue @DougAnderson444. I'm working on that now so good timing. I will have more docs and tutorials out this week.

@DougAnderson444
Copy link
Contributor Author

That's awesome @jsoverson! Thanks so much, this Wick project is super cool looking and I'm interested in building some browser components. I've been following the WIT Component Model and have even contributed to jco in order to get things working in the browser. Very interested in seeing how it would work with Wick.

@jsoverson
Copy link
Contributor

@DougAnderson444

The documentation will improve over time, but this is a start.

@DougAnderson444
Copy link
Contributor Author

Thanks @jsoverson (especially for choosing Svelte & Vite over React 😂). I just need enough to get started and check this out in the browser.

I'll give it a shot and can provide some feedback as I experiment

@DougAnderson444
Copy link
Contributor Author

While I'm here, can you confirm if the LLM Llama example also is running 100% on the browser client too?

@jsoverson
Copy link
Contributor

Yes, there's no server-side aspect to any of the in-browser demos.

@DougAnderson444
Copy link
Contributor Author

DougAnderson444 commented Nov 5, 2023

Ran into the first issue: build.rs won't build:

cargo build

unknown field operations

error: failed to run custom build command for `jinja v0.1.0`

Caused by:
  process didn't exit successfully: (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=component.wick

  --- stderr
  Error: Could not parse manifest /home/doug/code/rust/components/jinja/component.wick as YAML: unknown field `operations`,
 expected one of `name`, `metadata`, `package`, `host`, `resources`, `import`, `types`, `requires`, `component`, `tests` at
 line unknown, column unknown

I think I need this just cli installed, but not seeing how to install it. I've installed wick-cli but still not getting a just command.

@DougAnderson444
Copy link
Contributor Author

Found just, will make a PR to add a line to the docs

@DougAnderson444
Copy link
Contributor Author

Even when using just build I still get

Error: Could not parse manifest /home/doug/code/rust/components/jinja/component.wick as YAML: unknown field `operations`, expected one of `name`
, `metadata`, `package`, `host`, `resources`, `import`, `types`, `requires`, `component`, `tests` at line unknown, column unknown

@DougAnderson444
Copy link
Contributor Author

DougAnderson444 commented Nov 5, 2023

Looks like the operations block needs to be indented one more level to just build. Pull request sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage To be triaged
Projects
None yet
Development

No branches or pull requests

2 participants