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

tmlib.js

v0.1.5

Published

javascript library for game programming.

Readme

tmlib.js

JavaScript をより使いやすく, より便利に, そしてより豊かに』を
コンセプトに制作した JavaScript ライブラリです.

やってることは

  • 生成時に new がいらない class 定義の仕組みを作ってみたり
  • jQuery ライクに DOM を扱えるようにしたり
  • ajax 機能をサポートしてみたり
  • HTML5 Canvas をラップして使いやすくしたり
  • アニメーションできるようにしてみたり
  • ベクトルや行列をサポートしてみたり
  • 音を鳴らせるようにしてみたり
  • 入力系をサポートしてみたり
  • 1つのコードで PC とスマホ同時対応できるようにしてみたり

と色々やってます.

Examples - Documentation - Download

Download

Documentation

ドキュメントはこちら

Usage

使い方

<script src="tmlib.js"></script>

読み込み後は下記のような形で使用します.

<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        
        <title>Starter Pack | tmlib.js</title>
        <link rel="apple-touch-icon-precomposed" href="icon.png" />
        
        <script src="https://raw.github.com/phi1618/tmlib.js/0.1.3/build/tmlib.js"></script>
        <script>
            // メイン処理(ページ読み込み後に実行される)
            tm.main(function() {
                // アプリケーション作成
                var app = tm.app.CanvasApp("#world");
                app.resizeWindow(); // 画面サイズに合わせる
                app.fitWindow();    // リサイズ対応
                app.background = "rgba(0, 0, 0, 0.1)";  // 背景色をセット
                
                // 星スプライト
                var star = tm.app.Shape(64, 64);
                star.canvas.setColorStyle("white", "yellow").fillStar(32, 32, 32, 5);
                app.currentScene.addChild(star);    // シーンに追加
                
                // 更新
                app.currentScene.update = function(app) {
                    // マウス位置 or タッチ位置に移動
                    star.x = app.pointing.x;
                    star.y = app.pointing.y;
                    // クリック or タッチ中は回転させる
                    if (app.pointing.getPointing() == true) { star.rotation += 15; }
                };
                
                // 実行
                app.run();
            });
        </script>
    </head>
    <body>
        <canvas id="world"></canvas>
    </body>
</html>

Examples

使用例です. 随時追加していきます.
また, 「こんなん作ってみた」とかあれば教えて下さい.

License

MIT License

Browser

対応ブラウザの一覧です.
IE なんて知りません.

Resource

当プロジェクトで使用させていただいている画像・音楽はこちらの皆様からお借りしております.

Music

Blog

tmlib.js に関する最新の情報やチュートリアルなどはこちらのブログで紹介していきます.

TM Life