Updates from the Repl.it team about the product

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

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.

PYer (3738)

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 (844)

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 (1609)

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 (844)

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


kochman (39)

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

HarperframeInc (446)

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

kochman (39)

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

HarperframeInc (446)

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 (446)

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

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 (20)

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

JosephMaxwell1 (0)

Is there a limit to the size of a value in the DB? I seem to be able to add small things, but not bigger things. There doesn't seem to be any error message, but I'm not sure what's happening behind the scenes. I'm using Node.js

DurbanLegacy (5)

This seems good, but also it's just an environment variable, so what is the difference between using a .env file and using the repl db?

Xag803 (1)

I have a minor inconvenience, When using pyxel it should show up as python's database imports but it does not.