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

@gikiapp/sdk

v1.7.0

Published

**叽喳・Giki** provides varierty of APIs for developers to build extensions, all kinds of extensions (Vim plugin, Emacs pluggin, CLI, etc) are welcome.

Downloads

45

Readme

API

叽喳・Giki provides varierty of APIs for developers to build extensions, all kinds of extensions (Vim plugin, Emacs pluggin, CLI, etc) are welcome.

Notes: We use giki to represent an item of your writing. You can get your token from your profile setting page, token is optional for all the GET endpoints, but required for POST endpoints.

Use SDK

npm install @gikiapp/sdk
const API = require('@gikiapp/sdk')

const client = new API({ env: 'staging', token: <Your token> })
const res = await client.login()
if (res.ok) {
  console.log('user login success')
}

const res = client.save('talk', { text: 'hello world' })
if (res.ok) {
  console.log('talk created')
}

Use HTTP

Users

user fetch

GET https://giki.app/api/users
  • fetch by name
curl 'https://giki.app/api/users?name=<your name>' \
  -H 'authorization: Basic <your token>'
  • fetch by domain
curl 'https://giki.app/api/users?domain=<your domain>' \
  -H 'authorization: Basic <your token>'

user update

curl -X PUT 'https://api.giki.app/users' \
  -H 'authority: giki.app' \
  -H 'authorization: Basic eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiMmRmZWMwLWE4NWUtNDRiZS04ZmYwLTZiNDkxNWFmMDEyNyIsIm5hbWUiOiJpIiwicHJvdmlkZXIiOiJ3ZWlibyIsInByb3ZpZGVyVXNlcklkIjoyMTY1NzE0NTA3LCJpYXQiOjE1OTE5NjE1MTYsImV4cCI6MTU5NDU1MzUxNn0.i0U501e382hsbGmFgk0fuxrofCtEU6PuTY7q4jLqswY' \
  -H 'content-type: application/json' \
  --data-binary '{"avatar":<your name>, "name": <your name>, "introduction": <your introduction>}' \

Gikis

giki create

POST https://giki.app/api/talks

curl -X POST 'https://giki.app/api/talks' \
  -H 'authority: giki.app' \
  -H 'authorization: Basic <your token>' \
  -H 'content-type: application/json' \
  --data-binary '{"text":"hello world ","actions":["weibo"],"tags":["private"],"image":[]}'

giki update

PUT https://giki.app/api/talks

curl -X PUT 'https://giki.app/api/talks/update' \
  -H 'authority: giki.app' \
  -H 'authorization: Basic <your token>' \
  -H 'content-type: application/json' \
  --data-binary '{"id": "f031fbd2-f73f-11ea-adc1-0242ac120002", text":"hello world ","actions":["weibo"],"tags":["private"],"image":[]}'

giki list

GET https://giki.app/api/talks
  • list by domain
curl 'https://giki.app/api/talks?domain=iiiii.li' \
  -H 'authority: giki.app' \
  -H 'authorization: Basic <your token>'
  • list by name
curl 'https://giki.app/api/talks?name=i' \
  -H 'authority: giki.app' \
  -H 'authorization: Basic <your token>'

giki query

https://giki.app/api/talks/query
  curl 'https://giki.app/api/talks?id=<giki id>' \
  -H 'authorization: Basic <your token>'

giki tags list

https://giki.app/api/talks

you can list tags by a domain or a name of a user, with list_tag=true in query string

  • list by domain
curl 'https://giki.app/api/talks?domain=iiiii.li&list_tag=true' \
  -H 'authorization: Basic <your token>'
  • list by name
curl 'https://giki.app/api/talks?name=i&list_tag=true' \
  -H 'authorization: Basic <your token>'