Hello, XOR!
\"),\n initialize: function () {\n this.render();\n },\n render: function () {\n this.$el.html(this.template());\n },\n });\n new View();\n })();\n});\n```", 429 | "RandomFact": "", 430 | "GithubStars": 27984, 431 | "GitHubLink": "https://github.com/jashkenas/backbone", 432 | "WeeklyDownloads": 607180 433 | }, 434 | { 435 | "Name": "kibana", 436 | "Description": "It's an open source (Apache Licensed), browser-based analytics and search dashboard for Elasticsearch.", 437 | "CodeExample": "```//a query\nhttp.request.method: *```", 438 | "RandomFact": "Built in linter, code formatter, ability to build a self-contained executable, test runner, IDE integration, and more.", 439 | "GithubStars": 18195, 440 | "GitHubLink": "github.com/elastic/kibana", 441 | "WeeklyDownloads": 8 442 | }, 443 | { 444 | "Name": "knockout", 445 | "Description": "... is a JavaScript MVVM (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaScript and HTML.", 446 | "CodeExample": "```// Here's my data model \n var ViewModel = function(first, last) { \n this.firstName = *redacted*.observable(first); \n this.lastNme = *redacted*.observable(last); \n this.fullName = *redacted*.pureComputed(function() { \n // ... tracks dependencies automatically. It knows that fullName depends on firstName and lastName, because these get called when evaluating fullName. \n return this.firstName() + \" \" + this.lastName(); \n }, this); \n }; \n *redacted*.applyBindings(new ViewModel(\"Planet\", \"Earth\")); // This makes ... get to work```", 447 | "RandomFact": "When your data model's state changes, your UI updates automatically", 448 | "GithubStars": 10279, 449 | "GitHubLink": "https://github.com/knockout/knockout", 450 | "WeeklyDownloads": 70616 451 | }, 452 | { 453 | "Name": "mocha", 454 | "Description": "Simple, flexible, fun JavaScript test framework for Node.js & The Browser", 455 | "CodeExample": "```var assert = require('assert');\ndescribe('Array', function () {\n describe('#indexOf()', function () {\n it('should return -1 when the value is not present', function () {\n assert.equal([1, 2, 3].indexOf(4), -1);\n });\n });\n});```", 456 | "RandomFact": "... is one of the most-depended-upon modules on npm (source: libraries.io)", 457 | "GithubStars": 21871, 458 | "GitHubLink": "https://github.com/mochajs/mocha", 459 | "WeeklyDownloads": 7662359 460 | }, 461 | { 462 | "Name": "Three.js", 463 | "Description": "The aim of the project is to create an easy to use, lightweight, cross-browser, general purpose 3D library.", 464 | "CodeExample": "```const scene = new *redacted*.Scene();\nconst camera = new *redacted*.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );\nconst renderer = new *redacted*.WebGLRenderer();\nrenderer.setSize( window.innerWidth, window.innerHeight );\ndocument.body.appendChild( renderer.domElement );```", 465 | "RandomFact": "The current builds only include a WebGL renderer but WebGPU (experimental), SVG and CSS3D renderers are also available as addons.", 466 | "GithubStars": 88640, 467 | "GitHubLink": "https://github.com/mrdoob/three.js", 468 | "WeeklyDownloads": 922629 469 | }, 470 | { 471 | "Name": "ws", 472 | "Description": "... is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation.", 473 | "CodeExample": "```// server-side\nconst server = new WebSocketServer({\n port: 8080,\n perMessageDeflate: {\n zlibDeflateOptions: {\n // See zlib defaults.\n chunkSize: 1024,\n memLevel: 7,\n level: 3\n },\n zlibInflateOptions: {\n chunkSize: 10 * 1024\n },\n // Other options settable:\n clientNoContextTakeover: true, // Defaults to negotiated value.\n serverNoContextTakeover: true, // Defaults to negotiated value.\n serverMaxWindowBits: 10, // Defaults to negotiated value.\n // Below options specified as default values.\n concurrencyLimit: 10, // Limits zlib concurrency for perf.\n threshold: 1024 // Size (in bytes) below which messages\n // should not be compressed if context takeover is disabled.\n }\n});\n// client side\nconst client = new WebSocket('ws://www.host.com/path', {\n perMessageDeflate: false\n});```", 474 | "RandomFact": "", 475 | "GithubStars": 19390, 476 | "GitHubLink": "https://github.com/websockets/ws", 477 | "WeeklyDownloads": 70632670 478 | }, 479 | { 480 | "Name": "Anime.js", 481 | "Description": "One of the best animation libraries that makes staggering follow-through animations so simple, ... is light-weight and comes with a clean yet powerful API.", 482 | "CodeExample": "```*redacted*({\n targets: 'div',\n translateX: 250,\n rotate: '1turn',\n backgroundColor: '#FFF',\n duration: 800\n});```", 483 | "RandomFact": "... works with anything web. CSS, SVG, DOM attributes and JavaScript Objects: animate everything with a single unified API.", 484 | "GithubStars": 44292, 485 | "GitHubLink": "https://github.com/juliangarnier/anime", 486 | "WeeklyDownloads": 139834 487 | }, 488 | { 489 | "Name": "handlebars", 490 | "Description": "... provides the power necessary to let you build semantic templates effectively with no frustration.", 491 | "CodeExample": "```var source = \"Hello, my name is {{name}}. I am from {{hometown}}. I have \" +\n\"{{kids.length}} kids:
\" +\n\"Resize the browser window to see the effect.
\nThe columns will automatically stack on top of each other when the screen is less than 768px wide.
\n\n\n\n \u201C... is the only framework that I've seen scale \n on large teams. It\u2019s easy to customize, adapts to any design, \n and the build size is tiny.\u201D\n
\n
${welcome}, ${name}!
\nNow set forth ${quest.toLowerCase()}!
```", 600 | "RandomFact": "Version 2, ... applications are built by composing a series of simple components.", 601 | "GithubStars": 1255, 602 | "GitHubLink": "https://github.com/aurelia/aurelia", 603 | "WeeklyDownloads": 932 604 | }, 605 | { 606 | "Name": "leaflet", 607 | "Description": "JavaScript library for mobile-friendly interactive maps", 608 | "CodeExample": "```var map = L.map('map').setView([51.505, -0.09], 13);\nL.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {\n attribution: '© OpenStreetMap contributors'\n}).addTo(map);\nL.marker([51.5, -0.09]).addTo(map)\n .bindPopup('A pretty CSS3 popup.{codeContent}
7 |
8 |
17 |
--------------------------------------------------------------------------------
/web/src/components/Modal.svelte:
--------------------------------------------------------------------------------
1 |
15 |
16 | Description: {question.Description}
79 |Random fact: {question.RandomFact}
80 |
81 | Code example:
82 |
93 | GitHub Stars: 94 | {question.GithubStars.toLocaleString('en-US')} / Weekly npm downloads: 95 | {question.WeeklyDownloads.toLocaleString('en-US')} 96 |
97 |46 | contact: hello@dyrector.io 49 | / repository: 50 | dyrector-io/xor 53 |
54 |Take a look at previously included projects.
18 |