2077: A Code Quest
@2077codes
Followers
3K
Following
43
Media
46
Statuses
131
2077. 40 years after the apocalypse. A stranger accesses the vault to the secret art of programming... A GameFi x AI adventure.
Joined January 2015
Everyone is chasing TRUMP But did you know you can chat with Trump right inside 2077? We just one-shotted an app where you can enter your OpenAI API key and start chatting with Trump Try this right now: โ
Go to https://t.co/og1e6SwHIA โ
Click on the "CODE" tab, then find
28
18
101
We're still building :) New "Gaming Mode" is live, along with 4 new quests. Dropping next: a new in-game level, inventory management, and a marketplace!
36
17
73
Update on the DeepSeek integration We've been trying to get access to their API but they've switched it off, presumably due to too much demand (You can see it at https://t.co/5yzbRw7j59 and clicking on "API Platform" in the top right corner) We'll wait for the API access to
22
11
68
Some perspective on this entire DeepSeek situation: 1. DeepSeek is a legitimate lab and well-respected. The V3 was genuinely novel and performed above expectations 2. Reinforcement Learning (RL) used by DeepSeek is a genuinely novel improvement 3. DeepSeek was trained on
6
10
54
The recent upsurge in the popularity of DeepSeek have made us recalibrate our approach to AI models. Previously, we were using Sonnet 3.5 as the default model for all generations. However, given DeepSeek's outsized performance, we feel that a one-model-fits-all approach doesn't
4
12
76
You can now connect your wallet to the 2077 dApp ๐ This opens up the next chapter of 2077 where you will be able to buy in-game items, characters, extra credits, priority generations, and more! AI x GameFi is now even closer. Dev note: We were originally rolling our own auth
16
24
90
Apologies for the lack of interaction here the last two days. Like everyone, we were distracted by what transpired yesterday. The development continues
20
9
79
This is just the tip of the iceberg. A full-fledged NodeJS backend baked right into 2077 means you can create powerful apps that can process data, call APIs, save data, and do everything that a full-fledged app can Don't be afraid to use Unix commands in the terminal, and
1
1
23
12. Sometimes, you'll also need to restart the app Fortunately, this is also possible from the terminal. There are two commands you need to know: - "npm install", which installs all the NodeJS packages under "dependencies" in package.json file - "npm run dev", which starts the
1
1
25
11. What if the app gets stuck or shows an error that a specific package isn't available? Remember that this is a complete NodeJS backend baked right into 2077 You can install NodeJS "packages" (essentially, bundled software libraries) right from the terminal The command to
1
0
9
10. Since the terminal can work with standard Unix commands, you can create files directly from the terminal Suppose you want to create a text file named "test.txt" The command to create files in Unix is "touch" Thus, you enter "touch test.txt" and it will create a file in
1
1
8
9. But what if the AI code editor forgets to create the .env file? Or what if you want to make some changes and add a file of your own? This is where the terminal comes in handy. The terminal simulates a Unix environment in your browser. You can open it by clicking the 'Toggle
1
2
9
8. You'll now notice that there are a bunch of new files in the 'Code' section, specifically, a .env file It also has a variable called "VITE_OPENAI_API_KEY" This .env file is really special. Any data you enter here is ALWAYS hidden from all users In every app - including
1
2
8
7. The first step is to simple re-prompt the AI Tap the button in the bottom right corner and enter something like this ๐ Once again, note the casual language. You really can "talk" to AI
1
2
8
6. This creates a simple chat interface where you can "Chat with Trump" But there's a problem Every time you type in something, it just rotates through a bunch of responses It appears that there is no AI at all but just a bunch of hardcoded statements... How do we fix this?
1
3
8
5. So much for theory. Let's get back to our app. To make our AI-powered chat interface, we can start with a casual prompt like this ๐
1
2
10
4. The most important bit in this is the backend. The backend is a "secure" part of your application. No one but you can see it. Any data passed through the frontend is visible to everyone. But the backend? That might as well not exist for your website users Which is why if
1
2
11
3. This is the basic structure of any app that allows you to chat with an AI - The user sends in a query via an input box - The chat interface cleans the input and sends it to a backend - The backend sends the cleaned input to an AI via an API call - The AI returns the result
1
2
12
2. Let's walk through an example. Suppose you want to build an app where you can chat with an AI that behaves like Donald Trump. This app has three components: - A frontend that accepts a chat input from a user - A backend that processes this input, sends it to an AI, and
1
2
11
1. 2077's most powerful feature is the built-in NodeJS backend. A fully functional backend means you can install NodeJS packages, create files, and more. It also has a fully functional terminal - just as you would find on a Unix system (Linux or Mac). This means you can install
1
2
13
๐ How to Build Advanced Apps with 2077: A Detailed Guide Most people use 2077 to build basic apps - landing pages, to-dos, etc. If this describes you, you really aren't taking full advantage of 2077. In this tutorial, we'll show you how to build powerful fullstack apps ๐งต
7
12
59