<?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: Joshua Enikele</title>
    <description>The latest articles on DEV Community by Joshua Enikele (@joshteflon).</description>
    <link>https://dev.to/joshteflon</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%2F773533%2F35f94811-68dc-441c-be11-860417c01c61.png</url>
      <title>DEV Community: Joshua Enikele</title>
      <link>https://dev.to/joshteflon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joshteflon"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Joshua Enikele</dc:creator>
      <pubDate>Wed, 06 May 2026 17:59:18 +0000</pubDate>
      <link>https://dev.to/joshteflon/-1kig</link>
      <guid>https://dev.to/joshteflon/-1kig</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb" class="crayons-story__hidden-navigation-link"&gt;hashfree: Clean URL Section Navigation Without the #&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/joshteflon" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F773533%2F35f94811-68dc-441c-be11-860417c01c61.png" alt="joshteflon profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/joshteflon" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Joshua Enikele
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Joshua Enikele
                
              
              &lt;div id="story-author-preview-content-3622376" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/joshteflon" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F773533%2F35f94811-68dc-441c-be11-860417c01c61.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Joshua Enikele&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 6&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb" id="article-link-3622376"&gt;
          hashfree: Clean URL Section Navigation Without the #
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/npm"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;npm&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/javascript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;javascript&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/typescript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;typescript&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;3&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              &lt;span class="hidden s:inline"&gt;Add Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>hashfree: Clean URL Section Navigation Without the #</title>
      <dc:creator>Joshua Enikele</dc:creator>
      <pubDate>Wed, 06 May 2026 17:38:00 +0000</pubDate>
      <link>https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb</link>
      <guid>https://dev.to/joshteflon/hashfree-clean-url-section-navigation-without-the--57pb</guid>
      <description>&lt;p&gt;&lt;code&gt;yoursite.com/#features&lt;/code&gt;, &lt;code&gt;yoursite.com/#pricing&lt;/code&gt;, &lt;code&gt;yoursite.com/#contact&lt;/code&gt; work just fine. But there's a difference between these and &lt;code&gt;yoursite.com/features&lt;/code&gt;. The latter is cleaner, more shareable, and just looks more professional.&lt;/p&gt;

&lt;p&gt;If you've done a clean up like this before, you know it requires wiring up &lt;code&gt;IntersectionObserver&lt;/code&gt; to track visible sections, intercepting anchor clicks, and using the History API to rewrite the URL. After writing this logic a couple of times across various projects, I packaged it into a lightweight browser utility called &lt;strong&gt;hashfree&lt;/strong&gt; and here's how it works:&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# npm&lt;/span&gt;
npm &lt;span class="nb"&gt;install &lt;/span&gt;hashfree

&lt;span class="c"&gt;# pnpm&lt;/span&gt;
pnpm add hashfree

&lt;span class="c"&gt;# yarn&lt;/span&gt;
yarn add hashfree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic Setup
&lt;/h2&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;createSectionNav&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;hashfree&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;createSectionNav&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;[data-section]&lt;/span&gt;&lt;span class="dl"&gt;'&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;h2&gt;
  
  
  Your HTML stays exactly as you'd expect
&lt;/h2&gt;

&lt;p&gt;Keep your anchor links as they are, &lt;strong&gt;hashfree&lt;/strong&gt; intercepts them without requiring any changes to your markup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#intro"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Intro&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#features"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Features&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#api"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;API&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"intro"&lt;/span&gt; &lt;span class="na"&gt;data-section&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"features"&lt;/span&gt; &lt;span class="na"&gt;data-section&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"api"&lt;/span&gt; &lt;span class="na"&gt;data-section&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clicking &lt;code&gt;#features&lt;/code&gt; smooth scrolls to the section and rewrites the URL to &lt;code&gt;/features&lt;/code&gt;, no hash, no full page reload.&lt;/p&gt;

&lt;h2&gt;
  
  
  More Configuration
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;hashfree&lt;/strong&gt; ships with a few more options: &lt;code&gt;basePath&lt;/code&gt; for nested routes, &lt;code&gt;updateStrategy&lt;/code&gt; to control browser history, &lt;code&gt;onNavigate&lt;/code&gt; callbacks, programmatic navigation via &lt;code&gt;navigateTo()&lt;/code&gt;, and more.&lt;/p&gt;

&lt;p&gt;Full configuration reference on &lt;a href="https://www.npmjs.com/package/hashfree" rel="noopener noreferrer"&gt;npm&lt;/a&gt; and the &lt;a href="https://joshteflon.github.io/hashfree" rel="noopener noreferrer"&gt;docs&lt;/a&gt;.📜&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on routers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;hashfree&lt;/strong&gt; is intentionally not a router. If you're building a full SPA with dynamic routes, your framework's routing solution is the right call. But if you have a landing page, docs site, or portfolio with section-based navigation and just want clean URLs, this is the one.&lt;/p&gt;

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