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

backfeed-bookmark-app

v0.1.1

Published

Resource Library for Decentralization

Downloads

7

Readme

When committing, use command npm run commit instead of git commit.

Consult the Commit Guidelines from the Angular team, we are closely following them.

API Definition

== createAgent ==
{{baseURL}}/agents?agentName=OauthToken

{
	"userId": 2
}

== endorseTag ==
{{baseURL}}/evaluations/contributions/:id?fields=senderTokenReputationChange, contributionNewValue

{
	id: "evaluation id",
	contributionNewValue: "tag value, not popularity. you will probably need to call for all evaluations and calculate popularity in the app"
	senderTokenReputationChange: {
        	agentId: "agent id",
        	agentNewReputationBalance: 1012,
        	agentOldReputationBalance: 1015,
        	agentNewTokenBalance: 600,
        	agentOldTokenBalance: 600
	}
}

== evaluateLink ==
{{baseURL}}/evaluations/contributions/:id?fields=senderTokenReputationChange, contributionNewValue

Request body:
{
    evaluation: "number of stars",
}

Response:
{
	id: "evaluation id",
    	contributionNewValue: "value of contribution after evaluation",
    	senderTokenReputationChange: {
        	agentId: "agent id",
        	agentNewReputationBalance: 1012,
        	agentOldReputationBalance: 1015,
        	agentNewTokenBalance: 600,
        	agentOldTokenBalance: 600
    	}
}


== getAllTags ==
[
	{
		"id": 1,
		"name": "Vitalik",
		"linksCount": 12,
		"popularity": 12
	}
	...
]

== getAgent ==
{{baseURL}}/agents/:id?fields=name,handles,collaborations

(ether balance will have to come from some other service, or we can use the handle fields as a bypass to keep track of it.)

{
    id: "agent unique id1",
    name: "JohnLennon",
    handles: [
        {
            name: "[email protected]",
            type: "gmail"
        },
        {
            name: "http://s.jpg",
            type: "avatar"
        }
    ],
    collaborations: [
        {
            id: "collaboration unique id1",
            tokens: 54,
            reputation: 234
        }
    ]
}

== getLinksByTag ==
(tagId)
[
	{
		"id": 12,
		"title": "URL Title",
		"url": "http://...",
		"rank": *1.0-5.0*,
		"tags": [
			{
				"id": 1,
				"name": "Vitalik",
				"popularity": 12
			}
			...
		]
	}
	...
]

== getLinksAndTagsByQuery ==

[
	{
		"resultType": "tag",
		"id": 12,
		"name": "Vitalik",
		"linksCount": 12,
		"popularity": 12
	},
	{
		"resultType": "link",
		"id": 12,
		"title": "URL Title",
		"url": "http://...",
		"rank": *1.0-5.0*
	}
	...
]

== sendLink ==
{{baseURL}}/contributions?type=URLAndTags

notice you'll have to make a distinct "get agent" call to get back the new reputation of the contributor in case you get evaluation IDs back.
also notice you have to add link evaluation to your call.

request body:
{
    "creator": "agentId",
    "collaboration": "collaborationId",
    "content": 
    {
        "title": "Sheker inc.",
        "evaluation": "4",
        "links": "some.sheker.url",
        "tags": [
            "tag1",
            "tag2",
            "tag3"
        ]
    }
}

response:
{
    id: [
        "contribution unique id of URL",
        "evaluation unique id of URL",
        "contribution unique id of Tag1",
        "contribution unique id of Tag2",
        "evaluation unique id of Tag3"
    ],
    contributorsBalance: [
        {
            id: "agentid of contributor",
            newTokenBalance:543,
            oldTokenBalance:583
        }
    ]
}



== addTagToLink ==

Request body:
{
    creator: "agentId",
    collaboration: "collaborationId",
    "content": 
    {
        "title": "Sheker inc.",
        "links": "some.sheker.url",
        "tags": [
            "tag1",
            "tag2",
            "tag3"
        ]
    }
}

Response:
{
    id: [
        "contribution unique id of Tag1",
        "contribution unique id of Tag2",
        "evaluation unique id of Tag3"
    ],
    contributorsBalance: [
        {
            id: "agentid of contributor1",
            newTokenBalance:543,
            oldTokenBalance:583
        }
    ]
}