<p>This example shows a simple page view counter using TypeScript and Key Value Store.</p> <p>It illustrates usage of four KV functions:</p> <ul> <li><code>openDefault()</code></li> <li><code>exists()</code></li> <li><code>getJson()</code></li> <li><code>setJson()</code></li> </ul> <p>There is a <a href="https://dev.to/technosophos/storing-state-between-serverless-requests-with-typescript-and-spin-3p3i">complete tutorial on Dev.to</a> describing this code.</p>