HNHacker News
TopNewBestAskShowJobs

rkwz

2,909 karma · joined October 8, 2010

sheshbabu.com
submissionscomments
rkwz··on Show HN: Freshlytics – Self-hosted analytics that respects user privacy
Hello everyone,

Freshlytics is a self-hosted open-source privacy-friendly analytics software.

You can use it to learn more about your users in terms of visited urls, referrers and browsers used without invading the users privacy.

It doesn't use cookies and doesn't collect PII. It doesn't even store event level data - only aggregate data for the whole day organised by different dimensions. That is, after an event is ingested by the system it's grouped with all other events sent by other visitors - so you can't view the events just for a visitor or a visitor's browser etc. While this limits what metrics can be collected, I felt that there might be a good portion of websites on the internet who don't need these invasive metrics.

It's built using Typescript (React/Express) and uses PipelineDB for storage. All the reports are pre-defined (not adhoc) so I felt this is a good use case for PipelineDB's continuous views.

---

Screenshots: https://github.com/sheshbabu/freshlytics/blob/master/docs/sc...

Docs: https://freshlytics.gitbook.io/docs/

---

Features:

Privacy

* Cookies are not used

* Personally identifiable information (PII) is not collected

Dashboard

* Switch between multiple projects

* Slice the data within a date range

* See the pageview in different dimensions like page urls, referrers, browsers etc

Tracking

* Currently focuses on website pageview tracking

* Tracks visited page urls, referrers, browsers and browser versions

Projects

* Supports multiple projects

* Different projects can have different reporting timezones

Users

* Users can either be Admin or normal users

* Admins can create/edit/delete projects and other users

---

Please give it a try and let me know what you would like to see improved :)

rkwz··on We Rebuilt Fathom Analytics from the ground up and moved to Laravel Vapor
I built a similar privacy focussed analytics inspired by Fathom:

https://github.com/sheshbabu/freshlytics

Privacy

* Cookies are not used

* Personally identifiable information (PII) is not collected

Dashboard

* Switch between multiple projects

* Slice the data within a date range

* See the pageview in different dimensions like page urls, referrers, browsers etc

Tracking

* Currently focuses on website pageview tracking

* Tracks visited page urls, referrers, browsers and browser versions

Projects

* Supports multiple projects

* Different projects can have different reporting timezones

Users

* Users can either be Admin or normal users

* Admins can create/edit/delete projects and other users

Written using TypeScript, React, Postgres (PipelineDB), Express.

Here are some screenshots: https://github.com/sheshbabu/freshlytics/blob/master/docs/sc... :)

rkwz··on Ask HN: What database should I use for analytics data?
I built Freshlytics using PipelineDB (Postgres extension) - https://github.com/sheshbabu/freshlytics

It uses continuous aggregations so you don't need to manually run rollups every few mins/hours. You don't need to store individual events so it's better for user's privacy.

Here's the link to the sql - https://github.com/sheshbabu/freshlytics/blob/master/src/ser...

rkwz··on Uber lays off around 350 more across Eats, self-driving and other departments
Curious, can you elaborate on what “completely auditable” means?
rkwz··on New ES2019 JavaScript features
I wish there was more focus on increasing the surface area of the standard library instead of more language features like Golang
rkwz··on Show HN: Ackee – Self-hosted website analytics
If your reports are predefined - summarised and no adhoc reporting needed, you can look into the continuous view feature of PipelineDB - http://docs.pipelinedb.com/continuous-views.html

> As soon as a stream row has been read by the continuous views that must read it, it is discarded. Raw, granular data is not stored anywhere. The only data that is persisted for a continuous view is whatever is returned by running a SELECT * FROM that_view. Thus you can think of a continuous view as a very high-throughput, realtime materialized view.

I use PipelineDB continuous views in Freshlytics - https://github.com/sheshbabu/freshlytics/blob/master/src/ser...

TimescaleDB also has something called "Continuous Aggregates" - https://docs.timescale.com/latest/using-timescaledb/continuo... but I haven't looked into it much.

rkwz··on Show HN: Ackee – Self-hosted website analytics
Couple of ones I can think of:

Fathom: https://github.com/usefathom/fathom

Goatcounter: https://github.com/zgoat/goatcounter

Freshlytics: https://github.com/sheshbabu/freshlytics

There's also a non-oss but privacy focussed analytics - http://simpleanalytics.com

