Coder Social home page Coder Social logo

shinosaki / hono-kv-session Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 63 KB

Stateful session middleware for Hono. Works on Cloudflare Workers, Node.js, Bun, etc.

Home Page: https://hono-kv-session.la1n.workers.dev

JavaScript 79.18% TypeScript 20.82%
bun cloudflare-workers hono kv redis session

hono-kv-session's Introduction

UwU

👋 Hi! I'm Maseshi (マセし)

Programming is like teaching a child.

Maseshi's Streak

📋 About me

  • 🤔 How to center a div?
  • 📫 How to reach me: Discord: maseshi
  • 🍫 Fun fact: Dark chocolate is delicious.
  • 🎨 Black and White give a minimalist feel.
  • 💬 I might not be able to use English correctly.
  • 🪙 Little by little donation, life will be bright, Buy me a green tea.

Maseshi's Stats

working = True
process = "ERROR" if working else "PASS"

print(process) # ERROR
# Can work even when errors occur.

🪴 Workspace

A good workspace is half the battle won. Even if it's not very good, it's enough to keep going.

ASUS Laptop
Model K45VD
OS Windows 11 Pro
CPU INTEL CORE I5-3210M
GPU Intel(R) HD Graphics 4000, NVIDIA GeForce 610M
Storage 1.24 TB (WD Green SATA SSD: 240 GB, Seagate SATA HDD: 1 TB)
RAM 12 GB 1600 MHz DDR3L (Blackberry: 8 GB, Hynix: 4 GB)

🧰 Languages

This is something I've used before and am familiar with these languages.

Maseshi's Top Languages

Note

For information on skills, languages, and tools previously used, please refer to https://maseshi.web.app/#skills

hono-kv-session's People

Contributors

gurneesh9 avatar rhal95 avatar shinosaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gurneesh9

hono-kv-session's Issues

Deno KV: c.session.value not unpacked

Hi 👋

Deno KV will always return a Deno.KvEntry when using kv.get(). Even when no value is found for the key. If no value is found, the value in the entry is null. The SessionManager does not unpack this value and puts the Deno.KvEntry into c.session.value.
This means I have to unpack the value myself every time I want to access it.
This also means I can not use the renew and regenerate functions. Those will just put the session value back into the createSession function which will nest the Deno.KvEntry in another Deno.KvEntry.

If you want I can submit a PR for this tomorrow.

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.