Web Tools #554 - JS Utilities, Testing Tools, JS Lib Plugins

Web Tools Weekly
WEB VERSION
Tools for Web Developers

Issue #554 • February 29, 2024

The following is a paid product review for STRICH, a JavaScript library for real-time, multi-format barcode scanning directly in the browser.

I think it's safe to say everyone reading this knows what a barcode is. Barcodes have been used for more than half a century to identify physical products, to prevent theft and price tag-swapping, to track packages, among other uses.

Today I'm introducing STRICH (from German meaning "line" or "stroke"), a JavaScript library that allows you to easily build high-performance barcode scanning functionality into any web app.

STRICH, a JavaScript library for barcode scanning in the browser
STRICH, a JavaScript library for barcode scanning in the browser

STRICH includes a number of features developers will love, especially those of us who want the web platform to win.

First of all, you can easily install the STRICH SDK via npm and it has zero dependencies:

npm install @pixelverse/strichjs-sdk

STRICH is built purely using web technologies like WebGL and WebAssembly and isn't dependent on any fancy or bulky third-party solutions for its scanning capabilities. The installation amounts to a single JavaScript file with optional TypeScript bindings. And because STRICH is built for the web, it will work on any modern device without the need to maintain multiple code bases for different native mobile platforms – and your users don't have to install anything.

STRICH can be used to build any app that will take the place of any expensive hardware solutions you might be using at the moment for your barcode scanning needs. This could be some form of ticketing service, merchandise tracking, delivery services, and so on. You can check out case studies for Bold.co and Swiss Federal Railways for some example real-world uses.

As for the barcode scanning technology itself, STRICH supports both 1D and 2D barcode scanning, with a number of different types, or symbologies, included.

1D barcodes supported by STRICH
STRICH supports 1D and 2D barcodes

Because STRICH is in continuous development, new barcode types will be added as demand increases, so you can always ask about a particular type that's not currently supported, which may already be in the pipeline.

The fact that STRICH is built on web technologies also means it's not restricted for use with a particular library or framework. You can use it in a vanilla JavaScript app or with React, Vue, Angular, or any other framework.

You can get up and running pretty quickly with STRICH once you've installed it and signed up for an account. STRICH offers a 30-day free trial to test out its features.

With your account active, you'll have access to your STRICH dashboard, which includes scanning usage stats, license keys, and more.

Using your STRICH dashboard
Using your STRICH dashboard

In my account, I've created a single license key for use with two different domains. Usefully, addresses like localhost, 127.0.0.1, and private IP ranges (e.g. 192.168.x.y, 10.x.y.z), often used in local development, are included by default with any license key created, so you don't need to specify those.

Creating a new STRICH license key
Creating a new STRICH license key

Once I have access to that key, I can use something like the following code to initialize the STRICH SDK, giving me full access to the API within my custom barcode scanning app:

import StrichSDK, BarcodeReader } from './js/strich.js';

StrichSDK.initialize('<License Key... >')
  
.then(() => console.log('STRICH SDK initialized'));

There are some real-world, working examples you can examine on GitHub if you want to take a deeper look at the code or install locally to try them out using your own license key:

You can also check out an in-depth tutorial for using STRICH to scan barcodes on U.S. drivers' licenses if you'd like something deeper that breaks down the different aspects of the code in real-world usage.

Depending on the technology used, you'll notice a more-or-less similar pattern where your markup will include a 'scanner' element that you'll use to host an instance of BarcodeReader, which will generate the UI for scanning.
<div class="container">
  
<div class="scanner">
    
<!-- STRICH BarcodeReader will live here -->
  
</div>
  
<section id="results">
    
<!-- results will be added here -->
  
</section>
</div>

STRICH provides a few different pricing plans, along with an enterprise option for larger volume. The basic plan includes up to 10,000 scans per month and the professional plan includes up to 100,000 scans per month. With either of these plans, the limits are soft for up to two months, so you don't have to worry about failed scans should you go over. The enterprise plan includes unlimited scanning, among other features.

Even with the Basic plan (which is a paid plan), you get features like:

  • Unlimited devices
  • Unlimited applications
  • Free updates to the SDK
  • All supported 1D and 2D barcode types
  • Web-based analytics
The Professional plan includes all of the above along with the extra scans per month and priority support.

The STRICH team has set up this demo app you can try out using a mobile device, if you'd like to see it in action without the need to sign up for the trial. This is particularly useful if you want to test out your own existing barcodes to make sure STRICH supports them. The demo allows you to select the barcode type or you can choose "all" (as I did in the screenshot below).
Testing barcode types on STRICH's live demo
Testing barcode types on STRICH's live demo

That should give you a good idea of what STRICH is capable of and how simple it is to get it up and running. The STRICH docs have a getting started guide, along with a full API reference so you can get an idea of what types of functionality you can incorporate into your own product.

So if your startup or business is in need of a mature and well-maintained barcode scanning solution, be sure to check out STRICH

Now on to this week's tools!

 

JavaScript Utilities

