Firefox Account Server alternatives and similar software solutions
Based on the "Bookmarks and Link Sharing" category.
Alternatively, view Firefox Account Server alternatives based on common mentions on social networks and blogs.
Shiori8.5 6.3 Firefox Account Server VS ShioriSimple bookmark manager built with Go
linkdingSelf-hosted bookmark service
LinkAceLinkAce is a self-hosted archive to collect links of your favorite websites.
ReminiscenceSelf-Hosted Bookmark And Archive Manager
GeekmarksAPI-Driven, Geeky Bookmarking Service
Espial4.4 4.6 Firefox Account Server VS EspialEspial is an open-source, web-based bookmarking server.
HackershareHackershare is a powerful social bookmarking service and a knowledge-sharing community, with advanced search and tag management feature
ymarksKeep your browser's bookmarks synchronized without limiting yourself to one provider.
ubookmarkLDAP enabled bookmarking service.
Access the most powerful time series database as a service
Do you think we are missing an alternative of Firefox Account Server or a related project?
The Firefox Accounts (fxa) monorepo
Table of Contents
Getting Started\ Contributing\ Dependencies\ Secrets\ Testing\ Storybook in CircleCI\ Firefox Custom Profile\ Node debugging\ Android debugging\ FxA Email Service\ Firefox for iOS\ Running with MailDev\ Documentation Documentation for Scripts
Manually install the system dependencies for OS X or Ubuntu. Note that WSL is required for development work on Windows.
Clone this repository.
git clone https://github.com/mozilla/fxa.git
cd fxa yarn install yarn start
yarn install fails, ensure your
yarn -v is at least
Note this starts up all required services, including Redis, MySQL, and Memcached. It is recommended that you don't run these services yourself, or occupy any of the server ports. Doing so may result in errors.
- Visit localhost:3030.
Use the PM2 tool to stop and start the servers, and read server logs.
To start all servers:
The most common commands are:
yarn stop- stop all servers.
yarn pm2 status- display running servers.
yarn pm2 logs- logs for all servers (note: this must be used to verify accounts).
yarn pm2 logs auth- display logs for service
yarn pm2 stop content- stop
yarn pm2 restart mysql- restart
More commands in the PM2 Readme.
See the separate CONTRIBUTING.md to learn how to contribute.
This is an example workflow for fxa.
After installing fxa run
yarn start. Use
yarn pm2 status command to check the status of the servers:
To avoid wasting computer resources while not working on FxA make sure to stop the servers using
Once you are back working on FxA just use the
yarn start command to bring the servers back up.
Verifying email and viewing logs
yarn pm2 logs command to get the logs of all servers. You may also use
yarn pm2 logs [id] to just see the logs for that particular server.
When you signup for an account using the form on
localhost:3030/signup the "inbox" logs will print out the verification code that you need to copy paste into your browser to verify your account locally:
If you get an
error status for any of the servers please verify that you installed all required dependencies. Otherwise file an issue on this repository or connect with the team on Firefox Accounts Riot.
yarn to add dependencies. To add a dependency to a single package, which is what you'll usually want, run something like:
yarn workspace fxa-shared add --dev eslint
For multiple packages use workspaces foreach.
To update dependencies use yarn up or
yarn workspace <name> up.
Required developer dependencies: Git, node.js 14+, Python 2.6+, Java 8+, Rust nightly+, libgmp, docker, gcloud CLI > Yarn 2
OS X (with Brew):
Xcode and OS X Command Line Tools are required, install it and verify that command line tools installed:
sudo easy_install pip && sudo pip install virtualenv
sudo apt-get install build-essential git libgmp3-dev python-virtualenv python-dev pkg-config libssl-dev curl openjdk-11-jre firefox
Follow the Docker CE instructions to install Docker.
Docker commands require sudo, to avoid it, follow steps below:
- Add the docker group if it doesn't already exist
sudo groupadd docker
- Add the connected user \$USER to the docker group
sudo gpasswd -a $USER docker
- Restart the docker daemon
sudo service docker restart
We currently use Node 14. See https://nodejs.org
Alternatively, the Node Version Manager makes working with different versions of Node easy.
nvm install 14 nvm alias default 14
Java is used to run Selenium functional tests
Download from java.com/en/download/
Rust Nightly is used for the fxa-email-service
Ubuntu and OS X
curl https://sh.rustup.rs -sSf | sh
Once the installer begins, when prompted:
- Select "2) Customize installation"
- Leave "Default host triple" blank, hit "enter"
- Type "nightly" for "Default toolchain"
- Type "default" for "Profile"
- Type "y" for "Modify PATH variable?"
- Select "1) Proceed with installation"
When developing locally you may need to set up some secrets in order to effectively work with certain servers. These secrets are managed at the package level.
Check out the Secrets section in the following READMEs:
ℹ️ While it is possible to run the entire code base's test suite, in development you'll likely want to run specific test or a subset of tests. Please refer to each package's README for detailed instructions on testing its respective code.
Test all or some packages
- You might need to run
yarn start infrastructurebefore running tests to start services.
From the root directory you may test all or some FxA packages:
# Test only `fxa-shared` yarn test fxa-shared # Test `fxa-auth-db-mysql` and `fxa-auth-server` yarn test fxa-auth-db-mysql fxa-auth-server # Test all packages yarn test all
- Note that this invokes the same test suite that CI uses, and is not necessarily the same as running
yarn testin any given package.
Emulating CI environment
It is possible to run various test suites (known as Jobs) acting as Circle CI. This is useful if you're encountering CI-specific failures. Please refer to this documentation.
Storybook in CircleCI
Several of the packages in this project use Storybook as a tool for building and demoing user interface components in React. These notably include [fxa-settings][fxa-settings-storybook], [fxa-payments-server][fxa-payments-server-storybook], and [fxa-react].
For most test runs in CircleCI, a static build of Storybook for the relevant commit is published to a website on the Google Cloud Platform using mozilla-fxa/storybook-gcp-publisher. Refer to that tool's github repository for more details.
You can find the Storybook build associated with a given commit on Github via the "storybooks: status check" details link accessible via clicking the green checkmark next to the commit title.
The Google Cloud Platform project dashboard for the website can be found here, if you've been given access:
For quick reference, here are a few CircleCI environment variables used by storybook-gcp-publisher that are relevant to FxA operations in CircleCI. Occasionally they may need maintenance or replacement - e.g. in case of a security incident involving another tool that exposes variables.
STORYBOOKS_GITHUB_TOKEN- personal access token on GitHub for use in posting status check updates
STORYBOOKS_GCP_BUCKET- name of the GCP bucket to which Storybook builds will be uploaded
STORYBOOKS_GCP_PROJECT_ID- the ID of the GCP project to which the bucket belongs
STORYBOOKS_GCP_CLIENT_EMAIL- client email address from GCP credentials with access to the bucket
STORYBOOKS_GCP_PRIVATE_KEY_BASE64- the private key from GCP credentials, encoded with base64 to accomodate linebreaks
Firefox Custom Profile
yarn start firefox to start Firefox with local server configurations.
FXA_E10S=true- add this flag to turn on E10S. (NOTE:
FIREFOX_BIN=/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin yarn start
FIREFOX_DEBUGGER=true- open Browser Toolbox on start (NOTE:
falseby default for speed).
It's possible to debug a running node process using a variety of debuggers (see the node debugging docs for details).
We have also extensively documented working with the FxA code-base using VS Code.
Debugging a server
yarn start runs some of the services with the debugger enabled by default.
(using yarn is preferred in place of npm install)
- Start the whole server as usual (
yarn && yarn startfrom top-level in the monorepo)
- To see which debug port each service is listening on check
pm2.config.jsfile of the package you're interested in.
- Connect to the process to debug it:
- Using Google Chrome, go to
chrome://inspect, then click the process to connect to devtools.
- you may need to add a new target in the "Configure..." menu with the correct debug port
- VSCode requires setting up a
.vscode/launch.jsonfile; see the VSCode docs for details.
- Using Google Chrome, go to
Default Debug Ports
If you're using
yarn start, the following ports are used for
The node debugger can also be attached to a running test process. Firefox Accounts uses a variety of test frameworks, so the steps vary for the different servers. The
--inspect argument is used in the examples below, but
--inspect-brk can also be used to pause the process as soon as it starts.
mocha tests (fxa-shared)
For mocha, pass the
--timeout 0 option, otherwise the test will fail if you step through it and exceed the default timeout (currently 2 seconds on
node --inspect ./node_modules/.bin/mocha --timeout 0 path/to/file
fxa-shared, this incantation works for some directories, but not yet others.
jest tests (fxa-payments-server)
For jest, pass the
--runInBand argument, so it doesn't fork off the test runner to a separate process that isn't available to the inspector:
node --inspect ./node_modules/.bin/jest --runInBand --config server/jest.config.js filematcher
filematcher is a regex that matches against test file paths. If you omit
filematcher, Jest will run all tests (but you have to hit Enter a second time to trigger the test run).
The following technique works with any Android application and can also be used for Firefox for Android.
Simply forward the following ports from the host machine to the Android device:
npm run adb-reverse
adb reverse tcp:3030 tcp:3030 # Content server adb reverse tcp:9000 tcp:9000 # Auth server adb reverse tcp:9010 tcp:9010 # OAuth server adb reverse tcp:1111 tcp:1111 # Profile server adb reverse tcp:5000 tcp:5000 # Sync server
yarn start and get to work!
FxA Email Service
Skip this if you are not working on the [fxa-email-service](packages/fxa-email-service).
The pm2 scripts run the
latest docker version of the email service by default. If you want to
start making changes to the email service then do the following:
- Stop the email-service using
yarn pm2 stop <email_service_id>
- Build the service:
cd packages/fxa-email-service; cargo build --bin fxa_email_send
- Run the service:
cd packages/fxa-email-service; ./scripts/run_send.sh
Firefox for iOS
Skip this if you are not working on Firefox for iOS and FxA.
You can test sync locally in Firefox iOS using the XCode simulator. Follow the steps at github.com/mozilla/firefox-ios and setup firefox-ios build locally. Currently there is no way to dynamically switch servers in Firefox for iOS, to use local servers you need to run the script below:
FIREFOX_IOS_HOME=<path_to_firefox_ios_project> npm run config-fxios
After the script you need to rebuild firefox-ios.
Running with MailDev
If you want to inspect emails, you can run fxa with MailDev.
yarn global add maildev
yarn start yarn pm2 stop inbox
Once services have started, you can start MailDev on port 9999. You might have to start MailDev with sudo permissions.
sudo maildev -s 9999
All emails sent can be viewed from http://localhost:1080.
The Firefox Ecosystem Platform serves as a documentation hub for Firefox Accounts, Services, Synced Client Integrations, and Subscription Platform.
In addition to the ecosystem docs, each package has it's own README.md and some have a
docs/ directory with info specific to that project.
- 123done [README](./packages/123done/README.md)
- browserid-verifier [README](./packages/browserid-verifier/README.md)
- fortress [README](./packages/fortress/README.md)
- fxa-admin-panel [README](./packages/fxa-admin-panel/README.md)
- fxa-admin-server [README](./packages/fxa-admin-server/README.md)
- fxa-auth-client [README](./packages/fxa-auth-client/README.md)
- fxa-auth-db-mysql [README](./packages/fxa-auth-db-mysql/README.md) / [docs/](./packages/fxa-auth-db-mysql/docs)
- fxa-auth-server [README](./packages/fxa-auth-server/README.md) / [docs/](./packages/fxa-auth-server/docs)
- fxa-content-server [README](./packages/fxa-content-server/README.md) / [docs/](./packages/fxa-content-server/docs)
- fxa-customs-server [README](./packages/fxa-content-server/README.md) / [docs/](./packages/fxa-customs-server/docs)
- fxa-dev-launcher [README](./packages/fxa-dev-launcher/README.md)
- fxa-email-event-proxy [README](./packages/fxa-email-event-proxy/README.md)
- fxa-email-service [README](./packages/fxa-email-service/README.md) / [docs/](./packages/fxa-email-service/docs)
- fxa-event-broker [README](./packages/fxa-event-broker/README.md) / [docs/](./packages/fxa-event-broker/docs)
- fxa-geodb [README](./packages/fxa-geodb/README.md)
- fxa-graphql-api [README](./packages/fxa-graphql-api/README.md)
- fxa-metrics-processor [README](./packages/fxa-metrics-processor/README.md)
- fxa-payments-server [README](./packages/fxa-payments-server/README.md)
- fxa-profile-server [README](./packages/fxa-profile-server/README.md) / [docs/](./packages/fxa-profile-server/docs)
- fxa-react [README](./packages/fxa-react/README.md)
- fxa-settings [README](./packages/fxa-settings/README.md)
- fxa-shared [README](./packages/fxa-shared/README.md)
- fxa-support-panel [README](./packages/fxa-support-panel/README.md)
Documentation for Scripts
This bash script converts markdown documents into pdfs. The purpose is to provide an efficient way for Mozilla VPN legal documents to be converted and made available to end-users.
Pre-requisites: The script requires the following:
- Local copy of Mozilla legal-docs repo: https://github.com/mozilla/legal-docs
- pandoc: https://github.com/jgm/pandoc/blob/master/INSTALL.md
- LaTeX: https://www.latex-project.org/get/
# from root fxa directory _scripts/legal-md-to-pdf.sh '/absolute/path/to/legal-docs/'
The script traverses the legal-docs directory looking for localized copies of the Mozilla VPN legal documents. When found, the script converts the document from .md to .pdf and writes it to