https://github.com/TheAppleTucker/backend-GPT Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} TheAppleTucker / backend-GPT Public * Notifications * Fork 33 * Star 565 565 stars 33 forks Star Notifications * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights TheAppleTucker/backend-GPT This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/T] Use Git or checkout with SVN using the web URL. [gh repo clone TheApp] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @evanmays evanmays Update README.md ... 9cb6b05 Jan 22, 2023 Update README.md 9cb6b05 Git stats * 46 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time backend more print Jan 22, 2023 frontend-chess chess application example with LLM Jan 22, 2023 frontend add url to command bar Jan 22, 2023 LLM-IS-BACKEND.jpeg LLM-IS-BACKEND.jpeg Jan 22, 2023 README.md Update README.md Jan 22, 2023 View code GPT is all you need for the backend Why Still don't get it? README.md GPT is all you need for the backend Galaxy brain meme (a) Writing a backend (b) hiring a backend engineer (c) Asking ChatGPT for a backend (d) The LLM is the backend People have been saying Github Copilot will replace programmers. We think that's wrong. We have all powerful models and we want to restrict them to writing code? All code has bugs! Code is not the ideal way to encode business logic. Code must be reviewed, and it does what you tell it, not what you want. The proper format for business logic is human intelligence. So we thought, who needs python and ec2s and biz logic and postgres? We've built a entire Backend+Database powered by an LLM. It infers business logic based on the name of the API call and can persist a kilobyte of state! Here's the experience of the future: 1. Instruct the LLM on the purpose of the backend (i.e. "This is a todo list app") 2. Write the initial json blob for the database state (i.e. {todo_items: [{title: "eat breakfast", completed: true}, {title: "go to school", completed: false}]} 3. Start making API calls! You now have infinite backend endpoints that will infer their own business logic and update the persistent state! Why This is the future we imagine 1. You can iterate on your frontend without knowing exactly what the backend needs to look like. 2. Backend gives you the wrong format? https://backend-gpt.com/chess /get_board_state() -> https://backend-gpt.com/chess/ get_board_state_as_fen() 3. Mistype an API name? It doesn't matter! 4. Serverless w/o the cold start: The only difference between your server and someone elses is the 1KB of state and the LLM instructions, these can be swapped out in milliseconds Still don't get it? Here's how it works in Parker's words We basically used GPT to handle all the backend logic for a todo-list app. We represented the state of the app as a json with some prepopulated entries which helped define the schema. Then we pass the prompt, the current state, and some user-inputted instruction/API call in and extract a response to the client + the new state. So the idea is that instead of writing backend routes, the LLM can handle all the basic CRUD logic for a simple app so instead of writing specific routes, you can input commands like add_five_housework_todos () or delete_last_two_todos() or sort_todos_alphabetically() . It tends to work better when the commands are expressed as functions/ pseudo function calls but natural language instructions like delete last todos also work. About No description, website, or topics provided. Resources Readme Stars 565 stars Watchers 14 watching Forks 33 forks Releases No releases published Packages 0 No packages published Contributors 3 * @evanmays evanmays Evan Mays * @TheAppleTucker TheAppleTucker * @davidyue1 davidyue1 Languages * JavaScript 70.0% * HTML 15.2% * Python 8.1% * CSS 6.7% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.