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 🙏

© 2025 – Pkg Stats / Ryan Hefner

stratus-ts

v0.5.2

Published

A high-level web framework for TypeScript, inspired by Django, designed for rapid development and clean code.

Readme

StratusTS

A high-level web framework for TypeScript, inspired by Django, designed for rapid development and clean code.


Table of Contents


Overview

StratusTS is a high-level web framework built with TypeScript. Its design is inspired by Django to promote rapid development, clear code organization, and ease of maintenance. It provides a built-in routing system, configurable server options, and a modular way to define applications (or “apps”) that can be integrat.


Installation

pnpm i -g stratus‑ts

# or if you using npm
npm install -g stratus‑ts

Getting Started

st create project <project-name>

# or alternative way
stratus‑ts create project <project-name>

it should give you structure like this

<project name>/
├── package.json    # package json for npm
├── src             # actual app source code
│   ├── app.ts      # actual config module of the app
│   ├── main.ts     # the main entry point of the app
│   └── settings.ts # all the config file
└── tsconfig.json   # tsconfig file for typesctipt

Configuration

Settings

You can find all the configuration options in src/settings.ts

import type { DatabaseType, SettingsType } from 'stratus‑ts';

const PORT = 2000; // <chenge as your preffer port>

const APPS = []; // add all your apps here

const DATABASE: DatabaseType = false; // database config "false" if you are not using db at all

const TEMPLATE_DIR = 'templates'; // template dir where all your .ejs files are stored

export default {
  PORT,
  APPS,
  DATABASE,
  TEMPLATE_DIR,
} satisfies SettingsType;

App Configuration

The framework automatically gathers routes by your installed apps in src/settings.ts, so you don't have configure any thing from scratch.

Here how you can create your first app

  1. Go to your project dir. where src folder exists.

  2. Run the following command to create your first app:

st create app <app-name>

# or alternative way
stratus‑ts create app <app-name>
  1. Add your app name to settings.ts file :
const APPS = ["<your-app>"]; // add all your apps here
  1. you are good to go for creating your controller.

Controllers

Add all your controller in the <app-name>/controllers.ts file.

import { type ControllerType, ok } from 'stratus‑ts';

const myFirstController: ControllerType = (question, reply) => {
  reply.status(ok()).json({
    success: true,
    data: {
      message: 'working',
    },
  });
};

export { myFirstController };

Routing

Configure all your routing configurations in the <app-name>/routes.ts file.

import { Router } from 'stratus‑ts';

import { myFirstController } from './controllers';

const { routes, route } = Router();

route.get('/', myFirstController);

export default routes;

Testing

Test is going to added to project letter till then use node builtin test runner.

import assert from 'node:assert';
import { describe, it } from 'node:test';

License

This project is licensed under the MIT License. See the LICENSE file for details.