Some urban kampungs are registered as informal settlements in Indonesian cities. The existence of a kampung amidst the cities is crucial in providing an affordable access to housing for most of the city’s residents. As an integral part of the city, urban kampungs face many problems such as social segregation, low and deteriorated physical quality, and exclusion from spatial plans which may worsen the residents’ quality of life. Apart from this condition, an urban kampung is believed to have a strong social cohesion and resilient community which are able to persist and survive socially and economically. Towards the sustainability of the city, kampungs as part of the city structure need to be addressed spatially through proper plan and design strategy. In doing so, planners and architects must understand the unique characteristics of urban kampungs to appreciate their positive contribution to the cities. This paper is presented to understand the underlying information on the organic spatial layout of the informal kampung and its impact on social composition within the framework of lively, vibrant, and safe neighborhoods. We utilized Space Syntax (SSX) combined with activity snapshot to understand the socio-spatial relationship and then triangulated the results with a questionnaire on the residents’ perception. Kampung Code, located in the inner city of Yogyakarta, was selected as the case study area as it represents the informal-like settlements. This study revealed that the complex interplays of the organic spatial layout does not significantly affect the frequency of outdoor activities. However, the presence of eight popular spaces (streets, house’s terraces, local shops/taverns, small open spaces, riverbanks, guard posts, community buildings, and small mosques) distributed within Kampung Code does influence it, and it is the driving factor for the residents to engage with others in the form of social interactions. Popular places are able to accommodate residents’ need for various activities from informal business, community interaction, and hobbies. Eventually, the continuous process of interaction and encounter in the same shared public places shapes the strong social connection and conducive living situation, ensuring the kampung to be a lively, vibrant, and safe neighborhood. Reflecting from this study, where organic spatial layout has little effect on social composition and encounters, planners and architects should be aware that proper spatial layout design (e.g., high integration street networks in global and local scale) could generate constant flow of both locals and passersby – enhancing the vibrancy and vitality of the public realm in the kampungs