standard-crypto / farcaster-js

MIT License
121 stars 25 forks source link

Add ability to use 'embeds' and 'mentions' when publishing casts #621

Closed seeARMS closed 1 year ago

seeARMS commented 1 year ago

Is your feature request related to a problem? Please describe. Warpcast no longer processes text to generate embeds: https://warpcast.com/gt/0xfca6bf

We run a bot that posts content from our users. Historically, Warpcast crawled links contained within our casts, then used that as the cast image, which was great. Now, according to the above, the Warpcast team does not parse text anymore, so we manually need to add images/links to the embeds array when publishing a cast.

This package does not support adding in fields beyond text when publishing a cast.

Describe the solution you'd like

Describe alternatives you've considered We can use hubs directly, eg https://github.com/farcasterxyz/hub-monorepo/blob/main/packages/hub-nodejs/examples/make-cast/index.ts, but we already rely on this package so would prefer not to migrate.

Additional context Weeks ago, when Warpcast crawled links (beautiful):

image

Now (ugly):

image
gsgalloway commented 1 year ago

Thanks @seeARMS, we'll get this addressed shortly

seeARMS commented 1 year ago

Hi @gsgalloway, any updates here?

Appreciate the help!

gsgalloway commented 1 year ago

Hi @seeARMS

We've been discussing with the Warpcast team the future of this package, in light of the Warpcast team's plan to deprecate their API. We were unsure as to whether we should in turn be deprecating this package and redirecting users to the hub APIs. Apologies that we haven't been communicative here along the way.

Latest understanding is that the Neynar team will be replicating the Warpcast API sometime in the upcoming couple of months, and that it should be a drop-in replacement.

We should be able to support this feature, then, and include it in the migration to Neynar's replacement.

gsgalloway commented 1 year ago

Supported in new Neynar API package

seeARMS commented 1 year ago

Thanks.

Is the new package published to npm?

➜ yarn add @standard-crypto/farcaster-js-neynar
➤ YN0027: @standard-crypto/farcaster-js-neynar@unknown can't be resolved to a satisfying range
➤ YN0035: The remote server failed to provide the requested resource
➤ YN0035:   Response Code: 404 (Not Found)
➤ YN0035:   Request Method: GET
➤ YN0035:   Request URL: https://registry.yarnpkg.com/@standard-crypto%2ffarcaster-js-neynar
gsgalloway commented 1 year ago

Not yet, need another day or two to wrap up final steps

gsgalloway commented 1 year ago

Available now @seeARMS