<?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: Revenity</title>
    <description>The latest articles on DEV Community by Revenity (@revenity).</description>
    <link>https://dev.to/revenity</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F777223%2F837e08c1-d0e1-4997-9a47-e3922755452a.jpeg</url>
      <title>DEV Community: Revenity</title>
      <link>https://dev.to/revenity</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/revenity"/>
    <language>en</language>
    <item>
      <title>Stric: A web framework</title>
      <dc:creator>Revenity</dc:creator>
      <pubDate>Tue, 08 Aug 2023 06:58:06 +0000</pubDate>
      <link>https://dev.to/revenity/stric-a-web-framework-1aak</link>
      <guid>https://dev.to/revenity/stric-a-web-framework-1aak</guid>
      <description>&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;Stric is a Bun-first framework for building high-performance, scalable web applications in JS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Router&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;macro&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@stricjs/router&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Router&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;macro&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Hello world!&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How can JS be fast?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://bun.sh"&gt;Bun&lt;/a&gt; is a new JavaScript runtime aimed to be a drop-in replacement for Node.js. &lt;/li&gt;
&lt;li&gt;The Bun server API which Stric uses can handle 2.75x more requests than Node &lt;code&gt;http&lt;/code&gt;. In fact it can even outperform Actix for a simple web app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Performance&lt;/strong&gt;: Stric is one of the fastest web frameworks in the Bun ecosystem. See the benchmark &lt;a href="https://github.com/bunsvr/benchmark"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt;: Stric ensures high performance even under heavy workloads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Minimal&lt;/strong&gt;: The basic components like &lt;code&gt;@stricjs/router&lt;/code&gt; and &lt;code&gt;@stricjs/utils&lt;/code&gt; is under 50kB and use no external dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explicit&lt;/strong&gt;: Only do things like parsing when required.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extensible&lt;/strong&gt;: Stric comes with a plugin system, dependencies injection and more optional optimizations for handling requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Docs
&lt;/h2&gt;

&lt;p&gt;For more info, see the Stric documentation &lt;a href="https://stricjs.gitbook.io/docs/basic/intro"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>typescript</category>
      <category>bunjs</category>
    </item>
  </channel>
</rss>
