<?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: Danil Redko</title>
    <description>The latest articles on DEV Community by Danil Redko (@danilapps).</description>
    <link>https://dev.to/danilapps</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%2F4286409%2Fdc0f7fad-45cd-426c-8394-9b87ca6cba79.jpg</url>
      <title>DEV Community: Danil Redko</title>
      <link>https://dev.to/danilapps</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danilapps"/>
    <language>en</language>
    <item>
      <title>Lemon Squeezy shuts down March 31, 2027: don't let your license keys lock out paying users</title>
      <dc:creator>Danil Redko</dc:creator>
      <pubDate>Sun, 06 Dec 2026 13:38:53 +0000</pubDate>
      <link>https://dev.to/danilapps/lemon-squeezy-shuts-down-march-31-2027-dont-let-your-license-keys-lock-out-paying-users-1pm5</link>
      <guid>https://dev.to/danilapps/lemon-squeezy-shuts-down-march-31-2027-dont-let-your-license-keys-lock-out-paying-users-1pm5</guid>
      <description>&lt;p&gt;If you sell a desktop app, a plugin or a CLI through Lemon Squeezy, the payment side of the shutdown gets most of the attention. The license keys are the part that can lock out customers who already paid.&lt;/p&gt;

&lt;h2&gt;
  
  
  The dates
&lt;/h2&gt;

&lt;p&gt;Lemon Squeezy closed new store sign-ups on November 16, 2026 and stops processing payments on March 31, 2027, subscription renewals included. Its recommended successor, Stripe Managed Payments, does not issue or validate license keys, so that piece has to move somewhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually breaks
&lt;/h2&gt;

&lt;p&gt;Every copy of your app that's already installed calls the License API directly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;POST https://api.lemonsqueezy.com/v1/licenses/activate&lt;/code&gt; with &lt;code&gt;license_key&lt;/code&gt; and &lt;code&gt;instance_name&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST https://api.lemonsqueezy.com/v1/licenses/validate&lt;/code&gt; with &lt;code&gt;license_key&lt;/code&gt; (and &lt;code&gt;instance_id&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;POST https://api.lemonsqueezy.com/v1/licenses/deactivate&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those URLs are compiled into builds sitting on your customers' machines. When the endpoints stop answering, what happens next depends entirely on how your app treats a failed check. If it treats a network error as "unlicensed", a paying customer opens the app one morning and gets a license prompt.&lt;/p&gt;

&lt;p&gt;You can't fix installed copies remotely. The only fix is an update that points somewhere else, and it only reaches people who install it before the date.&lt;/p&gt;

&lt;h2&gt;
  
  
  A plan that works backwards from March 31
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ship a defensive update now.&lt;/strong&gt; Before you've picked a replacement, change what happens when validation fails: cache the last successful result and keep the app working for a grace period (a week or two) on network errors. This one change protects people who update late.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the endpoint on your own domain.&lt;/strong&gt; Instead of hardcoding a vendor URL again, call something like &lt;code&gt;https://licenses.yourapp.com/validate&lt;/code&gt; and proxy or redirect it. Next time a vendor goes away, you change DNS, not every installed copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export your keys while you can.&lt;/strong&gt; Pull licenses, activations and instance IDs through the Lemon Squeezy API and keep the JSON. You'll need it whichever service you move to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick a replacement that imports existing keys.&lt;/strong&gt; A new service that only issues new keys forces you to email every customer a new one. Check that it keeps the same key strings, activation limits and instance IDs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check both endpoints during the overlap.&lt;/strong&gt; The update should try the new endpoint first and fall back to Lemon Squeezy until the import is complete, so nobody is caught in the middle.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;validate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;instanceId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"https://licenses.yourapp.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"https://api.lemonsqueezy.com"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${base}/v1/licenses/validate`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"Accept"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/x-www-form-urlencoded"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URLSearchParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;license_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;instance_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;instanceId&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="cm"&gt;/* try the next one */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;cachedResult&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// grace period instead of a lockout&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Where the keys can go
&lt;/h2&gt;

&lt;p&gt;Your options roughly split three ways: a full licensing platform like Keygen if you need floating or offline licenses; a payment provider that also handles keys (some new merchant-of-record services import Lemon Squeezy keys); or a small license server that answers the same requests Lemon Squeezy did, so the client code barely changes.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://keylift.dev" rel="noopener noreferrer"&gt;Keylift&lt;/a&gt; for the third case: it accepts the same License API requests and returns responses in the same format, imports your existing keys and activations, and lets you export everything as JSON later. Whatever you choose, the defensive update in step 1 is worth shipping this month.&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Where Claude Code and Codex keep your usage limits, and how to read them yourself</title>
      <dc:creator>Danil Redko</dc:creator>
      <pubDate>Sun, 06 Dec 2026 13:37:41 +0000</pubDate>
      <link>https://dev.to/danilapps/where-claude-code-and-codex-keep-your-usage-limits-and-how-to-read-them-yourself-1762</link>
      <guid>https://dev.to/danilapps/where-claude-code-and-codex-keep-your-usage-limits-and-how-to-read-them-yourself-1762</guid>
      <description>&lt;p&gt;Both Claude Code and Codex already know how much of your limit you've used. They just don't put it anywhere you look while a task is running. Here is where the numbers live, as of December 2026, and how to read them with a few lines of script.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codex: it's in the session logs
