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

ease-note

v1.1.32

Published

A device-independent, comfortable smart notebook

Downloads

8

Readme

开始

安装

$ npm install ease-note

使用

  1. 默认开启本地存储
import EaseNote from 'ease-note'
import 'ease-note/lib/ease-note.css'

function Main() {
  return (
    <EaseNote />
  )
}
  1. 使用自己的远程服务,跨设备同步数据

配置中设置'Remote Storage'为你自己的api。规范 /notes

/notes 接口规范:

/list 相关

  1. 获取便签:
Methods: GET
Params: none
Response: 
  - code: 200 success; 400 failed
  - data: String[Note] | []
  1. 创建&更新便签:
Methods: POST
Body: {
  notes: String[Note]
}
Response: 
  - code: 200 success; 400 failed
  - data: []

/config 相关

  1. 获取配置:
Methods: GET
Params: none
Response: 
  - code: 200 success; 400 failed
  - data: String{Config}
  1. 更新配置:
Methods: POST
Body: {
  notes: String{Config}
}
Response: 
  - code: 200 success; 400 failed
  - data: {}

ts类型说明

enum THEME {
  GRAY = 'rgb(235, 235, 235)',
  PURPLE = 'rgb(186, 180, 255)',
  PINK = 'rgb(244, 193, 192)',
  BLUE = 'rgb(184, 238, 255)',
  YELLOW = 'rgb(243, 255, 143)',
  GREEN = 'rgb(175, 255, 146)',
  RANDOM = "random"
}

interface Shape {
  x: number
  y: number
  w: number
  h: number
}

interface Note {
  id: string
  shape: Shape
  title: string
  content: string | HTMLDivElement
  theme: THEME
  zIndex: number
  visibility: boolean
  active: boolean
  createTime?: string
  updateTime?: string
}

Feature

  • 便签可创建、删除、隐藏
  • 便签面板支持自由拖拽,改变大小
  • 便签支持鼠标框选创建(需要大于一定尺寸)
  • 便签支持修改标题、换肤等功能
  • 便签操作支持标题、粗体、文字颜色、列表、待办、表格、代码块等
  • 便签列表支持查询(标题&内容),创建、显示、删除便签功能
  • 便签列表自动根据更新时间排序
  • 配置支持创建便签默认主题配置、远程服务配置

todo

  • 配置完善
  • 接入ai书写提示
  • 跨设备