Control your website content using query parameters.
Add Params to your project using npm:
npm install @burcs/paramsOr, embed the script directly on your website.
Params is designed for ease of use. Modify content based on the order of site elements. For example, to alter the second paragraph on a page:
https://params.org/page?p_2=updated+content+hereActivate "Party Mode" to effortlessly update your site. By enabling this mode, you can edit your page content in-line. Try it out:
https://params.org/page?party=trueMake your changes, enjoy the party!
Currently, Params supports:
- Headings:
h1,h2,h3,h4,h5,h6 - Text & Styling:
p,i,b,span - Lists:
ul,ol - Media:
img
More elements are in the pipeline.
Change element styles by invoking different CSS classes:
https://params.org/page?p_2_class=class-nameThis feature works well with libraries like TailwindCSS.
Image sources are limited to whitelisted domains to prevent malicious code injections.
Params is open-source. Submit a PR if you have suggestions or improvements.
MIT License.