Beefree SDK Snippets
Speed up your Beefree SDK integration with this collection of handy code snippets for Visual Studio Code.
This extension provides snippets for common tasks, including the secure server-side authentication flow, client-side initialization, configuration, and more, helping you get up and running with the Beefree email, page, and pop-up builders faster.
Features
- Time-Saving Snippets: Quickly scaffold common architectural patterns
- Best Practices Included: Implements the secure, server-side authentication flow by default
- Multi-Language Support: Works out-of-the-box in your JavaScript, TypeScript, and HTML files
- Easy to Use: Just type the
b- prefix and explore the available snippets
Available Snippets
Simply start typing one of the prefixes below in a relevant file to see the available snippets.
| Prefix |
Description |
Language(s) |
b-init-server |
Node.js/Express server-side authentication endpoint |
JS, TS |
b-init-client |
Client-side SDK initialization flow |
JS, TS |
b-config |
Standard beeConfig object |
JS, TS |
b-config-multitenant |
Multi-tenant config |
JS, TS |
b-save |
onSave callback function |
JS, TS |
b-load |
bee.load() method |
JS, TS |
b-load-db |
Load saved template from backend |
JS, TS |
b-container |
HTML div container for the editor |
HTML |
Installation
- Open the Extensions sidebar in VS Code (
Ctrl+Shift+X or Cmd+Shift+X)
- Search for "Beefree SDK Snippets"
- Click Install
Or install via command line:
code --install-extension beefree-sdk.beefree-sdk-snippets
Usage
After installation, simply start typing any snippet prefix (e.g., b-init-client) in your JavaScript, TypeScript, or HTML files. VS Code will show you available snippets to choose from.
Contributing
Found a bug or have a suggestion for a new snippet? We'd love your help!
Resources
Built with ❤️ by the Beefree SDK team