Disclaimer: I'm the creator of Freshlytics

rkwz··on Show HN: Ackee – Self-hosted website analytics
I released an analytics tool earlier this week that doesn't collect PII or set cookies. All the tracking events are aggregated and you can't even see the tracking logs of a particular visitor or visitor's browser as with log based analytics.

https://github.com/sheshbabu/freshlytics

rkwz··on Show HN: Freshlytics – open-source privacy-friendly analytics
Hello everyone,

Freshlytics is a self-hosted open-source privacy-friendly analytics software.

You can use it to learn more about your users in terms of visited urls, referrers and browsers used without invading the users privacy.

It doesn't use cookies and doesn't collect PII. While this limits what metrics can be collected, I felt that there might be a good portion of websites on the internet who don't need these invasive metrics.

It's built using Typescript (React/Express) and uses PipelineDB for storage. All the reports are pre-defined (not adhoc) so I felt this is a good use case for PipelineDB's continuous views.

This is still in beta, so please use it in production with care or atlas run it in parallel to other analytics software.

Please feel free to leave feedback as comments or as issues in GitHub.

rkwz··on Ndb – An improved debugging experience for Node.js
You can give betwixt[1] a try. It's based on Chrome

[1] https://github.com/kdzwinel/betwixt

rkwz··on On the obsessive statelessness of Peril
I dislike articles that do this, but this post explains what it is at the very beginning:

> To get you up to speed on Peril, Peril is a tool that takes GitHub webhooks, and makes it easy to build one-off actions. It does this by having a per-account settings JSON, that connects JavaScript files to events from webhooks. So, for example, you can write a rule which runs when closing an issue in GitHub that looks for associated Jira tickets and resolves them. Peril provides no implicit actions like that, it instead offers a JavaScript runtime environment optimised to this domain so you can make actions to fit your needs. Like a collection of single-file probots.

rkwz··on Ask HN: Who is hiring? (May 2018)
RedMart | Singapore VISA | Full­time | Frontend | https://www.redmart.com

As one of the fastest growing e-commerce companies in Asia, RedMart offers an unparalleled startup experience. Our culture: entrepreneurial, fiercely intelligent, team oriented, deeply creative and whatever you add to it! We’re fanatical about improving our customer experience and providing “wow” customer service.

We're interested in talented, creative and passionate people joining our All-Star team who believe in our mission: To save our customers time and money for the important things in life!

Requirements:

* Excellent understanding of JS and web development concepts.

* Experience with a modern JS framework (React, Angular, Backbone, Ember, etc).

* Good sense of design, UX and simplicity.

* Use of best practices such as TDD, BDD, continuous integration, continuous deployment.

* Strong verbal and written communication skills.

* Nice to have: experience with React, Redux, Mocha/Jest, Node.js.

Contact me at sheshbabu at redmart dot com for more info

rkwz··on Do we need to move away from Elm?
I think it's about the Elm language [1] not the email client [2]

[1] http://elm-lang.org/ [2] https://en.wikipedia.org/wiki/Elm_(email_client)

rkwz··on Ask HN: What production features have you built using AWS Lambda/Serverless?
I use it to selectively run e2e tests for a particular git feature branch

Add a specific label in Github PR => Listen to Github PR webhook => Trigger e2e tests in CI for that branch

rkwz··on How Sentry Receives 20B Events per Month While Preparing to Handle Twice That
Real User Monitoring https://en.wikipedia.org/wiki/Real_user_monitoring
rkwz··on Saying Goodbye to Firebug
Venkman Debugger?

https://www-archive.mozilla.org/projects/venkman/

rkwz··on Angular 2 is terrible
> Not to mention that its type system is unsound by design, and not because of null. Typescript only pretends to be safe, so in practice you end up writing a lot of type annotations for very dubious gain. Stricter options like Facebook Flow or Scala.js are way more useful.

Curious, can you explain why Flow is a more "sound" type system than Typescript?

rkwz··on Overview of JavaScript ES6 features
> C++ constness is significantly more far-reaching and therefore more work to get right.

I'm not familiar with C++, can you explain more?

rkwz··on Overview of JavaScript ES6 features
>I think running eslint --fix will even change your "let"s to "const"s where appropriate, but don't quote me on that.

Yep, this is the relevant rule - http://eslint.org/docs/rules/no-var

