Skip to content

AlberaMarc/forge-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forge API Examples

Code examples for the Forge API suite -- three free developer utility APIs for document conversion, report generation, and form rendering.

Products

API What it does Free tier Docs
DocForge Convert between Markdown/HTML, CSV/JSON, YAML/JSON 500 req/day Docs
ReportForge Generate styled HTML reports from CSV/JSON data 5 reports/day Docs
FormForge Generate accessible HTML forms from JSON definitions 20 forms/day Docs

All three APIs work without signup or API key on the free tier.

Examples

DocForge (Node.js)

File Description
docforge/node/markdown-to-html.js Convert Markdown to HTML with metadata
docforge/node/csv-to-json.js Parse CSV data into JSON objects
docforge/node/format-pipeline.js Chain conversions: YAML to JSON to CSV with round-trip verification
docforge/node/static-site-generator.js Build a static site from Markdown files using DocForge

DocForge (Python)

File Description
docforge/python/markdown_to_html.py Convert Markdown to HTML and save the output
docforge/python/csv_to_json.py Parse CSV to JSON with filtering
docforge/python/yaml_to_json.py Convert YAML configuration to JSON

ReportForge (Node.js)

File Description
reportforge/node/sales-report.js Generate a sales summary report from JSON data
reportforge/node/csv-to-report.js Generate a report from CSV data
reportforge/node/invoice-generator.js Generate a professional invoice

ReportForge (Python)

File Description
reportforge/python/sales_report.py Generate a sales summary from JSON data
reportforge/python/automated_weekly_report.py Automated weekly report from CSV (cron-ready)
reportforge/python/expense_report.py Generate an expense report grouped by category

FormForge (Node.js)

File Description
formforge/node/contact-form.js Generate a styled contact form
formforge/node/survey-form.js Generate a multi-field survey form
formforge/node/embed-form.js Generate an embeddable form snippet

FormForge (Python)

File Description
formforge/python/contact_form.py Generate a contact form and save as HTML
formforge/python/registration_form.py Generate a user registration form

Quick Start

Node.js

# No dependencies needed -- uses built-in fetch (Node 18+)
node docforge/node/markdown-to-html.js
node reportforge/node/sales-report.js
node formforge/node/contact-form.js

Python

pip install requests
python docforge/python/markdown_to_html.py
python reportforge/python/sales_report.py
python formforge/python/contact_form.py

API Documentation

OpenAPI Specs

Each API publishes an OpenAPI 3.0 specification:

Import these into Postman, Insomnia, or any OpenAPI-compatible tool.

License

MIT

About

Code examples for the Forge API suite: DocForge, ReportForge, and FormForge. Node.js and Python examples for document conversion, report generation, and form rendering.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors