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

webenv-ml

v0.1.0

Published

Extensible machine learning Web environment for training AGI.

Downloads

1

Readme

WebEnv

Turn the most widely-used data interchange format (the Web) into a numeric interface (Env) for training general intelligence: learn a rich understanding of the world, then accomplish user-defined tasks with it.

Setting up an infinite loop that allows useful learning in any situation is essential for the most interesting applications of intelligence. WebEnv provides a clean interface to the real world, while discouraging practices that act as barriers to learning.

In this interface, agents interact with the Web by continuously receiving observations and sending actions.

  • Reward is decided dynamically, if ever. Agents ought to be self-supervised and/or integrated with human life.
  • Both observations and actions can be extremely-high-dimensional, so models must be scalable.
  • The particular interface format can be defined by both initialization and web-pages, so only fully general architectures can succeed.
  • One environment is one continuous bidirectional stream of data. Agents have to learn online.

Getting started

Using NPM, as you commonly do in machine learning, install the webenv-ml package:

npm install -g webenv-ml

Then, require it in JavaScript, or use a bridge to another language, and use it:

Index

Features

No constraints to make learning easier. Brush against raw generality.

  • Multimodal interfaces: the Web contains text-in-pages, video, audio, interactive UI, games, and other data streams. WebEnv agents have no upper limit on their capabilities.

    • Consistent data. Web pages are made by humans for humans; large ML datasets often scrape this, breaking the intended consistencies and making data unclean. Here, challenge the shapeshifting master of data.
    • Extensible: choose the particular static interfaces that your agent can rely on, and allow web pages to dynamically establish direct links. Pre-empt the age of neural interfaces by using directLink in your website.
  • Universality: WebEnv is able to include all ML datasets and environments, behavior of ML solutions in them, an agent's own behavior, and most of human ingenuity. Instead of creating a new agent for each task, re-use the same one for all. AI media typically makes it seem like different AI models constitute work on the same AI, but if one model can manage to do all that, then said media's representation will be accurate.

    • Scope: train on the RandomURL dataset to randomly sample the whole Web. When data gets too big to memorize, generality is the only solution.
    • Open-ended: one way to describe general intelligence is "good zero-shot performance on unseen tasks", and the most unseen tasks are ones that do not exist yet. Web pages can call directScore to evaluate your agent, creating an expansive set of maximization tasks, which will only get bigger with time.
  • Efficiency: combining all formats introduces a non-insignificant representation overhead, so WebEnv is fast and robust to compensate.

    • Scalable: a single WebEnv instance can handle as many data streams as you want, and if that is not enough, simply have many, and write parameter-update synchronization yourself. Work on computations, not infrastructure.
    • Real-time: agents must focus on their throughput and frame-time consistency too. This presents novel challenges to many ML frameworks (namely, efficient BPTT handling is pain, easier to use synthetic gradients).
  • Self-determination: under constant pressure to represent essentially-infinitely-complex interactions with data and goals, only the most complete representations will survive, creating mesa-optimizers: aware of everything, general, quickly adaptable, and learned. Research learned agency at scale.

    • Understandable: general intelligence can only be guided and judged by general intelligence, so interfaces (mostly) share a human-usable format, and observations and their predictions are easy to inspect visually.
    • Human-integrated: humans can connect their own browsing to pre-trained WebEnv agents through an extension or a JS API, and control observations and reward via directScore. AI safety can be ensured through AGI-as-a-service platforms.

Caveats

No constraints to make learning easier. Brush against raw generality.

  • You can get IP-banned by some websites for running bots. (Respect the etiquette.)

  • Reliant on its community: people deciding to use directLink and directScore to create experiences that they cannot currently partake in. For example, there are currently no direct-link forum/chat/comments, nor Web-controlled robots. (AGI-as-a-service should help with adoption, with absolutely no chance of anything going wrong.)

  • Web code is not native code. Without an explicit bridge, it is impossible to send actions to or receive non-video observations from native applications. (In exchange, we leverage greater control over what happens, currently through navigation and visual augmentations.)

  • URLs are invisible to agents. Agents cannot interact with popups, and so, for example, cannot install extensions.

License

MIT