&lt;/h2&gt;

&lt;p&gt;Every Codex session writes a JSONL file under &lt;code&gt;~/.codex/sessions&lt;/code&gt; (on Windows, &lt;code&gt;%USERPROFILE%\.codex\sessions&lt;/code&gt;; if you set &lt;code&gt;CODEX_HOME&lt;/code&gt;, it's under that folder instead). Files are grouped by date, one line per event.&lt;/p&gt;

&lt;p&gt;Some of those lines carry a &lt;code&gt;rate_limits&lt;/code&gt; object with two windows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;primary&lt;/code&gt;: the short window (5 hours)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;secondary&lt;/code&gt;: the weekly window&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each window has &lt;code&gt;used_percent&lt;/code&gt;, &lt;code&gt;window_minutes&lt;/code&gt;, and either &lt;code&gt;resets_in_seconds&lt;/code&gt; or &lt;code&gt;resets_at&lt;/code&gt;. So the last line that contains &lt;code&gt;rate_limits&lt;/code&gt; in your newest session file is your current state.&lt;/p&gt;

&lt;p&gt;A quick PowerShell check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$dir&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Join&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;USERPROFILE&lt;/span&gt; &lt;span class="s2"&gt;".codex\sessions"&lt;/span&gt;
&lt;span class="nv"&gt;$file&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ChildItem&lt;/span&gt; &lt;span class="nv"&gt;$dir&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Recurse&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Filter&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jsonl&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Sort&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;LastWriteTime&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Last&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="nv"&gt;$line&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;FullName&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Pattern&lt;/span&gt; &lt;span class="s1"&gt;'"rate_limits"'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Last&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;regex&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Matches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'"used_percent":\s*([\d.]+)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;ForEach&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Groups&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"%"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first number is the 5-hour window, the second is the week. If &lt;code&gt;resets_in_seconds&lt;/code&gt; is what you get, add it to the line's &lt;code&gt;timestamp&lt;/code&gt; to know when the window clears.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Code: ask the status line
&lt;/h2&gt;

&lt;p&gt;Claude Code can run a command of your choice after each reply and show its output as the status line. That command receives a JSON payload on stdin, and the payload includes &lt;code&gt;rate_limits&lt;/code&gt; with &lt;code&gt;five_hour&lt;/code&gt; and &lt;code&gt;seven_day&lt;/code&gt;, each with &lt;code&gt;used_percentage&lt;/code&gt; and &lt;code&gt;resets_at&lt;/code&gt;. These are the same numbers the usage panel shows, not an estimate.&lt;/p&gt;

&lt;p&gt;Register the command in &lt;code&gt;~/.claude/settings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"statusLine"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"~/.claude/limits.sh"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"padding"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And a minimal &lt;code&gt;limits.sh&lt;/code&gt; with jq:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
jq -r &lt;span class="s1"&gt;'"5h \(.rate_limits.five_hour.used_percentage // "?")%  week \(.rate_limits.seven_day.used_percentage // "?")%"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the percentages sit under the prompt and update after every answer. Older Claude Code versions don't send &lt;code&gt;rate_limits&lt;/code&gt;; in that case the &lt;code&gt;// "?"&lt;/code&gt; fallback prints a question mark instead of breaking.&lt;/p&gt;

&lt;p&gt;If you'd rather not touch settings, &lt;code&gt;~/.claude/projects&lt;/code&gt; holds the raw session logs with token counts per message. You can estimate from those, but the plan limits aren't published as token numbers, so treat it as a rough guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you want it outside the terminal
&lt;/h2&gt;

&lt;p&gt;The status line only helps while you're looking at that terminal. I wanted the number visible all the time on Windows, with a warning before the limit and not after, so I put the two readers above into a small tray app called &lt;a href="https://quotabar.tgadtools.workers.dev/" rel="noopener noreferrer"&gt;Quotabar&lt;/a&gt;. It does exactly what's described here: reads the Codex logs and receives Claude Code's status line payload, nothing else. It's free, with a one-time paid tier for warnings and auto-resume after a reset.&lt;/p&gt;

&lt;p&gt;The scripts above are enough if a status line is all you need.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>windows</category>
    </item>
  </channel>
</rss>
