For typesense cloud is there a dashboard to view t...
# community-help
s
For typesense cloud is there a dashboard to view the items in your collections?
j
Not at the moment, but I am working on it as we speak!
๐Ÿ˜ 1
s
Awesome
Would be great to be able to add items, remove items and edit items all from the dashboard
And also perhaps do so with batches of items
j
Yup! Here's a sneak peak from my local machine
๐Ÿ‘ 1
s
Cool, btw can we build the schema in the dashboard so we dont need to have it in code?
j
Yup, here's how that looks:
You still have to specify a JSON structure though
s
Oh wicked
I might move my TypeSense to cloud because of this. So I dont have to run CLI commands just to seed and drop my typesense
If I delete collection, is there a way to keep the schema via dashboard?
Or even, could I batch delete documents while keeping the collection
j
Unfortunately no, state is only stored in the Typesense Cluster, so once a collection is deleted, it's gone
Are you essentially looking to "reset" the collection to 0 documents?
s
Yes
j
Got it, alright I'll add that in as well!
In hindsight, that's a pretty useful feature! Don't know why I didn't think about it :)
s
Maybe it could be better to have a way to select multiple items and then perform the action (delete)
And you can have an option to select all
j
Selecting individual docs across millions of documents could be chore though. I'm essentially thinking of adding a way to delete by filter query through the UI: https://typesense.org/docs/0.20.0/api/documents.html#delete-by-query
So you can either delete all documents, or delete a subset by specifying a filter
s
Right, in practice I only need to delete all during dev anyway
But would be nice in production to be able to delete by specific ID using dashboard
๐Ÿ‘ 1
Another thing thatโ€™s really important for me is creating a batch of documents
In my code I do this:
Copy code
export const importDocumentsReq = (collection: string, data: Array<any>) =>
  axios({
    method: 'post',
    url: `${protocol}://${host}:${searchPort}/collections/${collection}/documents/import`,
    headers,
    data: toJSONL(data),
  }).catch(throwSearch);
Where I basically run the
import
request
When I want to seed a bunch of documents
j
Adding documents looks like this, which does an import behind the scenes
s
Oh wicked
Is there a way to import a file to do this easier?
j
Not at the moment (wanted to get a MVP out soon)
s
Gotcha, looks good to me
Resetting Users and uploading batches/schemas is really all I needed
Super excited man, great work
j
Thank you!
Can't wait to get this out... So many people have asked for this now!
๐Ÿ™ 1
j
Listing existing API keys would be useful. Also, I do not like how the api keys are downloaded to a txt file
j
@James Wallsgrove Got it, I need to refactor some parts of the code to centralize key management in one place, so decided to skip it for mvp. But definitely part of the plan.
I guess instead of downloading a txt file, we could just show the API key one time on the page itself
j
I think so. More secure and in โ€œone placeโ€. A sandbox search/facet area would also be useful - test before production. Maybe performance suggestions
๐Ÿ‘ 1
j
Yup, here's how the search sandbox looks:
๐Ÿ‘ 2
m
Would this visual dashboard work for self-hosted Typesense too? It looks really nice!
j
Thanks @Mica! The dashboard is baked into Typesense Cloud, and so works only with Typesense Cloud clusters
@Stephano Paraskeva @James Wallsgrove Good news! Powered through some remaining pieces over the weekend and deployed the dashboard to prod this morning!
๐Ÿ‘ 1
I'd love to get your feedback!
m
So it's not planned to have this dashboard for self-hosted Typesense? It would be awesome to be able to play with, since Typesense Cloud doesn't have a free tier.
j
So it's not planned to have this dashboard for self-hosted Typesense?
Not at the moment, because the dashboard has some hard dependencies on the cloud management console for auth, etc and it would take some effort to make it work with self-hosted Typesense. In full transparency though, Typesense Cloud is how we sustain our small bootstrapped team and the Typesense project, so we're hoping the dashboard gives people a reason to use Typesense Cloud... Still thinking this through, but that's our thought process at the moment.
It would be awesome to be able to play with, since Typesense Cloud doesn't have a free tier
Typesense Cloud has a 30-day free tier on the 512MB config
๐Ÿ‘ 1
j
@Jason Bosco Top Work!
๐Ÿ™ 1
m
I fully understand that you rely on Typesense Cloud and that if it's hard to make it work for local use it's not a priority. Thanks for the explanation! It's been a while I looked at the pricing I forgot there was a 30-day trial, that's cool! I'll just have to make sure when to activate it, haha.