News for hackers. Stuff that matters.
Re:Thinkserver: My web-based coding environment by diggan on Thursday February 13, 2025 @09:11AM (#43035989)
> and I can just use vscode remote ssh or mutagen to live edit my websites

What is old is new again :) Back when I started development, we did this via git remotes, and some projects even did what you created and created environments mapped from git remotes to apps running with subdomains (like Dokku is probably the first/most memorable FOSS service for this back in the day).

And before that, I'm sure people were doing the same thing with Java WARs or similar, and before that, something else but similar.

Re:Thinkserver: My web-based coding environment by pomdtr on Thursday February 13, 2025 @09:27AM (#43036156)
Yeah dokku is an inspiration!

The main difference is that smallweb use deno instead of docker for sandboxing apps, and leverages url imports (which can be used to distribute complex apps like VS Code):

```

import { VSCode } from "jsr:@smallweb/[email protected]"

const vscode = new VSCode({ rootDir: Deno.env.get("SMALLWEB_DIR") });

export default vscode;

```

You can play with a live instance of smallweb at https://demo.smallweb.live

Re:Thinkserver: My web-based coding environment by diggan on Thursday February 13, 2025 @09:34AM (#43036206)
> The main difference is that smallweb use deno instead of docker for sandboxing apps

Yeah, a single-runtime (smallweb) instead of any language (dokku) + I'd probably say the avoidance of using git for the delivery would be the two biggest differences I can glance.

Re:Thinkserver: My web-based coding environment by pomdtr on Thursday February 13, 2025 @02:05PM (#43039862)
Yeah, I see smallweb as a playground.

I want to "develop in prod", not rely on successives git pushes to see changes.

If I need semantic releases, I publish the dev version as a package on jsr, and I then import it from the "prod" app.

I still uses github as way to store my apps though, you can find them at https://github.smallweb.run

Re:Thinkserver: My web-based coding environment by yencabulator on Thursday February 13, 2025 @12:56PM (#43039005)
By "VSCode" here you mean something like a HTTP API for file read/write[0] that can be used from VSCode, I think? VSCode also can be made into a web app[1], but I don't see that happening here.

[0]: https://github.com/pomdtr/smallweb-vscode/blob/main/extensio...

[1]: https://github.com/gitpod-io/openvscode-server https://github.com/coder/code-server etc

Re:Thinkserver: My web-based coding environment by pomdtr on Thursday February 13, 2025 @01:56PM (#43039746)
By vscode I mean vscode-web + an fsprovider extension.

You can play with it at https://vscode.demo.smallweb.live (the code is located in the `vscode` folder)