Welcome to https://stemformulas.com/, the site with the goal of being the best place in the world to look for STEM-related formulas.
- 98 formulas and counting (we gotta pump those numbers up)
- The search bar is in focus on site load for quick searching
- The / key can be used to open the search on any page
- LaTeX can be copied by clicking on it on any formula's page
- The site has open-graph tags, so a full preview of the formula is shown when its page is shared on social media
- The site is mobile-friendly
There are two ways to contribute formulas:
-
Suggest on the site: visit the submit page to suggest a formula.
-
Direct contributions: create a pull request following the instructions below.
- Install Node.js (v18+) and clone this repository:
git clone https://github.com/stemformulas/stemformulas.github.io.git
- Install dependencies:
npm install
- Run the dev server:
npm run dev
Visit http://localhost:8501. Changes to formula files in src/content/formulas/ are reflected immediately.
- To test the submit feature, create a
.envfile withDISCORD_WEBHOOK_URL=<your webhook link>.
- Create a new branch:
git checkout -b new-formula-name
-
Create a file in
src/content/formulas/named after your formula, e.g.area-of-a-circle.mdx. Copy the contents of an existing.mdxfile (likepythagorean-theorem.mdx) as a template and update the frontmatter and body. -
Visit the formula at
http://localhost:8501/formulas/<your-slug>and proofread it. -
(Optional) Take a screenshot of the formula card on the listing page, save as
preview.pngincontent/formulas/<your-slug>/. Runpython normalize_preview_imgs.pyto size it properly. -
Push and create a pull request.
- More formulas
- Formula sheet maker
- Better SEO
- Differentiate constants from variables
- More examples for formula usage
