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

datt

v0.4.2

Published

It's cool when users own their content.

Downloads

68

Readme

Datt

Datt is a decentralized content sharing platform with integrated payments. It is currently undergoing heavy development and has not yet reached alpha. Our issues are tracked on GitHub. Check out the blog or twitter to stay up-to-date on progress.

How To Test And Develop Datt

Datt can be built and run on Linux. It is not tested on Mac or Windows, but should work with minimal or no changes on those platforms. To help program the Datt application, first be sure you are running node 4.3:

> node --version
v4.3.1

Then clone this repo:

git clone https://github.com/dattnetwork/datt.git

Then install the dependencies:

cd datt
npm install

To run all of Datt tests:

npm test

To build the browser bundles:

npm run build

Then run the server:

npm run serve-testnet

This will serve the files and run a browser-sync proxy server (If for some reason you wish to run in dangerous mainnet mode instead, replace 'testnet' for 'mainnet' above). You can then access the tests at:

http://localhost:3040/tests.html

The app makes use of IndexedDB in a browser. Each "domain" has its own IndexedDB. This means if you run the app on a different port, it's as though you're running the app as a different person from a different computer. To facilitate this for testing purposes, the ports 3040 - 3044 are all assigned to simply deliver the app. So feel free to open up these other ports to see the same app but with a different user:

http://localhost:3040/
http://localhost:3041/
http://localhost:3042/
http://localhost:3043/
http://localhost:3044/

Folder Layout

This repo contains both the main datt application as well as the landing page, blog, documentation, mockups and other media, and a second unfinished UI. The folders are as follows:

  • bin/ - Executable files, particularly for running the app servers.
  • blog/ - The blog content and source.
  • build/ - Static files and build files for the browser.
  • docs/ - Documentation on business, product, community, technology.
  • landing/ - The landing page content and source.
  • lib/ - The core logic of the database and API.
  • media/ - Logos, mockups, and template HTML.
  • server/ - The Datt servers.
  • test/ - Tests for datt.

Environment Variables

  • DATT_JS_BASE_URL - Default "/". The public-facing URL where the javascript files are hosted, usually either "/" or "/js/".
  • DATT_JS_BUNDLE_FILE - Default "datt.js". The Datt bundle file.
  • DATT_JS_TESTS_FILE - Default "datt-tests.js". The tests file - where the browser tests are located.
  • DATT_BLOCKCHAIN_API_URI - Default "https://insight.bitpay.com/api/".
  • FULLNODE_NETWORK - Default "mainnet". Can also be "testnet".