![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
JavaScript implementation of Pkarr.
Publish resource records by passing a passphrase.
$ pkarr publish
◌ Enter a passphrase (learn more at https://www.useapassphrase.com/)
Passphrase: ***********
❯ pk:54ftp7om3nkc619oaxwbz4mg4btzesnnu1k63pukonzt36xq144y
◌ Enter records to publish:
❯ foo bar
❯ answer 42
❯ Add record or press enter to submit
✔ Published Resource Records (8.29 seconds)
Resolve resource records of a public key
$ pkarr resolve pk:54ftp7om3nkc619oaxwbz4mg4btzesnnu1k63pukonzt36xq144y
✔ Resolved (1.51 seconds)
❯ foo bar
❯ answer 42
› updated_at: 4/9/2023, 8:48:21 AM
› size : 39/1000 bytes
› from : 129.159.143.235:8999
Keep your or your friend's records alive
$ pkarr keepalive add [url1] [url2] ...
✔ Successfully updated list of keys!
$ pkarr keepalive remove [url1] [url2] ...
✔ Successfully updated list of keys!
$ pkarr keepalive list
❯ yqrx81zchh6aotjj85s96gdqbmsoprxr3ks6ks6y8eccpj8b7oiy
$ pkarr keepalive
Starting republisher...
Run an HTTP relay to use Pkarr in UDP-less environments. Read more
pkarr relay
Consider adding your relay to the list of free and public relays
In browsers and devices behind NAT, you can make HTTP requests to a any pkarr server.
import { Pkarr, SignedPacket, generateKeyPair } from '../index.js'
const keypair = generateKeyPair()
{
// Create a DNS packet
const packet = {
id: 0,
type: 'response',
flags: 0,
answers: [
{ name: '_matrix', type: 'TXT', class: 'IN', data: '@foobar:example.com' }
]
}
// Create a Sgined Packet
const signedPacket = SignedPacket.fromPacket(keyPair, packet)
// Send it to a relay
const response = await Pkarr.relayPut(serverA.address, signedPacket)
}
{
// === Resolve a packet ===
const signedPacket = await Pkarr.relayGet(serverB.address, keyPair.publicKey)
// Get a dns packet corrisponding to a public key from another server
const {seq, packet} = Pkarr.resolve(key, ["relay.pkarr.org"])
}
Send a SignedPacket
to a the DHT through an HTTP relay.
Get a SignedPacket
from the DHT through an HTTP relay.
If returned, SignedPacket
is valid and verified.
Create a SignedPacket
from a dns packet and a KeyPair
Notice that internally it will add the zbase32 encoded publicKey as the TLD of every answer in the packet, for example record {name: 'foo', data: 'bar'}
will become {name: 'foo.8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo', data: 'bar'}
.
Create a SignedPacket
from bytes received from the HTTP relay, after verifying the signature.
Returns the publicKey
Returns the bytes of the signature
, encoded timestamp
and encoded packet
as defined in the relay spec.
Returns the Signature of the signed packet
Returns the DNS packet
Returns the resource records from the internal dns packet, that matches name
, which can be relative to the TLD so you don't have to pass the full name, so foo
instead of foo.8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo
FAQs
client, server and CLI for public-key addressable resource records
The npm package pkarr receives a total of 58 weekly downloads. As such, pkarr popularity was classified as not popular.
We found that pkarr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.