systeminformation — A dependency-free Node.js library of 50+ functions to retrieve detailed hardware, system and OS information, with support for Linux, macOS, partial Windows, SunOS, and Android, and more.

tldts — A fast JavaScript utility to extract hostnames, domains, public suffixes, top-level domains, and subdomains from URLs.

Tempo — A comprehensive JavaScript and TypeScript library to parse, format, manipulate, and internationalize dates and times.

Meco — Free your newsletters from the inbox. The inbox is full of distractions and too many subscriptions lead to inbox chaos. Time to liberate your inbox and move to Meco, a newsletter aggregator built for reading.    SPONSORED 

neoconfetti — Add a confetti explosion to any page in vanilla JavaScript, with integrations for Svelte, React, Vue, and Solid also.

neoconfetti

Sutra — A versatile library for creating and managing behavior trees in JavaScript, useful for game logic development, for easy definition of complex behavior patterns using a simple and intuitive syntax.

zip.js — A JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files, and encryption.

x-crawl — A flexible Node.js multifunctional crawler library with flexible usage and numerous functions to help you quickly, safely, and reliably crawl pages, interfaces, and files.

sort-on — A utility to sort an array based on an object property, with options for descending/ascending, nested objects, among other features.

plain-page-transition — A dependency-free utility to integrate animated page transition effects to a simple website.

Verticalize — A pipe-like function to "verticalize" your JavaScript code. There's an example on the page if you aren't sure what that means and part of me doesn't even think this is a serious thing.
 

Testing & Debugging Tools

Automock — A tool to optimize the unit testing process within dependency injection frameworks by providing a virtual, isolated environment and automated mock generation, for more efficient test suites.

wacat — A utility powered by Playwright to run chaotic tests on your web app, inspired by the manner a cat may chaotically walk across a keyboard, pressing every key.

Nuxt Test Utils — The same set of utilities used by the Nuxt team, offering first-class support for end-to-end and unit testing of your Nuxt applications.

Echoed — An enhanced API testing solution that uses OpenTelemetry on top of Jest, with YAML support, test troubleshooting, code compatibility, and more.

The Secret Sauce To HTML Video Autoplay — We'll delve into HTML video autoplay, exploring how this feature has revolutionized online content delivery, the pitfalls to avoid, and pairing it with ImageKit to make autoplay an asset (and not an annoyance!) for your website.    SPONSORED 

line-length — A bookmarklet that allows you to mouse-over any element on a page and view information on median and max line-length, useful for projecting readability in layouts.

Tabgod — A Chrome extension that allows you to execute any JavaScript on any open browser tab in parallel.

Vue DevTools Next — The next iteration of Vue DevTools, currently available as a Vite plugin or standalone app, with a Chrome extension coming soon.

Vue DevTools

Chai — A BDD / TDD assertion assertion library, similar to Node's built-in assert, for Node.js and the browser that can be paired with any testing framework.

Device Simulator & Tester — A Chrome extension to test websites on multiple devices in a single tab, with some features like scroll to selector, scroll sync, navigation sync, and more.
Advertisement

Calling All Devs! Sentry Launch Week is Coming.
Tune in March 18-22 to get announcements of new products, new features, and a whole bunch of other cool things.

Sentry Launch Week

Get a sneak peek (and win free swag) if you sign up for their launch week reminder list today. Get excited 😱.

Tune In →


 

JS Library Plugins & Tools

multipleWindow3dScene — A quick example of how one can "synchronize" a 3D scene across multiple windows using Three.js and localStorage.

express-typescript-skeleton — A template to start developing a REST API with Node.js (Express), TypeScript, Ts.ED, ESLint, Prettier, Husky, Prisma, etc.

Animotion — A presentational framework for creating beautiful slides and visualizing ideas with code using Svelte, Reveal.js, and Tailwind.

remix-wizard — An all-in-one solution for building wizards (i.e. setup assistants or multi-step forms) using Remix.

The Secret Sauce To HTML Video Autoplay — We'll delve into HTML video autoplay, exploring how this feature has revolutionized online content delivery, the pitfalls to avoid, and pairing it with ImageKit to make autoplay an asset (and not an annoyance!) for your website.    SPONSORED 

Svelte Stepper — A simple headless library for building delightfully animated stepped flows with Svelte, with full control over customizing transitions, layout, styles, etc.

Paperless-ngx — An Angular-powered, community-supported, open-source document management system that transforms your physical documents into a searchable online archive so you can keep less paper.

⌘K-sv — Svelte version of the popular CMD-K pattern for adding fast, unstyled command palette-like functionality to a web app or docs site.

CMDK-sv

Express Slow Down — Basic rate-limiting middleware for Express that slows down responses rather than blocking them outright.

three-hex-tiling — A Three.js plugin that adds support for hiding repeating texture patterns to Three.js.

three.js Realism Effects — A set of effects for Three.js (SSGI, Motion Blur, TRAA) to enhance your three.js scene's realism.

Commercial Apps & Classifieds

