{"id":20427032,"url":"https://github.com/bqardi/stupid-simple-api","last_synced_at":"2025-03-05T05:19:11.604Z","repository":{"id":143741596,"uuid":"586399009","full_name":"bqardi/stupid-simple-api","owner":"bqardi","description":"A stupidly simple API. Just serving simple JSON files.","archived":false,"fork":false,"pushed_at":"2023-01-16T05:43:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T15:52:09.703Z","etag":null,"topics":["api","json"],"latest_commit_sha":null,"homepage":"https://bqardi.github.io/stupid-simple-api/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bqardi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-08T01:34:09.000Z","updated_at":"2023-01-08T01:54:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ccf1bb6-5abe-4a96-84b2-de45fdf646df","html_url":"https://github.com/bqardi/stupid-simple-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bqardi%2Fstupid-simple-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bqardi%2Fstupid-simple-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bqardi%2Fstupid-simple-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bqardi%2Fstupid-simple-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bqardi","download_url":"https://codeload.github.com/bqardi/stupid-simple-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241968008,"owners_count":20050403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","json"],"created_at":"2024-11-15T07:18:31.812Z","updated_at":"2025-03-05T05:19:11.599Z","avatar_url":"https://github.com/bqardi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# stupid-simple-api\nA stupidly simple API. Just serving simple JSON files.\n\n# Why?\nI did this to see for myself if it was possible.\n\nI also learned why we don't do it this way but use a server instead.\n\n## So why shouldn't we do it this way, when it is so easy and simple?\nWell, for practice purposes or for quickly serving up some dummy data that ultimately needs to be replaced before production anyway, it is perfectly fine to do it this way.\n\nBut, imagine, for example, we have data for thousands of restaurants, and each restaurant has loads of data:\n- info about the restaurant\n- info about employees\n- menu(s), with detailed info about each meal\n- location\n- whatever\n\nWe are dealing with hundreds of thousands of lines of data here.\n\nSay we need to fetch data for one restaurant to get info about their location?\nTo get that info we would need to fetch ALL data for ALL restaurants, and then filter the data to get the info we need!\n\nSay the size of the data is 1MB but data for the location of that one restaurant is only 1KB, that is a lot of unnecessary data we are sending across the internet.\n\nTo get around that we need a server that can filter the data before we send it!\n\nSo to say it very basically; we don't do this for performance reasons.\n\nThank you for reading this :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbqardi%2Fstupid-simple-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbqardi%2Fstupid-simple-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbqardi%2Fstupid-simple-api/lists"}