Comments (19)
That's something we've been working on for a while now.
The data isn't ready just yet, but in the very near future that should change.
from cdnjs.
Sounds good!
I'm excited. :)
from cdnjs.
We have stats, just figuring out an efficient log parsing strategy. After that's complete I will most likely serve the data on a Restful call /statistics?start=DATE&end=DATE
which will return [
{ library: 'backbone', hits: 10000},
{ library: 'jquery', hits: 24}....
]
I will expose the call with CORS for all host and throw up a simple UI to peruse the stats by date.
from cdnjs.
Hey guys, heres an update, looking for feedback.
I have stats running at http://stats.cdnjs.com by default it shows todays stats which get parsed every 6 hours.
- CORS enabled to *
You can access historic data by using the to
and from
query string parameters.
The query parameters take any valid Date.js(http://www.datejs.com/) value.
to
and from
both default to current date if not specified
So for example
Todays - http://stats.cdnjs.com
Yesterdays - http://stats.cdnjs.com/?to=yesterday&from=yesterday
Total of last week - http://stats.cdnjs.com/?from=last%20week
etc etc
date.js takes a decent amount of options.
Just ironing out bugs and taking feedback at the moment
Note: The database is only storing, from 25th-ish onwards.
from cdnjs.
Looks great so far.
I'm a little curious why each library's stats are presented as an object wrapped in an array like this:
"jquery": [
{
"date": "29/9/2012",
"hits": "771236"
}
]
instead of without an array, like this:
"jquery": {
"date": "29/9/2012",
"hits": "771236"
}
The array seems unnecessary, just wondering why, not that it really matters.
from cdnjs.
@webignition if you select a date range that is larger than 1 day, the dates will appear in the array. Does that help?
from cdnjs.
Yes, that helps. It makes much more sense now. Thanks!
from cdnjs.
It would be better to use the ISO 8601 date format, especially for foreigns, and it is parseable in every environment.
from cdnjs.
put stats on the homepage http://cdnjs.com
also only library specific stats will ever be shown, need to draw up a terms of service that states we will never disclose information about particular websites
from cdnjs.
Suggestion: Show number of unique websites that are using.
Will there be statistic by version?
Make the value on "hits" to int in json string.
from cdnjs.
http://stats.cdnjs.com is timing out a lot.
from cdnjs.
Looks like we need an uptime stats page for the stats page :)
from cdnjs.
How is it going with the stats? http://stats.cdnjs.com seems down.
from cdnjs.
I would love to see stats for the cdn.js hosted libraries. Any updates on this?
from cdnjs.
Hey guys,
we do have access to the logs in common log format (http://en.wikipedia.org/wiki/Common_Log_Format)
But we were struggling with putting together a cost efficient solution to parse them.
So for example http://www.s3stat.com/Pricing.aspx does $300 for ~5million hits a day whereas we could potentially be getting around ~15-30 million per day.
So my thoughts is to get an EC2 instance that parses them continuously and post the aggregate values for each day to a mysql database. (library, version, hits, date)
from cdnjs.
How were you parsing the data with the http://stats.cdnjs.com API?
from cdnjs.
Same as my solution in the previous comment. But it was buggy so wanted to rewrite the parser.
from cdnjs.
Gotcha, that makes sense. Let me know if you want any help with the UI.
from cdnjs.
Discussion moved to #1078
from cdnjs.
Related Issues (20)
- Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.js' HOT 1
- I don't understand HOT 1
- amis库缺少必要的文件 HOT 1
- git-sync is failing HOT 11
- Sponsoring your project HOT 6
- how to add files to cdnjs, or some aplication like cdns can upload javascript file HOT 1
- Fonts from "primevue" library not in the cdnjs distribution HOT 4
- Some versions of devextreme are missed HOT 9
- Loading Files Issue (Egypt) HOT 2
- Sponsoring HOT 1
- DevExtreme 23.1.3: missing *.js files HOT 1
- SRI hashes changed on multiple libraries yesterday and some SRI hashes are wrong HOT 30
- https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.34/moment-timezone-with-data.min.js 404 / missing HOT 9
- Some versions of hexo-theme-anzhiyu are missing HOT 3
- SRI hash for moment.js/2.29.4 does not match HOT 3
- cd pentmenu
- How to set the Video Autoplay? HOT 1
- Advertising HOT 2
- cdnjsdl HOT 2
- CDN公共库 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdnjs.