Live data from Hacker News

Show HN: Recode – Free, open-source, community-driven Codespaces alternative

github.com

1–10 of 20 posts

Show HN: Recode – Free, open-source, community-driven Codespaces alternative

#1
Hey HN,

As most of you (I think?), I cannot learn something without having a project, on the side, to implement what I’ve just learned.

Recode is the project that I've used to learn Go. It lets you create a development environment in your cloud provider account easily.

You can think of it as a desktop version of Gitpod / Coder / GitHub Codespaces less polished and with less features but 100% free, 100% open-source and 100% community-driven.

At the time of writing, it only works with Visual Studio Code and AWS.

In order to let you configure your development environments easily, I’ve chosen to use Docker with some Dockerfiles:

   - One for your user configuration.
   
   - One for your project.
The user configuration corresponds to the tools / settings that you use in all your projects like your timezone / locale, your preferred shell or your dotfiles.

The project configuration corresponds to the tools / settings that you use in a specific project like Go >= 1.18 and Node.js >= 14.

As you may have guessed, the project configuration inherits from the user one.

> Why Docker and not something like NixOS, for example?

I know that containers are not meant to be used as a VM like that, but, at the time of writing, Docker is still the most widely used tool among developers to configure their environment (even if it may certainly change in the future :-)).

> Given that my dev env will run in a container does it mean that it will be limited?

Mostly not.

Given the scope of this project (a private instance running in your own cloud provider account), Docker is mostly used for configuration purpose and not to "isolate" the VM from your environment.

As a result, your development environment container runs in privileged mode in the same network than the host.

----

I post this here, because, you know, even learning project could be useful to someone.

Still learning Go by the way, so I'm open to any suggestions to improve.

Show HN: Recode – Free, open-source, community-driven Codespaces alternative
github.com

Re: Show HN: Recode – Free, open-source, community-driven Codespaces alternative

#5
post #3

Does it generate some config for AWS/ cloud providers or does it directly do deploy it? I would prefer if there is a easy to review text based config that can be deployed in another step.

Thanks for the feedback!

At the time of writing, the ressources are directly created on your cloud account when you run the start command.

Each cloud provider has an extensive documentation that describe the ressources created. (As an example, you could see the documentation for the AWS provider here: https://github.com/recode-sh/aws-cloud-provider).

Given that this project is 100% community-driven, you could open an issue with this feature proposal. All features are implemented once they receive a significant amount of upvotes (>= 10 currently).

Re: Show HN: Recode – Free, open-source, community-driven Codespaces alternative

#10
post #7

very similar, but seems a bit more polished is https://coder.com , you can write your own terraform modules and run it on whatever cloud you want.

I setup coder self-hosted on a hetzner server, and it was great (and cheap). pair that with a vpn and pihole (same server), and you have a great home-base machine to do all your heavy lifting on.

It was especially cool connecting my ipad and having the ability to work (although somewhat impractical without a separate keyboard).

Post reply on HN