Updates from the Repl.it team about the product

← Back to all posts
Repl.it Database feedback 💾
kochman (41)

Hey replers! We’re beginning to roll out Repl.it Database. We’d love to get your feedback on it so that we can continue making it better.

What is Database?

Database is an easy-to-use key-value store. You can store data in it and retrieve data from it, even after your repl restarts. It's great for building website or game backends, Discord bots, or any other type of app that needs to store some information.

Check out the repl in this post to see how easy it is to use. You can also take a look at the documentation here: https://docs.repl.it/misc/database

How do I use it?

If Database has been rolled out to you, you can look at some examples by opening up a repl and clicking on the Database icon toward the bottom of the sidebar. Database just works inside your repls, without any configuration.

What languages does it support?

We’re providing official clients for Python, Node.js, and Go. But Database is simple enough that you can use it from an HTTP client in any language.

We want to hear from you!

If there’s anything you’d like to see us change or add to Database, please leave a comment below. Thank you for your help!

If you don't have Database in your repls yet, please check back soon! We're rolling it out as you read this.

bigboyyyyyyyy69 (1)

How should I go about doing a more advanced keys retrieve for my discord economy bot...

somthing like

if key does not exist:
do something

PYer (3974)

Nice an simple! I'm going to keep using MongoDB for certain applications, as I definitely like the structure. This is nice though!

aGEEKdude (4)

I like this! However, when I click on the link that it provides so that I can see all of the keys, it takes me to a blank page with no content.

ssura (3)

@DSASimon This happens to me too! But when I check the database it says the number of items. But I can't physically see things when I click that link. :(

potatojs (842)

i finely tried it and it is very cool!
but the only suggestion is to add the ability to view/edit the data base from a certain page
something like mongoDB atlas were you can delete document edit them anytime wich could be very helpful while developing!

OneNose (10)

Please add the option to view your data base. It's really annoying.

triptych (5)

I love it! Some questions / requests

1) how do I keep the database from being wiped between runs?
For example: https://repl.it/@triptych/IroncladAshamedRobot#index.js
2) need a way to upload / download the database data - like say to/from a json file?
3) when I download the repl to a zip, would be great to get a copy of the database too!
4) do you have any examples of a simple node.js based app using this?

silverwolfceh (1)

@triptych I have the same issue that the database sometimes being wiped. If you find a solution, please kindly share with me. Thanks

JosephMaxwell (0)

@triptych Here's a simple Node/Express app I built with the Repl db: https://repl.it/@JosephMaxwell/NodeJsToDoList

Definitely not the cleanest, but it does work and has a front-end and back-end. I haven't noticed my db getting wiped at all, but I've only been working with it for a few hours.

triptych (5)

@JosephMaxwell Thank you for this! For some reason I though that when the Repl runs a second time that new database call ( const db = new database(); ) would clobber the old database but it seems to be smart enough to persist the database!

McLigma (1)

Bricked my repository twice because you can't delete keys with certain special characters in them (At least ? and /)

veasyveryesasy (1)

Can you add export / import ?

rayne14 (1)

the db keeps resetting on its own and i lost everything i saved. why does it keep happening? there isn't even a way to just view and backup my data so it's horrible when it happens every couple of weeks or so

Jeffplays2005 (2)

@rayne14 Have the same problems😭

LeCodex (1)

My database got partially wiped just now. I am migrating to another service since the unreliability of this one defeats the whole purpose of a database.

rayne14 (1)

@LeCodex my db keeps getting fully wiped every few weeks. It's super annoying especially when there's no backup or versioning at all

EpicGamer007 (1676)

How do you get your client to be "official" or something, like IreTheKid and CodeMonkey got their python client on the repl.it docs.

potatojs (842)

wait can the free plan users also use the repl database?


kochman (41)

@potatojs Yes, it will be available to everyone, not only hackers.

HarperframeInc (450)

I really like the Repl DB. My only issue is key size limits.
Also, please add the ability to view the Database!

kochman (41)

@HarperframeInc We're open to increasing the limits! We set them conservatively to start with. What would you like to see?

HarperframeInc (450)

Let the owner view all the keys in the database, maybe search for keys?

triptych (5)

@HarperframeInc you could potentially get around this by spinning up a few more repls and shard your data.

HarperframeInc (450)

@triptych No- doing this is insecure, and but sharding- possibly.

Baconman321 (1083)

I would like to see:

  • Database reliability
Some people say that their database is getting partially/fully resetted.
  • Larger key value size (maybe ~50 MB)
I would like to not even worry about reaching the limit
  • Support keys with special characters and an option to retrieve all of the keys and their values
It would be very useful.
  • Allow direct edit access, almost like editing a .json file
In fact, you could make the editing a literal json file and convert back into whatever storage format you use. It would be extremely useful.

If these work out (at least the larger key/value size and view all keys and direct edit access), you will have the honor of having replitDB being the proud host of my wiki pages for a JS library I am making.

Somewhat unrelated, but please make reliable file editing via the program.

File storage is very unreliable, as whatever the program writes to a file it might just reset if you don't manually go into the tab and look at the file and its changes (it will save if you view the file).

This is very frustrating, so please make a more reliable file-management system as well. But otherwise if you make replit DB more reliable I will definitely use it.

Also, a question...

why have Go as an official client?

Don't get me wrong, I now use Go a bit and I love it! I'm just wondering why use it because typically I see very few people using Go on replit...

bigboyyyyyyyy69 (1)

Great stuff but how should I do advanced key retrieval with my discord.py economy bot...

something like:
if key does not exist:
create one

Unlisten (0)

Whenever I do db.items(), it takes about 10 seconds to return the value. My database only has around 315 keys.

RahulChoubey1 (148)

Maybe add some kind of EventEmitter, so I can get, say, "oh, this data bit was appended" or "hey, this one was updated"

saeedAlmulla (0)

###can you explain why my code is not working repl
it gives a value error when creating a acount
(https://replit.com/@saeedAlmulla/Rapol-banking-system#main.py)[My codebase]

OvieDev (0)

i mean it's pretty cool but when i was making my python program when i tried to add to db object of my class it gives me an error. so please fix this

MaxiPy1 (0)

I think this database is very good, but I would like it very much if you could also search based on the content of the keys.

p3artschool (21)

In repl A ,I add 4000 keys & values to DB.
When I fork repl A to repl B, DB will not forked to repl B.

blbbrayan (42)

I can never get this to work properly in node js. Extremely buggy. Which is sad.

catspython (27)

ok, I put this on the feedback page, but I think when there should be a switch that if toggled others can access the database, I don't see why it is done so if someone that's not me tries to run it, it runs like there's nothing in the data base, I am ok with others seeing what's in the db, when I'm using the db, I WANT it to show or change then show the info!

ParrotDev (5)

Hi, I have some feedback - I am building a Python Chat program (PyChat) and I am using this DB to store logins. I have found that when 2 people try to use the program at the same time, it shows my error message. If you want to see or test the program, click here

catspython (27)

@ParrotDev I'm trying to do the same thing! with python too. I'm collabing though and the messages are stored in the db too

SimpleCookie (0)

How do I save an object in python ?

Creatito1 (6)

Since this is from a few months ago, probably no one will see this but still.

If you're in python you can use "print(db.prefix(""))" to see all keys in the database