npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stratox

v2.3.2

Published

JavaScript template library designed for the effortless creation of component, views and user interfaces (UI).

Downloads

351

Readme

Stratox.js - template engine npm

Stratox.js is a user-friendly JavaScript template engine that helps you easily build template components and views.

The Stratox template library is created using up-to-date methods, keeping its size at around 6 kb when bundled and minimized (gzipped). It works independently, smoothly running on all platforms without needing anything else. Stratox.js is a smart pick for applications and websites, ensuring great performance and quick load time. It's versatile, letting you load views asynchronously (with optional caching) or bundle them conveniently into your main JavaScript file.

Documentation

You can find the full Startox documentation here

The documentation is divided into several sections:

Why Startox

User-Friendly

Stratox is very user-friendly because it lets you prioritize JavaScript and HTML instead of grappling with the complexities of new markup and platform-specific functions, which in the end only lead to the burden of unnecessary abstractions. Stratox harnesses JavaScript's core capabilities, promoting a practical and fundamental approach to modern web development.

Platform-agnostic nature

Stratox.js doesn't discriminate or judge based on the platform you use, and it works seamlessly on all platforms and depends on nothing but it self.

Full accessibility support

Moreover, by allowing developers to write regular HTML with the right semantics, Stratox.js ensures that the resulting interfaces are fully accessible. This dual emphasis on simplicity and accessibility makes Stratox.js a powerful tool for creating user-friendly and inclusive web applications.

Why Stratox.js?

  • High Performance: Stratox.js is optimized for performance.
  • Great Load Speed: Experience swift loading times for a seamless user experience.
  • Optimized: A finely-tuned library that prioritizes efficiency.
  • User-Friendly: Easy to use, making development a breeze.
  • Platform-Agnostic: Works seamlessly across all platforms.
  • Template Engine: Facilitates the creation of Views, components, and UI elements.
  • Form Builder: Follows HTML semantics, supporting nested form names.
  • HTML Semantics: Follow HTML semantics if you wish
  • Full Accessibility Support: You can make your app inclusive and accessible for all.
  • Container Library: Designed for seamless communication between template views and your project.
  • Async and bundle: Support asynchronous loading of or bundling of views

Targeting

  • Single-Page Application (SPA): Ideal for creating SPAs with enhanced user experiences.
  • Cross-Platform Compatibility: Apache Cordova (PhoneGap), Xamarin, Electron, Ionic, and similar.
  • Enhancing Static HTML: Easily integrates with existing static HTML structures.
  • Backend Language Integration: Easily integrates with various backend languages.

Example

Below is a just basic example to demonstrate how easy it is to build a template view/component. There are a lot more examples in the documentation.

Stratox.setComponent("ingress", function(data, container, helper, builder) {
    let out = `
    <header class="mb-50 align-center">
        <h1>${data.headline}</h1>
        <p>${data.content}</p>
    </header>
    `;
    return out;
});

const stratox = new Stratox("#app");

stratox.view("ingress", {
  headline: "Lorem ipsum dolor",
  content: "Lorem ipsum dolor sit amet"
});

stratox.execute();

Click here to see the result