Dapper VS ua-parser-js

Compare Dapper vs ua-parser-js and see what are their differences.

Dapper

Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper] (by StackExchange)

ua-parser-js

UAParser.js - Free & open-source JavaScript library to detect user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser (client-side) or node.js (server-side). (by faisalman)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Dapper ua-parser-js
9 29
13,651 8,604
- -
5.1 8.4
about 3 years ago about 1 month ago
C# JavaScript
GNU General Public License v3.0 or later GNU Affero General Public License v3.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Dapper

Posts with mentions or reviews of Dapper. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-13.
  • Working with ListView in Windows Forms
    3 projects | dev.to | 13 Jan 2024
    Even those the old backend code to read from a database would work, the code was rewritten using Dapper. Had to add two column aliases in SQL SELECT statements and everything worked.
  • Import data from a database with Dapper and SpreadsheetLight to Excel in C#
    2 projects | dev.to | 6 Nov 2023
    In this article learn how to create Excel spreadsheet documents from reading data from two SQL-Server table from a modified version of Microsoft NorthWind database using NuGet package Dapper and SpreadSheetLight to create and populate the spreadsheet files.
  • Multiple Result Sets for SQL-Server (C#) including Dapper
    2 projects | dev.to | 2 Oct 2023
    Learn how to read reference table from SQL-Server using a single method. What is shown provides an efficient way to either use a connection, command objects to read data via a SqlDataReader for conventional work using methods from SqlClient and also Dapper which requires two lines of code to read data and one line of code to store data into list.
  • BREAKING!! NPM package ‘ua-parser-js’ with more than 7M weekly download is compromised
    32 projects | /r/programming | 22 Oct 2021
    https://www.nuget.org/packages/Newtonsoft.Json/ https://www.nuget.org/packages/AutoMapper/ https://www.nuget.org/packages/Dapper/ https://www.nuget.org/packages/FluentValidation/ https://www.nuget.org/packages/FluentAssertions/ https://www.nuget.org/packages/NUnit/ https://www.nuget.org/packages/xunit/ https://www.nuget.org/packages/YamlDotNet/ https://www.nuget.org/packages/Moq/ That is simply not true. Mature c# projects purposely maintain no downstream dependencies and is they do, it's to a major reputable lib. See for yourself - these are staple third party packages commonly used. Anything dependency starting with System or NETStandard is Microsoft maintained.
  • How to Build a Blazor CRUD Application with Dapper
    2 projects | dev.to | 10 Mar 2021
    In this blog post, we are going to discuss how to bind the Syncfusion Blazor DataGrid with a database using Dapper and perform CRUD operations. To demonstrate this, we are going to create a bug tracker database table in MS SQL Server and perform CRUD operations in that table in a Blazor server-side application.
  • A couple of questions about dotnet from a Java developer :)
    5 projects | /r/dotnet | 19 Feb 2021
    Entity Framework Core StackExchange/Dapper
  • Requests per second 12 requests per second – Realistic Python web frameworks
    17 projects | news.ycombinator.com | 18 Feb 2021
    Like there wouldn't be anything in between /s

    There are "simple ORMs" that only map results of SQL queries to objects. They do not provide a magic query API - which is the source of most problems. I don't do Python, but for .NET there is Dapper https://github.com/StackExchange/Dapper, you can have a look what I mean. You write the SQL query, explicitly execute it, the library maps the results of that query into objects (it's C#, so you have to declare the class. In Python I'd imagine it would create the object for you)

  • Why would I even bother using Dapper?
    1 project | /r/dotnet | 13 Feb 2021
    To add some differences: EF tracks object state in an instance of a context, Dapper does not. Dapper is strictly for object mapping (taking the output of a query and mapping it onto an object). This makes Dapper far easier to implement, versus EF’s DbContext configuration. Due to the lack of tracking and slimmer wrapping, it’s also faster. Things get really great when you have multiple complex objects and multiple result sets. It takes a lot of boring boilerplate code out of your code.
  • Plans for Entity Framework Core 6.0 revealed as Microsoft admits it is unlikely to match Dapper for performance
    4 projects | /r/dotnet | 21 Jan 2021
    Just take a look at this Dapper 2.0 feature that's been festering for months years.

