<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrius Putna</title>
    <description>The latest articles on DEV Community by Andrius Putna (@fordnox).</description>
    <link>https://dev.to/fordnox</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F282192%2F38c196f7-8143-4599-8ced-afc20a4cd231.jpeg</url>
      <title>DEV Community: Andrius Putna</title>
      <link>https://dev.to/fordnox</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fordnox"/>
    <language>en</language>
    <item>
      <title>npx hosting — deploy any folder to a live URL in one command, no account</title>
      <dc:creator>Andrius Putna</dc:creator>
      <pubDate>Sun, 02 Aug 2026 15:31:54 +0000</pubDate>
      <link>https://dev.to/fordnox/npx-hosting-deploy-any-folder-to-a-live-url-in-one-command-no-account-3h65</link>
      <guid>https://dev.to/fordnox/npx-hosting-deploy-any-folder-to-a-live-url-in-one-command-no-account-3h65</guid>
      <description>&lt;p&gt;I built a zero-config CLI that deploys the current folder to a live site. Anonymous by default, with a single-use claim link if you want to keep it.&lt;/p&gt;

&lt;p&gt;Every static hosting tool I've used asks for the same ritual before you can see your site online: create an account, verify an email, install a CLI, log in, answer a config wizard. That's a lot of ceremony for "put these files on a URL".&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://www.npmjs.com/package/hosting" rel="noopener noreferrer"&gt;&lt;code&gt;hosting&lt;/code&gt;&lt;/a&gt; — a CLI where the &lt;em&gt;entire&lt;/em&gt; flow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx hosting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No account, no config, no login. Your folder is live:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;Uploading 3 files (12.4 KB)...

  Live site:   https://1freehosting.com/s/happy-panda-482
  Claim link:  https://1freehosting.com/claim/xxxxxxxx-...
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The claim-link model
&lt;/h2&gt;

&lt;p&gt;The interesting part isn't the upload — it's the ownership model.&lt;/p&gt;

&lt;p&gt;Deploys are &lt;strong&gt;anonymous by default&lt;/strong&gt;. You get two links back:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live site&lt;/strong&gt; — the public URL, share it with anyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claim link&lt;/strong&gt; — private and single-use. Open it, sign in, and the site attaches to your account so you can manage it from a dashboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unclaimed sites expire 24 hours after the last deploy. That keeps throwaway experiments truly throwaway — no zombie sites, no cleanup — while anything you actually care about is one click from permanent.&lt;/p&gt;

&lt;p&gt;This inverts the usual order: instead of &lt;em&gt;authenticate, then deploy&lt;/em&gt;, you &lt;em&gt;deploy, then decide if it was worth authenticating for&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating the same site
&lt;/h2&gt;

&lt;p&gt;The first deploy writes a &lt;code&gt;.hosting.json&lt;/code&gt; file with the site's deploy token. Every later &lt;code&gt;hosting&lt;/code&gt; run from that folder updates the &lt;strong&gt;same&lt;/strong&gt; site — before and after you claim it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;vim index.html
hosting        &lt;span class="c"&gt;# same URL, new content&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some details I sweated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.hosting.json&lt;/code&gt; is added to your &lt;code&gt;.gitignore&lt;/code&gt; automatically (it contains the token).&lt;/li&gt;
&lt;li&gt;Hidden files (&lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;.git&lt;/code&gt;, …) are skipped &lt;strong&gt;client-side&lt;/strong&gt;, so secrets never leave your machine. &lt;code&gt;node_modules&lt;/code&gt; and OS junk are skipped too.&lt;/li&gt;
&lt;li&gt;Want a fresh URL? &lt;code&gt;hosting --new&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Deploying from CI or another machine? Grab the token from the dashboard and run &lt;code&gt;hosting link &amp;lt;subdomain&amp;gt; --token &amp;lt;token&amp;gt;&lt;/code&gt; (or set &lt;code&gt;HOSTING_DEPLOY_TOKEN&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Commands
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hosting&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deploy the current folder (updates the linked site, or creates one)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hosting deploy [dir]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deploy a specific folder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hosting link &amp;lt;subdomain&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Link the folder to an existing site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hosting claim&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Open the last deploy's claim link in your browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hosting open&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Open the last deploy's live site&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Fit for AI coding agents
&lt;/h2&gt;

&lt;p&gt;It's also a nice fit for AI coding agents: an agent that just generated a landing page can run one non-interactive command and hand you a live URL — no browser login dance mid-session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;your-static-site
npx hosting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI is MIT-licensed and open source — it's the companion to &lt;a href="https://1freehosting.com/downloads/command-line" rel="noopener noreferrer"&gt;1freehosting.com&lt;/a&gt;, where claimed sites live.&lt;/p&gt;

&lt;p&gt;I'd love feedback on the claim-link flow — does "anonymous first, claim later" feel right to you, or would you rather log in up front? 👇&lt;/p&gt;

&lt;p&gt;Also thinking to create Github action for temporary or permanent artifacts preview deployments.&lt;/p&gt;

</description>
      <category>hosting</category>
      <category>free</category>
      <category>cli</category>
      <category>static</category>
    </item>
  </channel>
</rss>
