-
Notifications
You must be signed in to change notification settings - Fork 17
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
Proposal: Add ability to quickly run starter project on Val Town #550
base: main
Are you sure you want to change the base?
Conversation
Hi @charmaine! This is really neat. Could you share if there's a way that we can keep that template up to date via CI/CD? |
Great question! We can definitely do CI/CD. What are you looking to solve with it?
We're happy to build CI/CD workflow for you either way! We could have the output directly in the PR, or send it to our shared Slack channel so we can collab on patching it ASAP. What are you thinking? Also happy to jump on a call to hash out details if that's faster. |
Yeah indeed, it's so we can have control of the template and avoid drift should things change. For now, if you don't mind sharing some docs so I can learn more about the process. |
The control part's easy - you can fork my val onto your Val Town account and update the badge to link to your val instead. To avoid drift, the simplest thing would be a notification to remind you to update the val if the README TS code snippet changes. We could also build a one-way sync from the README to the val that you own, if you prefer. Nobody's asked for this so far so there aren't specific docs about it, but we're happy to build whatever you need! Here are Val Town docs. |
Another idea: We can set you (and anyone else on the team) onto a Braintrust company account in Val Town. The val can be owned by that account. It would be similar to: https://www.val.town/u/mux |
Thanks! I'll have a look at this by next week. |
Thanks @ibolmo, appreciate it! |
(Let us know if you have any questions while looking over it this week!) 🙏 |
Will do! We've got a big push to finish something so likely Thur/Fri. |
@charmaine thanks again for getting this going. I think for us to proceed, I'd like to ask if you all could have a tooling to
This way on merging main we run something like I see that you all have a update val endpoint so I think it's doable to try to keep the val up to date as we merge changes. Is there something like that existing or something the team would like to create? Maybe as a cli in or on top of the SDK? |
0760d0c
to
9d7fcbf
Compare
@ibolmo Yes definitely! If I'm understanding correctly, calling the API is probably the most straightforward way. I just tested something like this in my fork and it successfully keeps the README and the Val Town code snippet synced.
You should be able to use this after you:
The only callout here is that Val Town take npm imports with the Let me know if this works! Also happy to hop on a call if that's easier. Thanks for your time! |
Thank you @charmaine would be nice to avoid all that custom code in the action, but I get it :D I'll come back to get this going likely next week. Thanks for your patience. Between travel and recent flu it's been tough to wrap this up for you all. |
@ibolmo Ah hope you're feeling better! Definitely take your time. Appreciate you for doing this at all! :) |
Bumping this here just in case! (But no rush :)) |
Yep just trying to catch up while I was out last week. I'll get it done for sure 😄 |
Hey! I'd like to propose adding a Val Town badge to your docs for new users to optionally have the
TypeScript Quickstart
up and running in 1-click.I work here at Val Town and it would mean the world to us to have a place in Braintrust's docs / open source repos! We're very open to any edits you'd like us to make here.
Proposed badge in README:

In action:

The main benefits are:
We recently did this with Steel's Cookbook and they were stoked about it, so we wanted to try the same for Braintrust. We're all users and huge fans of Braintrust here!
We're happy to help maintain this starter in Val Town as your docs / SDK changes. You're also welcome to fork it so you have full control over the Val Town project and can make any changes as necessary.
This PR should be ready-to-use as-is. We'd love to hear what you think!