ua-parser-js

Posts with mentions or reviews of ua-parser-js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-20.
  • Tell HN: Microsoft Teams is blocking Firefox Nightly
    1 project | news.ycombinator.com | 5 Mar 2023
    Just look at all the big companies doing it

    https://faisalman.github.io/ua-parser-js/

  • Liguard - The Linode Guard
    4 projects | dev.to | 20 Feb 2023
    This project is backed under MIT License, special shout out to project UA-Parser, as liguard uses a piece of its source-code.
  • Modern PHP
    10 projects | news.ycombinator.com | 27 Mar 2022
    With NPM, what's actually published is not what's in the git repo, so it's harder to inspect/review vulnerabilities or hijacking. With composer, what's in git _is_ what composer pulls (with the exception of rules in .gitattributes to exclude files etc), making it much easier to trace. One such example: https://github.com/faisalman/ua-parser-js/issues/536

    Composer packages are vendor namespaced, so hijacking an abandoned package is not possible (and it is with NPM), some examples like https://www.theregister.com/2021/08/10/github_npm_package/

  • Some developers are fouling up open-source software
    1 project | /r/linux | 25 Mar 2022
    Sure, I suppose in theory it could happen with other ecosystems, but for some reason it doesn't. It sure seems to just keep happening in NPM though.
  • Vulnerable and Outdated Components
    1 project | /r/reactjs | 9 Jan 2022
    From the other side, npm package may be hijacked(as it happened recently for ua-parser-js and to other packages earlier). To mitigate that, I don't know, probably, subscribing to some security digest would be the most helpful.
  • Red Hat response to Java release cadence change
    1 project | /r/java | 7 Dec 2021
  • Secure software supply chain: why every link matters
    3 projects | dev.to | 16 Nov 2021
    On Oct. 22, 2021, developers of a very common NPM package, ua-parser-js, discovered that some attackers uploaded a compromised version of the package containing malware for Linux and Windows, and were capable of stealing data (at least passwords and cookies from the browser).
  • Thoughts on improving security of Neovim plugins
    7 projects | /r/neovim | 15 Nov 2021
    Since Neovim 0.5 release (which has full Lua support) I see more and more amazing Lua plugins being developed, and I think this trend will likely to continue. But I recently got more concerned about security risks associated with the way Neovim plugins being installed and used (especially after seeing recent compromises like ua-parser-js or coa). Installing typical Neovim plugin is basically downloading and executing random code from the internet on your machine with your user privileges, so hijacked or deliberately malicious plugin could potentially do a lot of damage (like stealing keys/passwords, installing keylogger or just rm -rf / for fun).
  • Hidden XMRig miner malware discovered in hijacked versions of popular ua-parser-js npm library
    1 project | /r/Monero | 24 Oct 2021
    thread about compromise https://github.com/faisalman/ua-parser-js/issues/536
  • Malware Discovered in Popular NPM Package, ua-parser-js
    1 project | /r/cybersecurity | 23 Oct 2021

What are some alternatives?

When comparing Dapper and ua-parser-js you can also consider the following projects:

LINQ to DB - Linq to database provider.

react-device-detect - Detect device, and render view according to detected device type.

PetaPoco - Official PetaPoco, A tiny ORM-ish thing for your POCO's

bowser - a browser detector

Entity Framework - EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

remarkable - Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.

MongoDB Repository pattern implementation

enquirer - Stylish, intuitive and user-friendly prompts, for Node.js. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and many others! Please follow Enquirer's author: https://github.com/jonschlinkert

NPoco - Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco

Serilog - Simple .NET logging with fully-structured events

NHibernate - NHibernate Object Relational Mapper

pnpm - Fast, disk space efficient package manager