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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@asimilation/core

v0.0.2

Published

**Asimilation** is a personal backend framework where I bring together all my backend knowledge. It’s inspired by frameworks from the Python ecosystem (like **Django** and **Flask**) and adapts their concepts to **Node.js**.

Downloads

152

Readme

Asimilation

Asimilation is a personal backend framework where I bring together all my backend knowledge.
It’s inspired by frameworks from the Python ecosystem (like Django and Flask) and adapts their concepts to Node.js.

Although it began in JavaScript, the project has been fully migrated to TypeScript for better maintainability and type safety.
Its structure and design don’t always follow conventional JS patterns — they’re heavily influenced by Pythonic backend philosophies.


Why I Built This

Asimilation is also the project where I began my TypeScript journey.

At first, I wrote it in JavaScript, but I quickly realized that I don't enjoy writing untyped code.
Without types, I had to write more validations, handle more edge cases manually, and rely too much on control structures.
It became obvious that using a typed language would help me write cleaner, safer, and more scalable code.

That’s when I decided to migrate everything to TypeScript — and use this project as my learning ground.

I also have another personal project written in Tkinter (Python), which I want to migrate to Electron. So, learning TypeScript now gives me a solid foundation for that transition, and helps me get closer to learning React as well.


Status: This project is under active development and may not work properly yet. Expect bugs and incomplete features.


Features

  • Custom Routing System — Inspired by Django, with a Paths class to manage URL patterns and views.
  • Dynamic Routes with Parameters — The routing system now supports dynamic routes with typed parameters (e.g. /user/<int:id>).
    We are actively optimizing the route matching algorithm: previously, matching was O(n) (checking all routes), but now we are working towards O(k) complexity, where k is the number of relevant segments or parameters. This makes route resolution much faster and scalable as your app grows.
  • Native HTTP Server — Built on Node.js’s http module for full control and educational value.
  • Status Logging — Color-coded HTTP status codes for easier debugging.
  • Middleware System — Supports chained middleware functions like in Express.
  • Modular Structure — Clear separation of concerns: routing, views, middleware, and utilities.
  • TypeScript Migration — Complete refactor to improve tooling, maintainability, and editor support.
  • Educational Focus — The code is well-commented and designed to be hackable and understandable for junior developers.

Project Structure

C:.
│   .gitignore
│   package.json
│   readme.md
│   tsconfig.json
│
└───src
    │   middlewares.ts
    │   run.ts
    │   urls.ts
    │   views.js
    │
    ├───core
    │       main.ts
    │       middleware-manager.ts
    │       router-manager.ts
    │       type.ts
    │
    ├───default
    │   ├───middleware
    │   │       logger.ts
    │   ├───path
    │   └───template
    │       └───error.html
    │           404.html
    │
    ├───enums
    │       param-type.ts
    │
    ├───interfaces
    │       middleware-manager.ts
    │
    └───utils
        │   files.ts
        │   http-responses.ts
        │   logger.ts
        └───datastrucures
                stack.ts

Getting Started

Install Node.js (v18+ recommended)

Clone this repository

Run the server:

npm run start

Open http://localhost:3000 in your browser


How It Works

  • Routes and views are defined in urls.ts and views.ts
  • The server listens for HTTP requests and matches the URL to registered routes
  • Middleware functions run before reaching the route handler
  • If a match is found, the associated controller/view is executed
  • Responses are logged with color-coded status codes for clarity
  • Dynamic route matching:
    The framework now supports dynamic routes with typed parameters, and the matching algorithm is being optimized from O(n) to O(k) for better performance. This means route resolution is much faster, even as the number of routes grows.

Why “Asimilation”?

This project is a living record of my backend learning journey, as I "assimilate" new concepts and best practices. It’s designed to be simple, educational, and a solid foundation for future experiments.


Made by a junior — for juniors.

Feel free to explore the code, learn from it, and even contribute. My goal is to keep building and learning — one line of TypeScript at a time.