foobar
Explore posts from serversShare a data between multiple instances Deno Deploy
Hi,
I want to share data between multiple instance.
My first instance create a key. Others new instances have to get the original key from first instance.
I use BroadcastChannel to do it. But it relies on the strong assumption that the first instance can't dissapear ?
Is it true ?
Or do you have a more elegant way to do it (kv ?) ?
8 replies
Jsr, esm, x and external ref
Hi,
I want to migrate most of my import to jsr to simplify code.
I use Hono and 3rd party middleware on Deno. I import them with esm / deno.land
Is there a better way to link dependencies with hono (or library with dependencies) ?
My actual settings
8 replies
Data sync input between parent and children
I have the following scheme (cf picture):
- a route that get initial data
- data with items are sent to an island
- item of data are sent to a child island
Child islands have only input with no form nor validate button.
How to track and sync input change in children and reflect it to parent ?
4 replies
Audit KV data in deno deploy
Hi,
I use kivi extension to audit data in local KV.
How could I do this in deno deploy ? I was used before to handle data like MongoDB. You could read, update, drop some data.
What is the spirit/ideas with KV when you want to manipulate data located in a serverless environnement ?
Thanks
2 replies
npm import : class is not found but it is well declared in node_module
I try to use Tatum SDK in deno (https://github.com/tatumio/tatum-js). I pick up the easiest code example https://docs.tatum.io/
I try 2 ways of imports of tatum library but I have different errors in both ways.
1. with npm
don't recognize TatumSDK in import (but in
node_modules
it is exported in service/tatum
).
How can I tell the owner to slighty modify his code in order that TatumSDK is recognize (Ethereum
, Network
are recognized) ?
2. with esm
Library BigNumber.js has a version for deno !
error: Uncaught (in promise) TypeError: R.BigNumber is not a constructor
5 replies
Get input from an island, make calculus then render ?
I have a route with 2 islands inside
- one to get input from user
- one to render data
Once I've got the user input, I retrieve data, make some calculus and want to render (charts for example)
I want to stay in the spirit of SSR ie calculus are made on the server, how can I get user input in the route handler function and then render ?
Thx
3 replies
WASM / Extract and manipulate Array of Date
I try to extract and manipulate an array of date in a function
The rust fn doesn't compile. How to manipulate Date and convert it ?
Does someone have a repository/link with example of Rust + Deno library ?
Cargo.toml
mod.ts
lib.rs
3 replies
GetIP + Ctx from middleware to a route not passed
Hi,
I have test to retrieve IP visitor
Code taken from Discord is always returning "localhost" (when Deno Deploy)
Also this value of "IP" get from the middleware is not passed to a route. What is wrong ?
Repo is here : https://github.com/hapaxlife/fresh-show-ip
_middleware
route : old way
Route : new way
1 replies