This is a repository that contains the source code for the utilitiesfor.me application. See: https://utilitiesfor.me
Your utility site is gross, and insecure, and full of ads and trackers ๐ฟ.
- Have Node and Python ๐ โ ๐ น๐
- Start the Environment
# python3 -m venv .venv # Once!
source .venv/bin/activate
- Install the Dependencies
pip install -r requirements.txt
npm install
- Add or Fix a Utility
# utilities_for_me/utilities/_echo/echo.py
def echo(_str):
return _str
- Wrap Utility in Endpoint(s)
# utilities_for_me/web_app/server.py
@app.route('/echo/echo', methods=['POST'])
def echo():
from utilities_for_me.utilities._echo.echo import echo
return echo(request.form.get("contents", ""))
- Test it!
curl -X POST -F "contents=hello" http://localhost:5050/echo/echo
- Publish Endpoint
make deploy
- Go to the site (https://utilitiesfor.me/)
- Find the utility you need
- Use said utility
- Profit ๐ค
- Build and Run Server
make run_dev_server
- Run Client Bundler
# OLD
make run_dev_ui
# NEW -- Temp (Run each in own terminal... I know I am working on it!)
# JS Bundler
npm run scripts-watch
# CSS Bundler
npm run styleit
- Echo โ
- Prettify โ
- Date & Time Calculator ๐งโโ๏ธ
- Number Calculator
- Code Case Transformer โ
- Random String Generator โ
- Hex/Binary/Base10/Octal Converter
- Fake Data Creator V-2
- Data Encryption โ
- Regex Tester V-N
- Secret Santa Generator V-2
- Data Structure Analyzer V-2
- Priority Queue Simulator V-2
- Image / Avatar Creator
- Percent Calculator โ
- Page Scraper V-N
- Timer โ
- GIF database V-2
- Move to DO for all the things ๐ง
- Offer client only (where possible) so that user can disconnect from web and everything would still work ๐ฎ
- Offer theme picker with local web storage backing it
- Offer ability to "hash" state so that a user can share something like a secret santa generator
- URLs are kebab cased
- Utilities are written FIRST and test first in the utilities directory