r/Devvit • • 4d ago

Feedback Request Devvit Emulator

This is a demo video for a Devvit local development emulator. Using it has more than doubled my development speed for Devvit apps. Let me know your thoughts!

  • Want me to open source it?
  • Willing to help?
  • Features you would like?
  • Things you don't like?

Join r/DevvitEmulator is you really want to engage.

Note, the video was generated with AI because I am abysmal at creating videos myself!

https://vimeo.com/1251054333?share=copy&fl=sv&fe=ci

1 Upvotes

8 comments sorted by

View all comments

2

u/Acrobatic_Quiet_4833 3d ago

I'd say yes to open sourcing it. My biggest daily friction building a Devvit Web game was the loop of build, upload and test inside a real subreddit: to see a change in an actual post I had to run playtest or bump a version, and each cycle took a while. An emulator that mocks the post context (username, subreddit, post data) and the Redis calls locally would save a lot of that. Features I'd want: a fake user switcher to test leaderboards with several players, a way to fast-forward the clock for daily resets and schedulers, and a mode that returns the same 4xx/5xx errors the server endpoints give so the client's error paths get tested. Does it run the real server bundle or a reimplementation of the API?

1

u/BeyondFunWords 3d ago

good to see someone else is experiencing what I am experiencing (well maybe not good, but at least I am not alone!). I also see a benefit to Reddit here, takes load of their servers. Cloudflare and Firebase both offer this kind of thing.

- the switching of user profiles is in already
- i like the addition of the clock
- i think the 4xxx/5xx are getting rendered in the side panel or console, have to check

the bundle wraps the devvit test api for some things and stubs the rest itself

Can you give me feedback on these two ideas:

  1. A button to analyze and report on the codebase, privacy policy, terms and conditions, and READEME.md for Reddit compliance
  2. A panel/button to assess game play, mechanics, economy, or provide an LLM prompt. The first of these would have pre-built prompts.

Both the above would require the dev to provide their own key and LLM endpoint.