Meteor Documentation

website·Indexed 41 days ago

https://docs.meteor.com/

Documentation for the Meteor full-stack platform, covering the build system, application structure, and core packages. Includes detailed guides on the Accounts system (authentication, OAuth services, and 2FA), reactive rendering with Blaze, Apollo and GraphQL integration, and production security strategies. Also provides technical details on the modern build stack, including Rspack integration for Meteor 3.3+ and MongoDB Change Streams in v3.5.0.

Tokens
172.3K
Snippets
1K
Records
1.3K
Agent score
72%

What's inside Meteor

  1. Overview of ReactiveDict for state management

    ReactiveDict is used to store an arbitrary set of key-value pairs to manage internal state in components (e.g., tracking a selected item in a list). Each key is individually reactive: calling set for a specific key invalidates any Computations (such as Blaze template helpers or Tracker.autorun blocks) that previously called get for that same key.
  2. Overview of the Meteor Build System

    The Meteor build system is a command-line tool (invoked via the meteor command) that compiles, runs, deploys, and publishes Meteor applications and packages. It replaces the need for external task runners like Gulp or Webpack by using build plugins. The system automatically detects file changes and recompiles the app, restarting the client or server as needed. Build configuration is primarily managed by adding/removing packages and organizing files into specific directories.
  3. Overview of Browser Policy security packages

    The browser-policy family of packages allows developers to set security-related policies enforced by browsers, specifically targeting cross-site scripting (XSS) and clickjacking.

    • browser-policy: Provides default configurations for both X-Frame-Options and Content-Security-Policy (CSP).
    • browser-policy-framing: Only configures X-Frame-Options (who can frame your app).
    • browser-policy-content: Only configures Content-Security-Policy (what content your app can load).

    By default, adding browser-policy enables a starter policy where client code can only load content from its own origin (except for XMLHttpRequests and WebSockets), disables eval(), and only allows the app to be framed by pages on the same origin.

  4. Overview of accounts-2fa

    The accounts-2fa package enables users to secure their accounts using authenticator apps (e.g., Google Authenticator, 1Password) via the TOTP standard (RFC 6238). It is designed to work with accounts-password or accounts-passwordless. Starting in Meteor 3.5, the package uses OTPAuth instead of node-2fa, though the public API and generated codes remain identical.
  5. Overview of EJSON supported types

    EJSON is an extension of JSON that allows for the serialization of types not natively supported by standard JSON. All EJSON serializations remain valid JSON. Supported types include:

    • Date: JavaScript Date objects.
    • Binary: JavaScript Uint8Array or results from EJSON.newBinary.
    • Special numbers: NaN, Infinity, and -Infinity.
    • Regular expressions: JavaScript RegExp objects.
    • User-defined types: Custom types registered via EJSON.addType (e.g., Mongo.ObjectID).
    {
      "d": { "$date": 1358205756553 },
      "b": { "$binary": "c3VyZS4=" }
    }
  6. Overview of Meteor's Tracker dependency system

    Meteor uses a dependency tracking system to automatically rerun templates and computations when reactive data sources (such as Session variables or database queries) change. Developers do not need to manually declare dependencies; when a function supporting reactive updates is called, it automatically saves the current Computation object. If the data changes, the Computation is invalidated and reruns during the next flush cycle.
  7. Overview of dupontbertrand:cluster

    The dupontbertrand:cluster package is a Meteor 3 compatible fork of the original meteorhacks:cluster. It provides multi-core CPU support, load balancing, and service discovery. It is primarily intended as a compatibility and migration bridge for apps that rely on service discovery, DDP-aware proxying, or Cluster.discoverConnection(). For simple multi-core CPU utilization without these features, an external process manager like PM2 is recommended.
  8. Overview of Meteor Wormhole (Jam Method)

    Meteor Wormhole is a server-only package for Meteor 3.4+ that bridges Meteor methods to the outside world. It transforms methods into MCP (Model Context Protocol) tools that can be discovered and invoked by AI assistants (like Claude, GPT, Cursor, and VS Code Copilot), and optionally provides a REST API with an auto-generated OpenAPI 3.1 specification and Swagger UI.
  9. Introduction to Blaze UI framework in Meteor.js 3

    Blaze is a reactive UI library for Meteor that allows developers to create user interfaces using HTML templates with a Handlebars-like syntax. It integrates with Meteor's Tracker (transparent reactivity) and Minimongo (database cursors) to automatically update the DOM when data changes, eliminating the need for manual DOM manipulation or update logic typically required by jQuery.
  10. Overview of using Solid UI framework with Meteor.js 3

    Solid is a modern UI framework compatible with Meteor.js 3 that compiles reactive code to efficient DOM updates without using a virtual DOM. It uses a declarative JSX syntax and provides primitives like signals for state management, effects, and resources. Solid integrates with Meteor's reactive data sources, such as Tracker and Minimongo, allowing the UI to update automatically as data changes. Developers can also use Meteor packages designed for other frameworks, such as accounts-ui, within a Solid application.
  11. Overview of Meteor Session API

    The Session API provides a global, reactive key-value store on the client side. It is primarily used to store transient UI state, such as the currently selected item in a list. Because it is reactive, any template or Tracker.autorun block that calls Session.get will automatically re-render or re-execute whenever the associated session key is updated via Session.set.
    meteor add session
  12. Overview of the Meteor Platform

    Meteor is a full-stack JavaScript platform used to build modern web and mobile applications. It enables development in a single language (JavaScript or TypeScript) across the server, browser, and mobile devices. Key architectural features include:

    • Data on the Wire: The server transmits data instead of HTML, leaving the client to handle rendering.
    • Full Stack Reactivity: The UI automatically reflects the current state of the application data with minimal effort.
    • Front-end Flexibility: Supports various frameworks including React, Vue, Blaze, Svelte, and Solid.
    • Integrated Communication: Uses 'Methods' as a built-in Remote Procedure Call (RPC) system to simplify back-end and front-end integration.
    • Built-in Authentication: Includes a ready-to-use Login and Accounts package.