r/Devvit
•
u/pl00h
Admin
•
Apr 09 '26
•
1
Announcement Bring your Data API apps to Devvit, and details about our $1M App Migration Program
Hi devvitors!
As you may have seen over in r/redditdev and from u/spez, we recently announced a new label for automated accounts. With this new label, we want to ensure users know when they are interacting with apps on Reddit.
As part of this initiative, we are also launching a $1,000,000 Developer Platform App Migration Program, which includes porting bounties, programs, and events. To be eligible, you need to register your existing Data API apps here.
Why port to Devvit?
As many of you know, Devvit already includes built-in tooling to differentiate automated and human participation. Our platform also includes better monitoring, review, app details information, and security guardrails for apps on Reddit.
We know porting can be difficult and may not be the right fit for every app today. However, it benefits our entire ecosystem to have Reddit’s most visible and important apps hosted on the Developer Platform.
We will be making further investments in the platform to make porting possible for more Data API apps. Registering your app will help us identify important features to prioritize. Anyone unsure of how to approach this process should reach out to our team for support via r/Devvit modmail.
Porting bounties for migrated apps
Eligible apps (including bots) that provide essential utility or moderation functionality for communities with 1,000 or more weekly active users may qualify for a $1,000 USD porting bounty if migrated to Devvit. Select apps that provide beloved tooling for our end-users may also be eligible. When you register your existing Data API apps, you will be able to indicate your interest in this program via our Portal. We will then verify your app’s eligibility and notify you of next steps for claiming the bounty. Program terms can be found here. Ported apps can also become eligible for Reddit Developer Funds.
We only have a limited number of bounties available. Bounties will be awarded based on Reddit's review of eligibility criteria, including both platform impact and registration date. Data API apps that do not already exist on Reddit are not eligible for this program.
Thank you to all the developers who have already ported over countless apps to Devvit, as well as those who have helped the community bring essential tooling to our platform.
Register here by June 30th to kick off the process to apply for one of these bounties.
We will also be announcing more Developer Platform events and programming targeted specifically at moderator apps in the coming weeks (stay tuned for more on this!).
•
u/[deleted] Apr 09 '26 edited Apr 13 '26
[removed] — view removed comment
20
u/emily_in_boots Apr 09 '26 •
Unfortunately, some things are still impossible to do on devvit so migration isn't really an option for many of my bots. There are a number of reasons for this. The main ones are the timeouts in devvit (I can't pull a full comment history), storage (limited to 500mb on redis), lack of a full, high performance relational database (I use postgres with my data api apps), and communication across subs (my bots communicate a great deal and act across subreddits, and there's no good way to do this on devvit).
Another area of concern for me is that there is no way to back any data up. If an app is uninstalled and reinstalled, everything in redis is lost. There's no way to back those things up in a more persistent way and while it hasn't happened yet, I keep waiting to lose data because of this.
Some of my bots could potentially be migrated and I'm looking at that in some cases. The new duplicate functionality in a recent devvit update makes it easier to implement one of the bots I run already using the data api, so that is much appreciated and that bot is partially migrated.
I do really like some features of devvit an I've been developing multiple apps for it already, but there are still some limits that make it impossible to migrate some apps. I very much like how easy it is to create a user interface that mods can intuitively use - something impossible using the data api.
One of the apps I'm working on now that uses natural language models to analyze user behavior/intent is not something I think can be ported to devvit without paying for some kind of external database.
Probably the biggest hurdle for me is the way devvit apps are instanced per subreddit. While it's great for some things, for others it can be limiting. I know fsv has managed to use multiple apps in devvit for bot bouncer communicating through posts or wikis (I forget now - he told me!), this makes things really difficult/complicated.
For some things now, my goal is partial migration, where I can create a front end interface using devvit that communicates with the data api bots when that communication is limited enough in quantity to travel through things like mod notes (which is what I have used mostly - I use mod notes to trigger actions back and forth between devvit and data api bots).
6
u/shiruken Duck Helper Apr 09 '26
I'll go ahead and ask, is the Data API going to be shut down in the near future?
6
u/Watchful1 Duck Helper Apr 09 '26
I'll second everything u/emily_in_boots said. I run 4 major data api bots. I'll go through the problems with each one.
u/OWMatchThreads: This bot posts match threads in the r/competitiveoverwatch subreddit. The only real limitation is access the liquipedia.net api's, which I don't think would be all that hard to get approval for. Other than that it's just migrating all the logic which would take a week or two of work. I'll maybe take a stab at using AI to do this.
u/CustomModBot: A whole bunch of custom moderation actions for r/competitiveoverwatch and r/bayarea. Most of them could be migrated, but there's two notable ones that can't. The simple one is exporting queue size and moderation actions to prometheus so I can display it in a dashboard. You could build this inside a custom post in reddit, but it's really clunky compared to prometheus/grafana which are very powerful monitoring/charting tools. The complex one is the function that tracks user activity in r/bayarea to apply restrictions to political threads. The current implementation requires a relational database and there's really no way to do it in a key/value store. I really need a way to do something like count number of comments over a certain age and with a certain amount of karma, across hundreds of comments in a large thread. This is trivial in a relational database, really hard in aerospike. You can see some of the queries here https://github.com/Watchful1/ModQueueNotifier/blob/master/src/bayarea.py#L103-L147
u/RemindMeBot: There's a bunch of problems with migrating this. First, the whole appeal of it is that it's global. If it required moderators to install it in a subreddit, then 99% of subreddits wouldn't have it just out of ignorance and usage would die nearly completely. It really relies on its notoriety for people to use it. Second, it absolutely depends on a relational database. There's no way in aerospike to do something like "get all reminders set before the current time", and the scheduler just isn't reliable enough for something like this. I also don't really understand how it interacts with chat messages, since they aren't subreddit specific. Is that fully supported now? It also relies on parsing all comments on reddit for the trigger word, which I suppose would be technically possible if there was such a thing as a global app, but it still sounds really clunky. It has a very complicated system right now to make sure it misses as few triggers as possible. Those are the major issues, I could probably come up with a few more.
u/UpdateMeBot (it will probably reply to me since I summoned it): Most of the same problems as RemindMeBot. In some use cases it would make sense for the subreddit mods to install an app, like r/nosleep or r/hfy, but in others it wouldn't. Also relies on a relational database, and chats, and people summoning it with a comment.
Also I tried to start migrating CustomModBot by adding a button for moderators in the post UI that triggered a chat message to the bot to turn on enhanced moderation. I got denied by the reviewers who said that sending a message with the name of the moderator who clicked the button is against the HTTP fetch policy despite that not being documented at all. I was hoping to be able to migrate one small piece at a time, but that makes me afraid to put in any effort if I'm just going to be denied for something I'm already doing.
5
u/baseballlover723 Apr 09 '26
It's just not possible for us to port our automations to devvit. We have more than half a decade's worth of automations already built in languages that are not Javascript. We use databases like Postgres, message borkers like RabbitMQ, user facing websites (that still need hosting and configuration for their domains). Our automation is simply just so much more than something that fits into a strictly event driven system (which is my understanding of devvit, which may or may not be correct. I've never taken a serious look at it, because it seemed clear that we could not do a full migration of our automations, which then there wouldn't be a point of migrating part of it)
And most importantly, we have full control over our apps. We don't need to worry about reddit fucking with our stuff (an eternal worry when we don't hold the keys), and we have less worries about setting up an architecture that works for our goals.
I would consider devvit if it was the best option for our projects. But it is not. I don't like working in Javascript, it is simply not my language of choice. And devvit comes with many limitations and question marks (not to mention, no integration with old reddit, which my mod team exclusively uses). It's just not worth spending months or years of effort, just to end up with the same functionality (best case), and with less control and agency.
If we had the option to just have a raw server instance (Which I currently pay $30 a month for), I'd move our stuff over within a week. Hell, limit it to just our subreddit for the API or connectivity or whatever. If we could actually do any kind of migration in any kind of reasonable steps beyond "Just port over thousands of manhours of work", then I'd be a lot more favorable to doing a migration piece by piece.
As it stands now, I'd much prefer to build a devvit app to export the actual unique / more convenient parts of devvit into our external ecosystem and maintain our current external server as our primary one.
Hell, I wouldn't even mind buying the hardware and shipping to reddit HQ for our server. You could even charge us for electricity and to have someone hit the power button (during business hours) if we need a power cycle. I've run the numbers, The break even point for us is like 9 months with like 5x the processing power.
3
u/Midasx Apr 09 '26
Would /u/OctoMod be the sort of project legible for bounties or developer funds?
Would reddit API wrappers like TSRAW be apllicable?
2
u/obolli Apr 09 '26
Hey there, I know you're busy but I asked about these and a few other things and I also dm'd and never got answers despite being promised in comments to get it looked into and back to me by u/pl00h ?
I love reddit been here for a long time but also this is real work and effort we spend on building games, apps etc. and you don't want to spend it for nothing.
2
u/[deleted] Apr 09 '26
I see your vision. There are few questions left to be answered tho..
Is there a roadmap which u guys hv carved out for persistent storage beyond Redis ? Like either going for native SQL/Postgres support or official external DB integration? Simce manyy mod bot needs durable and queryable data.
One of my known was making a devvit app for crosspost detection on other subs from the source sub but it proved to be almost impossible when i tried it myself because of no crosss sub supportrt. So, are there any plans in the future to support cross-sub communication natively? Right now the mod notes workaround is a little bit broken.
Also, about the Blocks deprecation timeline (30 june 2026) - ihv observed that almost all devvit developers got the Blocks deprecation warning for their existing apps one or the other, so does migrating to Web renderer would count towards the migration program bounty?
2
u/John_Yuki Apr 11 '26
I have a few questions about this process because I'm a bit confused on what I need to do.
I've used the API for many many years to handle moderation on my subreddit, /r/footballmanagergames. I would be interested in finally moving over to devvit if it is possible if I could claim this bounty.
In the post, you say "register your existing Data API apps here" - from which account do I need to do this? I have two bot accounts that both have apps registered in https://www.reddit.com/prefs/apps/. Do I need to click on the "register your existing Data API apps" link from those accounts to register each app individually, or do I do it from my main (this) account?
3
u/yellowmix Apr 10 '26 edited Apr 10 '26
In the vein of what emily_in_boots and Watchful1 described, my mod tools cannot function on Devvit in its current state.
Saferbot can and has run on an NSLU2, but the limiting factor is the data store. The previous version, storing username, timedate, protected subreddit, reddit permalink, reached GBs across hundreds of subreddits (sqlite and postgres). Reddit's Redis capped at 500mb is too small and not relational. Redis isn't trying to be relational but if I used it as a cache it'd fill up.
New Saferbot is doing analysis on content. So it's storing fulltext. Suffice to say, it's text but it adds up and can't store it on Reddit, nor is Reddit persistent. The analysis is also relatively CPU costly. I've done tests and managed to reduce it down to some matrices, but it'd still run out of time. Analysis categories are shared across communities with similar problems, so lack of data sharing on Devvit is a problem. Also no way to get the Weekly Users count (or any activity metric) for an arbitrary sub.
I was looking at ways to hybridize Data API and Devvit, like Redis cache, hand off the inference from Devvit to Data API, but it either doesn't work or doesn't save API calls and would ultimately be built on an incredibly fragile messaging queue that isn't intended to be one. I could pass content action to a Devvit app but since it's monitoring for the initial detection anyway it's marginal gains to save API calls. Not sure if porting that aspect is worth it.
Looking to port a mod mail tool, I researched the Devvit API and it doesn't have ban information beyond that a user is banned. No action reason, no ban note, no datetime, etc.. If that's on the roadmap for Devvit I'd like to know.
4
u/Rosco_the_Dude Apr 09 '26
Just wanted to say thanks for absolutely destroying the ease of use with the reddit API. The self service API key generation was a great feature. Now it's blocked behind an opaque approval system that rejects almost everyone. Hobbyists and tinkerers suffer the most. This used to be a valuable part of this site. And you just destroyed it. Bravo!
1
u/ReserveAggressive458 Apr 09 '26
Hey pl00h, I've been thinking about migrating my bot(s) to devvit for a while now, but I've so far been stumped by how to make my app transferable to other subreddits.
My use case involves using APIs from sites like YouTube and Kick to query the status of livestreams - and I'm not keen to expose my auth tokens, or ask others to do so, to the rest of the mod team. I know we've got a wonderful yt-app already, but establishing when a stream has ended is a lot more involved than finding out when it started.
The only options I could see when I was testing it were to either bake them into the app (limiting it to just me) or provide a box for users to input their own (forcing them to expose private keys to all other mods in their sub with sufficient permissions). The former solution is fine for me, but it feels a shame to go through all the effort of making it a devvit app to then keep it as a totally private tool.
1
u/Mamuthone125 Apr 10 '26
I prefer to use the API for posts not because I am a bot or "an app". I use it because I have serious challenge working the standard UI making posts. Making posts with tables is a nightmare. Add to this my dyslexia. I am creating (not generating!) a quality content that people come to consume.
1
u/phrique Apr 11 '26
I have a bot that should be eligible, I believe, but it's likely that I will only be able to port half the functionally currently, just based on functional concerns. The part I would migrate would focus on moderation capabilities. How do I find out if this is eligible before diving into a migration?
1
u/Phteven_j App Developer Apr 16 '26
How does devvit handle databases? Are any available? For /r/AmItheAsshole we have a number of tasks that require data persistence over the course of 24 hours or so. I'm using MySQL if it helps.
Also, is it possible to interact with devvit to gather metrics? I have some comprehensive dashboards that monitor jobs and activity that require me to read our logs.
4
u/[deleted] Apr 09 '26
[removed] — view removed comment