Back to News
Advertisement
aab613 about 3 hours ago 13 commentsRead Article on github.com

FR version is available. Content is displayed in original English for accuracy.

Hi. I’m a high school student studying for my GCSEs. I was using Google Antigravity heavily for my side projects, but I kept hitting the usage limits, and getting random "agent terminated" errors. So I decided to try build my own version of the IDE. I love the UI, so I copied it as accurately as possible, and then hooked up some logic into it, including the INCREDIBLY finicky webcontainer api.

I tried to keep it super lightweight, no build steps, or dependencies, and now that its open source, I'm hoping people can build things on top of it that arent possible with closed source tools, like complex custom agent workflows.

Some screenshots: - https://github.com/ab-613/OpenGravity/blob/main/examples/scr... - https://github.com/ab-613/OpenGravity/blob/main/examples/htm...

What it's made from:

- Pure Vanilla JS: no react, vue, or build step. Built entirely in plain HTML/CSS/JS to keep it super lightweight.

- WebContainer API and xterm.js: Instead of faking a terminal, I (after much pain) hooked up the WebContainer API so the AI agent has a real, in browser linux environment to run shell commands, install dependencies, and edit local files.

- BYOK (Bring Your Own Key): API key ALWAYS stays in localStorage.

Whats currently happening:

- It works, but it's an alpha. The AI can proactively start projects going properly and edit files, but because I built this over a few days before my exams, a lot of the UI dropdowns and buttons are currently just hardcoded placeholders.

- I’m open sourcing it early because I think the foundation of a Vanilla JS + WebContainer IDE is really strong, and I'd love to see where the community takes it while I'm doing my exams.

- Live demo: https://opengravity.pages.dev (Zoom out to 80% if not full screen. It will prompt for a gemini api key on load). Start by uploading a folder, then you can fiddle with the terminal and agent, and see how it goes!

Would love to hear feedback on the code, the WebContainer integration, or how to improve the agent loop!

Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 365 words in the discussion.

Trending Topics

#api#free#name#might#exams#actually#antigravity#vscodium#key#believe

Discussion (13 Comments)Read Original on HackerNews

kushalpandyaabout 3 hours ago
Should've named it ZeroGravity to stay true to its design goals.
ab613about 2 hours ago
that... is a way better name. I might honestly have to rename the repo to that after I finish my exams!
Ajay__soniabout 2 hours ago
Good luck for your exams!
ab613about 2 hours ago
Thanks so much! Going to need it haha.
ab613about 2 hours ago
Just realised, I was worried that the logo I made (see README) wouldnt work with this name, but then I realised it could actually go quite well being a "0"! (And yes, I know, it looks a bit like an avocado...)
davedigeratiabout 2 hours ago
would be inclined to use it just to flex that name "yeah I built this in Zero Gravity..."
ab613about 2 hours ago
Haha exactly! 'yeah, no IDE installed, just coding in zero gravity.' I might actually have to rebrand it this weekend then.
koolalaabout 1 hour ago
I wish this could work with your monthly subscription where you get a flat quota in Antigravity with a free account / $20.

edit:

Is this not built out of VSCode? Isn't Antigravity based on VSCode? VSCodium has a Web build https://github.com/VSCodium/vscodium

UI wise it might be good to make it clearer you don't need to put in an API key to try it.

ab613about 1 hour ago
I completely agree! Its so frustrating that providers (google, openai, anthropic) silo their $20/month consumer subscriptions away from their API access. It would be amazing if paying that flat fee gave you a 'personal API key' to use in open source UIs like this.

Unfortunately, we're stuck with standard API keys for now. Though I believe that google aistudio has decent free limits on gemini 3 flash with the free api keys? If you're just doing personal coding, you can easily plug a free api key into OpenGravity and basically use it as much as you want without paying a dime!

(I think its like 250 requests per day maybe?)

ilsubyeega38 minutes ago
pretty sure i believe it violates ToS and will revoke your any Gemini/Antigravity access from your account.
ab61337 minutes ago
Wow, I can't believe this hit the front page! Its past midnight here in the UK and I have to be up early for GCSEs, so I'm heading to sleep. I'll read and reply to all your comments and questions first thing in the morning! Thank you all so much for the amazing feedback and stars so far.
phantompeace23 minutes ago
You're gonna smash it. Regardless of what your GCSE results are, stuff like this is what will take you far in life. All the best for your exams, but don't lose any sleep over them either.
ab613about 2 hours ago
Edit: A mod suggested I add in how I actually use this! Right now, its honestly just a massive side project that serves as a fun distraction from my GCSE revision. But I mainly use it to test out quick HTML/CSS/JS ideas in my browser when I get an idea, without needing to boot up a full dev environment or worry about rate limits.