Pactly | Agreement Builder HTML5 Template With PDF Export
Complete documentation for buyers and CodeCanyon implementation guide
Pactly is a professional, lightweight HTML5 contract and agreement builder designed to work entirely in the browser with no backend required. Perfect for freelancers, agencies, and small businesses that need to generate legal documents quickly.
| File/Folder | Purpose |
|---|---|
index.html |
Landing/demo page with features overview |
app.html |
Main contract generator interface |
pricing.html, terms.html |
Additional pages (templates) |
assets/css/style.css |
Main stylesheet with CSS variables for theming |
assets/css/fonts.css |
Local @font-face declarations |
assets/js/main.js |
Application logic and template definitions |
assets/js/jspdf.umd.min.js |
jsPDF library (bundled, ~200KB) |
assets/js/html2canvas.min.js |
html2canvas library (bundled, ~150KB) |
assets/fonts/ |
Google Fonts bundled locally (Instrument Serif, Geist, Geist Mono) |
LICENSES/ |
MIT licenses for bundled libraries |
documentation.html |
This complete documentation file |
README.md |
Quick setup guide and project overview |
Unzip the downloaded package to your desired location.
Option A: Web Server
Upload the entire folder to your web host via FTP/SFTP
Option B: Local Testing
Navigate to the folder and double-clickindex.htmlorapp.htmlin your browser
app.html in a modern browser (Chrome, Firefox, Safari, Edge)Start by selecting one of the 6 available contract templates:
Fill in the form fields with your specific information. Changes update the preview in real-time.
Toggle individual clauses on or off to include only the sections you need. Edit clause text inline if necessary.
The right panel shows a live preview of your contract as you type.
Click the "Export to PDF" button. The contract will download as a formatted PDF file.
Your data is automatically saved to browser localStorage. Close and reopen the app to continue editing your draft.
Edit the CSS variables in assets/css/style.css:
:root {
--primary-color: #0066cc;
--secondary-color: #f5f5f5;
--text-color: #333;
/* Update these to customize your theme */
}
Edit assets/js/main.js to add new contract templates or modify existing clause text.
Modify assets/css/fonts.css to use different local fonts or download new Google Fonts and add them
to assets/fonts/.
In assets/js/main.js, find the export function and adjust jsPDF options (page size, margins,
orientation, etc.).
Before publishing on CodeCanyon, verify the following:
assets/js/assets/fonts/ with local @font-face declarationsLICENSES/ folder exists with MIT license files for each bundled librarydocumentation.html is included in the rootREADME.md contains setup instructions and feature listThis package includes the following open-source libraries under MIT license:
LICENSES/LICENSE-jsPDF.txtLICENSES/LICENSE-html2canvas.txtLICENSES/LICENSE-fonts.txtLICENSES/ folder in your packaged item.
CodeCanyon requires proper attribution for all bundled libraries.
jspdf.umd.min.js and html2canvas.min.js are in assets/js/assets/fonts/ contains all required font filesassets/css/fonts.css for correct @font-face pathsassets/css/style.css is not missing or movedFor Technical Support: Add your contact email in the CodeCanyon item settings under "Support" section.
Expected Response Time: 24-48 hours
Support Topics: Installation help, customization questions, browser compatibility issues
If you encounter a bug, please include:
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | May 2026 | Initial CodeCanyon-ready release with 6 contract templates, PDF export, offline support |
A: No. You can open the HTML files directly in your browser. However, for production use, hosting on a web server is recommended.
A: Yes. Simply include the HTML, CSS, and JS files in your project and link to
app.html from your site.
A: Yes. All data stays in your browser and is never sent to external servers. Data is stored locally in localStorage.
A: Yes. Edit the templates in assets/js/main.js to modify clause text, add new
sections, or create entirely new templates.
A: Chrome, Firefox, Safari, and Edge (all modern versions from 2020 onwards).
A: Yes. Edit the text in assets/js/main.js and assets/css/style.css
to translate the UI and templates.
A: Approximately 400-500 KB total (including bundled libraries and fonts). Optimized for fast loading.
A: Yes. Duplicate an existing template in assets/js/main.js and customize it for
your needs.
app.html — Main application entry pointassets/js/main.js — Application logic and templatesassets/css/style.css — Styling and theme variables:root variables in style.cssmain.jsfonts.css or add new fonts to assets/fonts/