Giter Site home page Giter Site logo

kivi's Introduction

Kivi

Deno KV Explorer

Install from VSCode marketplace

スクリーンショット 2023-11-29 21 51 39 スクリーンショット 2023-11-29 21 57 37

Extension Settings

  • kivi.listFetchSize (default: 100)
    • The number of keys to fetch at a time
  • kivi.previewValue (default: true)
    • Whether to preview values in the explorer

Known Issues

  • Objects like Date or Uint8Array will not preserved in the edit feature for now.

See also

kivi's People

Contributors

hashrock avatar miguelripoll23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kivi's Issues

The explorer crashes when there are any `bigint` values

The explorer crashes with the following error message when there are any bigint values in the KV database:

2024-02-25 16:20:10.717 [error] Error: Failed to list items: Do not know how to serialize a BigInt
    at g.value (/Users/dahlia/.vscode/extensions/hashrock.deno-kv-admin-0.0.5/out/kv/webview.js:101:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

The error message apparently is thrown by JSON.stringify():

> JSON.stringify(1n)
Uncaught TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at <anonymous>:1:27

Implement Pagination and Value Truncation for Improved Performance

Hi hashrock,

Great project you have here, filling a notable gap with a Deno KV GUI editor.

I observed two areas for improvement:

  1. Pagination is missing for listed entries. Currently, there's a hardcoded limit of 100 in the server/kv source code. Adding pagination controls would enhance usability.

  2. Performance concerns arise when using large KV instances. I noticed the webview displays the entire value for each entry, which can be problematic for large data sets.

Possible fixes for performance:

  • Show truncated previews, like the first 50 characters from Deno.inspect(value).
  • Omit values in the list view and display them only during entry editing.

I'm open to submitting a PR to address these issues, if you're accepting contributions.

Thanks for your work on this!
Nick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.