Autofillr is a browser extension that can fill registration forms with randomly but consistently generated data. Consistent here means that the values of the generated fields will be valid between each other. For example, some countries may have date of birth included in national identification numbers. In a such case, Autofillr considers this while generating both fields.
The intention is to make testing and development of products that have such forms easier. In some products, form validation can be so strict that finding random valid data becomes a real pain. Especially when you need to do this several times in a day, filling this data into the same form becomes cumbersome and tedious.
So, I felt the need to develop this tool that does the dirty job for me :D
All the data generation happens locally. So, Autofillr does not send any requests to a remote service or api. Thanks to the libraries like Faker.js.
To fill in the forms on websites, it uses the HTML autocomplete attribute.
Here is an example form that Autofillr can fill in: codesandbox
The project consists of 2 parts.
- UI: The pop-up that users can interact with. This is a very simple
create react app
project. - Content script: This basically fills the form inputs on any web page when UI sends a message with the generated data. See src/contentScripts/content.js
To start the project in development mode, just run yarn start
. This will watch both the UI project and the content script to copy them into the build folder when a change is made. Then you can point the build folder in chrome to load the unpacked extension.
These 3 steps from chrome developer documentation explain how to load an unpacked extension: https://developer.chrome.com/docs/extensions/mv2/getstarted/#manifest
To make commits complying with conventional commits, use yarn commit
. This helps us in creating changelog and semantic versioning.
The release process is fully automated. So, triggering the release action;
- Builds the project.
- Updates the version number both in package.json and manifest.json.
- Generates a changelog based on the latest commits. (See Conventional Changelog)
- Commits these changes with a message like
chore(release): v0.1.0
and creates a new tag with this new version number. - Pushes all these changes upstream.
- Creates a new release in Github Releases and attaches the packed extension files to it.
- TODO: Uploads the packed extension to chrome dev store and applies for a review.
This project is licensed under the GNU General Public License 3 or later (GPL-3.0-or-later). See the LICENSE file for details.