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

meta-client

v0.0.0-c32

Published

Meta.js (Client)

Downloads

308

Readme

Meta.js 👩‍🚀

Accessible Javascript Library For Virtual Reality 🚀

Latest NPM release Build Status Dependencies https://metajs.org

🎊 Features

  • 🏖 Learn how to create and use code virtual (reality) space in minutes.
  • 💐 Code virtual reality like its the year you live in.
  • 🤹🏻 Write in the language you know with the tools you love.
  • 🚀 Write one version of your code that works on any device (HTC Vive, Oculus Rift, Desktop, Mobile, etc.).
  • 🏰 Grab a cube now, move a castle soon!

🚀 Why (did you come up with this)?

Spatial media like Virtual Reality or Augmented Reality is perceived in such a fundamentally different way than computer graphics as we know them that we need to find new ways to describe it. This is an approach.

Furthermore this is an attempt to create the most accessible virtual reality library possible.

💐 Example

This example is written in three lines that can't be anymore intuitive.


import {Ground, Cube, on} from 'meta-client';

new Ground();

on('touch', (data) => new Cube().set(data.position));

👩‍🚀 Usage

Custom start within minutes:

You need to have Node.js (https://nodejs.org) installed.

(If you don't know how to use the terminal watch this.)

  1. Create a new directory and enter it.
mkdir meta && cd meta
  1. Initialize a npm repository and install Parcel-Bundler and Meta.
npm init && npm install parcel-bundler meta-client
  1. Create a index.html and a index.js file.
touch index.html index.js
  1. Add the following into index.html.
<html>
<body>
  <script src="./index.js"></script>
</body>
</html>
  1. Add the following into index.js.
import {Ground, Cube, on} from 'meta-client';

new Ground();

on('touch', (data) => new Cube().set(data.position));
  1. Start:
parcel index.html

Open http://localhost:1234/ in your browser.

One Line

Alternatively you can also put all steps together in a single line like this:

touch index.html index.js && echo '<html><body><script src="./index.js"></script></body></html>' >> ./index.html && echo "import {Ground, Cube, on} from 'meta-client';\nnew Ground();\non('touch', (data) => new Cube().set(data.position));" >> ./index.js && npm init -y && npm i parcel-bundler meta-client && parcel index.html

🤹🏻 How to use the examples

It can be very useful to start with a working example.

To use the examples clone a full copy of Meta.js:

git clone https://github.com/florianmaxim/meta

Navigate to the examples directory:

cd meta/examples

Select the example you want to work with:

cd 1

Install and start the example:

npm start

🎉 Custom installation

git clone https://github.com/florianmaxim/meta
npm install
npm run build

📕 Wiki

Read the Wiki to learn how to use Meta.js.

📚 Docs

Read the full code documentation.

💬 Slack

Join the Slack channel to talk about (virtual) space.

Packages

| meta-client | meta-console | |:--------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------:| | npm | npm | | npm | npm |

Compatibility

VR Displays

Desktop

Mobile

Credits 👑

As any other software this is based on thousands of layers of programming abstraction. The upper layers on which this is build on are Three.js (Javascript 3D library) and Oimo.js (Javascript physics engine).

References & Inspiration 🤹

I probably learned most about space from Walter Lewin.

I probably learned most about toys from Julian Summer Miller.

That's basically what brought me here.

License 🔖

MIT

Manifesto 📜

Let's start to redefine space!