Share your repls and programming experiences

← Back to all posts
Easy Web Database
h
Coder100 (17479)

JSONSTORE2

Have you wanted to make something without a server? Relying on a database? You used to be able to do just that using jsonstore.io, but because that is no longer, I made my own!

It comes with a complete database dashboard so you can edit your data easily too!

About

I wanted to make an easy database anyone can use because apparently nobody wants to take the time to actually learn a backend language like nodejs in order to use a database feature :sigh:

Screenshots

dashboard

usage

Get started

It's super easy to get started, here is some example js code!

// you can change the URL.
const URL = "jsonstore2.io/insert-hash-here";

(() => {
  async function getDb() {
    return await fetch(URL, {
      method: "GET"
    }).then(n => n.text());
  }

  console.log("Database Data:", await getDb());

  await fetch(URL, {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    body: { "a": 5, "e": 6 }
  });

  console.log("Database Data:", await getDb());

  // This is equivalent to { "b": { "c": { "nest": 5 } } }
  await fetch(URL + "/b/c", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    body: { "nest": 5 }
  });

  console.log("Database Data:", await getDb());

  await fetch(URL + "/e", {
    method: "DELETE"
  });

  console.log("Database Data:", await getDb());
})();

easy!!!!

Closing

Hope you found this helpful :D

Comments
hotnewtop
RahulChoubey1 (148)

poor cookie, forced to make a db for the bruhs in this world who don't know how to use them

RayhanADev (2066)

This is awesome!

Actually I was working on a headless json db not too long ago but then decided to ditch it and work on repldb+ xP.

ch1ck3n (1738)

@RayhanADev i learned about lowdb yesterday too

RayhanADev (2066)

@ch1ck3n lmao I see what you did there
kewl i didn't know about that!

ch1ck3n (1738)

@RayhanADev

lmao I see what you did there

wdym

ch1ck3n (1738)

@TempleOfCode i never told people to use dogesearch

YodaCode (88)

@RayhanADev I made something called RobinDB that's perfect for Replit. It has an external cloud version as well as a local version, and it's all made in JavaScript (the external cloud version can be used with any language).

Baconman321 (1092)

You use replit database?

Doesn't replit database have a lotta limits rn, so it won't be that reliable?

Coder100 (17479)
  1. store your data using unreliable sources
  2. maybe @Baconman321
StringentDev (211)

JUST WHAT WAS NEEDED BY VIRRA. thanks a lot. :D @firefish we could use this for storing PKGs on the PKG repo (we will need to use github urls to save loads of space by downloading the master.zip then extracting dist/).

Should we or do we make our own?

Coder100 (17479)

AYYYYY
glad I helped you :) @StringentDev

CyberHacker101 (118)

Oi hows da snek series goin? @Coder100

catchacoled (22)

Thank you! You should create something like this that could teach us the backend language because I want to learn the backend language however I can never figure out how.

TalinSharma (72)

Which one? I could try helping... @catchacoled

Coder100 (17479)

well there's more than one backend language @catchacoled

catchacoled (22)

I want to learn all of them eventually, However the main one I am focusing on is Node.js @TalinSharma @Coder100

TalinSharma (72)

I can help with that! Let me know if you are intrested!

@catchacoled

Coder100 (17479)

all of them?
That's basically like learning every language lol @catchacoled

IGamer123 (55)

This is cool!
@Coder100 you have like 17000 cycles but I think many, many, many.... very long later LeviathanCoding might catch up. He is doing great popts lately.

alanchen12 (28)

The domain expired or doesnt exist lol

GatewayDuckYT (55)

YOOOOO GETTTTTTT A DOMMMMMMAIIIINNNNNNNNNNNNNNNNNNNNNNN like Jsonstore.io

GatewayDuckYT (55)

by the way jsonstore.io is able to be bought put ads on ur site and u got money like crazy @GatewayDuckYT

Coder100 (17479)

sorry i haz no monies

and no ads suck
patreon go brrrr @GatewayDuckYT

GatewayDuckYT (55)

Use https://rf.gd its free domains that u can rely on unlike dumb freenom

@Coder100

alanchen12 (28)

when cant provide a secure connection: @GatewayDuckYT

DonoldJTrump (7)

@alanchen12 instead of https://rf.gd, use http://rf.gd. i don't think that they use https. If it errors out, just wait, or go to https://infinityfree.net/?utm_campaign=rfgd-root&utm_medium=referral&utm_source=if-users that is the website. Also, that website is a shady POS. I thick it even stole my password.

RahulChoubey1 (148)

wait, didn't the original die cuz someone abused it?

Coder100 (17479)

yeah
but this one, you can easily fork and set up @RahulChoubey1

RahulChoubey1 (148)

turning repl db into a website db lol

RahulChoubey1 (148)

@Coder100 This uses Repl DB as a website storage DB.

JaceBillingsley (18)

can you add to the db in js any way?

P0GCHAMPB0i (45)

lol this is the cheapest hotel

Coder100 (17479)

sorry didn't ask
won't stay @P0GCHAMPB0i

AntimatterDev (40)

bruh. i wish this existed maybe three months ago when i was making a eCommerce site for someone. had to build my own engine using sqlite when this is so much easier and faster

zplusfour (901)

bro add an async function in simple js code
you are using await

TamoghnaK13 (10)

@coder100 Wow cool now I can use something similar to jsonstore!

OldWizard209 (1304)

hmm. This is really great tbh. BTW, will you like publish this in the real world so that it helps other people as well?

Coder100 (17479)

Probably not, what killed json store is that it was too expensive @OldWizard209

tussiez (1565)

Drat! I made not one, but two databases just like yours. Never posted it though, thought it was wayy too simple :/

Nice job!

Coder100 (17479)

Thanks!
How did yours work? @tussiez

tussiez (1565)

@Coder100 :D
Wdym?
It works quite well
Node.js key-value store

P0GCHAMPB0i (45)

lol json looks almost like my name Jason

Coder100 (17479)

yeah we call our friend json database.json @B1gB0i

JWZ6 (402)

@B1gB0i wait a sec... R ya @Jason37 Hmmm @Th3Coder (sorry for the ping) TRIAL!

JWZ6 (402)

@Coder100 btw POG u is genius

JWZ6 (402)

Ik he delete his account @B1gB0i

JWZ6 (402)

@B1gB0i u might be an alter of @jason37 [deleted] cuz Jason and Jason37. Plus, ur also pretty chatty like Jason37. HHHHHHHHHHHHHMMMMMMM

P0GCHAMPB0i (45)

@JWZ6 no? I BEEN HERE FOR LIKE 1 OR 2 WEEKS

JWZ6 (402)

@B1gB0i u came around same time @jason37 delete his alter account

P0GCHAMPB0i (45)

@JWZ6 oh i've never knew that

P0GCHAMPB0i (45)

@JWZ6 plz stop spamming i have school work to do

JWZ6 (402)

@B1gB0i ok i respect that sorry

JWZ6 (402)

@B1gB0i WAIT WHUT see the notifs

P0GCHAMPB0i (45)

@JWZ6 why? i can look at it in gmail

P0GCHAMPB0i (45)

@JWZ6 wait do you have this bug?

P0GCHAMPB0i (45)

@JWZ6 ohh i have to turn of this

P0GCHAMPB0i (45)

@JWZ6 is your theme dark or white?

mollthecoder (28)

On the dashboard you should be able to turn on/off each method

Coder100 (17479)

well
you need all methods? @mollthecoder

JakeHu2020 (12)

I'm surprised to see such a good project only getting a super small amount of cycles.

Coder100 (17479)

idk idrc as long as it helped someone @JakeHu2020