{"id":13691207,"url":"https://fib3.github.io/ssjs-vsc/","last_synced_at":"2025-05-02T15:31:32.819Z","repository":{"id":204008216,"uuid":"691066317","full_name":"FiB3/ssjs-vsc","owner":"FiB3","description":"VSCode extension to streamline Server Side JS development for SalesForce Marketing Cloud.","archived":false,"fork":false,"pushed_at":"2025-04-11T19:47:47.000Z","size":5963,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T20:27:28.016Z","etag":null,"topics":["ampscript","cloud-pages","marketing-cloud","salesforce","server-side-javascript","sfmc","ssjs","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://fib3.vercel.app/ssjs-vsc","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FiB3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-13T12:40:36.000Z","updated_at":"2025-04-11T19:47:51.000Z","dependencies_parsed_at":"2024-01-19T21:39:28.979Z","dependency_job_id":"8307a8f1-9d67-4937-8697-70d6cdef5515","html_url":"https://github.com/FiB3/ssjs-vsc","commit_stats":null,"previous_names":["fib3/ssjs-vsc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiB3%2Fssjs-vsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiB3%2Fssjs-vsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiB3%2Fssjs-vsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiB3%2Fssjs-vsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FiB3","download_url":"https://codeload.github.com/FiB3/ssjs-vsc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252062835,"owners_count":21688606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ampscript","cloud-pages","marketing-cloud","salesforce","server-side-javascript","sfmc","ssjs","vscode","vscode-extension"],"created_at":"2024-08-02T17:00:41.904Z","updated_at":"2025-05-02T15:31:32.800Z","avatar_url":"https://github.com/FiB3.png","language":"CSS","funding_links":[],"categories":["Resources"],"sub_categories":["Code"],"readme":"# SSJS Manager\n\nSimplify \u0026 speed up Server Side JavaScript and AMPscript development in Salesforce Marketing Cloud.\nFrom syntax highlight through rapid testing and preview in VS Code and Cursor.\n\n![SSJS Manager Preview](https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo2.0.gif)\n\n## Features\n\n- Support rapid code development of SSJS scripts via SFMC's Cloud Pages.\n- Preview within VSCode / Cursor - with a WYSIWYG for Cloud Pages and more information rich preview for scripts.\n- Syntax highlight.\n- SSJS Snippets.\n- Mustache templating of scripts and pages to ensure your env security when using repositories.\n- Live Previvew feature for pure HTML files that includes templating.\n- Configuration Wizard UI.\n\n### [Complete Guide](https://fibworks.com/ssjs-vsc)\n[Issue Reporting on GitHub](https://github.com/FiB3/ssjs-vsc/issues)\n\n## Settings\n\n### Extension Settings\n\n__Generic__ extension settings is available in VSCode Preferences.  \n__Project wide__ settings is done per your project (a.k.a. Workspace). One project works for one Busines Unit in SFMC.  \nIt is managed via `SSJS: Show Config` command and stored in the `.vscode/ssjs-setup.json` file.\n\n### Project Setup\n\nYou can start using this extension for basic features right away. However in order to use support for rapid Cloud-page development, you must install connection to SFMC. This connection consists of Installed Package, Cloud Page \u0026 Text Resource.\n\nYou can see a guide using the new `SSJS: Show Config` command for interactive wizard. It is really easy!\n\n## Development\n\nOnce your SSJS Manager is Active and Cloud Page published, all you need to do is to create script and upload it to Marketing Cloud:\n- First time upload is done via `SSJS: Upload Script to Dev` or cloud icon in top right corner of editor tab.\n- `SSJS: Run` lets your preview your script or opens the script in the browser (depending on your Prefereces).\n- `SSJS: Get Dev Path` command will give you the deployed URL.\n\n![SSJS Manager](https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif)\n\n### Commands\n\nTo be run using `Ctrl` + `Shift` + `P` (Win) / `CMD` + `Shift` + `P` (Mac) / F1.\nThe list of all commands can be seen in the `Extensions \u003e SSJS Manager \u003e Features \u003e Comnands`. \n\n### Live Preview\n\nSometimes you might want to develop your page locally, without SFMC Engagement and might need templating.\nEnter Live Preview.\n\n![SSJS Manager Live Preview](https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/live-preview-demo.gif)\n\n### Hooks\n\nThis option allows setting `on-save` hooks for files so you can run specific commands on save (and before sending scripts to SFMC). E.g.:\n```json\n// .vscode/ssjs-setup.json:\n{\n\t// ...\n\t\"hooks\": {\n\t\t\"on-save\": {\n\t\t\t\".js\": {\n\t\t\t\t\"enabled\": true, \t\t\t\t\t\t\t\t\t\t\t// is hook enabled?\n\t\t\t\t\"command\": \"npm run build\", \t\t\t\t\t// command to run\n\t\t\t\t\"success-handling\": \"upload-self\",\t\t// \"upload-self\", \"upload-output\", \"none\"\n\t\t\t\t\"output-file\": \"./dist/{{name}}.ssjs\" // path to deploy, from workspace root\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n## Telemetry\n\nThis extension is collecting some telemetry in order to allow for future improvements and bugfixes.  \n\n## Sponsors\n\nI would like to thank my sponsors:\n\n[![FLO](https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/flo.png \"FLO Logo\")](https://www.weareflo.com/)  \n(former bluez.io)\n\nLet me know, if you would like to sponsor me.\n\nNo personal information, API Keys nor script content is collected and VSCode overall telemetry opt-out is honored.\n\n## Known Issues\n\nWork in progress - some errors may appear.  \nIn such case, let me know on my [GitHub here!](https://github.com/fib3/ssjs-vsc/issues)\n\n- Upcoming improvements to security of development Cloud Pages.\n- Multi-root workspaces are not supported.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/fib3.github.io%2Fssjs-vsc%2F","html_url":"https://awesome.ecosyste.ms/projects/fib3.github.io%2Fssjs-vsc%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/fib3.github.io%2Fssjs-vsc%2F/lists"}