![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.
anonymous-analytics
Advanced tools
A privacy-friendly server-side analytics library.
From npm
yarn install anonymous-analytics
or
npm install anonymous analytics
Create a new analytics database (e.g. named test
).
const
Analytics = require('anonymous-analytics'),
testAnalytics = new Analytics('test');
Populate the database with your endpoint's data.
const
express = require('express'),
app = express();
app.get('/test', async (request, response) => {
await testAnalytics.addFromExpress(request);
res.status(204).send();
});
const
fastify = require('fastify'),
app = fastify();
app.get('/test', async (request, reply) => {
await testAnalytics.addFromFastify(request);
reply.code(204).send();
});
myTestHandler((myRequestContext, myResponseHandler) => {
const {
uniqueProperty1,
uniqueProperty2,
usefulPropertyA,
usefulPropertyB
} = myResponseHandler;
testAnalytics.add(
uniqueProperty1 + uniqueProperty2, // Fingerprint (string)
{ usefulPropertyA, usefulPropertyB } // Extra payload (object)
);
myResponseHandler(myResponseContext);
});
Read the data as stats.
await testAnalytics.getStats(
fromDayTimestamp,
toDayTimestamp,
convertToYYYYMMDD
);
{
"uniqueCount": 321,
"totalCount": 654,
"days": {
"2020-01-01": {
"uniqueCount": 123,
"totalCount": 456
}
},
"countries": {
"France": {
"uniqueCount": 12,
"totalCount": 345
}
}
}
User fingerprints are hashed using SHA256 and timestamps are rounded to the day.
1.0.0
(2021-01-22) • Initial releaseFAQs
A privacy-friendly server-side analytics library.
We found that anonymous-analytics demonstrated a not healthy version release cadence and project activity because the last version was released 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.