November 2023 Summaries
2 posts from Knock
Filter
Month:
Year:
Post Summaries
Back to Blog
Knock has open-sourced its documentation under an MIT license to encourage community contributions and improve the developer experience by allowing users to enhance the documentation directly rather than filing support tickets. The documentation site, available on GitHub, was custom-built from the start using technologies like MDX for content, Tailwind for styling, and Algolia for search, with the aim of maintaining flexibility and a high-quality user experience. The site has been developed over two years, incorporating various features such as API sections, CLI introductions, new integrations, and a dark mode, while maintaining a static foundation. Challenges like implementing multi-language code samples were addressed with a simple approach, and future improvements include adding mobile navigation, code-splitting for loading efficiency, and restructuring the API reference for better linkability. The project serves as a potential model for others looking to build their own documentation sites, offering insights through its open-source code and inviting contributions for further refinement.
Nov 28, 2023
609 words in the original blog post.
Push notifications are a crucial feature for modern applications, enabling direct and efficient communication with users by delivering timely alerts and updates. This guide outlines the process of setting up browser push notifications for a Node.js web application, using an Express server and the node-pushnotifications library to manage web push notifications. The setup involves creating a server to handle subscription requests, a client-side script to send these requests, and a service worker to manage and display notifications in the browser. The guide emphasizes the importance of security considerations, such as setting appropriate CORS policies and properly managing VAPID keys, especially in production environments. Additionally, it touches on the need for cross-channel communication and suggests using platforms like Knock for handling complex notification workflows across different channels.
Nov 20, 2023
1,783 words in the original blog post.