Though it just replaces all var with let. I expected it to intelligently use either const or let depending on how the variable is used ¯\_(ツ)_/¯

rkwz··on Overview of JavaScript ES6 features
I use https://www.npmjs.com/package/eslint-plugin-const-immutable for linting const usage. It even detects object props mutation!
rkwz··on Building a Shop with Sub-Second Page Loads: Lessons Learned
+1 Images are a great starting point for improving page load performance as they sometimes represent a big chunk of the total page weight.
rkwz··on Why I Don't Use React Router
There's also Navigo, a minimal router - https://github.com/krasimir/navigo
rkwz··on Ask HN: Who is hiring? (September 2016)
RedMart | Singapore ONSITE | Full­time | Frontend | https://www.redmart.com

As one of the fastest growing e-commerce companies in Asia, RedMart offers an unparalleled startup experience. Our culture: entrepreneurial, fiercely intelligent, team oriented, deeply creative and whatever you add to it! We’re fanatical about improving our customer experience and providing “wow” customer service.

We're interested in talented, creative and passionate people joining our All-Star team who believe in our mission: To save our customers time and money for the important things in life!

Requirements:

* Excellent understanding of JS and web development concepts.

* Experience with a modern JS framework (React, Angular, Backbone, Ember, etc).

* Good sense of design, UX and simplicity.

* Use of best practices such as TDD, BDD, continuous integration, continuous deployment.

* Strong verbal and written communication skills.

* Nice to have: experience with Redux, Mocha/Jest, Grunt/Gulp, AWS, Mongo.

Contact me at sheshbabu at redmart dot com for more info

rkwz··on Migrating a 10,000-line legacy JavaScript codebase to TypeScript
I don't understand.

> Types are the structure. When you create a type, you are saying in concrete terms "this is exactly how things happen and nothing else".

Types make the interface concrete - which is better for compiler/interpreter (catch bugs) and better for developers (easy to understand instead of guesswork)

But when I think about "structure", It is usually about how the codebase is organized. How different modules interact with each other and is the flow of the code easily understandable. This could be easily achieved without Types.

Maybe it's just my interpretation of the term "structure".

rkwz··on ECMAScript 2016 Approved
(Please don't downvote parent if you disagree with parent's opinion, downvote only if it doesn't contribute to the discussion)

@ZenPsycho: A standard library doesn't always have to mean file io or sockets etc. It could be better String/Array/Object manipulation apis, better utility functions (kinda like what underscore/loadsh provide) etc

These are universal helpers that are very much needed whether you're writing code that runs in browser/server/mobile/iot etc.

> If file I/O had been standardised years ago, with API designed by server programmers the browser would be saddled with lousy synchronous stuff that hangs the browser UI

Maybe a bad example, but wouldn't sync file io be a problem in server as well?

rkwz··on Migrating a 10,000-line legacy JavaScript codebase to TypeScript
I curious how using Typescript makes the project more "structured" compared to using plain JS.

Typescript just gives you static types and classes. I can understand "classes" make the code more modular and thereby more structured, but can't you already do that using ES5 "class"? Types help in catching errors early and can help in documenting the interface of the methods etc.

Also, if the other problem was isolating the scope of modules and dependency injection, it could be easily done using Requirejs and all the modules could be concatenated during build time. Webpack is a cool tool, but given the nature of its documentation, the maintenance would be really costly in the long run. Requirejs is just more established and satisfies all the author's requirements.

It would've been really helpful if the author had included additional reasoning behind the choices made.

rkwz··on With React Native it’s not all sugar and spice
Yep, React is a good choice because FB is using it in production in their consumer facing apps. But React Native is not used that way by FB (yet?)
rkwz··on With React Native it’s not all sugar and spice
You should do your due diligence before using a framework/library/technology for production code. Don't just follow the hype.

http://www.sheshbabu.com/posts/guidelines-to-choose-a-javasc...

rkwz··on Natural Language for Developers
I've used nlp-compromise.js for building an ecommerce shopping assistant bot. It's a bit rough around the edges but works most of the time.

Demo: http://nlp-compromise.github.io/website/

Github: https://github.com/nlp-compromise/nlp_compromise

rkwz··on Guidelines to choose a JavaScript library
I've listed some guidelines I use to help me choose a JavaScript library
← PreviousPage 6 of 12Next →