These are commercial apps, affiliate links, PPC ads, and paid classifieds. Buy a Classified here.
Items.Design – Free and premium AI-generated design assets for startups and creators.
VSCode.Email – The latest news, tips, tools, & articles on the world's most popular code editor.    AD 
noSwag – Generate tests from JSON specification to programmed tests using OpenAI.
BrowserCat – Crawl, scrape, sync, record, download, aggregate, and automate via headless browsers.
TLDR – A daily byte-sized version of Hacker News that takes just a few minutes to read.     AD 
Cronbot – A no-code AI chatbot, customizable to match your brand, trained on your website content.
Phare – A single platform for website monitoring, status pages, analytics, security, and alerting.

An X Post for Thought

Andrew Clark with some interesting thoughts in this thread on "spaghetti code", the DRY principle, and making code easy to understand.
 
An X Post for Thought
 

Send Me Your Tools!

Made something? Reply to this email or send links via Direct Message on X @LouisLazaris (details here). No tutorials or articles, please. If you have any suggestions for improvement or corrections, feel free to reply to this email.
 

Before I Go...

Stained Glass Smash is an interactive game/generator that lets you customize your own stained glass window effect, which you can download as a PNG. Just the act of creating the 'window' is somewhat satisfying and therapeutic.

Thanks to everyone for subscribing and reading!

Keep tooling,
Louis
@LouisLazaris
PayPal.me/WebToolsWeekly

Older messages

Web Tools #553 - CSS Overview, Frameworks, Build Tools, Uncats

Thursday, February 22, 2024

WEB VERSION Issue #553 • February 22, 2024 Advertisement A Newsletter Helping Flex Your Product Muscle Product for Engineers is PostHog's newsletter dedicated to helping engineers improve their

Web Tools #552 - Vulnerabilities, JS Utilities, SVG, Mobile Tools

Monday, February 19, 2024

WEB VERSION Issue #552 • February 15, 2024 Advertisement Porkbun — Best Domain Registrar for Tech Porkbun was named the #1 domain registrar by USA Today and is the favorite domain registrar for

Web Tools #551 - HTML/CSS Tools, JSON/DB, Testing Tools

Thursday, February 8, 2024

WEB VERSION Issue #551 • February 8, 2024 Advertisement Porkbun — #1 Domain Registrar in the Tech Industry Porkbun is the favorite domain registrar for tech professionals and was named the #1 domain

Web Tools #550 - JS Libraries, ChatGPT Tools, React

Thursday, February 1, 2024

WEB VERSION Issue #550 • February 1, 2024 Advertisement Low-Code for Enterprise Application Development Are your development projects hitting roadblocks due to complexity or cost? Consider professional

Web Tools #549 - CSS/HTML Tools, JS Lib Plugins, Uncats

Thursday, January 25, 2024

WEB VERSION Issue #549 • January 25, 2024 Advertisement Embark On A Web3 Adventure With BitDegree BitDegree is a leading educational platform at the intersection of technology and learning. With a

You Might Also Like

Siri's AI upgrade 🤖, Tesla Supercharger chaos ⚡, AI engineer burnout 👨‍💻

Monday, May 6, 2024

Safari, Spotlight Search, and Siri will gain significant AI-related enhancements. Apple's AI model will generate basic responses entirely on-device. Sign Up |Advertise|View Online TLDR Together

80% Off iPhone Photo Academy!

Monday, May 6, 2024

Hi there, Are you ready to dramatically improve your iPhone photography skills? We all know that the iPhone camera is extremely powerful, but most of us still manage to take a lot of photos that aren

Architecture Weekly #178 - 6th May 2024

Monday, May 6, 2024

This time, we discussed biases. Biases on the perspective on our technologies, so not seeing their evolutions. We also checked how biases can impact our knowledge, collaboration and eventually also the

WP Weekly 192 - WP Biz - Brands Merged, Woo Cart Popup, Fastest Hosting

Monday, May 6, 2024

Read on Website WP Weekly 192 / WP Biz The 'business of WordPress' is buzzing for sure, be it the acquisition of plugins or the massive Envato ownership change. Also, WordPress content brands

SRE Weekly Issue #423

Monday, May 6, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: FireHydrant is now AI-powered for faster, smarter incidents! Power up your incidents with auto-generated real-time summaries,

⚠️ Avoiding AI Scams on Social Media — An Open Source Google Photos Alternative

Sunday, May 5, 2024

Also: Reviewing the Customizable Drop Mechanical Keyboard, and More! How-To Geek Logo May 5, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to

Daily Coding Problem: Problem #1432 [Medium]

Sunday, May 5, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Snapchat. Given the head to a singly linked list, where each node also has a “random”

PD#572 Good Ideas in Computer Science

Sunday, May 5, 2024

Ideas every programmer likes and why Garbage Collection and Object Oriented Programming don't count ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

RD#454 API Layer & Fetch Functions

Sunday, May 5, 2024

ixing API and UI code quickly leads to messy and unmaintainable code ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

The Shiny Toy Syndrome & Tiny macOS utility apps I love

Sunday, May 5, 2024

Lex launching its redesign, Raycast shares another monthly update packed with AI updates, prompts should be designed not engineered, and a lot more in this week's issue of Creativerly. Creativerly